Page 1 of 1

TurnIndex - Quarterly

Posted: Tue Jun 02, 2009 5:46 am
by paw1776
Hello,

WIA question.

If I want something to check every quarter, can I use Turn Index with multiple values

[font="Courier New"]StartEvent = 999
Conditions = NULL
TurnIndex = 3|6|9|12
MinDate = 1745/01/01
Actions = NULL
Replacement = GBR|$famTransportShip|1
EndEvent = NULL[/font]
Or,
do I need an event for each TurnIndex

Thx!

Posted: Tue Jun 02, 2009 9:10 am
by Pocus
A single command is ok.

Posted: Tue Jun 02, 2009 12:05 pm
by lodilefty
Yours works, except the turns start at 0 and run through 11 :wacko:

So you need:

TurnIndex = 2|5|8|11

to get March, June, September, December :blink:


:D

Posted: Wed Jun 03, 2009 1:18 am
by paw1776
Lodi,

Thx! I forgot that!

Posted: Wed Jun 03, 2009 2:01 am
by paw1776
TurnIndex should be loaded into the modding Wiki pages!

I could not find it there.

Both examples of how TurnIndex works
and the month thing where 0 = January... 11 = December

would be good.