AKA_Clutter Posted February 8, 2010 Posted February 8, 2010 All, I am trying to setup mission success, stalemate, or victory conditions. I would like it setup so that if you keep the enemy outside of certain rages, then the mission is 1) a success, 2) a draw, or 3) a failure. For example I would like the conditions to be: - Enemy units outside of 3000 m – Mission Success - Enemy units inside 3000 m but outside 1000 m – Mission is a Draw - Enemy units within 1000 m – Mission failure I know that I can use Zones to set up the 3000 m, 1000 m but I really don’t want to setup 90 + triggers (for each zone) to see if a enemy unit is inside the zones. I have LOTS of units in the mission primarily because I have random triggers setup so that it does not play the same every time. (approximately 20 groups with 90 -110 units) I wish that there was a “Group in Zone” trigger because that would be manageable, but as far as I knoe there is no such animal. I know that you can edit the “AND” to an “OR” but you still would have to enter 90+ triggers. Does anybody know of a easy way to do what I want to do. :surrender: :book: ---------------- 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.
Speed_2 Posted February 8, 2010 Posted February 8, 2010 (edited) Nope, I think you just have to make an individual trigger for every unit. This mission editor desperately needs improvement, BTW. And how do you change the AND to an OR? When I need to do ORs, I have to just create a set of multiple triggers that all enable or disable a specific flag. Wouldn't be nice if we could directly edit a trigger file so we could just use something like Notepad to write triggers? Holy god, that would be so much better than this GUI nightmare. You could even create your "own" trigger actions and conditions, if you could be passed information such as unit locations (x any y) on the map. Like, at a certain time, pass the x and y coordinates of a tank to the trigger file, convert that to lat and long, and then pass that information into a text message that says "Enemy units are now at <XX XX.XX> North, <XX XX.XX> East!" Edited February 8, 2010 by Speed_2 arrogant, realism-obsessed Falcon 4 junkie
AKA_Clutter Posted February 8, 2010 Author Posted February 8, 2010 You can use an editor to edit the ME files to a degree. I think it has to be something besides Notepad, something that can handle Lau files. As to converting AND to OR, look for a thread by Panzertard entitled - Mission Editor - Hot tips S! ---------------- 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.
igormk Posted February 8, 2010 Posted February 8, 2010 Hey AKA Clutter, here is something I did in similar situation in one of my missions. Still, I must warn you it is a VEEEERRRRY primitive way to do it. ;) I was also disappointed that there is no “Group in Zone” Trigger, and I was lazy (same as you :D) to make 30 individual triggers to make it happen as I imagined. So I came up the idea that if I place a single friendly solider in a zone that I don’t want enemies to arrive (mission fail), and the enemy still arrives there – they will kill that solider, and it is then easy to set “Unit Dead” trigger with what you want. In your case you can set 2 friendly soldiers on 2 positions along the enemy’s route. First one in zone 1000m of your object and second one in zone between 1000 and 3000m. So, if eventually they are both alive – enemies didn’t enter the zone of 3000m. If the second one is dead, and first one alive, enemy is in zone between 1000 and 3000m. If they are both dead, enemy is inside of 1000m. Off course, you will have to test it couple of times to know where to put those sacrificed soldiers, depending on what kind of vehicles does the enemy have (ranges of their weapons). Don’t put them on the edge of the zone since the enemy will shoot them from distance. Again, this is embarrassing primitive way to do it, but it should work. Unless you’re not ready to sacrifice those two poor guys. :cry: S! [sIGPIC][/sIGPIC]
AKA_Clutter Posted February 9, 2010 Author Posted February 9, 2010 Hey AKA Clutter, here is something I did in similar situation in one of my missions. Still, I must warn you it is a VEEEERRRRY primitive way to do it. ;) ...... Again, this is embarrassing primitive way to do it, but it should work. Unless you’re not ready to sacrifice those two poor guys. :cry: S! igormk, THANKS!!!!! :thumbup: That should work just fine. As to being primitive, I wouldn't say that at all. You have to work with the tools provided in the ME, and that includes the limitations. I'll give it a try and let you know how it worked. Salute! :joystick: ---------------- 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.
slug88 Posted February 9, 2010 Posted February 9, 2010 Nope, I think you just have to make an individual trigger for every unit. This mission editor desperately needs improvement, BTW. And how do you change the AND to an OR? When I need to do ORs, I have to just create a set of multiple triggers that all enable or disable a specific flag. Wouldn't be nice if we could directly edit a trigger file so we could just use something like Notepad to write triggers? Holy god, that would be so much better than this GUI nightmare. You could even create your "own" trigger actions and conditions, if you could be passed information such as unit locations (x any y) on the map. Like, at a certain time, pass the x and y coordinates of a tank to the trigger file, convert that to lat and long, and then pass that information into a text message that says "Enemy units are now at <XX XX.XX> North, <XX XX.XX> East!" As AKA_Clutter hinted it, you can use Notepad++ to edit the triggers in a text-based environment. The .miz files that DCS creates are actually archives which you can extract with a program like Winrar. Inside the archives are all the files related to the mission; open the file called "mission" (no extension) with Notepad++, and you can edit all the triggers there. BTW, this is how you can change the OR triggers into AND triggers; simply replace the relevant "OR" with an "AND" ;). [sIGPIC][/sIGPIC]
Speed Posted February 11, 2010 Posted February 11, 2010 As AKA_Clutter hinted it, you can use Notepad++ to edit the triggers in a text-based environment. The .miz files that DCS creates are actually archives which you can extract with a program like Winrar. Inside the archives are all the files related to the mission; open the file called "mission" (no extension) with Notepad++, and you can edit all the triggers there. BTW, this is how you can change the OR triggers into AND triggers; simply replace the relevant "OR" with an "AND" ;). Thanks! I extracted the files, and I opened the mission in REGULAR notepad, and I can see the triggers directly in there, and I saw where the triggers were related with the AND condition! This might save a bit of time :) Anyway, what is notepad++? Would using it give me an advantage somehow? Intelligent discourse can only begin with the honest admission of your own fallibility. Member of the Virtual Tactical Air Group: http://vtacticalairgroup.com/ Lua scripts and mods: MIssion Scripting Tools (Mist): http://forums.eagle.ru/showthread.php?t=98616 Slmod version 7.0 for DCS: World: http://forums.eagle.ru/showthread.php?t=80979 Now includes remote server administration tools for kicking, banning, loading missions, etc.
Recommended Posts