Matrix Games Forums

Forums  Register  Login  Photo Gallery  Member List  Search  Calendars  FAQ 

My Profile  Inbox  Address Book  My Subscription  My Forums  Log Out

Multiple Triggers for action

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
  Printable Version
All Forums >> [New Releases from Matrix Games] >> Command: Modern Operations series >> Multiple Triggers for action Page: [1]
Login
Message << Older Topic   Newer Topic >>
Multiple Triggers for action - 9/15/2018 4:11:11 AM   
TAAAS

 

Posts: 19
Joined: 9/15/2018
From: ROK
Status: offline
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?

Post #: 1
RE: Multiple Triggers for action - 9/15/2018 10:22:07 AM   
Gunner98

 

Posts: 5508
Joined: 4/29/2005
From: The Great White North!
Status: offline
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/

(in reply to TAAAS)
Post #: 2
Page:   [1]
All Forums >> [New Releases from Matrix Games] >> Command: Modern Operations series >> Multiple Triggers for action Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts


Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI

1.188