Jump to content

Recommended Posts

Posted

Building some missions for upcoming apache module. Current mission, you have to take off and attack a small compound and destroy 6 ammo crates inside. I have an SA-9 on 15% chance to activate with a trigger and a Shilka on 25%.

 

Having some confusion setting triggers for mission complete:

When Ammo crates are destroyed, flag 4 turns on.

IF SA9 spawns, flag 1 turns on, and when it is destroyed flag 5 turns on

IF Shilka spawns, flag 2 turns on, and when it is destroyed flag 6 turns on

 

Now for victory, The ammo has to be destroyed, and IF either the shilka or SA9 spawns they have to be destroyed. I have victory set to win when flag 4 turns on. But I am confused on how to go about setting the win conditions to include If shilka spawns, it has to be destroyed and IF SA9 spawns, it has to be destroyed. What I want to do is have a message pop up saying mission complete return to base, once you land the mission ends.

Posted (edited)

I'd do something like this:

IF Flag 4 = ON; and Flag 1 = ON; and Flag 5 = ON  (case 1, crates & SA9 destroyed)
    OR  Flag 4 = ON; and Flag 2 = ON; and Flag 6 = ON (case 2, crates & Shilka destroyed)
    OR Flag 4 = ON; and Flag 1 = OFF; and Flag 2 = OFF (case 3, crates and no AA was spawn)
    OR Flag 4 = ON; and Flag 1 = ON; and Flag 5 = ON; and Flag 2 = ON; and Flag 6 = ON  (case 4, crates and both AA destroyed)
THEN Victory

 

Edited by Rudel_chw

 

For work: iMac mid-2010 of 27" - Core i7 870 - 6 GB DDR3 1333 MHz - ATI HD5670 - SSD 256 GB - HDD 2 TB - macOS High Sierra

For Gaming: 34" Monitor - Ryzen 3600 - 32 GB DDR4 2400 - nVidia RTX2080 - SSD 1.25 TB - HDD 10 TB - Win10 Pro - TM HOTAS Cougar

Mobile: iPad Pro 12.9" of 256 GB

Posted
4 hours ago, Rudel_chw said:

I'd do something like this:

IF Flag 4 = ON; and Flag 1 = ON; and Flag 5 = ON  (case 1, crates & SA9 destroyed)
    OR  Flag 4 = ON; and Flag 2 = ON; and Flag 6 = ON (case 2, crates & Shilka destroyed)
    OR Flag 4 = ON; and Flag 1 = OFF; and Flag 2 = OFF (case 3, crates and no AA was spawn)
    OR Flag 4 = ON; and Flag 1 = ON; and Flag 5; and Flag 2 = ON; and Flag 6  (case 4, crates and both AA destroyed)
THEN Victory

 

Thanks. So if I understand the "OR" statement in this, each block acts as a group, and by adding OR between each block, then the victory conditions (or whatever else) is triggered by 1 of the specific blocks. Not all of them

Posted
8 hours ago, FireManDan said:

Thanks. So if I understand the "OR" statement in this, each block acts as a group, and by adding OR between each block, then the victory conditions (or whatever else) is triggered by 1 of the specific blocks. Not all of them

 

Yes, correct ... it should look something like this:

 

Use of OR.jpg

 

For work: iMac mid-2010 of 27" - Core i7 870 - 6 GB DDR3 1333 MHz - ATI HD5670 - SSD 256 GB - HDD 2 TB - macOS High Sierra

For Gaming: 34" Monitor - Ryzen 3600 - 32 GB DDR4 2400 - nVidia RTX2080 - SSD 1.25 TB - HDD 10 TB - Win10 Pro - TM HOTAS Cougar

Mobile: iPad Pro 12.9" of 256 GB

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...