Events headaches, that is!
I have stumbled into a problem that our resident CIV-meisters might be able to assist me with!
I made an event for my current WW2 scenario that is triggered when the Allied player researches tech 99. (Allied Invasion)
Then the event creates the required units (for invasions) and then takes the tech away, ready to be researched again.
I thought I was being rather clever doing this. In that, I could merely update the events each game-year and create all the
numerous invasions of WW2, like D-Day, Avalanche and when 1945 comes, switch to generic invasions at random places...
And then realised that when delevent is run, it will replicate the event! And it did! When the new files are switched and
the game is reloaded, the event is run afresh, creating tons of new units and ruining the historical flow...! gah!
The Allies get double rationed invasions, which is good for them, but bad news for Axis players!
This problem is tied to the nature of my scenaio, being a multi-file affair...The events get reloaded every few turns.
What I need to know:
Is there any way to create events invasions that won't be cloned by delevent when files are switched?
Question to the wise:
If the event is only available in summer events files, will it show up in winter events later?
The event in question...
;---Operation Avalanche
@IF
RECEIVEDTECHNOLOGY
technology=99
receiver=Western Allies
@THEN
JUSTONCE
TEXT
^
^^ Allied generals unleashed a full invasion on the 'boot' of Italy. The Italians and
^^ Germans dig in and prepare to meet the powerful American and British force.
^^ If the Axis lose this campaign, then it is one step closer to total collapse...
^
ENDTEXT
CREATEUNIT
unit=American GIs
Count=20
owner=Western Allies
veteran=yes
homecity=None
locations
221,121
224,120
225,119
223,115
endlocations
PlayWaveFile
ALLIED.wav
@ENDIF
@IF
RECEIVEDTECHNOLOGY
technology=99
receiver=Western Allies
@THEN
JUSTONCE
TakeTechnology
whom=Western Allies
technology=99
@ENDIF
Any suggestions?
I have stumbled into a problem that our resident CIV-meisters might be able to assist me with!
I made an event for my current WW2 scenario that is triggered when the Allied player researches tech 99. (Allied Invasion)
Then the event creates the required units (for invasions) and then takes the tech away, ready to be researched again.
I thought I was being rather clever doing this. In that, I could merely update the events each game-year and create all the
numerous invasions of WW2, like D-Day, Avalanche and when 1945 comes, switch to generic invasions at random places...
And then realised that when delevent is run, it will replicate the event! And it did! When the new files are switched and
the game is reloaded, the event is run afresh, creating tons of new units and ruining the historical flow...! gah!
The Allies get double rationed invasions, which is good for them, but bad news for Axis players!
This problem is tied to the nature of my scenaio, being a multi-file affair...The events get reloaded every few turns.
What I need to know:
Is there any way to create events invasions that won't be cloned by delevent when files are switched?
Question to the wise:
If the event is only available in summer events files, will it show up in winter events later?
The event in question...
;---Operation Avalanche
@IF
RECEIVEDTECHNOLOGY
technology=99
receiver=Western Allies
@THEN
JUSTONCE
TEXT
^
^^ Allied generals unleashed a full invasion on the 'boot' of Italy. The Italians and
^^ Germans dig in and prepare to meet the powerful American and British force.
^^ If the Axis lose this campaign, then it is one step closer to total collapse...
^
ENDTEXT
CREATEUNIT
unit=American GIs
Count=20
owner=Western Allies
veteran=yes
homecity=None
locations
221,121
224,120
225,119
223,115
endlocations
PlayWaveFile
ALLIED.wav
@ENDIF
@IF
RECEIVEDTECHNOLOGY
technology=99
receiver=Western Allies
@THEN
JUSTONCE
TakeTechnology
whom=Western Allies
technology=99
@ENDIF
Any suggestions?
Comment