Hpbar

A set of triggers to pick up data from the Necromancer HPBar, listed by title as they are in the hpbar settings menu on 3k.
All these triggers will create variables containing the data. To make use of this data see Gauges

Hit Points/Hit Points Plus

#REGEX {HP\[(\d+)(?:\((\d+)\)|)\/(\d+)(?:\|(\d+)\%\|([-+]?\d+)|)\]} {
  #VA vHP %1
  #IF (%2) {#VA vHPFused %2}
  #VA vHPMax %3
  #IF (%4) {
    #VA vHPPercent %4
    #VA vHPLastHit %5
    }
  }

HSN

#REGEX {HSN\[(\d+)(?:|\((\d+)\))\|(\d+)(?:|\((\d+)\))\|(\d+)\|(\d+)\|(?:(\d+)\%|(\w+))\]} {
  #VA vHP %1
  #VA vHPFused %2
  #VA vSP %3
  #VA vSPFused %4
  #VA vNP %5
  #VA vCorpseMe %6
  #IF (%8) {#IF (%8 = "none") {#VA vEnemyHealth 0} {#IF (%8 = "healthy") {#VA vEnemyHealth 100} {#IF (%8 = "bruises") {#VA vEnemyHealth 90} {#IF (%8 = "bleed") {#VA vEnemyHealth 50} {#IF (%8 = "almost") {#VA vEnemyHealth 20} {#IF (%8 = "Death") {#VA vEnemyHealth 10}}}}}}} {#VA vEnemyHealth %7}
  }

Spell Points

#REGEX {SP\[(\d+)(?:\((\d+)\)|)\/(\d+)\]} {
  #VA vSP %1
  #IF (%2 > 0) {#VA vSPFused %2}
  #VA vSPMax %3
  }

Necro Points/Corpses

#REGEX {NP\[(\d+)\/(\d+)\|(\d+)c\]} {
  #VA vNP %1
  #VA vNPMax %2
  #VA vCorpseMe %3
  }

Current Enemy

#REGEX {E\[(.*):(?:(\d+)\%|(.*))\]} {
  #VA vEnemyName %1
  #IF (%3) {#IF (%3 = "none") {#VA vEnemyHealth 0} {#IF (%3 = "healthy") {#VA vEnemyHealth 100} {#IF (%3 = "bruises") {#VA vEnemyHealth 90} {#IF (%3 = "bleed") {#VA vEnemyHealth 50} {#IF (%3 = "almost") {#VA vEnemyHealth 20} {#IF (%3 = "Death") {#VA vEnemyHealth 10}}}}}}} {#VA vEnemyHealth %2}
  }

Reagents

#REGEX {Reag\[(.*)\]} {
  #CALL %regex(%1, "[ ]?g([0-9]{1,3})[ ]?", vGinseng)
  #CALL %regex(%1, "[ ]?p([0-9]{1,3})[ ]?", vBlackpearl)
  #CALL %regex(%1, "[ ]?w([0-9]{1,3})[ ]?", vSpiderweb)
  #CALL %regex(%1, "[ ]?r([0-9]{1,3})[ ]?", vGoldenrod)
  #CALL %regex(%1, "[ ]?m([0-9]{1,3})[ ]?", vMandrake)
  #CALL %regex(%1, "[ ]?n([0-9]{1,3})[ ]?", vPineneedles)
  #CALL %regex(%1, "[ ]?s([0-9]{1,3})[ ]?", vNightshade)
  #CALL %regex(%1, "[ ]?b([0-9]{1,3})[ ]?", vBloodmoss)
  }

Memory

Dream and Protection have been listed here as an example, but any other powers can be easily added by copying the lines below and altering as appropriate.

#REGEX {Memory\[(.*)\]} {
  #CALL %regex(%1, "[ ]?drm(\d+)[ ]?", vDream)
  #CALL %regex(%1, "[ ]?pro(\d+)[ ]?", vProtection)
  #if (@vDream > @vDreamMax) {#VA vDreamMax @vDream}
  #if (@vProtection > @vProtectionMax) {#VA vProtectionMax @vProtection}
  }

Teleports/Glamors

#REGEX {TG\[(\d+)\|(\d+)(?:|\/(\d+)\%)\]} {
  #VA vTeleports %1
  #VA vGlamors %2
  #VA vGlamorCurrent %3
  }

Worth|Protection|Veil|Repower

Collects the stats, and also does an automatic contribute when your worth falls below 125%
along with casting protection if your protection spell is currently off
(remove the last 2 lines before the curly bracket if you just want to save the settings for use elsewhere)

#REGEX {Status\[w(\d+)\%\|p(\w+)\|v(\w+)\|r(\d+)\%\]} {
  #VA vWorth %1
  #IF (%2 = ON) {#VA vProtectionState 1} {#VA vProtectionState 0}
  #IF (%3 = ON) {#VA vVeilState 1} {#VA vVeilState 0}
  #VA repower %4
  #IF (vWorth < 125) {#SEND {!con}}
  #IF (vProtectionState = 0) {#SEND {!protection}}
  }

Undead Follower/Coffin

#VAR vUndeadNames {Undead|Skeleton|Zombie|Ghoul|Valpur|Ghast|Manshi|Bolwyn|Greesh|Wight|Heucuva|Tholen|Bayen|Quarin|Mohrg|Grimare}
#REGEX {(?:@vUndeadNames)\[(?:unraised|none|(?vMinionHP:\d+)\%\/(?vMinionCorpse:\d+)c)(?:\/(?vCoffin:\d+)c|)\]} {
  #IF (%1) {#VA vMinionHP %1} {#VA vMinionHP 0}
  #IF (%2) {#VA vMinionCorpse %2} {#VA vMinionCorpse 0}
  #IF (%3) {#VA vCoffin %3} {#VA vCoffin 0}
  #IF (@vMinionCorpse > @vMinionCorpseMax) {#VA vMinionCorpseMax @vMinionCorpse}
  #IF (@vCoffin > @vCoffinMax) {#VA vCoffinMax @vCoffin}
  }
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License