• Reference
  • ECA
  • Parameter Settings

Parameter Settings

Parameters are content that needs to be assigned by developers in Trigger statements. Some statements carry parameters in default, which can also be modified. Unassigned parameters are displayed in red, assigned parameters are displayed in green, and additional options are displayed in blue. Text information indicates the meaning of the current Trigger statement. Note that you need to specify all parameters in the statement before using it.


Assignment Type

If you want to assign a value to a parameter or change its current value, click the target parameter to display the editing page. Based on the types of parameters, the editor provides four assignment types for parameters: Preset/Value, Variable, Function, and General.

  • Preset: When the parameter type is objects that can be placed in the scene, for example, unit, decoration, object, particle, and destructible, the objects can be directly selected as the parameter.


  • Value: You can directly assign a fixed number, text, or Boolean value (the value can only be True or False) to a parameter. The value is valid for parameters of the following types: integer, real number, string, and Boolean value.


  • Variable: Used to store or record values, parameters, and results.


  • Function: A function is a set of officially packaged statements that can directly provide some special parameters. Function statements are essentially similar to Trigger statements. Therefore, many function statements also require parameters to be specified.


  • General: Used to set self-defining values and call the Table Editor.


Parameter Reuse and Variable Conversion

Right-click a parameter or 【】 outside a parameter to copy or paste the parameter. When you select Copy, the value and structure of the whole parameter are assigned to the clipboard so that developers can paste them to other parameters of the same type.


When you click Convert to Variable, a variable assignment statement will be created before the current statement. You can create a variable and assign it to the selected parameter or parameter group.


After conversion to a variable, you can click Cancel Variable Conversion to restore to the previous statement.