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

View file

@ -11,7 +11,7 @@ n
n
n
n
43
44
i
1
i
@ -463,11 +463,37 @@ K
V
n
n
2
3
i
4
28
TABLE
2
k
v
n
n
2
s
^.* I also have aids has died!$
p
s
^Your fellow (?<who>\w[\w ]*\w) has died!$
s
c
s
i
26
TABLE
2
k
v
n
n
1
s
e
s
getvar[capturegroup_who]==getvar[followTarget]
i
26
TABLE
@ -510,33 +536,24 @@ Hunt
i
4
i
3
5
s
^.*has died!$
TABLE
2
K
V
n
n
2
i
2
s
/f I SAW DEATH!
i
7
TABLE
2
k
v
n
n
1
2
s
e
st
s
setvar[deathCount, getvar[deathCount]+1]
count_death
s
ret
s
Hunt
s
Hunt
i
@ -1189,6 +1206,42 @@ K
V
n
n
3
i
2
s
/f I SAW DEATH!
i
7
TABLE
2
k
v
n
n
1
s
e
s
setvar[deathCount, getvar[deathCount]+1]
i
6
i
0
s
count_death
i
1
i
3
i
0
TABLE
2
K
V
n
n
6
i
2