define name;

define name, item;

The second line allows you to rename names and parameters in the script file; the first one is for including or excluding lines depending on conditions (see ifdef). Every time the name appears in the script below the DEFINE, it will be replaced by the replacement, which can be another name, or a number, or anything. Renaming makes functions more 'readable', for instance by giving the entities' 100 general purpose SKILL parameters some meaningful names.



define MyNumber,-123;
define Damage,skill3;
define spiel;
action kill()
{ result = my.Damage; my.Damage = MyNumber;

See also:

undef, ifdef, ifndef, ifelse, endif, ► latest version online