User avatar
paw1776
Captain
Posts: 192
Joined: Thu Mar 26, 2009 5:29 am
Location: Melbourne, Australia
Contact: Website

TurnIndex - Quarterly

Tue Jun 02, 2009 5:46 am

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!

User avatar
Pocus
Posts: 25673
Joined: Wed Oct 19, 2005 7:37 am
Location: Lyon (France)

Tue Jun 02, 2009 9:10 am

A single command is ok.
Image


Hofstadter's Law: "It always takes longer than you expect, even when you take into account Hofstadter's law."

User avatar
lodilefty
Posts: 7616
Joined: Sat Aug 11, 2007 3:27 pm
Location: Finger Lakes, NY GMT -5 US Eastern

Tue Jun 02, 2009 12:05 pm

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
Always ask yourself: "Am I part of the Solution?" If you aren't, then you are part of the Problem!
[CENTER][/CENTER]
[CENTER]Visit AGEWiki - your increasingly comprehensive source for information about AGE games[/CENTER]

[CENTER]Rules for new members[/CENTER]
[CENTER]Forum Rules[/CENTER]

[CENTER]Help desk: support@slitherine.co.uk[/CENTER]

User avatar
paw1776
Captain
Posts: 192
Joined: Thu Mar 26, 2009 5:29 am
Location: Melbourne, Australia
Contact: Website

Wed Jun 03, 2009 1:18 am

Lodi,

Thx! I forgot that!

User avatar
paw1776
Captain
Posts: 192
Joined: Thu Mar 26, 2009 5:29 am
Location: Melbourne, Australia
Contact: Website

Wed Jun 03, 2009 2:01 am

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.

Return to “Modding AGE engine games”

Who is online

Users browsing this forum: No registered users and 2 guests