s_tokenCursor
global · ui
- Address
0xbe0b80· 4 bytes, up to0xbe0b83- Type
const char *- Meaning
- Holds the scan place of the text expanders, which share it: description, quest text, world state and chat target tokens
- Confidence
- verified, proof one
- Finding
- ui/spelltokens#the-expander
Finding: The expander in ui: Spell description tokens
0x5075f0(spell record; buffer, size, pet, level, aura, stack, unmodified) clears the buffer and copies the
text up to each $, expanding every token. The text is the aura description (+0x24c) when aura is set
and it is nonempty, else the description (+0x228). A level of 0 means the level the player has for the spell:
the player's value in the spell's skill line over five (spell/records#caster-level). A token the dispatcher
cannot expand leaves a literal $ in the output and the text after the token is copied as it stands. The
return value is 1 when every token was expanded and 0 otherwise.
| caller | pet | level | aura | stack | unmodified |
|---|---|---|---|---|---|
| spell tooltip, item spell and set bonus lines | the pet flag, 0 for items | 0 | 0 | 1 | 0 |
| buff tooltip | 0 | the buff's | 1 | the stack, or 1 | 1 |
The derivation is in the doc.