Page 1 of 1

HUD cursor fun

Posted: Sat Jul 07, 2007 8:55 am
by TheAFKBard
I added this to my HUD for a little better visual representation of my ability to cast on a target.

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 line of sight, a green + hovers to the upper left of my cursor.
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.

Posted: Sun Jul 08, 2007 9:27 am
by jacensolo
I'm interested in knowing how you got that to follow the cursor. I have some other info that would work great around my cursor.

But since in my HUD, I've replaced all windows that I kept open all the time except chat and hotbutton with HUD pieces, here's the code I use:

Code: Select all

Line48=3,1,480,000,255,000,${If[${Me.Gem[2].ID},1: ${If[${Me.SpellReady[2]},RDY,TMR]} ${If[${Me.Gem[2].Mana}>${Me.CurrentMana},OOM,RDY]} ${If[${Me.Gem[2].MyRange}<${Target.Distance},OOR,RDY]} ${Me.Gem[2].Name},]}
If everything is ready to cast, it shows up like this on my screen:

Code: Select all

GemNumber: RDY RDY RDY SpellName
The first RDY is spell timer. If that spell is unclickable due to timer, that RDY becomes TMR. The second RDY is mana check. If I don't have enough mana to cast, it says OOM. The third RDY shows range. If my target is out of range, it shows OOR. The only glitch here, is that if the spell is self only and I have someone else targeted, or if i have no target, it shows OOR. This could easily be fixed by extending that If check, but it hasn't really bothered me much.

Re: HUD cursor fun

Posted: Fri Aug 15, 2025 6:21 pm
by xyilla

Re: HUD cursor fun

Posted: Fri Aug 15, 2025 6:22 pm
by xyilla

Re: HUD cursor fun

Posted: Fri Aug 15, 2025 6:23 pm
by xyilla

Re: HUD cursor fun

Posted: Fri Aug 15, 2025 6:25 pm
by xyilla

Re: HUD cursor fun

Posted: Fri Aug 15, 2025 6:26 pm
by xyilla

Re: HUD cursor fun

Posted: Fri Aug 15, 2025 6:27 pm
by xyilla

Re: HUD cursor fun

Posted: Fri Aug 15, 2025 6:28 pm
by xyilla

Re: HUD cursor fun

Posted: Fri Aug 15, 2025 6:29 pm
by xyilla

Re: HUD cursor fun

Posted: Fri Aug 15, 2025 6:30 pm
by xyilla