Badass1982 Posted July 1, 2021 Posted July 1, 2021 (edited) Is there an easy way to convert say a bunch of triggers that I have setup in a mission (using the mission editor), into a single lua file so that I can reuse them for other missions without having to set up each individual trigger for the newer missions. For example I have trigger zones set as pick up and drop off points for Helos to be used with CTLD , and another example I have specific triggers for example using simple slot blocker that determine whether a slot is available to use based on whether or not said base is blue or red controlled. I'm just curious to see if it is possible to script a file in such a way that you can use it across missions for a time saver (and obviously change the fields such as unit name, airbase name etc to fit the map you are making it for). Edited July 1, 2021 by Badass1982 spelling
HC_Official Posted July 1, 2021 Posted July 1, 2021 using MOOSE you can create trigger zones on the fly No more pre-orders Click here for tutorials for using Virpil Hardware and Software Click here for Virpil Flight equipment dimensions and pictures. .
Badass1982 Posted July 1, 2021 Author Posted July 1, 2021 Yeah but that's not what I'm getting at. I'm trying to create a "template" file if you will for all my missions that have all the triggers that I manually set in the ME in it.
Grimes Posted July 2, 2021 Posted July 2, 2021 Outright converting it is possible but I don't know if anyone has created code to do that. However in terms of making lua that basically replaces triggers, oh hell yeah it is possible. Some don't exist, but for all of the common stuff like setting flags, checking units/groups, etc all exist in lua. For something like simple slot block you can have some code that iterates client groups, figures out where they start at, and then sets a flag if the base was captured. 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