/if statement question

mafiapitbull

New member
Joined
Aug 13, 2008
Messages
122
Reaction score
0
Points
0
what would the # 5 mean here

/if (${Target.PctHPs}<=99 && ${Target.PctHPs}>=5

was in a heal mac, just ripping things apart
 
Last edited by a moderator:
Code:
 /if (${Target.PctHPs}<=99 && ${Target.PctHPs}>=5


this basicaly says, if my target has less than 99% hp, and more than 5% :)
 
thats a pretty silly /if statement. But yea it basically checks to make sure you have less then 99% health but more then 5% as stated above.
 
i did wander about the >=5 tho lol, Seems silly, but i suppose if its at 5% and it hasnt already been healed, its feked anyways.
 
i did wander about the >=5 tho lol, Seems silly, but i suppose if its at 5% and it hasnt already been healed, its feked anyways.

...unless the script is calling another heal spell at HP<5. Something fast-casting, perhaps. Still, one would think it would be better to have more than 2 HP strata (1-45, 46-70, 70-90, 91-100 would make more sense). *shrug*
 
ahh thank you

ya was something through together from a few diffrent makes i am thinking, was just want'n to finger her out

--thank you
 
so you dont heal corpse maybe?

I think the greater than 5 is so it don't try to heal corpse and get in a loop where it is trying to heal a corpse over and over while rest of grp is dieing
 
Not to mention it is missing a closing bracket :

Code:
/if (${Target.PctHPs}<=99 && ${Target.PctHPs}>=5[COLOR=Magenta])[/COLOR]