benilla-re systems structs docs

s_minigameObject

global · ui

Address
0xb71e5c · 4 bytes, up to 0xb71e5f
Type
void *
Meaning
Points to the active minigame object, or null
Confidence
verified, proof one
Finding
ui/lottery#the-minigame

Finding: The minigame in ui: the lottery and minigame functions

GetMinigameType() returns one value, always nil: it pushes nil when there is no game object or its kind is not 1, and for kind 1 the null slot 1 of the name table 0x848384 (minigame#lua-queries), which lua_pushstring turns into nil. MakeMinigameMove(moveType, param) needs two numbers (Usage: MakeMinigameMove(moveType, param)), passes moveType - 1 and param - 1 to the game object, which sends opcode 0x2f8 with the game GUID, the move type byte and the parameter when the object accepts the move, and returns nothing. GetMinigameState() calls the object's virtual at +8 with the Lua state and returns its result count, nothing with no game.

The derivation is in the doc.