try to match leader name for death recall
All checks were successful
/ test (push) Successful in 20s

This commit is contained in:
Johan Lundberg 2026-08-14 23:16:38 +02:00
parent e0a442313c
commit fb98a57c96
2 changed files with 113 additions and 37 deletions

View file

@ -21,6 +21,10 @@
~~ ============================================================
STATE: {Default}
IF: Always
DO: DoAll
DoExpr {touchvar[deathCount]}
DoExpr {touchvar[deathClock]}
IF: All
Expr {getvar[isLeader]}
DO: DoAll
@ -72,16 +76,20 @@ STATE: {Hunt}
IF: All
Expr {getvar[isLeader]}
ChatMatch {the acidic mist!}
DO: CallState {vr_gas_dodge} {Hunt}
DO: CallState {vr_gas_dodge} {Hunt}
IF: All
ChatCapture {(?<who>\w[\w ]*\w) +getvar[followTarget] has died!$} {}
ChatMatch {^.* +getvar[followTarget] has died!$}
Expr {getvar[isLeader]==0}
DO: SetState {run_away}
IF: ChatCapture {(?<who>\w[\w ]*\w) has died!$} {}
DO: DoAll
ChatExpr {\/f +getvar[followTarget] dead...he dead.}
SetState {run_away}
IF: ChatMatch {^.*has died!$}
DO: DoAll
Chat {/f I SAW DEATH!}
DoExpr {setvar[deathCount, getvar[deathCount]+1]}
IF: Expr {getvar[deathCount]==1}
IF: All
Expr {getvar[deathCount]==1}
Not Expr {getvar[deathClock]}
DO: DoAll
Chat {/f deathClock started}
DoExpr {setvar[deathClock,stopwatchcreate[]]}
@ -92,7 +100,7 @@ STATE: {Hunt}
Expr {getvar[deathClock]}
Expr {stopwatchelapsedseconds[getvar[deathClock]]>60}
DO: DoAll
Chat {/f deathClock stoppped}
Chat {/f deathClock stopped}
DoExpr {clearvar[deathCount]}
DoExpr {clearvar[deathClock]}
IF: All