benilla-re systems structs docs

Script::SetWatchedFactionIndex

function · ui · primitive

Address
0x4d6b60 · 71 bytes, up to 0x4d6ba6
Signature
int __fastcall (lua_State *L)
Meaning
Watches the entry's faction by sending its slot
Confidence
verified, proof one
Name from
the community database (idb)
Finding
ui/reputationlua#watched-faction

Finding: Watched faction in ui: the reputation Lua functions

GetWatchedFactionInfo() returns five values: the name, the standing id, the bar minimum, the bar maximum and the standing, from the faction whose slot the player block holds at +0x10c4; a slot outside 0 to 63 stands for faction 0. An absent player or a faction without a row gives nil and four zeros. SetWatchedFactionIndex(index) sends the slot of the entry's faction, only when it differs from the player block's, and writes nothing locally. An index past the list asks for faction 0, whose slot is -1 when no row has the id 0.

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 6

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