Custom Code

Custom code allows you to inject custom JavaScript code into your strategy.



Add custom code

Add Custom Code panel

Add Custom Code panel


Use the following steps to add custom code:

  1. On the strategy tree, click +Add Experience > Add Custom Code panel opens.
  2. Enter a Code Block Name.
  3. Choose whether your custom code will replace the player:
    • Yes: The custom code will replace the player.
    • No: The custom code will execute before the player.
  4. In the JavaScript Code Editor field, enter the code to execute.
  5. Click Apply. The custom code appears on the decision tree.


Whatโ€™s Next