This script allows you to determine an actor’s attack skill based on different properties such as the actor’s equips, currently applied states, class, or the actor itself.
You can dynamically change the attack skill during battle by simply changing one of these properties.
By default, the attack command executes the “attack” skill, which is skill 1 in the skills database.
Place this script below Command Manager and above Main
Note-tag actors, classes, weapons, armors, or states with
<attack skill: ID PRIORITY>
For some skill ID.
The priority is used if you have multiple states or equips with a
attack skill ID. the highest priority is taken in this case, and if multiple
attack skill ID’s have equal priority, then whichever appears first is taken.
If you would like to use a formula for the ID, you will need to use the
<attack skill> id: FORMULA priority: x </attack skill> You can use any valid formula that returns a number. The following formula variables are available:
a - the current battler you are inputting commands for t - game troop p - game party v - game variables s - game switches
If your actor does not have a custom attack skill ID, then it defaults to
the actor’s attack skill. If the actor does not have a custom attack skill,
then it defaults to the class attack skill. Finally, it will default to skill
1 if no custom attack skills are defined.