This script allows you to dynamically determine a weapon’s animation.
When using a skill or item, you can choose to show a “normal attack” animation. This will tell the engine to use the animation that you have selected for the weapon.
However, sometimes this is not enough. You might want a single weapon to show different animations depending on factors such as the current state or who the actor is.
By using dynamic weapon animations, you can use formulas to determine which animation will be played based on a variety of conditions.
Script: download here
In the script editor, place this script below Materials and above Main
To specify an animation formula for a weapon, note-tag it with
<animation formula> FORMULA </animation formula>
Where the formula is any valid formula that returns the ID of the animation
that you want to use.
The following formula variables are available:
a - the user p - game party t - game troop s - game switches v - game variables
To use the weapon’s animation, your skill or item must use “normal attack”
Remember that your formula must always return an ID. There is no default ID.