This script allows you to assign custom conditions to skill or item effects.
Effects are only executed if they meet the conditions.
Conditions are specified as a formula, so you can create any condition that you can think of as long as you can write it.
Script: download here
Place this script below Materials and above Main
To specify a condition for an effect, note-tag skills or items with
<effect condition: ID> FORMULA </effect condition>
Where the ID is the ID of the effect that you want to assign the condition to.
You can determine an effect’s ID by counting their position on the list,
so the first effect has ID 1, second effect has ID 2, and so on.
As a shortcut, you can assign a condition to multiple effects by specifying
multiple ID’s separated by commas like this
<effect condition: 1,2,3> FORMULA </effect condition>
The formula can be anything that returns true or false.
The following formula variables are available
a - user of the action b - target of the action i - item used t - game troop p - game party s - game switches v - game variables
The formula is evaluated within the context of the effect, so any of the
effect’s attributes can be referenced as well (eg: data_id, code)
Common events are not subject to conditions, because they are handled differently. If you require conditions for your common events, you can use Formula Effects and then call the common event using that