benilla-re systems structs docs

Script::CreateMacro

function · ui · primitive

Address
0x4f15b0 · 346 bytes, up to 0x4f1709
Signature
int __fastcall (lua_State *L)
Meaning
Implements the Lua function CreateMacro
Confidence
verified, proof one
Name from
the community database (idb)
Finding
ui/macros#creating-a-macro

Finding: Creating a macro in ui: macros

CreateMacro(name, iconIndex, body, local, perCharacter) needs a string name and a number icon index or it raises a usage error. When the kind 7 check fails it returns nothing. A nil or empty name raises "no name specified" and a full scope raises "already have 18 macros". The icon is entry iconIndex - 1 of the icon list (Macro icons), none when out of range. The body is the third argument when it is a string. local and perCharacter are script flags (ui/actionuse#reading-a-script-flag). It returns the new index.

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 12

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