Specific event catching help

scythe3000

Chieftain
Joined
Dec 17, 2007
Messages
3
Hi there.

I've been modding Civ 4 for a few weeks now and i've hit this problem with catching a few events.

The first major event is that I can't for the life of me figure out when I am in the Main menu and when I am in an actual match. More specifically I cannot find the point at which we go from Match to title/main menu. The code for my mode at the moment is triggered when map plots start appearing which seemed a reasonable work around until I could actually find the point at which a Match 'actually' starts as well.

So basically i'm after the definate point at which the user enters the main title menu screen (upon mod startup and when leaving a match) and the point at which a match has started (presumably when old leonard starts blabbing).


The next event i'm after is the point at which war AND peace is declared between the active human player and any other team as I want to trigger something different for piece and war.

I have had a look around the forum and could only really find this OnChangeWar

This seems to be asking the same questions but and give some ideas for a solution but to be perfectly honest i'm unsure of how to actually implement such solutions syntaxically (if there is such a word).

Any help with these problems would be much obliged.
 
You probably have more luck looking in the SDK for both spots. Or should I say, more ACCURATE spots.

In python you're only going to get access after python is initialised, which incidentally is halfway through the create game slider (after the menu) just before it starts building the map (which is python).

In the SDK you'll also be able to capture the actual diplomacy event of war/peace, which is I assume what you're looking for. :)
 
Back
Top Bottom