Page 1 of 1

math on the /if line?

Posted: Mon Feb 10, 2003 5:48 am
by OldNecro
can I do this:

/if (hp,cur)< ((hp,max)-900) /goto blah

?

I dunno

Posted: Mon Feb 10, 2003 9:45 am
by Malachi
I dunno, and I also dunno why you'd wanna do that.... why not:

Code: Select all

 /if n $char(hp,pct)<100 /goto 
only change the 100 to whatever you wanted, like....70 or someting?

/shrug

~malachi

Posted: Mon Feb 10, 2003 11:03 am
by lifewolf
Put math problems in $calc()

Posted: Mon Feb 10, 2003 3:50 pm
by OldNecro
well, since a person doesn't have the same number of hp at all times, based on other people's buffs and whatnot, and my lifetap over time heals about 900 points after the effect of lich is removed, it needs to check the actual max HP less 900 on the fly to account for those changes to keep me as close to full health as possible. Using a percentage would cause varied results and only work perfectly in once specific instance.

Posted: Mon Feb 10, 2003 6:42 pm
by kazan
/if n $char(hp,cur)<$calc(char(hp,max)-900) /call lifetap