Difference between revisions of "Directives"

From 3DGE Wiki
Jump to: navigation, search
(Directives)
 
 
Line 5: Line 5:
  
 
==List of commands:==
 
==List of commands:==
[[#CLEAR_ALL]]
+
Note that the # character is not included here because of Wiki formatting rules!
 +
 
 +
[[CLEAR_ALL]]
 
* Clears all previous scripts that might mess up the current one.
 
* Clears all previous scripts that might mess up the current one.
[[#VERSION]]
+
[[VERSION]]
 
* The version of EDGE that the RTS is for, e.g. "#VERSION 1.29".
 
* The version of EDGE that the RTS is for, e.g. "#VERSION 1.29".
[[#DEFINE]]
+
[[DEFINE]]
 
* This is used to define values to use globally in your script.
 
* This is used to define values to use globally in your script.

Latest revision as of 16:08, 8 June 2015

Directives

Directives are lines which begin with a '#' character, immediately followed by the directive name. These are used to specify something very special about the script, e.g. the 3DGE version which the script needs.

Directives should be placed at the beginning of your scripts, before everything else (e.g. start_map). It is OK though to have comments before the directives.

List of commands:

Note that the # character is not included here because of Wiki formatting rules!

CLEAR_ALL

  • Clears all previous scripts that might mess up the current one.

VERSION

  • The version of EDGE that the RTS is for, e.g. "#VERSION 1.29".

DEFINE

  • This is used to define values to use globally in your script.