How to have multiple battler idle animations for one character?

Hello Everyone!

I’m using rpg maker MZ, and I have looking over internet and here, but could not find a means to have multiple idle animations for a single character.

The set up, the player is able to be in 4 different idle positions, standing (normal), crouching, hanging, and floating. These will change and rotate between them during the course of 1 battle.

Maybe I’m over complicating it. Could this be done using a custom animation plugin? Or is there a plug in that allows access to multiple character battler sheets that can be cycled through?

Any guidance to this request would be great!

Thank you.
You could use a script call to change the actor's SV Battler image file. I don't know what the conditions are for these changes, but that's all I can think of.

Code:
actor.setBattlerImage("filename");

where filename has no extension added, and actor is however you're getting a valid reference to that actor.

I can't be any more specific without knowing how/when the changes are occurring.
I’ll give it a try tomorrow. Hopefully that is all I need to do.

As always, thanks @ATT_Turan

And to be more specific, I am having different idle positions give various custom stat modifications and unlocking different moves using states and custom events. I have all of that working, but I don’t know a way for each of the positions to have their own idle animation. If this works, I’ll have to have that call at the start of an idle animation. Then after a follow up attack, a reset to the standard idle animation. I’ll experiment having the animation call on the skill or at the end of the custom events I’m using.

And if this works how I think it will, I’ll be able to have different attack animations for each idle positions, which was going to be the next headache I planned to tackle lol.
I tried it using a common event to do the script call while in battler. The SV did not update. I used:

2.setBattlerImage(‘Sharas_high_idle’);
$gamePlayer.refresh();

I get a script call error. I’m not surprised since I’m new to this.

To be more specific on it, the player will use the skill. A new battler sv file will load and hold the new idle or casting image until the next turn. Then Player will use an attack skill, the old battler sv file will load, and player will return to original idle.

I am using Visustella battler core if that matters for this. If it does, I’ll look into the battler core settings.


Thanks for any additional help given.
2.setBattlerImage(‘Sharas_high_idle’);
$gamePlayer.refresh();
Neither of those will do anything. Note in my original response how I said you needed to get a valid reference to the battler - "2" is a number, not a reference to any game object.

And the $gamePlayer doesn't exist in battle.

To be more specific on it, the player will use the skill. A new battler sv file will load and hold the new idle or casting image until the next turn.
So you use the Battle Core notetag
Code:
<JS Post-Apply>
user.setBattlerImage("Sharas_high_idle");
user.refresh()
</JS Post-Apply>

Then Player will use an attack skill, the old battler sv file will load, and player will return to original idle.
Then give your attack skill
Code:
<JS Post-Apply>
if (user._battlerName == "Sharas_high_idle")
{
    user.setBattlerImage("whateverYourOriginalFilenameIs");
    user.refresh();
}
</JS Post-Apply>
I thought the 2 was referencing the actor, but I see what you mean now.

I’ll try those out!

Thanks @ATT_Turan
I thought the 2 was referencing the actor, but I see what you mean now.
No, if you're typing code, 2 is just a number. You can get a reference to the actor in the list of actors via $gameActor, you could get a reference from the position in the party via $gameParty, a multitude of other ways - but in this case, the notetag provides the user variable for you.
Thanks for the great lesson! And it worked great.

Thank you so much!

Original thread: https://forums.rpgmakerweb.com/threads/how-to-have-multiple-battler-idle-animations-for-one-character.172809/