need some help with this line

Need some help with that macro you're working on or aren't quite sure how to get your macro to do something? Ask here!

Moderator: MacroQuest Developers

User avatar
Pax
a lesser mummy
a lesser mummy
Posts: 52
Joined: Fri Dec 19, 2003 11:04 am
Location: Denmark

need some help with this line

Post by Pax » Sat Apr 24, 2004 10:00 am

i seem to have tried everything, i obvious havent, but i feel that wy

Code: Select all

/if (${calc[Me.PctHPs<85]}) {
i simply cant get it to react when i get below 85% hp :/ any help will be appreciated :)

Preocts
a snow griffon
a snow griffon
Posts: 312
Joined: Thu Jan 29, 2004 1:02 pm

Post by Preocts » Sat Apr 24, 2004 10:09 am

Code: Select all

/if (${Me.PctHPs}<85) { 
Will do the job just fine.

Code: Select all

/if (${Math.Calc[${Me.PctHPs}<85]}) {
Is what I think you were going for. Just so you can see how it would be done that way too :wink:

User avatar
Pax
a lesser mummy
a lesser mummy
Posts: 52
Joined: Fri Dec 19, 2003 11:04 am
Location: Denmark

Post by Pax » Sat Apr 24, 2004 11:32 am

thanks, looks like i made a mountain out of a mole :)
thanks a bunch

Preocts
a snow griffon
a snow griffon
Posts: 312
Joined: Thu Jan 29, 2004 1:02 pm

Post by Preocts » Sat Apr 24, 2004 1:18 pm

:lol: I was doing the same thing was I first started converting my macro over. Lemme tell you they had a laugh at me on the IRC channel when I posed a question.