ID:180095
 
code

switch(list(usr, "Want a sword?", "Wepons", "Sword-80G", "Iron Sword--1000G","Flame Sword--5000G","No"))
if("Sword-80G")
if(usr.Gold <= 74)
usr << "You dont have enough"
else
usr.Gold -= 80
usr.contents += new /obj/items/Sword
usr << "Enjoy"
if("No")
usr << "Ok"
if("Sword-80G")
if(usr.Gold <= 74)
usr << "You dont have enough"
else
usr.Gold -= 80
usr.contents += new /obj/items/Sword
usr << "Enjoy"
if("Iron Sword--1000G")
if(usr.Gold <= 999)
usr << "You dont have enough"
else
usr.Gold -= 1000
usr.contents += new /obj/items/Sword
usr << "Enjoy"
if("Flame Sword--5000G")
if(usr.Gold <= 4999)
usr << "You dont have enough"
else
usr.Gold -= 5000
usr.contents += new /obj/items/Sword
usr << "Enjoy"

no errors but when i click him nothing happens..o and btw it has Click() at the top
Click()
switch(input("Would You Like a Sword?","Sword")in list("Sword1","Sword2")
if("Sword1")
if(usr.Money>=100)
usr<<"You Got the Sword"
usr.Money-=100
else
usr<<"Not Enough Money"

if("Sword2")
if(usr.Money>=500)
usr<<"You get the sword"
usr.Money-=500
else
usr<<"Not Enough Money"


you can spiff this up but it shoud do it if this is what you want.

//////////
//Nadrew//
//////////
In response to Nadrew
Nadrew wrote:
Click()
switch(input("Would You Like a Sword?","Sword")in list("Sword1","Sword2")
if("Sword1")
if(usr.Money>=100)
usr<<"You Got the Sword"
usr.Money-=100
else
usr<<"Not Enough Money"

if("Sword2")
if(usr.Money>=500)
usr<<"You get the sword"
usr.Money-=500
else
usr<<"Not Enough Money"


you can spiff this up but it shoud do it if this is what you want.

//////////
//Nadrew//
//////////


1.) I dont understand
2.) I dont think I will ever understand
3.) WHO CARES!