ID:179698
 
Here the part of my code that isn't really working:

mob/Shopguy
Talk(mob/M as mob)
var/list/sale = list("Thing1","Thing2","Nothing")
var/buy = input("What do you want to buy?","Hello","Thing1")in sale
var/thing_chosen
switch(buy)
if("Thing1") thing_chosen = new /obj/thing1
if("Thing2") thing_chosen = new /obj/thing2
if("Nothing")
usr << "Later, then"
return
thing_chosen.Move(usr)
usr << "Thanks for coming!"

There it is. The problem is the Move proc, it says:
error:thing_chosen.Move:bad proc

I really don't know whats wrong here, and I've tried a lot.
If I try to take out the thing_chosen.Move(usr) so it becomes Move(usr), it only moves the shopguy to you inventory.
Please give me an idea of how to correct this. Thanks!
Thing chosen isn't declared as a movable atom, so it doesn't know thing_chosen has a Move() proc. declare it as an obj and it will work.

var/obj/thing_chosen
In response to Shadowdarke
Thank you Shadow!
Couldn't you leave it so you can buy the shopkeeper? I've always wanted one of those!
In response to WizDragon
Also, if you're not sure whether the item you're buying will be an obj or mob (why you'd buy a mob, I don't know, but I guess that could be a possibility), try var/atom/movable/thing_chosen, which should work as well.

Lummox JR
In response to Xooxer
I had three... lol