You can create new missions easily, and also make them be played in a certain order creating a campaign.
When you want to start creating your very own missions, you should first create the base missions, i.e. basic script files. You can of course use "mymission1" but this is not recommended, especially if you plan to create multiple missions.
Creating new missions is done with the Mission Creator, "missioncreator.html" in the Shadowgrounds folder. Open the html in Internet Explorer. Please note that Internet Explorer is the only browser that works with the Mission Creator because of the required Active X scripts. You're presented with a simple page.
You will most likely be notified of the ActiveX requirements by a small pop-up, so click the prompt and "Allow Blocked Content". This should only allow the content temporarily.
First, browse for the Shadowgrounds executable (Shadowgrounds.exe) in your Shadowgrounds directory. Another ActiveX notification may pop up, click Ok. You may also get a message saying that no folder called \Data\Missions is found - this is perfectly normal. Now, select your mod from the drop-down menu. The page should refresh to show all the missions currently in your mod. If you haven't created any new missions yet, the list should only show "mymission1".
To create a new mission base, simply click "Create new", and a pop-up will ask for the mission name. Please note that you should only use lowercase letters and no spaces. So "modmission1" is ok but "My Mod Mission 1" is not ok. (This will not affect the way gamers will eventually see your mod and mission names, as all those texts are located elsewhere.)
When you have chosen a name for the mission, the mission base will be created. You should get "1 file(s) copied successfully" messages. If there are some errors, then double-check that you have followed all the instructions. For this example, we used "testmission" as the name.
If you don't have Internet Explorer or you have crippled it somehow, you can run the createmission.bat located in the \tools directory in the Shadowgrounds folder. This is only recommended for expert users. The proper commands are shown when you run the bat.
Creating a campaign (two or more missions played after one another) is very easy.
First, you should create all the missions you want with the Mission Creator tool. Then use the Level Editor to create the actual missions, and export them to the newly-created folders. (If you're new to exporting at this point, don't worry - it will be explained later in the documentation.)
Let's say you've created two missions called "mytestmission1" and "mytestmission2" and you want to play them in successive order, and that "mytestmission1" is the first mission when the user starts a new game.
When the user starts a new game, the game will check a file called newgame.dhs
and find the correct line to know which mission to load first. So, go to Shadowgrounds\Mods\yourmod\Data\Missions\ and open the file. Then find the lines (near the top of the file):
Simply change the LoadMissionFile line to match the mission dhm that you want to be loaded first. Also remember to set the MissionId correctly. So if we use "mytestmission1" as the first mission, you would have lines like these:
After the player completes a mission, the game will check a .dhm file in each mission's base directory, e.g. Shadowrounds\Mods\yourmod\Data\Missions\mytestmission1\mytestmission1.dhm .So go to that directory and edit the mytestmission1.dhm file (near the end of the file):
Change this to whatever your next mission is - in our example it's mytestmission2:
That's it. Simply repeat the process for all the missions that you want to have in your campaign, and you're all set.