Need some campaign/scenario help

Moderators: Order of Battle Moderators, The Artistocrats

Post Reply
Erik2
Order of Battle Moderator
Order of Battle Moderator
Posts: 9633
Joined: Thu Jul 14, 2011 12:59 pm
Location: Norway

Need some campaign/scenario help

Post by Erik2 »

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
bebro
Slitherine
Slitherine
Posts: 4576
Joined: Sun Nov 19, 2006 12:50 pm

Re: Need some campaign/scenario help

Post by bebro »

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.
Erik2
Order of Battle Moderator
Order of Battle Moderator
Posts: 9633
Joined: Thu Jul 14, 2011 12:59 pm
Location: Norway

Re: Need some campaign/scenario help

Post by Erik2 »

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.
bebro
Slitherine
Slitherine
Posts: 4576
Joined: Sun Nov 19, 2006 12:50 pm

Re: Need some campaign/scenario help

Post by bebro »

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.
Erik2
Order of Battle Moderator
Order of Battle Moderator
Posts: 9633
Joined: Thu Jul 14, 2011 12:59 pm
Location: Norway

Re: Need some campaign/scenario help

Post by Erik2 »

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?
bebro
Slitherine
Slitherine
Posts: 4576
Joined: Sun Nov 19, 2006 12:50 pm

Re: Need some campaign/scenario help

Post by bebro »

Erik2 wrote: Mon Dec 14, 2020 4:30 pm 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?
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.
Erik2
Order of Battle Moderator
Order of Battle Moderator
Posts: 9633
Joined: Thu Jul 14, 2011 12:59 pm
Location: Norway

Re: Need some campaign/scenario help

Post by Erik2 »

bebro wrote: Tue Dec 15, 2020 4:22 pm
Erik2 wrote: Mon Dec 14, 2020 4:30 pm 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?
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.
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.
Post Reply

Return to “Order of Battle : World War II - Scenario Design”