This script allows you to execute arbitrary formulas as an effect.
By default, you have a damage formula that allows you to execute scripts within the context of a damage formula object.
You can now move any non-damage-related logic from the damage formula into a formula effect.
Effect formulas are executed within the context of the interpreter, which is more useful since many scripts add convenience methods to the interpreter (rather than the damage formula).
You have access to a number of references such as the user, the target, and the user’s current action among other standard formula variables.
This is a stand-alone script and does not rely on my Effects Manager. As a result, it does not have all of the functionality that the Effects Manager provides.
Script: download here
In the script editor, place this script below Materials and above Main
To create a formula effect, note-tag your item or skill with
<formula effect> FORMULA </formula effect>
Where the formula can be any valid formula.
The following formula variables are available
a - user b - target c - user's action (Game_Action object) t - current troop p - current party s - game switches v - game variables
You can access the skill or item that the user is currently using via