benilla-re systems structs docs

s_getPluralIndexName

global · ui

Address
0x872cd0 · 15 bytes, up to 0x872cde
Type
char[15]
Meaning
Holds GetPluralIndex
Confidence
verified, proof two
Finding
ui/script#text-counts-and-running-code

Finding: Text, counts and running code in ui: the script layer and events

FrameScript_GetText(key, count, gender) with no gender and a negative count answers the global key when it is a string or number, else ""; otherwise it calls the Lua function GetText with the key, the gender or nil and the count or nil, under the error handler, and answers its string result or "". 0x703cf0(count) calls GetPluralIndex(count) and answers the result truncated minus one, or 0 on an error or a non-number. 0x704cd0 runs a string as a chunk under the error handler (framexml, Loading one file, for the runner); 0x704cf0 calls a function reference the same way, discarding an error after the handler.

The derivation is in the doc.