ID:166872
 
Code:
turf
ChangeHair
icon = 'changehair.png'
density = 0
Click()
alert(usr,"[usr.name],Here you are going to be able to choose the hair style you would like to have.","??Voice??")
var/choice = input("","??Voice??-What King of hair style would you like to have on your adventure?")in list("Sora","Riku","Axel","Kari")
if(choice == "Sora")usr.overlays -= usr.hair
usr.overlays -= usr.hair
var/hair1 = 'Pointer.dmi'
usr.hair = hair1
if(choice == "Riku")usr.overlays -= usr.hair

There is nothing wrong with this code (i dont thing but if there is cna u fix it) But i cant get the click to work. whenever i push teh click butotn on the mpa bothing happens.
turf
ChangeHair
icon = 'changehair.png'
density = 0
Click()
alert(usr,"[usr.name],Here you are going to be able to choose the hair style you would like to have.","??Voice??")
var/choice = input("","??Voice??-What King of hair style would you like to have on your adventure?")in list("Sora","Riku","Axel","Kari")
switch(choise)
if(choice == "Sora")usr.overlays -= usr.hair
usr.overlays -= usr.hair
var/hair1 = 'Pointer.dmi'
usr.hair = hair1
if(choice == "Riku")usr.overlays -= usr.hair


something like this
In response to Ripiz
Ripiz, you switch to choice and then you still if(choice==..)