Jump to content

Trigger help needed; ENO + anyone please respond


Recommended Posts

Posted

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

Posted

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

Posted

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 ServerScripting Wiki

Useful Links: Mission Scripting Tools MIST-(GitHub) MIST-(Thread)

 SLMOD, Wiki wishlist, Mission Editing Wiki!, Mission Building Forum

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...