HUD spelltimer help

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

Moderator: MacroQuest Developers

kaos
orc pawn
orc pawn
Posts: 12
Joined: Mon Sep 20, 2004 9:29 pm
Location: Florida

HUD spelltimer help

Post by kaos » Sun Jul 27, 2008 12:08 pm

snare=3,395,424,255,255,255,Darkness:
${SpellTimer[${Target.ID},All,"AURORAL darkness"]}
${SpellTimer[${Target.ID},All,"Embracing darkness"]} s


I use this in my HUD for my spell time on darkness(snare)
How do I make it not say 0 if the spell over, or not yet casted.It works perfect but I'd like to take out the 0's

User avatar
ieatacid
Developer
Developer
Posts: 2727
Joined: Wed Sep 03, 2003 7:44 pm

Post by ieatacid » Sun Jul 27, 2008 1:43 pm


kaos
orc pawn
orc pawn
Posts: 12
Joined: Mon Sep 20, 2004 9:29 pm
Location: Florida

Post by kaos » Sun Jul 27, 2008 7:23 pm

Thanks, was playing around with it but am getting nothing.. was recommended to use
snare=3,395,424,255,255,255,${if[${SpellTimer[${Target.ID},other,"AURORAL darkness","Embracing darkness"]},Darkness: ${SpellTimer[${Target.ID},other,"AURORAL darkness","Embracing darkness"]},]}


But that blanks me out. However I did learn from that I can put both the spells in one statement and only get one 0 so I'm good from that.

ZootSoot
decaying skeleton
decaying skeleton
Posts: 6
Joined: Mon Apr 02, 2007 8:47 pm

Post by ZootSoot » Tue Jul 29, 2008 10:36 pm

kaos wrote:Thanks, was playing around with it but am getting nothing.. was recommended to use
snare=3,395,424,255,255,255,${if[${SpellTimer[${Target.ID},other,"AURORAL darkness","Embracing darkness"]},Darkness: ${SpellTimer[${Target.ID},other,"AURORAL darkness","Embracing darkness"]},]}


But that blanks me out. However I did learn from that I can put both the spells in one statement and only get one 0 so I'm good from that.

Code: Select all

${If[<Compare>,Text if true,Text If False]}
Take out the quotes

Dabones
orc pawn
orc pawn
Posts: 13
Joined: Fri Nov 02, 2007 2:28 am

Post by Dabones » Fri Aug 01, 2008 9:40 pm

Might this work?

Code: Select all

TargetSnared=3,395,424,255,255,255,Snared = ${If[${Target.ID},${If[${SpellTimer[${Target.ID}.Stacks,any,"Festering Darkness"]}, YES ${SpellTimer[${Target.ID}.Stacks,any,"Festering Darkness"]},NO]},]}