Animations in battle

How do you get common events to play animations in battle? I can designate the player or an event for an animation using a common event but that doesn't do much in battle. To elaborate:

Screenshot 2024-05-07 at 17.16.57.png

I have this little blue soul thing and it has an attack that removes it from combat when the attack kills something and summons another undead actor. (a skeleton) I have its ability using this script at the moment, but does anyone know how I can make the skeleton enter more dramatically, I wanted to use Light Pillar 1 maybe?

Screenshot 2024-05-07 at 17.17.05.png
You're using the wrong command.

You're clicking the Show Animation command under Character, and characters only exist on the map.

If you go to the third tab, under Battle, there's a Show Battle Animation command that allows you to target a specific enemy in the troop.

(also, nothing you posted is a script. I only see event commands. Script refers to JavaScript, the engine's programming language)
That's excellent as far as some other ideas go, but ideally what I want is to target the actor on the player side? So that when the soul actor leaves and the skeleton actor enters it doesn't look so clunky.

Sorry, when I said script I meant common event.

Cheers as always.
Then you probably want to use something like Yanfly's Buffs & States Core along with Auto Passive States that plays an animation on the actor when they kill something.

Since this seems to be asking about the same character/skill/situation as your other thread, it might be more useful in the future to put all questions pertaining to one thing in one thread 😉

I already gave you the code to do things when the actor kills something in that other thread, so you'd just add to it the script call for an animation:
Give your necromancer-or-whatever a passive state that has the notetag:
Code:
<Custom Conclude Effect>
if (this.isDamage() && target.isDead())
{
    user.startAnimation(69);
    $gameParty.removeActor(user.actorId());
}
</Custom Conclude Effect>
where 69 is the ID of the animation.
Then you probably want to use something like Yanfly's Buffs & States Core along with Auto Passive States that plays an animation on the actor when they kill something.

Since this seems to be asking about the same character/skill/situation as your other thread, it might be more useful in the future to put all questions pertaining to one thing in one thread 😉

I already gave you the code to do things when the actor kills something in that other thread, so you'd just add to it the script call for an animation:

where 69 is the ID of the animation.
Thanks a lot. I was hoping there was a way to do it without a plugin as I'm trying to prove someone on Reddit wrong by using only the basic assets and those found on here to make a decent classic RPG. You've probably figured out from my other posts that I'm as tech savvy as a brick.

This looks great though, I will give it a whirl.

Apologies for posting twice, I guess they were two separate issues (one about actors, one about animations) and I was posting while testing.

Will think things through a bit next time but your help has been extremely valuable.
I'm trying to prove someone on Reddit wrong by using only the basic assets and those found on here to make a decent classic RPG.
I'm not going to insert myself into someone else's online argument, but that seems like a pretty silly claim; going back to the original RPG Maker versions, plenty of "decent classic RPGs" have been made before the engines could even accept plugins.

Anyone who says you can't make that is clearly ignorant of what you can do in RPG Maker.

At the same, having a very specific thing you want to do (that I've never seen in any classic RPG) is not necessarily going to be covered by vanilla MV's functionality. So if you have some no-plugin challenge going on...just don't do some specific thing.

As I mentioned above, you can hack your way through this by attaching a common event to every skill this character can use that uses script calls within the event to check and do things, but aside from the complexity of that you run into UI issues where common events resolve after a skill has completed, as opposed to the notetags you can insert at any time.

Original thread: https://forums.rpgmakerweb.com/threads/animations-in-battle.168443/