switch state when counting deaths
All checks were successful
/ test (push) Successful in 38s

This commit is contained in:
Johan Lundberg 2026-08-15 00:18:32 +02:00
parent d6c1a117c2
commit c7f998029f
2 changed files with 86 additions and 27 deletions

View file

@ -77,16 +77,15 @@ STATE: {Hunt}
Expr {getvar[isLeader]}
ChatMatch {the acidic mist!}
DO: CallState {vr_gas_dodge} {Hunt}
IF: All
ChatMatch {^.* I also have aids has died!$}
IF: All
ChatCapture {^Your fellow (?<who>\w[\w ]*\w) has died!$} {}
Expr {getvar[capturegroup_who]==getvar[followTarget]}
Expr {getvar[isLeader]==0}
DO: DoAll
ChatExpr {\/f +getvar[followTarget] is dead\. Run away\!}
SetState {run_away}
IF: ChatMatch {^.*has died!$}
DO: DoAll
Chat {/f I SAW DEATH!}
DoExpr {setvar[deathCount, getvar[deathCount]+1]}
DO: CallState {count_death} {Hunt}
IF: All
Expr {getvar[deathCount]==1}
Not Expr {getvar[deathClock]}
@ -147,7 +146,14 @@ STATE: {Hunt}
DO: DoAll
Chat {/ub fellow quit}
SetState {Default}
STATE: {count_death}
IF: Always
DO: DoAll
Chat {/f I SAW DEATH!}
DoExpr {setvar[deathCount, getvar[deathCount]+1]}
Return
STATE: {run_away}
IF: Always
DO: DoAll