HUD cursor fun

Forum for posting custom UIs, portions of UIs, and HUD stuff using MQ's enhancements.

Moderator: MacroQuest Developers

TheAFKBard
a ghoul
a ghoul
Posts: 133
Joined: Tue Dec 30, 2003 9:48 pm

HUD cursor fun

Post by TheAFKBard » Sat Jul 07, 2007 8:55 am

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.

jacensolo
a snow griffon
a snow griffon
Posts: 427
Joined: Wed Feb 14, 2007 8:51 am
Location: Right behind you

Post by jacensolo » Sun Jul 08, 2007 9:27 am

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.

xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: HUD cursor fun

Post by xyilla » Fri Aug 15, 2025 6:21 pm


xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: HUD cursor fun

Post by xyilla » Fri Aug 15, 2025 6:22 pm


xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: HUD cursor fun

Post by xyilla » Fri Aug 15, 2025 6:23 pm


xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: HUD cursor fun

Post by xyilla » Fri Aug 15, 2025 6:25 pm


xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: HUD cursor fun

Post by xyilla » Fri Aug 15, 2025 6:26 pm


xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: HUD cursor fun

Post by xyilla » Fri Aug 15, 2025 6:27 pm


xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: HUD cursor fun

Post by xyilla » Fri Aug 15, 2025 6:28 pm


xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: HUD cursor fun

Post by xyilla » Fri Aug 15, 2025 6:29 pm


xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: HUD cursor fun

Post by xyilla » Fri Aug 15, 2025 6:30 pm