benilla-re systems structs docs

Script::FlagTutorial

function · ui · primitive

Address
0x4b59b0 · 71 bytes, up to 0x4b59f6
Signature
int __fastcall (lua_State *L)
Meaning
Acknowledges the tutorial with the given 1-based number, ignoring one out of range
Confidence
verified, proof one
Name from
the community database (idb)
Finding
ui/tutorials#the-lua-functions

Finding: The Lua functions in ui: tutorials

TutorialsEnabled() pushes 1 when any byte of the acknowledged set differs from 0xFF, else nil; it pushes nil for an empty set. FlagTutorial(n) takes a number (Usage: FlagTutorial("tutorial") otherwise), truncates it and acknowledges n - 1; a result below 0 or above 49 does nothing and no error. ClearTutorials() cancels every queued node, fills both sets with ones and sends the empty message 0xFF. ResetTutorials() fills both sets with zeros, leaves the queue and sends the empty message 0x100. None of the four pushes a value but the first.

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 5

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