feat: take a break
All checks were successful
/ test (push) Successful in 34s

This commit is contained in:
Johan Lundberg 2026-09-26 22:48:02 +02:00
parent a13eec32f2
commit 593c685038
4 changed files with 299 additions and 1 deletions

View file

@ -201,6 +201,19 @@ STATE: {Hunt}
DO: DoAll
Chat {/ub fellow quit}
SetState {Default}
IF: All
ChatCapture {(^(\[[A-z]+?\] |)You|.*\<Tell:IIDString:.+:(?<who>[^\<]*)\>.+\<\\Tell\>) .*, \"#giveusabreak\"$} {}
DO: DoAll
ChatExpr {\/a +getvar[capturegroup_who] asked us to take a break}
Chat {/f #giveusabreak}
SetState {take_a_break}
IF: All
ChatMatch {^\[Fellowship\].*(say|says), \"#giveusabreak\"$}
DO: SetState {take_a_break}
IF: All
Expr {getvar[isLeader]}
ChatMatch {cloud of poisonous gas!}
DO: CallState {vr_gas_dodge} {Hunt}
IF: Always
DO: SetWatchdog 10 600 {stuck}
@ -382,6 +395,21 @@ STATE: {death}
DO: SetState {Default}
IF: Always
DO: SetWatchdog 5 60 {stuck}
STATE: {take_a_break}
IF: Always
DO: DoAll
Chat {/a Taking a break}
Chat {/vt opt set enablecombat false}
Chat {/vt opt set enablebuffing false}
Chat {/vt nav load vr_take_a_break}
Chat {/vt opt set enablenav true}
IF: NavEmpty
DO: SetState {break_time}
STATE: {break_time}
IF: SecsInStateGE 3600
DO: SetState {Default}
STATE: {stuck}
IF: Always