Page 1 of 1

Amounts of units alive at end scenario

Posted: Tue Aug 18, 2020 6:07 pm
by StuccoFresco
I tried a dozen times but the trigger system absolutely evades any logic to me. The same trigger fails with an alliance and works for the other, with the same parameters. Victory conditions trigger accurately for hotseat mode, but are wrong when I test it with AI side.

I now resort to openly ask for someone to teach me how to achieve my objective: I have a scenario where I'd like to punish players for mindlessly sacrificing units, through primary and secondary objectives and relative triggers.

Alliance A must not have less than 24 units alive (50% of starting force INCLUDING REINFORCEMENTS) at the end of the scenario to win a Secondary Objective. Must not have less than 16 units alive (33% of starting force INCLUDING REINFORCEMENTS) at the end of the scenario to win a Primary Objective. Alliance A receives 13 units on Turn 5 for a total of 48 units at max capacity.

Alliance B must not have less than 27 units alive (50% of starting force) at the end of the scenario to win a Secondary Objective. Must not have less than 18 units alive (33% of starting force) at the end of the scenario to win a Primary Objective.


What kind of triggers do I have to write, and how? I tried everything, writing 8 triggers, but the < and > seems to work weirdly... A's secondary trigger works with one set, B's work with the opposite signs...

Re: Amounts of units alive at end scenario

Posted: Wed Aug 19, 2020 8:49 am
by Erik2
The triggers would be variations of the same basic trigger.
Note that the 'Check unit count' is not always useful for scenarios in a campaign as the game keep tracks of units lost in previous scenarios in the campaign.
trigger-a.jpg
trigger-a.jpg (104.76 KiB) Viewed 730 times
trigger-b.jpg
trigger-b.jpg (114.5 KiB) Viewed 730 times
trigger-c.jpg
trigger-c.jpg (117.66 KiB) Viewed 730 times

Re: Amounts of units alive at end scenario

Posted: Wed Aug 19, 2020 2:49 pm
by StuccoFresco
I missed that "link to objective", I'll try to use it.

Re: Amounts of units alive at end scenario

Posted: Wed Aug 19, 2020 3:21 pm
by StuccoFresco
IT WORKS!

But why do we have to link it to the objective, if we already define which objective to point at in the "effects" tab???

Re: Amounts of units alive at end scenario

Posted: Thu Aug 20, 2020 7:39 am
by Erik2
StuccoFresco wrote: Wed Aug 19, 2020 3:21 pm IT WORKS!

But why do we have to link it to the objective, if we already define which objective to point at in the "effects" tab???
The condition link to the objective allows you to count number of units destroyed, objectives taken etc.
The effect link is only used for completed/failed or still open.
Welcome to the world of scripting.