New icon state. in Developer Help
|
|
Im trying to making it when you level you get a verb where you get a boost for a certain amount of time and when your mp is gone you revert.Also my mp won't decrease.
Code:
mob/verb Power() if(usr.Level==2) usr.MP-=rand(1,2) if(usr.MP<0) if(istype(src,/mob/Class/Ninja)) Str+=usr.Str * 2 Def+=usr.Def * 2 src.icon='Ninja.dmi' src.icon_state="2"
|
Problem description:
This is all i can come up with i know its horrible but it shows no errors,thanks for any help.
|
also try adding things like
usr << "Testing 1"in the code to see if it ever even reaches that line of code, and if it doesn't but should find out why, possibly even adding this instead as example for more helpful info.