Scene/Event VM Random Gate Review

random-gate-grounded-choice-index-rejected

Summary

success counter0x0059db1f
threshold0x0059db1c
required count0x0059db1e
target global0x0059e2a0
random function0x00427730 ยท modulo 10000

Formula

rand16Modseed = seed * 0x41c64e6d + 0x3039; result = ((seed >> 16) & 0xffff) % arg
gateTickif rand16_mod(10000) < threshold_0x59db1c: successCounter_0x59db1f++
op18Gateif required_0x59db1e <= successCounter_0x59db1f and active_0x457749 != 0: context.stream = target_0x59e2a0

Decisions

itempromotionmeaningevidence
0x0059db1freclassified-groundedrandom-gate success counter, not a user selected choice cursor0x004330e0 calls rand16_mod(10000), compares the result with word 0x59db1c, and increments 0x59db1f only on success.
opcode 0x17grounded-handlerrandom gate initializerstores fallback target 0x59db18, success threshold 0x59db1c, required count 0x59db1e, and resets 0x59db1f.
opcode 0x18grounded-handlertarget jump when accumulated random successes reach required countcompares 0x59db1e <= 0x59db1f, resets the counter, and jumps context+0x40 to 0x59e2a0 when active.
selected option -> next promptstill-blockednot solved by 0x59db1fthe counter is random-gated, so the direct user-choice producer remains elsewhere.

Handler Cluster

opcodeentryhandlerfirst bytes
0x160x004407780x0040ba3f55 8b ec 53 56 57 8b 45 08 8b 40 40 8b 40 04 a3 a0 e2 59 00 8b 45 08 83 40 40 08 5f 5e 5b c9 c3 55 8b ec 53 56 57 8b 45 08 8b 40 40 33 c9 8a 48
0x170x0044077c0x0040ba5f55 8b ec 53 56 57 8b 45 08 8b 40 40 33 c9 8a 48 07 8b 45 08 8b 40 40 8b 40 08 8b 04 88 a3 18 db 59 00 8b 45 08 8b 40 40 66 8b 40 04 66 a3 1c db
0x180x004407800x0040bab255 8b ec 53 56 57 8b 45 08 83 40 40 04 33 c0 a0 1e db 59 00 33 c9 8a 0d 1f db 59 00 3b c1 0f 8e 0a 00 00 00 e9 4b 00 00 00 e9 46 00 00 00 c6 05
0x190x004407840x0040bb2b55 8b ec 53 56 57 8b 45 08 83 40 40 04 83 3d 18 db 59 00 00 0f 84 26 00 00 00 8b 45 08 8b 40 40 8b 4d 08 0f bf 49 5c 8b 55 08 89 44 8a 44 8b 45
0x1a0x004407880x0040bb7055 8b ec 53 56 57 33 c0 a0 49 77 45 00 85 c0 0f 84 5b 00 00 00 8b 45 08 8b 40 40 33 c9 8a 48 01 8b 45 08 8b 40 40 8b 40 04 8b 04 88 a3 18 db 59