ID:146790
 
Code:
mob
verb
Anger2()
set name = "Raise Anger"
set category = "Commands"
var/title2 = "Raise Anger"
var/text2 = "What do you wish to raise your anger to? "
var/anger_level = input(usr, text2, title2) as text
usr.levelanger = anger_level
if(usr.levelanger == "10")
oview(6) <<"[src.name]'s power increases..."
usr <<"[usr.name]: AHHHH!!!!!!! Arrrrrrrrrr..."
usr.icon_state = "powerup"
sleep(30)
usr <<"AHHHHHHHHHHH!!!!!!!!"


Problem description:
When I run my game, i get no errors, and no runtimes, but when use the verb that the code above is part of, the icon state doesnt change for the player's icon. It doesnt change at all, not even to a blank state. The state name is correct, and the icon is correct. What could the problem be?

Are you 100% sure it is right? You need to be exact with caps.
Do the messages that are associated with the "powerup" display?
In response to Igmolicious
Igmolicious wrote:
Do the messages that are associated with the "powerup" display?

Yes they do.

N1ghtW1ng wrote:
Are you 100% sure it is right? You need to be exact with caps.

Yes im sure, I just double checked again.
In response to N1ghtW1ng
Maybe another piece of code is affecting it? That sometimes happens to me. I don't see how it shouldn't work.
In response to FiredGoku
Hmm try Changing usr.icon_state to src.icon_state
In response to DaGoat787
DaGoat787 wrote:
Hmm try Changing usr.icon_state to src.icon_state

It's a verb, it doesn't really matter.
In response to Hell Ramen
Well sometimes my verb doesn't works when i use usr so i just think he should give it a shot