Page 1 of 1

Events Not Working - Wrong Code?

Posted: Mon May 25, 2009 11:08 am
by paw1776
Hello,

My scenario runs, units can move, played 10 turns with no hiccups, except events.

Can anyone look at my Events tab and see any problems with my 1st few events. Maybe some coding wrong?

I have no errors on compile of scenario.

Attached is my Excel for my scenario.

Posted: Mon May 25, 2009 11:47 am
by lodilefty
The 'main' events fle for a scenario must have identical name as the scenario file to be 'found':

Your Scenario name is defined as:
1745 Claim America Campaign.scn

Your events file script is named:
ClaimAmerica1745.sct

Event file must be named:
1745 Claim America Campaign.[color="Red"]sct[/color]

I always copy/past from setup tab to Events tab cell D3, then edit the suffix

Posted: Tue May 26, 2009 12:01 am
by paw1776
Thanks Lodi!

Should have known there was some trick! :mdr:


Can all the other includes have any name?

So, my Winter Quarters for Injuns, Special Events?

Posted: Tue May 26, 2009 12:37 am
by lodilefty
paw1776 wrote:Thanks Lodi!

Should have known there was some trick! :mdr:


Can all the other includes have any name?

So, my Winter Quarters for Injuns, Special Events?


Yes, includes can be any filename, so we can share common files between scenarios. :D

You'll note that the 1775 Campaign 'includes' the 1776 Campaign.sct event file for example...

And an 'included file' can have it's own 'includes' ad infinitum [see 1755 Campaign, 1756 Montcalm, and 1759 Annus Mirablis] :blink:

Posted: Tue May 26, 2009 1:14 am
by Gray_Lensman
deleted

Posted: Tue May 26, 2009 1:31 am
by paw1776
Thx!