Multiple Triggers for action

Take command of air and naval assets from post-WW2 to the near future in tactical and operational scale, complete with historical and hypothetical scenarios and an integrated scenario editor.

Moderator: MOD_Command

Post Reply
TAAAS
Posts: 19
Joined: Sat Sep 15, 2018 12:47 am
Location: ROK

Multiple Triggers for action

Post by TAAAS »

Hello.

I started playing CMANO 3 weeks ago. And I'm making short scenario.

Here is my question:
Is there a way to create AND condition for actions? I need something like this:
"Trigger A" AND "Trigger B" AND "Triger C" THEN "Action X". How can I do it? [&:][&:]

User avatar
Gunner98
Posts: 5965
Joined: Fri Apr 29, 2005 12:49 am
Location: The Great White North!
Contact:

RE: Multiple Triggers for action

Post by Gunner98 »

There may be a way in Lua but if you're using standard event triggers etc, than yes: but it takes a couple extra steps. I used it in building Korean Missile Crisis, so you may want to look there.


1. Set up another 'side' in the scenario. This is usefull for counters and markers anyway.

2. Set up an event that makes that non player side unfriendly (or whatever) when your first element is met: eg X unit is destroyed, triggers an event which makes A Side unfriendly to B Side

3. Set up another event which is focused on your second element. Add a 'Condition' to the event that has the proper side posture

In KMC for instance. The player needs to sink the NK SSB AND destroy the No-dong missile launcher. I was pretty sure the sub would be found first - when that was sunk the side posture of a marker side was changed (I set up two, one for the US and one for the Russian, probably could have done it with one). Then later in the scenario when the player finds and kills the missile, the event checks the side posture and if it matches the condition s/he wins. If not the game continues.

So this is not elegent, and it relies on one thing happening before the other, but it does work.


B

Check out our novel, Northern Fury: H-Hour!: http://northernfury.us/
And our blog: http://northernfury.us/blog/post2/
Twitter: @NorthernFury94 or Facebook https://www.facebook.com/northernfury/
Post Reply

Return to “Command: Modern Operations series”