• 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.

E1

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.

E2

  • 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.

E3

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

E4

  • 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.

E5

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

E6

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.

E7

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.

E8

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

E9