Script::GetMinigameState
function · ui · orchestration
- Address
0x4c4df0· 21 bytes, up to0x4c4e04- Signature
int __fastcall (lua_State *L)- Meaning
- Returns the result count of the minigame object's virtual +8, or 0 with no game
- Confidence
- verified, proof one
- Name from
- the community database (idb)
- 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.
Callers 0
None by a direct call or jump.
Callees 0
None by a direct call or jump.
Calls and jumps by a bare address, from tables/calls.tsv.