Script::GetMinigameType
function · ui · orchestration
- Address
0x4c4d50· 43 bytes, up to0x4c4d7a- Signature
int __fastcall (lua_State *L)- Meaning
- Pushes nil for every minigame kind, the name slot of kind 1 being null
- 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 3
- GetMinigameKind ui
- lua_pushnil lua
- lua_pushstring lua
Calls and jumps by a bare address, from tables/calls.tsv.