Jump to content

Recommended Posts

Posted

Hi all,

 

Im in front of an issue here with my mission.

 

I have a mission where i wan't to enable the client to choose her mission.

So it's look like this :

 

Time flag "1.10" Song to group "Client 1"

Unit in zone Message to group "Client 1"

Flag define value "1,2"

 

Flag is "1.2" Add Radio menu open a flight plan flag="10.1"

Unit in zone Client 1 Zone 1 Add Radio menu Open A/A mission flag="10.2"

Add Radio menu open A/G mission flag="10.3"

Add radio menu open MULTIROLE mission flag="10.4"

Add radio menu Mission Information flag="10.5"

 

Flag is "10.1" Song at group "Client 1"

Message at group "Choose the size of the flight plan"

Radio delete item "Open a flight plan"

Radio delete item "Open A/A mission"

Radio delete item "Open A/G mission"

Radio delete item "Open MULTIROLE mission"

Radio delete item "Mission Information"

Radio add item "Small flight plan (20min)"

Radio add item "Casual flight plan (40min)"

Radio add item "Long flight plan (80min)"

 

Flag is "11.1" Song at group "Client 1"

Message at group "There is no flight plan in this section"

Radio delete item "small flight plan (20min)"

Radio delete item "Casual flight plan (40min)"

Radio delete item "long flight plan (80min)"

 

How can i reload the flag "1.2" properly?

 

For the moment i can't find a way to reload the state of the "1.2" flag, the sim send me the message on the "1.2" flag but don't show me the radio menu option i set on it....

 

Any ideas?

 

I know it can be better to writte a script for this kind of features but i don't know how to do this, and programing is not the best thing i can do....

Posted

You might consider watching some of FlightControl's MOOSE videos, or taking a look at the CASCAP Infinity mission by Jinx which uses MiST's complex menu function.

 

If you want to stay in the vanilla GUI -

 

Make your client in zone check a continuous action at turns flag 1 on.

 

Make all other triggers switched conditions so they can be activated multiple times.

 

Add FLAG OFF (1)

followed by

FLAG INCREASE (1, 2) to reset the value of Flag 1 to 2 and retrigger the previous radio menu after something has been selected.

 

You could also add a "BACK" item to the menu which would reset flag values as well. I.E.

RADIO ITEM ADD ("Back", 3, 1) followed by another trigger

type:

3 SWITCHED CONDITION (Reset menus, NO EVENT)

conditions:

FLAG IS TRUE (3)

FLAG IS TRUE (10)

triggered actions:

FLAG OFF (3) --to reset the "back" flag so the menu item can be used repeatedly

FLAG OFF (10) -- to reset your menu items so flag 10 shows the proper value when selected

FLAG OFF (1) -- to reset to your 1st set of menus. If the client aircraft is still in the zone, the menus will be repopulated

 

 

 

As you can see, this is going to get complicated pretty fast the more layers you add to the menu.

 

With this many items in there you're going to be setting up a TON of triggers though.

Posted

hummmmm, yeah il see, so it's gonna be difficult in that way...

 

The problem is, I don't understeand lua coding and script... Can you show me an exemple with a script of what I'm searching to do?

Posted
;)

 

Can't understead nothing on how to use moose in editor.... Can't find documentation and explanation on how to build complexe radio menu

Posted (edited)

MOOSE:

https://github.com/FlightControl-Master/MOOSE/blob/master/Moose%20Development/Moose/Core/Menu.lua

 

https://flightcontrol-master.github.io/MOOSE_DOCS/Documentation/Menu.html

 

 

Here is a chunk of example MiST code, from the mission I recommended you download and view. I'm not writing your code for you, but that will give you a good idea of how to build menus, and submenus with script.

If you want to do the rest in the GUI, just make the selected menu set a user flag

 

function MA_buildMenu()

	_taskingsRootPath = missionCommands.addSubMenu('Tasking')
	
	_taskingsAirPath = missionCommands.addSubMenu('Air',_taskingsRootPath)
	missionCommands.addCommand('Request easy CAP tasking', _taskingsAirPath, MA_spawnFighter1)
	missionCommands.addCommand('Request hard CAP tasking', _taskingsAirPath, MA_spawnFighter2)
	
	_taskingsGroundPath = missionCommands.addSubMenu('Ground',_taskingsRootPath)
	missionCommands.addCommand('Request CAS tasking', _taskingsGroundPath, MA_createTask1)
	
	_respawnRootPath = missionCommands.addSubMenu('Respawn support aircraft & Ranges')
	missionCommands.addCommand('Respawn Darkstar (AWACS)', _respawnRootPath, MA_respawnDarkstar)
	missionCommands.addCommand('Spawn/Respawn MAGIC (JSTAR)', _respawnRootPath, MA_respawnEyeball)
	missionCommands.addCommand('Respawn Texaco (Boom type tanker)', _respawnRootPath, MA_respawnTexaco)
	missionCommands.addCommand('Respawn Arco (Funnel type Tanker)', _respawnRootPath, MA_respawnArco)
	missionCommands.addCommand('Respawn Shell (Funnel type Tanker)', _respawnRootPath, MA_respawnShell)
	missionCommands.addCommand('Respawn Kobuleti Range', _respawnRootPath, MA_repawnKobuletiRange)
	missionCommands.addCommand('Respawn Red naval force', _respawnRootPath, MA_repawnRednavalforce)

end

function MA_createTask1()

missionCommands.removeItem({'Tasking', 'Ground', 'Request CAS tasking'})
MA_out('Copy new tasking requested, stand by...',10)
local aoName = 'AO'
mist.scheduleFunction(MA_createTask2,{aoName},timer.getTime()+30 + mist.random(30))

Edited by feefifofum
  • Recently Browsing   0 members

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