ID:149346
 
I wanna change the character's icon to the sad state in the animal.dmi if their happiness is below 95, but no matter how I put it, I can't get it to work.

proc/healthdown()
if (happy < 95)
usr.icon = New('animal.dmi',icon_state ="sad")
Well, for one thing, is your first icon in the animal.dmi file?
Likwiddraino000 wrote:
I wanna change the character's icon to the sad state in the animal.dmi if their happiness is below 95, but no matter how I put it, I can't get it to work.

proc/healthdown()
if (happy < 95)
usr.icon = New('animal.dmi',icon_state ="sad")

hmm I think you need to do something like this.

proc/healthdown()
if (src.happy < 95)
src.icon =animal.dmi'
src.icon_state ="sad"

In response to Drafonis