benilla-re systems structs docs

Script::IsUsableAction

function · ui · orchestration

Address
0x4e73d0 · 148 bytes, up to 0x4e7463
Signature
int __fastcall (lua_State *L)
Meaning
Returns the cached usable and no-power flags of an action slot, each 1 or nil
Confidence
verified, proof one
Name from
the community database (idb)
Finding
ui/actionbar#usable-and-no-power

Finding: Usable and no power in ui: action bars

0x4e5050(slot, &noPower) computes a slot's usable flag; noPower starts 0. With no active player the answer is 0. An item word whose count (0xbc6390) is 0, or for which 0x6e2fc0 finds a held cooldown record, answers 0. The slot's spell then decides: a spell, or an item's on-use spell, runs 0x6e3d60 (spell/checks#usability-predicate) with noPower; a negative id, an id past the table or a null record answers 0. A pet-book spell answers 0 unless 0x4bcf70 holds, then compares the cost 0x6e31b0 with the pet's power (health for type -2): affordable is 1, else noPower 1 and 0. IsUsableAction returns the cached pair as 1 or nil, then 1 or nil.

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.