Route recomp and death recovery through vr_runback
All checks were successful
/ test (push) Successful in 53s

recomp and death now transition through stuck/vr_runback instead of
jumping straight to Hunt, so the character properly retraces vr_run ->
vr_portal back into the hunting area rather than assuming it's still
standing in Viridian Rise after a vendor trip or a Viridian Rise Recall.
recomp's watchdog fallback now matches neftet's SetWatchdog 3 300 {Default}.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
Erik 2026-08-05 11:26:19 +02:00
parent fb9342fcd5
commit 6aaadd36ba
2 changed files with 27 additions and 12 deletions

View file

@ -59,7 +59,7 @@ STATE: {Hunt}
Expr {getvar[isLeader]}
ChatMatch {cloud of dangerous gas!}
DO: CallState {vr_gas_dodge} {Hunt}
IF: ChatCapture {^Your fellow "(?<who>[^"]+)" has died!$} {}
IF: ChatCapture {(?<who>\w[\w ]*\w) has died!$} {}
DO: SetState {vr_runback}
IF: All
ItemCountLE 100 {Prismatic Taper}
@ -84,7 +84,9 @@ STATE: {Hunt}
IF: All
Expr {getvar[isLeader]}
ChatCapture {(^(\[[A-z]+?\] |)You|.*\<Tell:IIDString:.+:(?<who>[^\<]*)\>.+\<\\Tell\>) .*, \"#recruitviridianrise\"$} {}
DO: ChatExpr {\/ub fellow recruit +getvar[capturegroup_who]}
DO: DoAll
ChatExpr {\/ub fellow recruit +getvar[capturegroup_who]}
SetState {Hunt}
IF: All
Expr {getvar[isLeader]}
DistToRteGE 100
@ -102,7 +104,7 @@ STATE: {Hunt}
STATE: {vr_gas_dodge}
IF: Always
DO: Chat {/vt opt set navpriorityboost true}
IF: SecsInStateGE 2
IF: SecsInStateGE 5
DO: DoAll
Chat {/vt opt set navpriorityboost false}
Return
@ -145,7 +147,7 @@ STATE: {recomp}
NavEmpty
DO: DoAll
DoExpr {clearvar[vrRecompNavLoaded]}
SetState {Hunt}
SetState {stuck}
IF: Always
DO: DoAll
DoExpr {setvar[diamondMissing, 100 - getitemcountininventorybyname[`Diamond Scarab`]]}
@ -158,7 +160,7 @@ STATE: {recomp}
Chat {/vt nav load ah_recomp}
Chat {/vt opt set enablenav true}
IF: Always
DO: SetWatchdog 3 300 {stuck}
DO: SetWatchdog 3 300 {Default}
STATE: {death}
IF: ExitPortal
@ -172,7 +174,7 @@ STATE: {death}
NavEmpty
DO: DoAll
DoExpr {clearvar[vrDeathNavLoaded]}
SetState {Hunt}
SetState {vr_runback}
IF: Always
DO: DoAll
DoExpr {setvar[vrDeathNavLoaded, 1]}