CUSTOMIZE HUD QUESTION

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

Moderator: MacroQuest Developers

Draxxina
decaying skeleton
decaying skeleton
Posts: 5
Joined: Fri Dec 09, 2005 3:49 am

CUSTOMIZE HUD QUESTION

Post by Draxxina » Sat Mar 15, 2008 3:12 am

Hey all, I have finally taken the plunge and customized my hud (lol, I am starting small!). In my hud, I have timers when my AA's are ready to use again, however, I'll be damned if I can get a mend timer to work... this is what I have:

Code: Select all

//Mend 
Mendtext=3,5,315,255,234,8,Mend : 
Mendreadytext=3,120,315,0,255,0,${If[${Me.AbilityReady[Mend]},Ready,]} 
Mendnotready=3,120,315,255,0,0,${If[!${Me.AbilityReady[Mend]},${Me.Ability[Mend].TimeHMS},]} 
This does not work and I am too much of a n00b to understand why... can someone enlighten me please?

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

Post by jacensolo » Sat Mar 15, 2008 10:40 am

Which part of it does not display?

What does ${Me.AbilityReady[Mend]} return when /echo'd?

Are you using the HUD text size feature?

Draxxina
decaying skeleton
decaying skeleton
Posts: 5
Joined: Fri Dec 09, 2005 3:49 am

Post by Draxxina » Sat Mar 15, 2008 5:51 pm

Hmm. when echoed, it comes up with a value of [NULL]

I think I need to Read a lot more about this...

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

Post by jacensolo » Sat Mar 15, 2008 10:13 pm

Do you have mend as a button in your Actions window? I have a mac that uses ${Me.AbilityReady[Mend]} and it works, so I know that syntax is valid. If that's the only part which fails to display, I would suggest checking spelling, and making sure you don't have extra brackets or any quotes in there.

Draxxina
decaying skeleton
decaying skeleton
Posts: 5
Joined: Fri Dec 09, 2005 3:49 am

Post by Draxxina » Sun Mar 16, 2008 5:27 am

Yes, I do have a mend button in my actions window, I actually wanted to have the Mend show up as a green "Ready" when it is ready to use, and after I use it, it turns red with a timer on how long it has until it refreshes for reuse. I am using the same syntax for the AltAbilities, however, I cant get it to display a timer at all.

Anyways thank you for taking a look and your advice jacensolo, it is much appreciated and has given me more "food for thought" so to speak. :smile:

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 Mar 16, 2008 11:07 am

Oh.... answer just hit me in the head. Is it the TimeHMS part that isn't showing up properly? Last I checked, I don't think you can get time from Mend.

RageATM0998
a lesser mummy
a lesser mummy
Posts: 43
Joined: Mon Mar 06, 2006 6:38 pm

Post by RageATM0998 » Sun Mar 16, 2008 1:36 pm

I thought that 'if' had to be followed by parenthesis, not brackets. Try

Code: Select all

//Mend
Mendtext=3,5,315,255,234,8,Mend :
Mendreadytext=3,120,315,0,255,0,${if(${Me.AbilityReady[Mend]},Ready,)}
Mendnotready=3,120,315,255,0,0,${if(!${Me.AbilityReady[Mend]},${Me.Ability[Mend].TimeHMS},)}

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 Mar 16, 2008 5:45 pm

Nope. The If in that code is the If TLO. The slash command "/if" does take it's conditions in parentheses, but the syntax for input to TLOs is brackets.

RageATM0998
a lesser mummy
a lesser mummy
Posts: 43
Joined: Mon Mar 06, 2006 6:38 pm

Post by RageATM0998 » Sun Mar 16, 2008 7:35 pm

Ah OK my bad. I havne't dealt much with HuDs, mostly macros. Guess I learned something new. Hope you figure out what's causing the problems.

Draxxina
decaying skeleton
decaying skeleton
Posts: 5
Joined: Fri Dec 09, 2005 3:49 am

Post by Draxxina » Mon Mar 17, 2008 12:53 am

jacensolo wrote:Oh.... answer just hit me in the head. Is it the TimeHMS part that isn't showing up properly? Last I checked, I don't think you can get time from Mend.
Ah, well, I didn't know that... I thought mend would be on a timer like any other ability or AA....

lol, surely it must have a timer somewhere... it doesn't seem to be random timer reuse... but then, I am learning more everyday. Thanks again :)