TinyFugue HP Bar
HSN
/def -mregexp -t"HSN\[(\d+)(?:|\((\d+)\))\|(\d+)(?:|\((\d+)\))\|(\d+)\|(\d+)\|([a-z0-9]+?)(%?)\]" hsnhpbar = /set hp=%P1 %;/set hpfuse=%P2 %;/set sp=%P3 %;/set spfuse=%P4 %;/set np=%P5 %;/set corpses=%P6 %;/set enemyhealth=%P7 %;/if (!hpfuse) /set hpfuse=0 %;/endif %;/if (!spfuse) /set spfuse=0 %;/endif
This trigger will only populate the variables for you. Many people find that it is helpful to also add a macro at the end to initiate actions in combat that use these variables. The variables are:
hp
hpfuse
sp
spfuse
np
corpses
enemyhealth
Worth|Protection|Veil|Repower
/def -mregexp -t"^Status\[w([0-9]*)%\|p(ON|OFF)\|v(ON|OFF)\|r([0-9]*)%\]" necrostatusbar = /set worth=%P1 %;/set protectionon=%P2 %;/set veilon=%P3 %;/set repowerper=%P4 %;/statusaction
This sets the variables "worth", "protectionon", "veilon" and "repowerper" to their respective values and then calls "/statusaction"
A great starting macro for "statusaction" is:
/def statusaction = /if (worth < 125) /if (worth > 120) con 10%;/else /test conamt := 100-((worth-75)*2)%;con %conamt%;/unset conamt%;/endif
This will con the appropriate amount if your worth drops below 125%.