benilla-re systems structs docs

ExpandWorldStateText

function · ui · primitive

Address
0x508560 · 286 bytes, up to 0x50867d
Meaning
Replaces each percent digits w token with the world state value as decimal text
Confidence
verified, proof one
Finding
ui/worldstate#the-text-expander

Finding: The text expander in ui: world states in the interface

0x508560(source, destination, size) copies the source and replaces each %<digits>w or %<digits>W with the world state value of that key as decimal text; nothing else is a token. Any other character after a % keeps a literal %, flags an error and is not consumed; the function returns whether no error occurred. A null source returns 0 and writes nothing. GetWorldStateUIInfo passes a 260-byte buffer and a size of 0x100.

The derivation is in the doc.

Callers 1

Callees 6

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