Mogs Posted March 21, 2017 Share Posted March 21, 2017 Hi Guys, Got 9 different enemy groups on late activation. Want 1 group activated random. After group dead want another group to spawn. Using flag 1 set random value 1-9. Spawns 1 group random at a time. My issue is when same number comes up. How do i stop recurring numbers 1-9? Thanks everyone. Mogs Link to comment Share on other sites More sharing options...
ESAc_matador Posted March 21, 2017 Share Posted March 21, 2017 You can put another condition... for instance, you make random flag 1-9 and you get 1 if group A its alive and flag is 1 then activate unit if group A is dead then random flag 1-9 Link to comment Share on other sites More sharing options...
Grimes Posted March 22, 2017 Share Posted March 22, 2017 Try thinking about it in a different way. You have a list of random choices, but want only 1 to be alive at a given point in time. Instead of having to get a random number to identify with each group, you can have all of them grouped by similar trigger conditions. When one is chosen you prevent other groups from being chosen. http://wiki.hoggit.us/view/DCS_editor_Randomization#Single_Choice_from_List When you want a group to spawn you set flag 1 to false. So you could make those 9 triggers and then have 9 others for each time a group is killed to set the flag back to false so another group can be chosen. 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 Link to comment Share on other sites More sharing options...
Recommended Posts