ID:261400
 
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.
Knuckles skater wrote:
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.



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
You're not telling it if(what is what) the way you're doing it requires a switch() in it, example:

mob/verb/Test()
var/blah = input("Blah, or bleh?")in list("Blah","Bleh")
switch(blah)
if("Blah")
usr<<"Blah!"
if("Bleh")
usr<<"Bleh!"


Is the same as:

mob/verb/Test()
var/blah = input("Blah, or bleh?")in list("Blah","Bleh")
if(blah == "Blah")
usr<<"Blah!"
if(blah == "Bleh")
usr<<"Bleh!"