Script::FactionToggleAtWar
function · ui · primitive
- Address
0x4d6950· 92 bytes, up to0x4d69ab- Signature
int __fastcall (lua_State *L)- Meaning
- Toggles war with the entry's faction
- Confidence
- verified, proof one
- Name from
- the community database (idb)
- Finding
- ui/reputationlua#other-functions
Finding: Other functions in ui: the reputation Lua functions
GetNumFactions() returns the visible entry count. IsFactionInactive(index) returns 1 when the entry's slot has the
inactive bit, else nil. FactionToggleAtWar(index) asks for war when the faction is not at war and peace when it is, for
the entry's faction, ignoring faction 0. SetFactionInactive(index) and SetFactionActive(index) set or clear the inactive
bit through the same request path. Each takes a number or raises its usage text, such as Usage: IsFactionInactive(index).
The derivation is in the doc.
Callers 0
None by a direct call or jump.
Callees 7
- __ftol crt
- GetEntryFactionId ui
- SetFactionAtWar ui
- CGReputationInfo::IsAtWar ui
- lua_isnumber lua
- lua_tonumber lua
- luaL_error lua
Calls and jumps by a bare address, from tables/calls.tsv.