Aristos
Lightseeker
I just want the parameters of the promise to be a little bit more transparent. You shouldn't have to scour through internet forums just to get a clue about what you promised. Heck, even after reading about this promise a zillion times, I don't know the exact terms (how long does it last? what counts as a hostile action by the AI to relieve you of your promise?). It's truly silly that you can "break a promise" when you don't know what you've promised. A real contract or promise doesn't work this way.
I have answered this in another thread already, but here it goes again:
Military Promise lasts for 20 turns regardless of game speed.
Code:
// Military Promise
if(IsPlayerMadeMilitaryPromise(eLoopPlayer))
{
ChangePlayerMilitaryPromiseCounter(eLoopPlayer, 1);
// Expired?
if(GetPlayerMilitaryPromiseCounter(eLoopPlayer) > 20)
{
SetPlayerMadeMilitaryPromise(eLoopPlayer, false);
SetPlayerMilitaryPromiseCounter(eLoopPlayer, -1);
}
}