Target Buffs in HUD

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

Moderator: MacroQuest Developers

chuckles
orc pawn
orc pawn
Posts: 17
Joined: Tue Aug 23, 2005 10:32 pm

Target Buffs in HUD

Post by chuckles » Tue Aug 04, 2009 6:37 pm

Didn't see this anywhere, and it's something I've been playing with (thanks to Ieatacid for pointing out ${Target.BuffDuration}, else this would not work):

The snippet below will display a list of the buffs currently on your target, along with the remaining duration. Buffs with under 3 or less ticks remaining will show up in red. Will only show NPC buffs if you're in a group and the group leader has the inspect buffs AA, works on PCs regardless.

Code: Select all

	TargetBuffLine=3,750,-265,150,255,8,------------ Target Buffs ------------

	Buff1Text=3,750,-255,255,234,8,${If[${Target.BuffDuration[1].TimeHMS.NotEqual["NULL"]},${Target.Buff[1]} :,]}
	Buff1DurationText=3,900,-255,0,255,0,${If[${Target.BuffDuration[1].}>3,${Target.BuffDuration[1].TimeHMS},]}
	Buff1FadingText=3,900,-255,255,0,0,${If[${Target.BuffDuration[1].}<=3,${Target.BuffDuration[1].TimeHMS},]}

	Buff2Text=3,750,-245,255,234,8,${If[${Target.BuffDuration[2].TimeHMS.NotEqual["NULL"]},${Target.Buff[2]} :,]}
	Buff2DurationText=3,900,-245,0,255,0,${If[${Target.BuffDuration[2].}>3,${Target.BuffDuration[2].TimeHMS},]}
	Buff2FadingText=3,900,-245,255,0,0,${If[${Target.BuffDuration[2].}<=3,${Target.BuffDuration[2].TimeHMS},]}