ID:141135
 
Code:
    Berserk
name = "Apotamkin"
Click()
switch(input("Berserks are the brutes of all three races. Sturdy warriors that live by the blade. Though worthy fighters, they are selfish beings that lust for more power. Their homeland is in the western area of center Earth. Is this acceptable?","Race selection") in list ("No","No","Yes","No","No"))
if("Yes")
usr.Race = "Berserk"
icon = 'bbase.dmi'
icon_state = gender
usr.attack+=10
usr.defense+=10
usr.loc=locate(61,11,1)
if("No")
return..()


Problem description:
When I log in and pick my race it doesn't give me any icon. However if I replace icon_state = gender with icon_state = "male"/"female" it works fine. What can I do to fix this?

Well, gender is a client variable linked to the BYOND account.
Aaand you're using "icon = ", this will default to "src.icon = " which is the click button. I'm not sure why it should be working at all.

usr.icon = 'bbase.dmi'
usr.icon_state="[usr.client.gender]" // will output "male" or "female"
I would also like to point out that there's nothing stopping people from clicking that thing a hundred times before actually responding to the input (a hundred times).

Guess what that would do.