This script allows you to specify action speed formulas for your database objects.
An action speed formula allows you to use a formula to calculate a battler’s action speed. For example, suppose you had a “Haste” state that doubles your action speed.
In the default battle system, action speed determines who will act first. Battlers with higher action speeds can perform their actions before battlers with lower action speeds.
The default speed calculations considers three things:
- the battler’s agi, using the formula (agi + rand(5 + agi / 4))
- the skill/item’s invocation speed, if a skill/item is used
- any “atk speed” features, if the skill used is the “attack” skill
The formulas provided by this script first calculates the base speed from above and then passes it to custom formulas that you define.
Script: download here
In the script editor, place this script below Materials and above Main
To specify an action speed formula, note-tag an object with
<speed formula> FORMULA </speed formula>
Where the formula is any valid formula that evaluates to a number.
The following formula variables are supported:
speed - the current speed, after any modifiers a - the current battler p - game party t - game troop s - game switches v - game variables
The following database objects support speed formulas:
Actors, Classes, Items, Skills, Weapons, Armors, Enemies, States
To implement a “haste” state that doubles your action speed, you would notetag
the state with
<speed formula> speed * 2 </speed formula>