benilla-re systems structs docs

Script::GetActionText

function · ui · orchestration

Address
0x4e7050 · 128 bytes, up to 0x4e70cf
Signature
int __fastcall (lua_State *L)
Meaning
Returns a macro slot's macro name, else nil
Confidence
verified, proof one
Name from
the community database (idb)
Finding
ui/actionbar#action-slots

Finding: Action slots in ui: action bars

The bar holds 120 slots, one dword each in 0xbc6980. The top nibble is the kind: 0 a spell (the word is the spell id), 0x40000000 a macro (the word with bit 30 cleared is the macro id), 0x80000000 an item (the word with bit 31 cleared is the item entry). Any other nibble stands for nothing. Beside it sit three tables of 120 dwords: item count or charges 0xbc6390, usable flag 0xbc6b60, no-power flag 0xbc67a0. 0x4e4f50 zeroes the four and the bonus offset 0xbc6e88. Every Lua function turns its slot into an integer with __ftol and subtracts 1; its core refuses a slot outside 0 to 119.

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.