mob
npc
Poorseller
icon='Npc.dmi'
icon_state="Shoper"
verb
Shop()
set src in oview(1)
switch(input("What Do You Wish To Buy","","Batman Helm","OldNavyShirt","AmericanEaglePants"))
if("Batman Helm")
if(usr.Gold >= 15)
switch(input("Do you want a Batman Helm It cost $15","","Yes","No"))
if("Yes")
usr.contents += new /obj/pickup/BatmanHelm
usr.Gold -= 15
if("No")return
if("OldNavyShirt")
if(usr.Gold >= 15)
switch(input("Do you want a Old Navy Shirt It cost $15","","Yes","No"))
if("Yes")
usr.contents += new /obj/pickup/OldNavyShirt
usr.Gold -= 15
if("No")return
if("AmericanEaglePants")
if(src.Gold >= 50)
switch(input("Do you want a American Eagle Pants It cost $50","","Yes","No"))
if("Yes")
usr.contents += new /obj/pickup/AmericanEaglePants
usr.Gold -= 50
if("No")return
Problem description: Yes you guys helped me with this but the thing is the input is not appearing( the list of items to buy and the yes or no) but when i change it to something else like alert it works but i really want mines to be input how can i fix this?
Wrong .. completely wrong..
This is an example from the DM Reference I suggest you use it... You should also read the DM Guide personally I am sick of seeing people code grabbing from the forums because they won't learn it themselves ..
Example: