benilla-re systems structs docs

Script::IsCurrentAction

function · ui · orchestration

Address
0x4e72f0 · 97 bytes, up to 0x4e7350
Signature
int __fastcall (lua_State *L)
Meaning
Returns 1 when an action slot is the current one, else nil
Confidence
verified, proof one
Name from
the community database (idb)
Finding
ui/actionbar#checked-state

Finding: Checked state in ui: action bars

IsCurrentAction pushes 1 or nil from 0x4e53a0. An item slot is current while the item of the in-flight item cast has the slot's entry. An attack slot is current while the player's attack target (+0xc48) is set. Any other slot needs a spell with book flag 0 and is current when its spell is the in-flight spell or the spell awaiting a target; or, for a spell whose first effect is 47, when the open craft or trade-skill window names it; or, for a spell with a shapeshift aura effect (aura 36), when that effect's misc value equals the player's form byte.

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.