ID:158402
![]() Sep 2 2009, 11:36 am
|
|
Okay, so, basically, the players at main menu have no icon, but are a /mob/Player, then when they create a character, it gives them the icon 'icons/Base1.dmi', and it works fine. But, for some reason, only hand-seal usage can change the iconstates, punch, kick, defense, and training don't change it.
|
![]() Sep 2 2009, 11:51 am
|
|
http://www.byond.com/docs/ref/ - Go to icon_state.
|
I know how to program. I checked, and the names are the same. Can it not use capitals, or something?
|
I checked, and made them both all lowercase to make sure, it doesn't change icon states.
verb And the icon state in the icon file is "training" without the quotations |
Are both requirements for the first two if() chains true? (training being 0, and trainingpoints being less than 100)
|
It's not the if statements, because the experience bar fills up. Would flick work? It's an infinite animation. I need it to stop when the usr stops training, or training points reach 100?
|
Update! Is it possible for an icon file to go corrupt?
I made sure it's the -exact- name, and tried flick, but it blinks nothing. (an image of nothing) then reverts to normal? |
I fixed it!
It was a really noobie mistake! Basically, when assigning the icon originally, and the few other times it does (Icon, not the state) it was usr.icon = 'base1.dmi' and I changed it to usr.icon = 'Icons/base1.dmi' since it's in Icons folder, and works great now! Thanks for helping all of you. |