benilla-re systems structs docs

FireTutorial

function · ui · primitive

Address
0x4b5390 · 300 bytes, up to 0x4b54bb
Meaning
Sets a tutorial's fire-once bit and signals TUTORIAL_TRIGGER now or after a delay
Confidence
verified, proof one
Finding
ui/tutorials#the-tutorial-trigger

Finding: The tutorial trigger in ui: tutorials

0x4b5390(ecx = number, edx = delay) does nothing when the fire-once count 0xb711b8 is 0 or the number's bit is already set. Otherwise it sets the bit and, for a delay of 0, plays the interface sound TutorialPopup and signals TUTORIAL_TRIGGER (event 384) with the format %d and the number plus one. The number the interface sees is therefore 1 to 50. A delay above 0 queues the prompt (below). Because the bit is set first, each number fires once per set, and a number the server already marked never fires.

The derivation is in the doc.

Callers 30

Callees 6

Calls and jumps by a bare address, from tables/calls.tsv.