benilla-re systems structs docs

Script::GetNumPartyMembers

function · ui · orchestration

Address
0x4e9050 · 50 bytes, up to 0x4e9081
Signature
int __fastcall (lua_State *L)
Meaning
Pushes the number of other party members
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 2

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