Page 1 of 1

CUSTOMIZE HUD QUESTION

Posted: Sat Mar 15, 2008 3:12 am
by Draxxina
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?

Posted: Sat Mar 15, 2008 10:40 am
by jacensolo
Which part of it does not display?

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

Are you using the HUD text size feature?

Posted: Sat Mar 15, 2008 5:51 pm
by Draxxina
Hmm. when echoed, it comes up with a value of [NULL]

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

Posted: Sat Mar 15, 2008 10:13 pm
by jacensolo
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.

Posted: Sun Mar 16, 2008 5:27 am
by Draxxina
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:

Posted: Sun Mar 16, 2008 11:07 am
by jacensolo
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.

Posted: Sun Mar 16, 2008 1:36 pm
by RageATM0998
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},)}

Posted: Sun Mar 16, 2008 5:45 pm
by jacensolo
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.

Posted: Sun Mar 16, 2008 7:35 pm
by RageATM0998
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.

Posted: Mon Mar 17, 2008 12:53 am
by Draxxina
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 :)