Skill Command Editing
Skill commands are the basic elements used to implement skill effects in battle. When a unit casts a skill, every skill command in that skill is added to the battle skill command queue and executed in order according to its runtime context.
In the skill table, command entries are separated by "\n". Each entry consists of delay*[condition expression (optional)]#command content. Example:
0*condition expression 1#skill command 1 0.2#skill command 2 ...
When the condition expression is not empty, the command runs only if the condition evaluates to true.
Condition blocks can use built-in commands for special behavior such as repetition:
*REPEAT_START:9 line 1 line 2 [@0.01*[%rpt_index%]@]#skill command ... line N *REPEAT_END
Repeats all lines between REPEAT_START and REPEAT_END 9 times. During the loop, [%rpt_index%] returns the current loop index.
*SELECT_UNITS:[target selector condition expression] line 1 line 2 ... line N *SELECT_END
Runs all commands between SELECT_UNITS and SELECT_END for every unit matching the selector after SELECT_UNITS:, using that unit as the caster object.