This script allows you to define multiple custom action conditions on top of the conditions provided by the database.
The database does not allow you to set multiple conditions for a single action. This script addresses this issue by allowing you to create multiple conditions.
In order to provide flexible conditions for game developers, custom action conditions are provided as formulas, allowing you to condition your actions on anything you can imagine.
Script: download here
In the script editor, place this script below Materials and above Main
When setting up the enemy in the database, you can set up the actions that the
enemy can use. Each action has an ID: the first action on the list is ID 1,
the second action on the list is ID 2.
To add an action condition to a particular action, use the note-tag
<action condition: ID> FORMULA </action condition>
Where the ID is the action ID, and the FORMULA is any valid formula that
returns true or false. All conditions must be met in order for the action to
The following formula variables are available:
a - the enemy p - game party t - game troop s - game switches v - game variables