Question About Campaign Variables

Moderators: Order of Battle Moderators, The Artistocrats

Post Reply
conboy
Lieutenant Colonel - Fw 190A
Lieutenant Colonel - Fw 190A
Posts: 1169
Joined: Sun Apr 09, 2017 4:18 pm
Location: Lower Alabama

Question About Campaign Variables

Post by conboy »

I would like to use a campaign variable to track the number of downed German aircraft over the course of a campaign to award allied air commanders. Is the set campaign variable trigger, and a combination of other triggers, capable of doing this?
For example, when the player achieves 8 kills by the second scenario, can we set the Campaign Variable to award an Air Commander at that point?
I read the Campaign Editor and it seems that the Campaign Variable is location-dependent. Before I go on a wild goose chase (or snipe hunt as we say down this-away) can this be done?
If so, maybe you could point me to an example in the campaigns we have from the Artistocrats. I don't remember one off-hand, but I'm hoping one of us forum users does.

thanks in advance,
conboy
GabeKnight
Lieutenant-General - Karl-Gerat 040
Lieutenant-General - Karl-Gerat 040
Posts: 3710
Joined: Mon Nov 27, 2017 10:24 pm

Re: Question About Campaign Variables

Post by GabeKnight »

There are "check camp. variable" and "set camp. variable" triggers in the scen editor. Don't overthink this, conboy, it's really no rocket science:

- use the "set" trigger effect to set or increment (+1) the variable after the kills, with e.g. the "check last kill" condition
- use the "check" trigger condition to award the commander at scen start or turn start or whenever, after the variable reaches the desired value, e.g. "8".

Similar to the following example I took from one of Eriks scens that I've changed:

Screenshot 284_mod.jpg
Screenshot 284_mod.jpg (662.34 KiB) Viewed 882 times


Screenshot 285_2.jpg
Screenshot 285_2.jpg (218.85 KiB) Viewed 881 times
conboy
Lieutenant Colonel - Fw 190A
Lieutenant Colonel - Fw 190A
Posts: 1169
Joined: Sun Apr 09, 2017 4:18 pm
Location: Lower Alabama

Re: Question About Campaign Variables

Post by conboy »

Ok Gabe, you are quite generous with your time and I appreciate that, good sir.

So if I set set the trigger to check the campaign variable to award an ace after 8 kills, then whenever that is reached in a subsequent scenario whether its scenario 2 or 4 or whatever, it'll award it when reached.

Thanks again, matey!

conboy
terminator
Field Marshal - Gustav
Field Marshal - Gustav
Posts: 6115
Joined: Mon Aug 15, 2011 12:48 pm
Location: the land of freedom

Re: Question About Campaign Variables

Post by terminator »

There is an example of campaign variable in Red Storm;

objective2_2_1 = Achieve air superiority
objective2_2_1_award = Destroy 5 aircraft in this operation. Achieving air superiority in 3 battles awards the most prominent Soviet fighter ace in summer 1944.
conboy
Lieutenant Colonel - Fw 190A
Lieutenant Colonel - Fw 190A
Posts: 1169
Joined: Sun Apr 09, 2017 4:18 pm
Location: Lower Alabama

Re: Question About Campaign Variables

Post by conboy »

Thanks, Terminator, exactly what I was looking for!

conboy

update next day -- But I can't make it work after several hours of screwing around with it. Guess I'll move out without it.
Post Reply

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