Fading Memories HUD Calculator for bards
Posted: Thu Sep 22, 2005 2:25 am
The following HUD code snippet is a Fading Memories calculator for the HUD. It gives you the current number of fades / max number of fades, and then a timer broken down to match the server tick which lets you know when your next fade is due.
You might need to tweak the numbers in FadeNumberGood and FadeNumberLow depending on your mana pool. In it's current form, when you get below three fades, the number turns yellow and you get a "LOW ON FADES!!!" bit of text next to them. When you're out of fades, the number goes red and you get "OUT OF FADES!!!"
The code is a bit ugly and if anyone has any advice on making it tidier let me know. Most of those Math.Calc are there because it didn't work any other way in the HUD.
Code: Select all
Fade=1,125,730,255,255,255,Fading Memories:
FadeNumberGood=1,225,730,0,255,0,${If[${Me.CurrentMana}/900 > 3,${Math.Calc[${Me.CurrentMana}/900].Int} / ${Math.Calc[${Me.MaxMana}/900].Int},]}
FadeNumberLow=1,225,730,255,255,0,${If[${Me.CurrentMana}/900 < 3 && ${Me.CurrentMana}/900 > 1,${Math.Calc[${Me.CurrentMana}/900].Int} / ${Math.Calc[${Me.MaxMana}/900].Int} LOW ON FADES!!!,]}
FadeNumberOut=1,225,730,255,0,0,${If[${Me.CurrentMana}/900 < 1,${Math.Calc[${Me.CurrentMana}/900].Int} / ${Math.Calc[${Me.MaxMana}/900].Int} NO FADES!!!,]}
NextFade=1,125,742,255,255,255,Next Fade:
NextFadeFull=1,225,742,0,255,0,${If[(${Me.CurrentMana} - ${Me.CurrentMana} % 900)/900 != (${Me.MaxMana} - ${Me.MaxMana} % 900)/900,,MAX FADES]}
NextFadeNotFull=1,225,742,255,255,255,${If[(${Me.CurrentMana} - ${Me.CurrentMana} % 900)/900 != (${Me.MaxMana} - ${Me.MaxMana} % 900)/900,${Math.Calc[${Math.Calc[(900-${Me.CurrentMana} % 900) / ${If[${Me.ManaRegen} > 0,${Me.ManaRegen},1]}].Int} * 6].Int}s,]}
The code is a bit ugly and if anyone has any advice on making it tidier let me know. Most of those Math.Calc are there because it didn't work any other way in the HUD.