Jump to content

Recommended Posts

Posted (edited)

I have simple question, seems I didnt understand the conditions logic in mission editor properly
what I do understand from the below trigger is:
if time is more than 30 seconds the flag 3000 will initialize
in the 2nd trigger once 180 seconds pass from flag 3000 initialization AND either unit ground 1 is alive or ground 2 is alive the condition become true and the action will triggered which in this case show message

 

please correct me if I am wrong, however its clear my assumption is not correct and the message popup immediately without checking for "TIME SINCE FLAG" condition


 

mission editor 1.jpg

mission editor 2.jpg

Edited by Raviar
  • Raviar changed the title to [Help] AND with Multiple OR conditions
Posted (edited)

You have to repeat the Time Since Flagfg for the second OR.  as written it is (Time since AND Unit Alive G1) OR Unit Alive G2.

 

To get it to do what you want you need

Time Since FLAG (3000,30)

Unit Alive G1

[OR]

Time Since FLAG (3000,30)

Unit Alive G2

 

You can do this pretty easily by just duplicating the Time since flag and moving one below the OR.

Edited by AKA_Clutter
  • Thanks 1

----------------

AKA_Clutter

 

Win 10 Pro, Intel i7 12700k @4.6 GHz, EVGA RTX 3080  FTW, Ultra 64 GB G.Skill DDR4 3600 RAM, Acer 27" flat screen, HP Reverb G2, TM Warthog HOTAS with Virpil warBRD base, MFG Rudder Pedals, Virpil TCS Rotor Base with AH-64Dcollective, TrackIR 5 Pro w/Vector Expansion, PointCTRL.

Posted

Think of "or" as something that separates grouped conditions. If you are aware of how code generally works it could be visualized like this:

 

(con1 and con2 and con3) OR (con4 and con5) OR (con6 and con7 and con8)

 

The right man in the wrong place makes all the difference in the world.

Current Projects:  Grayflag ServerScripting Wiki

Useful Links: Mission Scripting Tools MIST-(GitHub) MIST-(Thread)

 SLMOD, Wiki wishlist, Mission Editing Wiki!, Mission Building Forum

  • Raviar changed the title to [Solved] AND with Multiple OR conditions
  • Recently Browsing   0 members

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