Loading Scripts

Let's say you have written your RTS script (perhaps the example given at the bottom of this page), and are ready to try it out. But how?? There are a number of different ways to load it into EDGE:
  1. Run EDGE with the command line option: -script <Filename>
  2. Drag'n'drop the script file, which must have the ".scr" extension, onto the EDGE binary.
  3. The script can be inserted into a WAD file, using "RSCRIPT" as the lump name. You need a WAD manager program to do this, for example: XWE or SlumpEd.

Script Example:

This simple example will show a tip message on the screen after you kill all the IMPs in MAP01 of DOOM 2:

START_MAP map01
  RADIUS_TRIGGER 0 0 -1
    ON_DEATH imp
    TIP "All imps are dead!" 5
  END_RADIUS_TRIGGER
END_MAP