benilla-re systems structs docs

Script::GetPartyMember

function · ui · primitive

Address
0x4e9090 · 102 bytes, up to 0x4e90f5
Signature
int __fastcall (lua_State *L)
Meaning
Pushes 1 when party slot n (1 to 4) holds a member, else nil
Confidence
verified, proof one
Name from
the community database (idb)
Finding
ui/party#tables-and-the-party-functions

Finding: Tables and the party functions in ui: the party, its leader and its members' records

0xbc6f48 holds the GUIDs of the four other party members, 8 bytes each, 0 for an empty slot; the local player is not among them. The member records 0xbc70b0 are 0x148 bytes each, one per slot. GetNumPartyMembers() pushes the count of nonzero slots (0 to 4). GetPartyMember(n) takes n from 1 to 4 (dec eax; cmp eax,4; jae), raises Usage: GetPartyMember(1-4) for anything else, and pushes the number 1 when slot n-1 holds a GUID, else nil. The count and the slot reader are 0x4e86d0 and 0x4e81a0.

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 7

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