Custom Code
Custom code allows you to inject custom JavaScript code into your strategy.
Add custom code
![Add Custom Code panel](https://cdn.statically.io/img/files.readme.io/f364641-strategy-rules-custom-code.png)
Add Custom Code panel
Use the following steps to add custom code:
- On the strategy tree, click +Add Experience > Add Custom Code panel opens.
- Enter a Code Block Name.
- 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.
- In the JavaScript Code Editor field, enter the code to execute.
- Click Apply. The custom code appears on the decision tree.
Updated about 1 month ago