 |
|  |
 |
|
Ray K
|
|
Allen, TX
Nov 1999 time: 23:13
|
|
This will trigger at the beginning of each game turn, and will evaluate when the year = 2 (you already know this).
However, this is before the beginning of the player turns, so "g.player" may not evaluate properly (which player would it reference?).
There is an easy way around this. You can force the trigger to evaluate at the beginning of each player turn by changing the 'when' condition to '((g.year == 2) && (player.cities))'.
The player.cities event will force the trigger to evaluate at the beginning of each player turn and will load the 'player' variable into the context so that you can use it.
Since this is a one-turn-only trigger, you might want to add another trigger that cleans up in turn 3. Something like:
trigger 'IncreaseCitiesCleanup' when (g.year == 3) {
DisableTrigger('IncreaseCities');
DisableTrigger('IncreaseCitiesCleanup');
}
If you add a lot of triggers, getting in the habit of doing this will help keep the game from slowing down from unnecessary triggers.
Hope that helps.
------------------
"Barbarism is the natural state of mankind... Civilization is unnatural. It is a whim of circumstance. And barbarism must always triumph."
|
|
|  |
All times are GMT. The time now is 05:13. Apolyton Time is 00:13. |
top of page
|
|
|
Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is ON
vB code is ON
Smilies are ON
[IMG] code is ON
|
|
|
|
|
|