Execute Code


This action simply adds a code editor block into the DnD™ list where you can add any valid code that you require for the object. Note that all the code in the action will be run before the next action in the list is run. To make it easier to track what these actions do you can name them by using the JSDoc @description identifier, as shown in the image below: JSDoc Action Description

Action Syntax:

Execute Code Syntax




Execute Code Example
The above action block code creates a couple of global scope variables to create an MP grid and a path.