tootall_2012
King
- Joined
- Feb 11, 2012
- Messages
- 918
Perhaps I spoke too soon. I just received notice that I must capture 3 of 4 cities before the Presidental election in 12 turns or lose the war. That wasn't part of my plan.
Hi Techumseh,
This particular game feature is covered in Major Game Concept #18 of the ReadMe. As such, you should have known in advance that this was coming. Though I have tested it, it's the one event in the game I'm not 100% certain that it works entirely properly.
I will admit that this particular event, though seemingly innocuous and straightforward, i.e. you either capture the minimum number of objectives or you don't, ended up being my nemesis during the design phase. Originally, the event required that you capture 6 of 9 objective cities, i.e. Memphis, Vicksburg, New Orleans, Nashville, Chattanooga, Atlanta, Charleston SC, Columbia or Richmond to Win the Presidential election.
@IF
TURN
turn=44
@AND
CheckFlag
Who=Union
Mask=0xFD6
Count=6
State=Off
@THEN
JUSTONCE
TEXT
ABRAHAM LINCOLN LOSES THE 1864 NOVEMBER PRESIDENTIAL ELECTION!
...
ENDTEXT
EndGame
endscreens=yes
@ENDIF
@IF
TURN
turn=44
@AND
CheckFlag
Who=Union
Mask=0xFD6
Count=6
State=On
@THEN
JUSTONCE
TEXT
ABRAHAM LINCOLN WINS THE 1864 PRESIDENTIAL ELECTION!
...
ENDTEXT
@ENDIF
But during my testing the event didn't behave as expected. The 'Lose' event would trigger if you captured none, 1, 2 or 3 of the objective cities and the 'Win' event worked if you captured the minimum 6 objectives. But the 'Lose' event would fail to trigger if you only captured 4 or 5 objective cities by the November 64 date. So after many tests, and no small amount of frustration, I had to compromise and reduce the number of required objective to 3 out of 4.
I'm including the original event file if any other designer is able to determine where my error lies.