Macro


Description

This action permits you to define one or more macros. Macros are simply unique constant values - or expressions that evaluate to a unique constant value - which can then be used in a similar way to a regular constant. You can also use a function call in this this action to generate a single return value, in which case the macro will evaluate the function every time it is called. Note that macros are global in scope, and once declared they can be used by any instance, script or action block in your game, but they cannot be changed after being defined. Note that you can define additional macros in the same action by clicking the plus icon beside the action. For more information on macros, please see here.


Action Syntax:

Macro Syntax


Arguments:

Argument Description
Return The return value.


Example:

Macro Example

The above action will create three new macros called to generate new colour constants which can then be used in any other action in your game.