Python events

The Great Apple

Big Cheese
Joined
Mar 24, 2002
Messages
3,361
Location
Oxford, England
So, I've been dabling in phthon a bit recently, slowly trying to get my head around it. I think my small experience in C++ is helping me a little bit (started learning it this term at uni), however, there are still things which are confusing me... anyway, that is besides the point.

I was wondering if there was a way to create event triggers. At the moment there is a trigger for "onReligionFounded" - for when you found a religion, and "onReligionSpread" - for when a religion spreads to a city, however there doesn't seem to be one for when you change your state religion, which is the one I was looking for.

Is there any way of triggering events to occur when you change your state? If so, how would I go about triggering them?
 
You'll have to check if state religion have changed during some other event. Like when a players turn end or begin.
 
snarko said:
You'll have to check if state religion have changed during some other event. Like when a players turn end or begin.
Bah, I thought as much.

Hopefully the SDK will make this a possablitly - until then I just do what you suggest.

Thanks.
 
I saw a listing of triggers on one of these threads... but not a comprehensive list. Is anyone putting a list of triggers and events? Is Firaxis going to provide this info?
 
wotan321 said:
I saw a listing of triggers on one of these threads... but not a comprehensive list. Is anyone putting a list of triggers and events? Is Firaxis going to provide this info?
It's all in CvEventManager.py - scroll down a bit and there is an event list.
 
Back
Top Bottom