icon='gold.dmi'
if(usr.wealth==1)
icon_state="1"
if(1<usr.wealth<=10)
icon_state="2"
if(10<usr.wealth<=50)
icon_state="3"
if(50<usr.wealth<=100)
icon_state="4"
if(100<usr.wealth<=500)
icon_state="5"
if(500<usr.wealth<=10000)
icon_state="6"
if(wealth>10000)
icon_state="7"
Problem description:
I put this in my code, but the only icon_state that ever comes up is 5. I am already certain that the problem is not where i put it, and i have not changed it's icon_state anywhere else... WHAT THE HECK IS WRONG!?
You could also use switch(), that allows you to do stuff like that. Ex: