Page 1 of 1

Question About Campaign Variables

Posted: Sat Dec 19, 2020 8:28 pm
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

Re: Question About Campaign Variables

Posted: Sat Dec 19, 2020 9:18 pm
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 881 times


Screenshot 285_2.jpg
Screenshot 285_2.jpg (218.85 KiB) Viewed 880 times

Re: Question About Campaign Variables

Posted: Sun Dec 20, 2020 5:32 am
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

Re: Question About Campaign Variables

Posted: Sun Dec 20, 2020 7:12 am
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.

Re: Question About Campaign Variables

Posted: Sun Dec 20, 2020 5:52 pm
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.