Define a range

OldOne

New member
Joined
Nov 1, 2007
Messages
229
Reaction score
0
Points
0
Location
Virginia
:rolleyes: Is there anyway to define a range (or multi ranges) other then: ${Target.PctHPs}>=55 && ${Target.PctHPs}<=90
 
:rolleyes: Is there anyway to define a range (or multi ranges) other then: ${Target.PctHPs}>=55 && ${Target.PctHPs}<=90

Not that I know of... if there is, I just wasted a few minutes of my time to throw this together.

MQ2RangeTLO: Checks if a value is either between or inside lower & upper bounds.

TLO: Range

Members: Between, Inside

Syntax:

${Range.Between[lower,upper:value]}
${Range.Inside[lower,upper:value]}

Examples:

${Range.Inside[10,90:${Me.PctHPs}]}
${Range.Between[80,100:${Me.PctEndurance}]}

Inside is like: (value>lower) && (value<upper)
Between is like: (value>=lower) && (value<=upper)

I had almost just done 1 of them, for the default, but figured why not.

Anyway, not much use, but it's always too late for me to realize I wasted my time in hindsight. ;)

htw
 

Attachments

  • MQ2RangeTLO.dll
    214.5 KB · Views: 1
Anyway, not much use, but it's always too late for me to realize I wasted my time in hindsight. ;)htw

Not true at all. Your work and support is always appreciated. And as time goes by I suspect more and more applications for this will make it a true timesaver .. THANK YOU