FrameScriptGetPluralIndex
function · ui · orchestration
- Address
0x703cf0· 148 bytes, up to0x703d83- Signature
int __fastcall (int count)- Meaning
- Calls the Lua GetPluralIndex with a count and returns its truncated result minus one, or 0
- 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.
Callers 4
- Script::GetQuestLogLeaderBoard ui
- ExpandPluralToken ui
- ReportQuestItemProgress objectlayer
- HandleQuestUpdate objectlayer
Callees 10
- __ftol crt
- lua_settop lua
- lua_isnumber lua
- lua_tonumber lua
- lua_pushnumber lua
- lua_pushstring lua
- lua_gettable lua
- lua_rawgeti lua
- lua_pcall lua
- FrameScript::GetContext ui
Calls and jumps by a bare address, from tables/calls.tsv.