benilla-re systems structs docs

IsWatchedFaction

function · ui · orchestration

Address
0x4d62f0 · 64 bytes, up to 0x4d632f
Signature
bool __fastcall (uint32_t faction)
Meaning
Returns whether the player's watched field holds the faction's slot
Confidence
verified, proof one
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 1

Callees 3

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