I have a much revised US Naval campaign almost ready.
But there's one thing I would like to implement if possible.
If the AI Japanese lose a (named) carrier in one scenario I would like for it to be removed in the next scenario. This would ensure that early US successes carry over to the rest of the campaign.
Any ideas how to do this? Maybe it is possible to use the campaign variable for this?
Thanks
Erik
Need some campaign/scenario help
Moderators: Order of Battle Moderators, The Artistocrats
Re: Need some campaign/scenario help
Can be done using campaign variables if it's for a unit that is preplaced on-map in both scns
Say you have it on-map, then:
1. Do trigger that checks for this unit, I think (top of my head) via a "unit killed/removed" condition
- use target to point to the unit on-map
- set this trigger to fire on combat event
2. Add an effect "set campaign variable" to it
- name the camvar, set a numeric value, example "myunit_killed" = 1
Now in the next scn you need to check for this specific cam var and it's specific value
1. Do a trigger set to fire at scn start
- add condition "Check campaign variable"
- enter the exact variable name you used above, and the number for the dead unit, so check for this being equal "="
- add an effect to remove the unit if preplaced
So basically you check for unit killed in scn 1, set the cam var/value, and check for this specific var/value in scn 2 to remove the unit if it's dead.
Now if we are talking about a core unit that is not preplaced in the "next" scn things can get complicated, but you may pull it off if it is a unique unit/type you can check for in some way.
Say you have it on-map, then:
1. Do trigger that checks for this unit, I think (top of my head) via a "unit killed/removed" condition
- use target to point to the unit on-map
- set this trigger to fire on combat event
2. Add an effect "set campaign variable" to it
- name the camvar, set a numeric value, example "myunit_killed" = 1
Now in the next scn you need to check for this specific cam var and it's specific value
1. Do a trigger set to fire at scn start
- add condition "Check campaign variable"
- enter the exact variable name you used above, and the number for the dead unit, so check for this being equal "="
- add an effect to remove the unit if preplaced
So basically you check for unit killed in scn 1, set the cam var/value, and check for this specific var/value in scn 2 to remove the unit if it's dead.
Now if we are talking about a core unit that is not preplaced in the "next" scn things can get complicated, but you may pull it off if it is a unique unit/type you can check for in some way.
Re: Need some campaign/scenario help
Thank you, bebro.
These AI carriers are currently in the reserve list at start, I use a random trigger for possible deployments in three different locations.
But I guess I can start the units on-map since the random trigger should work anyway.
These AI carriers are currently in the reserve list at start, I use a random trigger for possible deployments in three different locations.
But I guess I can start the units on-map since the random trigger should work anyway.
Re: Need some campaign/scenario help
It *may* be possible to target them for triggers when they're in the deployment bar of the editor too - but haven't used this myself a lot so I'm not sure as of now if there's any caveat.
Re: Need some campaign/scenario help
No problem selecting units that are in the reserve list.
Question; Do I need to add the same variables to the campaign Variables tab? Or is this just used for information to the player whenever a Japanese carrier was killed in the previous scenario?
Question; Do I need to add the same variables to the campaign Variables tab? Or is this just used for information to the player whenever a Japanese carrier was killed in the previous scenario?
Re: Need some campaign/scenario help
In the campaign editor under settings > variables?
That's optional, mostly for player info (pins) so if a certain variable is just a technical thing to make stuff work over several scns it's not strictly needed.
Re: Need some campaign/scenario help
Yep, I guessed so. In my campaign a sunk carrier may lead to not making an appaearance in more than one of the later scenarios.
So I simply placed all the pins in a dircet line since it made no sense pointing to just one of the scenarios.

