benilla-re systems structs docs

s_percent

global · ui

Address
0x84f3a0 · 2 bytes, up to 0x84f3a1
Type
const char[2]
Meaning
Holds the string % that a token the target expander does not expand leaves in the text
Confidence
verified, proof one
Finding
ui/chatsend#target-token-expansion

Finding: Target token expansion in ui: sending chat

0x5083a0(text, buf, size) copies the C string text into buf and replaces %N, %T, %n and %t, and no other letter, with the target's name. After any other byte, including a second % and the end of the text, the % stays and the scan goes on with the next byte, so %%t gives % and the name and 100% is unchanged. Every append is cut at size - 1 bytes. It returns 1 when every % was followed by one of the four letters, else 0; a null text returns 0 and writes nothing. SendChatMessage drops the result.

The derivation is in the doc.