Character Selection in Developer Help
|
|
Anyone know how to make a character selection screen so it shows a closed icon when the character isn't unlocked and an open icon if the character is unlocked, I already got this done, but I'm pretty sure that the character unlocked state will show up to everyone. So, any help with this? Heres my current code.
Sonic icon = 'mob.dmi' icon_state = "selection2" Click() if(usr.unlockedsonic) usr << "You have chosen sonic" usr.icon = 'mob.dmi' usr.loc = locate(11,14,1) else switch(alert("Sonic has not been unlocked yet, do you wish to unlock him as a playable?","2500 Tokens: Unlock Sonic?","Yes","No")) if("Yes") if(usr.Tokens >= 0) usr.Tokens -= 0 usr.unlockedsonic = 1 usr << "You have unlocked sonic!" src.icon_state = "selection"
|
|
You should make locked/unlocked a client var. I would do that, if no one told me a better way.