benilla-re systems structs docs

s_textUsageChangeChatColor

global · ui

Address
0x844d28 · 41 bytes, up to 0x844d50
Type
char[41]
Meaning
Holds the string "Usage(ChangeChatColor(chatType, r, g, b)", the usage error of ChangeChatColor
Confidence
verified, proof one
Finding
ui/chatcolors#changechatcolor

Finding: ChangeChatColor in ui: chat colours

ChangeChatColor(name, r, g, b) needs a string and three numbers (otherwise it raises the usage error). Each colour is int(255.0 * x) truncated, with no clamp; the low byte is stored. The name is matched without case against the 94 registry names and then against the extra names, and both matches are written when both exist. If any entry matched, the function fires UPDATE_CHAT_COLOR with the name given and the three stored bytes times 1/255 as numbers. It returns no values.

The derivation is in the doc.