verb
Talk()
set src in oview(1)
input("What do you want to buy?")in list("Cool paint job $50", "Nothing")
if("Cool paint job $50")
usr <<"that will be 50 dollars"
if(usr.gold<=49)
usr << "Wait, You don't have enough cash!"
else
if(usr.gold>=50)
usr.gold-=50
usr << "Let me paint that for you"
usr.overlays += 'cool paint job.dmi'
usr.sight = 0
if("Nothing")
usr <<"Ok"
Even if you say nothing you still buy it.
ID:261400
Feb 20 2002, 4:12 pm (Edited on Feb 20 2002, 4:18 pm)
|
|
You're not telling it if(what is what) the way you're doing it requires a switch() in it, example:
mob/verb/Test() Is the same as: mob/verb/Test() |
see how you have the if("Nothing") indented so far make it the same amount of indents as the if("Cool paint job $50")
that will do it for you