Add Popup Messages for loosing or gaining world wonders

Alrik2002

Warlord
Joined
May 24, 2012
Messages
214
Location
Berlin, Germany
Hi,

I would like to have some popups for the following scenarios:
1. city with one or more world wonder(s) was captured and razed
2. city with one or more world wonder(s) was captured and acquired

The popup should be shown to
1.
a) the previous ownern with a list of wonders, which were destroyed
b) all other players, with a list of wonders, which were destroyed (text a little bit different from message a))

2.
a) the previous owner with a list of wonders, which were lost
b) the new owner with a list of wonders, which were gained

I know that I´ve to add some lines of code in the CvEventManager.py. I assume in onCityRazed and onCityAquiredAndKept. I would like to have just one code for all the wonders but I´ve no idea if this is possible just with python and XML, for the message text.

Any ideas?

Thank you for your help.
 
Those displayed to individual players using CyInterface().addMessage(xxx) are in Eventlog.
Those displayed globally using CyInterface().addImmediateMessage(xxx) are not.
 
Thats something I always use when I have doubts during experiments and not sure what went wrong :D
 
I had been working on an sdk version of The_J's Mod. It provides event messages whenever wonders are captured or lost. It works well, just haven't had time to finish it, including messages for wonders destroyed. I could post it here and finish it as a group project.
 
Back
Top Bottom