Jump to content

How would you handle this mission goal logic?


AirWolves=CutCut

Recommended Posts

So I have a bomber escort mission and I and trying to define the mission goal logic for it. It is a WWII mission that has a player flight of four P47's, and an additional flight of four AI P-47's that are escorting a big formation of B-17s. The B17's are in 2 boxes of 12 planes each. Each box consists of 4 groups of 3 bombers. So a total of 24 bombers that are 8 different groups in the mission. I would like for the mission goal to be that 75% of the bombers reach a trigger zone on the map. I'm trying to figure out how to create the logic for this. Your thoughts?

Link to comment
Share on other sites

Purely using the editor (no script) i would:

- create a flag,

- add 24 triggers (one for each bomber)

- For each trigger use Unit in Zone condition to increase the flag by 1.

 

So every bomber that reaches the zone increases the flag by 1.

 

Then a trigger to check whether that flag's value is higher than your threshold. So if you wanted 75% that would be flag = 18.


Edited by kaba
  • Like 2
Link to comment
Share on other sites

5 hours ago, kaba said:

Purely using the editor (no script) i would:

- create a flag,

- add 24 triggers (one for each bomber)

- For each trigger use Unit in Zone condition to increase the flag by 1.

 

So every bomber that reaches the zone increases the flag by 1.

 

Then a trigger to check whether that flag's value is higher than your threshold. So if you wanted 75% that would be flag = 18.

 

Brilliant!! This idea hit me in the shower this morning as well. Nice to have it confirmed! Now time to go fiddle with the mission file!

 

Thanks for the reply!

 

3 hours ago, Habu_69 said:

Your objective is a great example of the power of scripting. Using Moose scripting, create a SET of your bombers and count the number of set objects in the trigger zone.


Hmmmmmmm is there a tutorial anywhere for this Moose Scripting? 'm a video and film editor, not a coder, so I would need some learning. 

 

Thanks!

Link to comment
Share on other sites

12 hours ago, kaba said:

Purely using the editor (no script) i would:

- create a flag,

- add 24 triggers (one for each bomber)

- For each trigger use Unit in Zone condition to increase the flag by 1.

 

So every bomber that reaches the zone increases the flag by 1.

 

Then a trigger to check whether that flag's value is higher than your threshold. So if you wanted 75% that would be flag = 18.

 

This is exactly how I would do it as well. 

 

You could also do a Group In Zone coupled with a Group Alive More Than condition for each group, which would be fewer triggers to program but be less reliable. But the 24 triggers would be pretty simple to program anyway, build one, clone it a bunch of times, and change the unit that triggers each. 

Link to comment
Share on other sites

On 2/17/2021 at 3:45 AM, Dudikoff said:

Am I reading correctly that the desktop version has a longer arc on the axis compared with the big version (50 vs 26 degrees)? I guess that makes sense given the much longer radius, but I wonder how do they compare in practice in DCS, e.g. when one needs finely tuned movements for air to air refueling?

 

I use a Warthog throttle and find that the useful range between idle and AB detents is somewhat limited. I was considering the Taurus, but I'm not sure how much of an upgrade it will be then.

 

Not really thrilled by the layout and looks of most of the controls on the Orion (the design and finish looks more like a prototype than a production model), but replaceable handles are a cool feature given that the F-16 throttle handles seem to be almost ready.

 

Speaking of modular controls, perhaps they could have went a step further and designed the rest of the controls on the throttle as modular blocks which would be mounted on e.g. three slots on the throttle base.

 

I do hope they might have plans for more Flight Ops panels for the Taurus. E.g. if DCS MiG-29 comes out, it would be cool to have a grey panel with different style of controls and different throttle panels.

 

 

20 hours ago, AirWolves=CutCut said:

 Hmmmmmmm is there a tutorial anywhere for this Moose Scripting? 'm a video and film editor, not a coder, so I would need some learning. 

 

Thanks!

Go to Moose Discord for everything you need to know. See the pinned Moose topic at top of this forum.

  • Like 1
Link to comment
Share on other sites

  • Recently Browsing   0 members

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