diff --git a/RotorOps:-Mission-Creator-Guide.md b/RotorOps:-Mission-Creator-Guide.md index da4c17e..9ecde6d 100644 --- a/RotorOps:-Mission-Creator-Guide.md +++ b/RotorOps:-Mission-Creator-Guide.md @@ -1,8 +1,26 @@ -# Get started with RotorOps mission design -The easiest way to get started is to download one of the demo missions. Open a template in the mission editor and you can see how everything works and start creating your mission right away. Important bits are the triggers, trigger zones, and advanced waypoint actions (for AI troop drops). These missions are much more simple than you might expect, and that's the goal of this project. +# RotorOps: Conflict mission design the easy way! +The easiest way to get started is to download one of the demo missions. Open a template in the mission editor and you can see how everything works and start creating your mission right away. Important bits are the triggers, trigger zones, and advanced waypoint actions (for AI troop drops). These missions are much more simple than you might expect, and that's the goal of this project! -## Conflict Setup Functions -Within the mission templates, you will find a trigger function with a DO SCRIPT similar to: +# Advanced Usagefor RotorOps: Conflict +If you'd like to set up a Conflict mission from scratch or add to your existing missions, you'll need to: +1) Download this repository: https://github.com/spencershepard/RotorOps/archive/refs/heads/main.zip +2) Create a new mission with at least two trigger zones. Call one 'STAGING' and the other 'ALPHA'. +3) Put attacking ground units in the staging zone, and defending units in the coflict zones (ie 'ALPHA', 'BRAVO', etc) +2) Add 'SOUND TO COUNTRY' actions to load all of the sound effect files from the 'sounds/embedded/' folder. +3) Add 'DO SCRIPT FILE' trigger actions to load MIST, Splash Damage 2, CTLD, and RotorOps scripts. +4) Add 'DO SCRIPT' trigger action to initiate the RotorOps: Conflict game mode with the trigger zones you created. + +## Sound file setup +Add 'SOUND TO COUNTRY' actions for a trigger action as in the image below. Add every sound file from the sounds/embedded folder. This is a bit of a hacky way to get the files to embed in the .miz file so that our script can use them. + +![](https://github.com/spencershepard/RotorOps/blob/develop/documentation/images/trigger%20sounds.PNG?raw=true) + +## Script setup +Add a 'DO SCRIPT FILE' for each of the script files as in the image below. + +![](https://github.com/spencershepard/RotorOps/blob/develop/documentation/images/trigger%20load.PNG?raw=true) + +In the same trigger, you can add another 'DO SCRIPT' action to paste the following code: ``` RotorOps.stagingZone('STAGING') RotorOps.addZone('ALPHA', 101) @@ -39,35 +57,5 @@ RotorOps.deployTroops(8, this_group) ``` -This is handy to add friendly or enemy reinforcements in combination with mission triggers. Mission templates will include at least one example of this usage. If you deploy troops into a Conflict Zone using this method, they will be controlled with the RotorOps AI. +This is handy to add friendly or enemy reinforcements in combination with mission triggers. Demo missions will include at least one example of this usage. If you deploy troops into a Conflict Zone using this method, they will be controlled with the RotorOps AI. - -## External AI Tasks -The Conflict game type sets AI tasks automatically for units inside of the staging area or Conflict Zones. You can use these snippets for groups outside of these zones or for your missions that are not running a Conflict game. Again, **you probably don't need these**. - -### Set infantry or ground vehicles to patrol an area -Copy and paste this into a Run Script command (advanced waypoint actions) for a group to wander an area - -``` -local this_group = ... -RotorOps.aiTask(this_group, "patrol") -``` - - -### Set infantry or ground vehicles to find enemies in a radius -Copy and paste this into a Run Script command (advanced waypoint actions) for a group to seek out enemies in an area - -``` -local this_group = ... -RotorOps.aiTask(this_group, "aggressive") -``` - - -### Set infantry or ground vehicles to find enemies in a zone -Copy and paste this into a Run Script command (advanced waypoint actions) for a group to seek out enemies in a trigger zone - -``` -local this_group = ... -local zone_name = "changeme" --add the name of your zone -RotorOps.aiTask(this_group, "aggressive", zone_name) -``` \ No newline at end of file