benilla-re systems structs docs

Script::SetSelectedBattlefield

function · ui · primitive

Address
0x4ab300 · 96 bytes, up to 0x4ab35f
Signature
int __fastcall (lua_State *L)
Meaning
Stores the instance id at a 1-based list index as the selection, else 0
Confidence
verified, proof one
Name from
the community database (idb)
Finding
ui/battlefield#the-list-and-the-selection

Finding: The list and the selection in ui: battlegrounds

GetNumBattlefields() returns the list count and GetBattlefieldInstanceInfo(n) the n-th instance id, nothing when out of range. SetSelectedBattlefield(n) stores the instance id at position n, or 0 for a position outside the list. GetSelectedBattlefield() returns the 1-based position of the stored id by a scan, 0 when absent, so a selection follows the instance id, not the position, and a new list can drop it. GetBattlefieldInfo() returns nine values for the battlemaster's map and none without the player or a Map row: the map name, a description chosen by the player's faction group, three integer and two float columns of the Map row (+0x34, +0x38, +0x40, +0x44, +0x48), then the two bracket levels.

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 4

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