Raviar Posted October 2, 2021 Posted October 2, 2021 (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 Edited October 4, 2021 by Raviar
AKA_Clutter Posted October 2, 2021 Posted October 2, 2021 (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 October 2, 2021 by AKA_Clutter 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.
Raviar Posted October 2, 2021 Author Posted October 2, 2021 Thanks alot, I got it, so basically AND has higher operand priority compare to OR which make perfect sense
Grimes Posted October 2, 2021 Posted October 2, 2021 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 Server, Scripting Wiki Useful Links: Mission Scripting Tools MIST-(GitHub) MIST-(Thread) SLMOD, Wiki wishlist, Mission Editing Wiki!, Mission Building Forum
Recommended Posts