benilla-re systems structs docs

Script::SetMapToCurrentZone

function · ui · orchestration

Address
0x4a7e20 · 8 bytes, up to 0x4a7e27
Signature
int __fastcall (lua_State *L)
Meaning
Selects the active player's map and pushes nothing
Confidence
verified, proof one
Name from
the community database (idb)
Finding
ui/worldmap#the-resolver

Finding: The resolver in ui: the world map

SetMapToCurrentZone() (0x4a7e20) runs 0x4a6650, which takes the active player and selects its map. With no player it selects the world. It looks for a continent whose map id equals the player's (0x5ea700); on a match it selects the continent's child whose area id equals the player's zone (0xb4e314), else the continent alone. Only when no continent matches does it look through the orphans for a row with the player's map id and select (-2, row id); with none it selects the world. The engine runs the same resolver at the first zone commit of a world session (0x4947ac).

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 1

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