Jump to content

Mission Editor - Trigger menu - "OR" function for ACTIONS tab


Recommended Posts

Posted

I would love to see an OR function under the ACTIONS section similar to CONDITIONS section.

 

 

As an example I could make the mission a bit more dynamic with the following...

 

 

1 ONCE>Time More (120) OR Player in Zone>ACTIVATE SA-15 OR ACTIVATE SU-27

 

 

 

It could help us build more dynamic missions in the mean time while we wait for a dynamic campaign.

 

 

Maybe even allowing us to assign a percentage to those different actions to mold the probability to fit the mission requirements. And maybe even adding a "NOTHING" option under ACTIONS.

  • 1 month later...
Posted

I'm sure we can do this already with triggers.

 

Start the mission with the Unit AI off or Alarm State set to GREEN. Then at the desired time (or event) have a trigger set the unit AI to on, or Alarm State to RED.

Posted

Yes you can do what you need using random flag in action. Sorry picture is in french but you'll find the correspondant English term for sure (if I use wrong ones while explaining).

 

Base trigger : Once - time more than 120/player in zone - "random flag" : flag 1, min value 1, max value 3.

 

Then you set 2 other triggers, in condition you put for each :

trigger 1 : "flag equal" : flag 1 value 1 - action = activate Sukoi

trigger 2 : "flag equal" : flag 1 value 2 - action = activate Tor

If the random value is set to 3 nothing will happen cause no trigger use this value.

 

RandomFlag.thumb.jpg.6e3b2af0864b87d5cde6251419fd30f2.jpg

Posted (edited)

mission start set flag_1 between 1 and 10

 

group_1 in zone 1 and pilot_1 altitude < 3000m

set flag_2

 

 

Flag_2 = true

and

Flag_1 < 3

Activate Su-27

 

 

Flag_2 = true

and

Flag_1 > 2

Activate MiG-31

 

80% chance of MiG-31, 20% chance of Su-27

 

or, a bit different:

 

mission start set flag_1 between 1 and 10

 

group_1 in zone 1 and pilot_1 altitude < 3000m

or

group_2 in zone 1 and Pilot_1 altitude < 5000m

set flag_2

 

 

Flag_2 = true

and

Flag_1 < 3

Activate Su-27

 

 

Flag_2 = true

and

Flag_1 > 2

Activate MiG-31

 

or

 

mission start

set flag1 0 or 1

set flag2 0 or 1

 

flag1 = 0 and flag2 = 0, ScenarioFlag1 = true

flag1 = 0 and flag2 = 1, ScenarioFlag2 = true

flag1 = 1 and flag2 = 0, ScenarioFlag3 = true

flag1 = 1 and flag2 = 1, ScenarioFlag4 = true

 

Chosen event = true and ScenarioFlag1 = true, Do "A"

Chosen event = true and ScenarioFlag2 = true, Do "B"

Chosen event = true and ScenarioFlag3 = true, Do "C"

Chosen event = true and ScenarioFlag4 = true, Do "D"

 

Other event = true and ScenarioFlag2 = true, Activate unit Y

Edited by Weta43

Cheers.

  • Recently Browsing   0 members

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