Bazaar developer reference

PopupRaised

An announcement: the game raised a popup for this player, or would have if they were at the keyboard. It also runs for players the game plays itself. A popup for a team reaches each of the team's living players. A value a popup does not have, or that names the player at the keyboard, is -1, and the text is empty unless the table gives one.

Popup data1 data2 data3 option1 option2 text
BUTTONPOPUP_WONDER_COMPLETED_ACTIVE_PLAYER the wonder
BUTTONPOPUP_GREAT_PERSON_REWARD the unit type the city's ID
BUTTONPOPUP_CITY_STATE_GREETING the city-state the gift the friendship gained first to meet it the kind of gift
BUTTONPOPUP_CITY_CAPTURED the city's ID the gold taken the culture taken bought from a city-state taken by conquest
BUTTONPOPUP_GOODY_HUT_REWARD the goody type the gold, culture or faith found, or 0 what the hut gave
BUTTONPOPUP_GOLDEN_AGE_REWARD
BUTTONPOPUP_NATURAL_WONDER_REWARD, for a team x y the gold for finding it first to find it
BUTTONPOPUP_TECH_AWARD, for a team 0 the tech
BUTTONPOPUP_NEW_ERA, for a team the era
BUTTONPOPUP_BARBARIAN_CAMP_REWARD the gold

The city-state greeting depends on VMC's GLOBAL_CS_GIFTS option. With it on, the values are as in the table, and the text is the kind of gift: CULTURE, FAITH, GOLD, FOOD or UNIT, or UNKNOWN when none of those applies. With it off, data2 is the gold given, data3 is the faith given, and the text is empty.

Where it fires