ID:168227
 
mob
Login()
..()
loc = locate(2,2,1)
input("What character do you wish to play as?", chara) in list("Link", "Trunks")
if(chara == "Link")
usr.icon = 'Adult Link.dmi'
input("What color?", chara)in list("Green", "Red", "Blue", "Purple", "Black")
if(chara == "Green")
usr.icon_state="Green"
if(chara == "Red")
usr.icon_state="Red"
if(chara == "Blue")
usr.icon_state="Blue"
if(chara == "Purple")
usr.icon_state="Purple"
if(chara == "Black")
usr.icon_state="Black"
if(chara == "Trunks")
usr.icon = 'Trunks.dmi'
input("What transformation?", chara)in list("Normal", "Super Saiyan", "Super Saiyan 2", "Super Saiyan 3")
if(chara == "Normal")
usr.icon_state="Trunks"
if(chara == "Super Saiyan")
usr.icon_state="ssj1"
if(chara == "Super Saiyan 2")
usr.icon_state="ssj2"
if(chara == "Super Saiyan 3")
usr.icon_state="ssj3"


When I compile, I get no errors, but when I use it in the game, it doesn't change the character's icon. Little help please?
This gets really old, but really, don't put src in a proc. usr isn't defined.
In response to Mysame
...so...just put "icon = "blah"?"
In response to KirbyRules
Technically, you replace usr with src. But just replacing them without thinking what you're doing is dumb too.
mob/Login()
..()
loc=locate(2,2,1)
var/chara=input("What character do you wish to play as?")as null|anything in list("Link","Trunks")
if(chara=="Link")
var/chara2=input("What color?")as null|anything in list("Green","Red","Blue","Purple","Black")
if(chara2)
icon='Adult Link.dmi'
icon_state="[chara2]"
if(chara=="Trunks")
var/chara3=input("What transformation?")as null|anything in list("Normal","Super Saiyan","Super Saiyan 2","Super Saiyan 3")
if(chara3)
icon='Trunks.dmi'
icon_state="[chara3]"

// Change the icon states to match the selection in chara3.
In response to Artemio
Artemio, according to "usr Unfriendly," your code would just need a little changing.

mob/Login()
..()
loc=locate(2,2,1)
var/chara=input(src, "What character do you wish to play as?")as null|anything in list("Link","Trunks")
if(chara=="Link")
var/chara2=input(src, "What color?")as null|anything in list("Green","Red","Blue","Purple","Black")
if(chara2)
icon='Adult Link.dmi'
icon_state="[chara2]"
if(chara=="Trunks")
var/chara3=input(src, "What transformation?")as null|anything in list("Normal","Super Saiyan","Super Saiyan 2","Super Saiyan 3")
if(chara3)
icon='Trunks.dmi'
icon_state="[chara3]"


There was still some usr-ness in it, and since character loading is in use, usr isn't safe here.

(usr Unfriendly)