benilla-re systems structs docs

s_gossipTextPending

global · ui

Address
0xbbb670 · 4 bytes, up to 0xbbb673
Type
uint32_t
Meaning
Holds 1 while the gossip greeting is not available, which refuses option selection
Confidence
verified, proof one
Finding
ui/gossip#the-greeting

Finding: The greeting in ui: the gossip window

After the message the handler asks the NPC text cache (query opcode 0x17f) for the text id. A text id of 0 or a cache miss makes the greeting pending (0xbbb670 = 1) and shows nothing. With the record it takes a column from the NPC's gender and draws one of the eight entries at random, weighted by their probabilities among those with text in that column. The text is expanded for $ macros (questtext), run through the language rewrite (chatlanguage) and stored, and GOSSIP_SHOW (id 297) fires. With no entry having text it logs Missing gossip text! and closes the window (GOSSIP_CLOSED, id 299).

The derivation is in the doc.