Jump to content

Recommended Posts

Posted

Gents, 

I could use some help with some advanced Trigger setup.  Here's a overview of what I am trying to accomplish:

Have two separate "ranges" on a map for training.  A SAM range and a A2A range (air to air).  
Setup a trigger zone for each range
When a plane enters the A2A range, a F10 menu will pop up with options to select.  For example, MiG29, F-5 etc.  
       If the plane does NOT activate any aircraft but leaves the trigger zone, I want the F10 menu to disappear
       If the plane then re-enters the menu pops back up
Here's the complicated part - Once you activate an asset (the MiG29 for example) then I want that removed from the F10 menu permanently no matter how many times you exit/re-enter the range.  

Also, another complicated part, is I only want the F10 menu to appear for the group that is entering the range and if there is a group entering another range, their menu is for that range specifically.  

Where I am having issues is once you activate an asset and leave the range, once you re-enter the F10 menu item reappears, even though you can't select it anymore.  

Any ideas??  

Attached is a visual representation of what I want and an example of the current trigger solution I am attempting.  

Presentation1.png

trigger help.png

Intel I9-9900k, Gigabyte AORUS Ultra, 64GB G.SKILL Trident Z Royal 3200, EVGA 2080Ti, Samsung M.2 960 Pro 512, Samsung M.2 960 Pro 1TB, MCG, Vipril, TM Controls, SLAW device rudders, Obutto Revolution, Valve Index

  • 2 weeks later...
Posted

I would try to solve it like that:

For on/off part of messages:

1. Use "Switched condition" trigger for "part of group in zone". If they enter, they get the F10 menu options

2. Set another "Switched condition" trigger for "group out of zone", when they leave, F10 menu options are cleared

 

For not showing spawn option after 1st use:

1. Set "once" trigger that will rise a flag (ex. mig29_on) when they are spawned.

2. Modify conditions for triggers responsible for turning on F10 menu to have for example: "part of group in zone" and "flag mig29_on is false"

3. Create new "Switched condition" trigger to get F10 menu options with conditions "part of group in zone" and "flag mig29_on is true" to give all F10 menu options except that for MiG-29

 

You can experiment with this idea, but i think it should work 

Posted
On 4/9/2025 at 1:03 AM, Wroblowaty said:

For not showing spawn option after 1st use:

1. Set "once" trigger that will rise a flag (ex. mig29_on) when they are spawned.

2. Modify conditions for triggers responsible for turning on F10 menu to have for example: "part of group in zone" and "flag mig29_on is false"

3. Create new "Switched condition" trigger to get F10 menu options with conditions "part of group in zone" and "flag mig29_on is true" to give all F10 menu options except that for MiG-29

 

You can experiment with this idea, but i think it should work 

I tried either increasing the flag value, or just turning a flag on once a unit is activated and either way I cannot get it to work.  The menu item shows back up once you re-enter the range.

Intel I9-9900k, Gigabyte AORUS Ultra, 64GB G.SKILL Trident Z Royal 3200, EVGA 2080Ti, Samsung M.2 960 Pro 512, Samsung M.2 960 Pro 1TB, MCG, Vipril, TM Controls, SLAW device rudders, Obutto Revolution, Valve Index

Posted (edited)
22 hours ago, FlyBoyd said:

I tried either increasing the flag value, or just turning a flag on once a unit is activated and either way I cannot get it to work.  The menu item shows back up once you re-enter the range.

You actually need to create different F10 radio menu for different situations.

First of all, you need to create a flag variables for each group which you can activate when entering the trigger zone.

Then you should check in trigger condition (the middle column) if all flag variables are "false" or "0", then you create a menu which contains all of the group you can activate.

If you have activated the MiG-29 group, then set, let's say a "29" flag to "true" or "1". Then you have to create another trigger which will check the another combination of conditions, in this combination you should check if all flags are "false" or "0" except of "29" flag which should be "true" or "1". Then you are creating another F10 radio menu which is not containing the MiG-29 group but containing all other groups. So you actually need to create a trigger for all variants of flags combinations and each flags combination will create a different F10 radio menu according to the combination of the enabled / disabled flags.

 

For example:

You have a group of MiG-29, F-5E, F-14 and Su-27 which can be activated.

You need to create a flags on mission start which will be as following:

29 = 0 (false)

5 = 0 (false)

14 = 0 (false)

27 = 0 (false)

 

Then you need to create a trigger which checks if all of the flags are 0 (false) and it will create an F10 radio menu which will contains all of the groups.

Then you need to create another trigger wich will check the following:

29 = 1 (true)

5 = 0 (false)

14 = 0 (false)

27 = 0 (false)

And it will create a menu without MiG-29.

Then another trigger which will check the following variant:

29 = 0 (false)

5 = 1 (true)

14 = 0 (false)

27 = 0 (false)

And it will create a radio menu without F5.

So you actually have the following combinations which you need to create a separate trigger for each of them:

0 0 0 0

0 0 0 1

0 0 1 0

0 0 1 1

0 1 0 0

0 1 0 1

0 1 1 0

0 1 1 1

1 0 0 0

1 0 0 1

1 0 1 0

1 0 1 1

1 1 0 0

1 1 0 1

1 1 1 0

1 1 1 1

Edited by JohnRedcorn
  • 3 weeks later...
Posted
On 4/12/2025 at 11:26 AM, JohnRedcorn said:

You actually need to create different F10 radio menu for different situations.

First of all, you need to create a flag variables for each group which you can activate when entering the trigger zone.

Then you should check in trigger condition (the middle column) if all flag variables are "false" or "0", then you create a menu which contains all of the group you can activate.

If you have activated the MiG-29 group, then set, let's say a "29" flag to "true" or "1". Then you have to create another trigger which will check the another combination of conditions, in this combination you should check if all flags are "false" or "0" except of "29" flag which should be "true" or "1". Then you are creating another F10 radio menu which is not containing the MiG-29 group but containing all other groups. So you actually need to create a trigger for all variants of flags combinations and each flags combination will create a different F10 radio menu according to the combination of the enabled / disabled flags.

 

For example:

You have a group of MiG-29, F-5E, F-14 and Su-27 which can be activated.

You need to create a flags on mission start which will be as following:

29 = 0 (false)

5 = 0 (false)

14 = 0 (false)

27 = 0 (false)

 

Then you need to create a trigger which checks if all of the flags are 0 (false) and it will create an F10 radio menu which will contains all of the groups.

Then you need to create another trigger wich will check the following:

29 = 1 (true)

5 = 0 (false)

14 = 0 (false)

27 = 0 (false)

And it will create a menu without MiG-29.

Then another trigger which will check the following variant:

29 = 0 (false)

5 = 1 (true)

14 = 0 (false)

27 = 0 (false)

And it will create a radio menu without F5.

So you actually have the following combinations which you need to create a separate trigger for each of them:

0 0 0 0

0 0 0 1

0 0 1 0

0 0 1 1

0 1 0 0

0 1 0 1

0 1 1 0

0 1 1 1

1 0 0 0

1 0 0 1

1 0 1 0

1 0 1 1

1 1 0 0

1 1 0 1

1 1 1 0

1 1 1 1

I was afraid I would have to do that!  Quick question for you though, I thought all flags start off FALSE, until told to be true.  So you are saying that you first have to setup a trigger to call them false first?  And can they all be same value (ie., 0) or do you have to have them be 11, 21, 31 etc?  

Thanks!

Intel I9-9900k, Gigabyte AORUS Ultra, 64GB G.SKILL Trident Z Royal 3200, EVGA 2080Ti, Samsung M.2 960 Pro 512, Samsung M.2 960 Pro 1TB, MCG, Vipril, TM Controls, SLAW device rudders, Obutto Revolution, Valve Index

Posted
On 4/29/2025 at 2:03 AM, FlyBoyd said:

I was afraid I would have to do that!  Quick question for you though, I thought all flags start off FALSE, until told to be true.  So you are saying that you first have to setup a trigger to call them false first?  And can they all be same value (ie., 0) or do you have to have them be 11, 21, 31 etc?  

Thanks!

You have to call the flags respectively so you will know which plane respects the flag. But it doesn't matter which value they will have. The "0" value is the same as "false" while anything greater than "0" is "true". But you don't have to check the last case "1 1 1 1" because it is a case where you already triggered all the planes so you don't need to create a menu in this case. I guess you can do it much more effective with lua script. But if you want to do it with trigger system, then this is only way.

Posted

It's been a long time since I tested it, but a Flag can have a 'negative numerical value', and it is True under that condition.  

WC's Flags.txt

Visit the Hollo Pointe DCS World server -- an open server with a variety of COOP & H2H missions including Combined Arms. All released missions are available for free download, modification and public hosting, from my Wrecking Crew Projects site.

  • Recently Browsing   0 members

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