ExpandServerToken
function · ui · primitive
- Address
0x5070a0· 1264 bytes, up to0x50758f- Meaning
- Expands the macro letter after a $ into the output, or refuses it
- Confidence
- verified, proof one
- Finding
- ui/questtext#the-tokens
Finding: The tokens in ui: dollar macros in server text
After the $, digits (0 to 9, no sign, no limit) are read into a buffer and consumed. The letter that
follows, in either case, selects the token: B a line feed; N the subject's name; R the race name; C the
class name; G and T a branch male:female;; W and E a world state number from the digits. Any other
letter, or the end of the text, is refused. A letter's own case matters only for R, C and T, whose
lower-case forms give the name in lower case. Digits are used only by W and E.
The derivation is in the doc.
Callers 1
Callees 13
- GetWorldStateValue ui
- CGPlayer_C::GetGender objectlayer
- CGPlayer_C::GetFactionSide objectlayer
- IsActivePlayerUnit objectlayer
- CGUnit_C::GetUnitName objectlayer
- SStrChr storm
- SStrCopy storm
- SStrLen storm
- SStrPack storm
- SStrPrintf storm
- SStrToInt storm
- SStrLower storm
- FrameScript_GetText ui
Calls and jumps by a bare address, from tables/calls.tsv.