Jump to content

Seeking ideas. how to portray completed objectives to clients


Recommended Posts

Posted

Hey all - i am finishing my touches on a longitudinal mission that has quite a few long distance targets for the WWII set. Each side has 7 objectives they can pursue. That said, it dawned on me that i need some sort of reference to allow a client to know which of the objectives have been completed so they dont spend an hour flying to a target to only find out it has been destroyed.

 

So far both sides have the AWACS script by ajax and a Radio ITEM add based off CTTS loading at the start. these items are working and presenting appropriately to their respective coalitions or groups.

 

I thought I could use the radio item add for coalition trigger to create a list of objectives taht are then removed via radio item remove for coalition once the objective is completed. Unfortunately, these triggers overwrite the AWACS/RADIO add script insertions rendering them unavailable... i also note that the coalition lists are not appropriately showing to the proper sides... blue gets red and red gets red.

 

Any suggestions from other miz makers on how i might handle this problem? I am 99% done the miz but dont want the user experience to suck if they fly across the AO to a completed objective.

 

Help?:joystick:

ASUS Tuf Gaming Pro x570 / AMD Ryzen 7 5800X @ 3.8 / XFX Radeon 6900 XT / 64 GB DDR4 3200 

"This was not in the Manual I did not read", cried the Noob" - BMBM, WWIIOL

Posted

That would require the radio add with a script though . How would you trigger it, am I missing something?

ASUS Tuf Gaming Pro x570 / AMD Ryzen 7 5800X @ 3.8 / XFX Radeon 6900 XT / 64 GB DDR4 3200 

"This was not in the Manual I did not read", cried the Noob" - BMBM, WWIIOL

Posted

Here's a simple script to do what I described.

 

function showObjectiveStates()
   local str = ""

   -- first objective, controlled by flag 1
   str = str .. "Kill Truck: "
   local val1 = trigger.misc.getUserFlag("1")
   --str = str .. " " .. val1 .. " " --debug line
   if val1 == 1 then
       str = str .. "Completed\n"
   elseif val1 > 1 then
       str = str .. "Failed\n"
   else
       str = str .. "In Progress\n"
   end
   
   -- second objective, controlled by flag 2
   str = str .. "Kill Hummer: "
   local val2 = trigger.misc.getUserFlag("2")
   --str = str .. " " .. val2 .. " " --debug line
   if val2 == 1 then
       str = str .. "Completed\n"
   elseif val2 > 1 then
       str = str .. "Failed\n"
   else
       str = str .. "In Progress\n"
   end
   
   trigger.action.outText(str, 30)
end

Look at the example mission to see how it's used. I put he code in a lua file in the example. To use in your own mission you need to edit relevant text fields and copy-paste more objective state pollers if necessary. If you need a coalition specific objectives and don't know how to edit this for that let me know and I make a version for that too.

test showObjectiveStates.miz

ShowObjectiveStates.lua

DCS Finland: Suomalainen DCS yhteisö -- Finnish DCS community

--------------------------------------------------

SF Squadron

Posted

very cool - i'll have a peek at this. Very much appreciated

ASUS Tuf Gaming Pro x570 / AMD Ryzen 7 5800X @ 3.8 / XFX Radeon 6900 XT / 64 GB DDR4 3200 

"This was not in the Manual I did not read", cried the Noob" - BMBM, WWIIOL

  • Recently Browsing   0 members

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