benilla-re systems structs docs

Script::GetNumSpellTabs

function · ui · orchestration

Address
0x4b3cb0 · 44 bytes, up to 0x4b3cdb
Signature
int __fastcall (lua_State *L)
Meaning
Returns the number of spell book tabs
Confidence
verified, proof one
Name from
the community database (idb)
Finding
ui/spellbook#tabs

Finding: Tabs in ui: the spell book

A spell's tab key is the +4 of the player's SkillRaceClassInfo row (0x6ddf90) for the skill line of the spell's ability (0x60c7c0); it is 0 when any step fails or the row's byte at +0x10 is negative. 0x4b24f0(id) returns the position of that key in the tab list, or the tab count when absent. 0x4b2580(tab) counts the book spells of the tabs before it. GetNumSpellTabs (0x4b3cb0) returns the tab count.

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 1

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