TEMPEST.114 Posted October 2, 2022 Posted October 2, 2022 At the moment it's a huge Flag table PITA to get what should have been in from the first place - and IF THEN, ELSEIF, ELSE statement. Could this please get considered asap? 1
Grimes Posted October 3, 2022 Posted October 3, 2022 Anytime you wanna get into logic like that with triggers it will always results in using a bunch of flags. Would need a trigger for each action anyway. It can be accomplished relatively easily via the lua predicate or do script using a lua statement. if trigger.misc.getUserFlag("whatever") > 0 then trigger.action.setUserFlag("action1", true) elseif trigger.misc.getUserFlag("something") > 0 then trigger.action.setUserFlag("action2", true) else trigger.action.setUserFlag("action3", true) end 1 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
TEMPEST.114 Posted October 28, 2022 Author Posted October 28, 2022 On 10/3/2022 at 9:20 AM, Grimes said: Anytime you wanna get into logic like that with triggers it will always results in using a bunch of flags. Would need a trigger for each action anyway. It can be accomplished relatively easily via the lua predicate or do script using a lua statement. if trigger.misc.getUserFlag("whatever") > 0 then trigger.action.setUserFlag("action1", true) elseif trigger.misc.getUserFlag("something") > 0 then trigger.action.setUserFlag("action2", true) else trigger.action.setUserFlag("action3", true) end Yeah, I asked for this before I learnt LUA and scripting (still learning - trying to work out how to create edit waypoints in scripting is a freakin' nightmare). I still think it you're primary focus is a GUI mission editor then it should cope with this type of thing without forcing people to learn lua/scripting.
Recommended Posts