just try all ways to see if the var is set or not
All checks were successful
/ test (push) Successful in 20s

This commit is contained in:
Johan Lundberg 2025-04-10 23:40:24 +02:00
parent b47c85539a
commit a29ded5626
2 changed files with 49 additions and 3 deletions

View file

@ -139,8 +139,10 @@ STATE: {Default} ~~ {
DoExpr {setvar[lootclock,stopwatchcreate[]]} DoExpr {setvar[lootclock,stopwatchcreate[]]}
DoExpr {stopwatchstart[getvar[lootclock]]} DoExpr {stopwatchstart[getvar[lootclock]]}
SetState {hunt} SetState {hunt}
IF: All IF: Any
Expr {getvar[lootTime] == 0} Expr {getvar[lootTime] == 0}
Not Expr {touchvar[lootTime]}
Not Expr {testvar[lootTime]}
DO: DoExpr {setvar[lootTime, 21600]} DO: DoExpr {setvar[lootTime, 21600]}
~~ } ~~ }
STATE: {avoid_portal} ~~ { STATE: {avoid_portal} ~~ {

View file

@ -834,7 +834,7 @@ hunt
s s
Default Default
i i
2 3
i i
7 7
TABLE TABLE
@ -843,6 +843,28 @@ K
V V
n n
n n
3
i
26
TABLE
2
k
v
n
n
1
s
e
s
getvar[lootTime] == 0
i
21
TABLE
2
K
V
n
n
1 1
i i
26 26
@ -856,7 +878,29 @@ n
s s
e e
s s
getvar[lootTime] == 0 touchvar[lootTime]
i
21
TABLE
2
K
V
n
n
1
i
26
TABLE
2
k
v
n
n
1
s
e
s
testvar[lootTime]
TABLE TABLE
2 2
k k