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!
ID:179698
![]() Nov 21 2001, 8:01 am (Edited on Nov 21 2001, 8:08 am)
|
|
Couldn't you leave it so you can buy the shopkeeper? I've always wanted one of those!
|
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 |
var/obj/thing_chosen