How to "connect" (new) wonders with python code?

fktest

Chieftain
Joined
Mar 19, 2007
Messages
3
Hello everybody,

I was trying to create a new wonder/project to get to know Civ4 modding a little bit more.
Figuring out the needed XML changes and where to put graphics etc. was pretty easy (with the help of the forum).
Also writing the pyhton script which tells Civ what to do when the wonder is built wasn't that hard with the help of the API.

The only remaining question is:

Where to put that code?
Or more precisely: How do I tell the game to execute my pyhton code when the wonder or project has been built?
My first idea was that it has to go in "CvEventManager" in the "BuildingBuilt" event, but I can see no trace of something like I need there, it just seems to play the movie etc. when not in multiplayer!?

Can anybody point me in the right direction ? Or aren't these "events" coded in python?

Thank you in advance and best regards
 
Top Bottom