benilla-re systems structs docs

s_tokenPluralKey

global · ui

Address
0xbe0b84 · 4 bytes, up to 0xbe0b87
Type
uint32_t
Meaning
Holds the number the last counted token printed, the key of a plural token
Confidence
verified, proof one
Finding
ui/spelltokens#the-plural-key

Finding: The plural key in ui: Spell description tokens

One global, 0xbe0b84, holds the number the last counted token printed; $l reads it. It is written by $b, $h, $i, $n, $q, $r, $u, $v, $x and the amount letters (for $m the minimum when whole, for the others the maximum when whole), and set to 2 by an amount that is not whole. Nothing resets it, so a $l before any such token reads what the previous expansion left, 0 at the start.

The derivation is in the doc.