Need help with an hp % question!

Help section from before the user variable changes that broke all macros

Moderator: MacroQuest Developers

MajikL_p00p
orc pawn
orc pawn
Posts: 25
Joined: Sat Aug 31, 2002 1:57 am

Need help with an hp % question!

Post by MajikL_p00p » Sat Aug 09, 2003 11:58 pm

Okay, what im trying to do is something like "if mobs hp is 20% then goto :attack"

Can anyone tell me what that is supposed to look like?

wassup
Official Guardian and Writer of TFM
Official Guardian and Writer of TFM
Posts: 1487
Joined: Sat Oct 26, 2002 5:15 pm

Post by wassup » Sun Aug 10, 2003 2:25 am

In your example try this for starters:

Code: Select all

/if n $target(hp,pct)==20 {
   /goto :attack
}
If you take a read through the Readme.html file that comes with the CVS there is ALOT of info in there.

MajikL_p00p
orc pawn
orc pawn
Posts: 25
Joined: Sat Aug 31, 2002 1:57 am

Post by MajikL_p00p » Sun Aug 10, 2003 6:17 am

thanks :)