Script and include files

The WME scripts are simple text files which use the “.script” extension (“.dcs” extension is also recognized by the tools). You can include other external script files into your script using the #include directive. It’s meant only for including constant definitions or shared variables into multiple scripts, it’s not recommended to include files containing large pieces of code, because it’s hard to debug and maintain. The include files should use the “.inc” extension (“inc” for include). Whenever you use the #include directive, you must specify a full path to the include file (relative to your package’s root folder).

Example:

#include "scripts\base.inc"


Note

The WME script compiler is case sensitive, i.e. the names "MyVariable", "Myvariable", "myVariable" or "MyVaRiAbLe" are NOT the same.