(minus) This is a very old map editor. Use the new map editor instead: FlaME

EditWorld - Map Scripts

Tutorial on adding custom scripts to your maps using EditWorld.

 

Custom Scripts

For custom scripts you will need to review the Script Language reference file provided by pumpkin in your multiplay\skirmish directory. This directory also includes all of the AI files used for kirmish games as well. If, after reading the scriptlanguage file you decide NOT to do any scripting no problem, you can still create other custom items for your map.

Creating custom scripts

So you opted to create a map with custom scripts. If you are creating a custom AI for your map you will need to use skirmishAI 0-7 not player 0-7 as is in the multiplay\skirmish directory. Im not exactly sure why this is.. mostly a game issue I believe. Its best to write down what you want fromthe script before you try coding it. Also of importance.. make sure that when you start writing your script that you use a text editor such as notepad or editpad. You will also need to save the files using the slo or vlo extensions.

Coding scripts

My advice here, use wdg explorer to open up tha main warzone.wdg file and read through some of the scripts to get an idea of how they work and what they do.

Adding scripts to you map

As you saw in our example, there is a wrf file that some wdg files are compiled with (pretty much all of em)

The wrf files basicaly tell makewdg what to add to the files. Which text files and slo/vlo file to include. It is very important that you use the correct directory paths when building these files. If they are not set up correctly it will screw up everything your trying to do.

/*
* Cam3-4.wrf
*
*/

/* Directory for Proximity messages and mission briefs */
directory"messages"

fileSMSG"brief3-4.txt"
fileSMSG"prox3-4.txt"

/* Directory for uncompiled script files */
directory "script\text"

fileSCRIPT"setdisk.slo"
fileSCRIPT"genexp.slo"
fileSCRIPT"VTOLS2.slo"
fileSCRIPT"cam3-4X.slo"
fileSCRIPT"cam3daynight.slo"

/* Directory for compiled script files*/
directory "script\binary"

/* Directory for script value files*/
directory "script\data"
file SCRIPTVAL "cam3-4.vlo"
file SCRIPTVAL "disk1.vlo"
file SCRIPTVAL "VTOLS3-4.vlo"
file SCRIPTVAL "cam3-4X.vlo"
file SCRIPTVAL "cam3mkday.vlo"

I couldnt import this with spaces.. so i have included a wrf file to go along with this. The hardest part will really be to write the custom scripts. Well thats all on the map end. If your lucky ill write a file on scriptin.