FOR_EACH_ALLY Element


FOR_EACH_ALLY (a child element of STEP) is a FOR-loop shortcut that allows you to update every player character that you have defined. Use the name Target to access the character inside the loop.

Supported Values

FOR_EACH_ALLY supports the use of its own child elements as values. For a list of supported child elements please refer to the tree menu on the left.

Examples

In this example, a for loop is created to add 100 Hit Points (HP) to each character that you have defined. Note that the character is accessed by using the name Target in each loop.

  • <STEP>
    • ......
    • <FOR_EACH_ALLY>
      • <CHARACTER>
        • <NAME>Target</NAME>
        • <HP>
          • <ADD_ITSELF>100</ADD_ITSELF>
        • </HP>
      • </CHARACTER>
    • </FOR_EACH_ALLY>
    • ......
  • </STEP>