Code: Select all
[Elements]
LOS=5,-5,-5,0,255,8,${If[${Target.ID} && ${Target.LineOfSight},+,]}
BeneRange=5,15,-5,0,255,8,${If[${Target.Distance}<=100,[],]}
DetriRange=5,15,-5,255,0,0,${If[${Target.Distance}>100 && ${Target.Distance}<=200,<>,]}
If the target is in range of a beneficial spell, it displays [] to the right of the cursor. If it's in range of a detrimental, it shows <>.
I changed the hardcoded ranges to ${Spell[Spell Name].MyRange} to take focus items into account. You can also hardcode a ranged item max range if this is to be used for a melee character. You may also need to make some of the HUD elements class or character specific.


