I need to dynamically change skill's played animation if a certain switch is on
Using Yanfly Battle Engine, but I only need it for actors (really don't want to create dozens of identical classes with identical skills just to have different animation for it)
You can use action sequences and ifs to decide which animation to play, and let the animation on the skill definition blank.
I think he just means: have a skill do nothing but run a common event, where it will force different skills with different animations based on conditions
Still tedious
You may have to request someone to write a script for this. I had a thought but there is no script for it either...
Have multiple skills that are the same and when the switch is on, the actor losses one skill and gains another. Both skills would be the same but different animations.
Animations are unique for all actors, so that's fine
Does that change it permanently though? So, for instance, I call this script before battle, and for the whole battle that skill will play new animation?
Yes. Not only to the end of the battle, but to the end of the game. Unless you change it again to the original animation id.
Edit: Ah, problem. It doesn't stay after saving and closing the game, then opening and loading new game.
Well, if animation changes are tied to switches, and I refresh all the changes before starting any battle via common event (there's no random encounters) that shouldn't be an issue.
Thank you!
In the script call i provided earlier, the animation change is not tied to switch, but to the script call alone.
There is a way to preserve your changes in the save file, but that will inject all the skills data into the save file (around 37 kb with the default skill database).
What I meant is: run a conditional branch with switches, and then call script if switch is on, that's all. Before every battle. Common event.
Makes my life easier than if I was running a common event each time a skill was used
That's the same thing really. Doesn't warrant a script if it's easily done with a common event with the same results imo. I already have way too much scripts.