Weapon Animation Using a Skill

I searched the forums, and the answer still isn't clear to me. If a character uses a Skill, is there some way to get the weapon animation to display? I.e if i define a Super Slash, in skill slot 25, can I get the sword to appear when the skill is used?

Or does this require a plugin?

I've played with the settings, even on a clean, unmodified game. I've tried various combinations of settings on the skills, and if there is a way to get this to work, I haven't been able to figure it out.
As far as I know this isn't possible in the base engine. You will need a plugin. I personally use Yanfly's Action Sequences for that, though I don't know if there are other plugins that could accomplish the same.
Victor's Battle Motions can accomplish the same thing as well.
As far as I know this isn't possible in the base engine.
wrong, it is just a bit more complex to setup.

@pawsplay
there is a setting "normal animation" for your skill animation. That is short for "Normal Attack Animation".

when that is selected, the engine looks for the equipped weapon and plays the animation assigned to that weapon type in the system tab.
However there is a second condition: the skill type must not be set as SV Magic, because in that case the normal attack animation is also ignored.
wrong, it is just a bit more complex to setup.

@pawsplay
there is a setting "normal animation" for your skill animation. That is short for "Normal Attack Animation".

when that is selected, the engine looks for the equipped weapon and plays the animation assigned to that weapon type in the system tab.
However there is a second condition: the skill type must not be set as SV Magic, because in that case the normal attack animation is also ignored.

As far as I can tell, that just affects the animation on the target.
@Andar you are technically correct (the best kind of correct 😉), but I don't think that is what @pawsplay actually wants. If you select "normal animation" the animation shown will depend on the weapon equipped.
can I get the sword to appear when the skill is used?
However this makes me think that they actually want to show the attack MOTION in addition to the ANIMATION depending on the weapon. Even though they do only talk about animation.
Yes, I was using animation in the general sense, not in the sense of the Animations tab in the DB. I want the sprite for the weapon to appear, as it does when you make a normal attack.
as it does when you make a normal attack.
that is what I assumed.

the critical question is something else:
do you want that sword to appear no matter which weapon is equipped, or do you want the equipped weapon's sprite to appear?

My description above tells you how to make the sprite of the equipped weapon appear - because that is what the engine supports by default.

if you want the sword sprite to appear while a bow is equipped or something like that, that is completely different.
That's what I would expect, Andar, but the Bullseye Skill I posted above doesn't do this. And on a clean, new project with no plugins, similar skills seem to have the same deficit.
And on a clean, new project with no plugins, similar skills seem to have the same deficit.
then the other settings required are not correct - I did mention the system tab after all.

when normal attack is selected, the first step of the engine is to look for the weapon type of the equipped weapon. In the case of the skill above that would be a bow, because of the skill requirement only to be eecuted with bow equipped.

the next step is the SV attack motion setting on the system tab. That is where both the motion (from the Battlersheet) and the weapon sprite is selected. In a default project this should be missile and bow, but if it is missing or has some other things set that will cause problems or redirects.

and the third point is also on the database system tab: [SV] Magic. If the skill type for the skill is set there, the entire weapon sequence will also be cancelled. In a default project "special" should not be listed there, but again that might have been changed.

That is a lot of different settings that all have to fit together for the weapon sprite to appear correctly, which is why I said the default engine way is rather complex.
I think you may be incorrect.

I know the attack animation is set correctly because it works for a normal attack. The skill is a Special skill, and special is not included in the SV Magic Skills. Perhaps you can try it and see if you can get a Skill to display the weapon.
@Andar this is to the extent of my knowledge factually incorrect. I am always eager to learn new things about the engine, so I tried your approach and checked and double-checked, that I followed all of your steps. But the weapon sprite did not show up.
This is when I started to look at the engine's code.
Sprite_Actor.updateMotion() always calls Sprite_Actor.setupWeaponAnimation().
However this function only executes code if Sprite_Actor._actor.isWeaponAnimationRequested() returns true.
Game_Battler.isWeaponAnimationRequested() returns true, if Game_Battler._weaponImageId is greater than 0.
(If it is and Sprite_Actor.setupWeaponAnimation() executes its code, Game_Battler._weaponImageId will be reset to 0 via Game_Battler.clearWeaponAnimation() so it doesn't influence other skills/the animation doesn't get set up multiple times.)
So when is Game_Battler._weaponImageId greater than 0? The only place it gets set to anything else is in Game_Actor.performAttack() via the Game_Battler.startWeaponAnimation() function.
So when does Game_Actor.performAttack() get called? In two places actually, namely Game_Actor.performAction(action) and Game_Actor.performCounter(). For this analysis obviously Game_Actor.performAction(action) seems to be the relevant function.
However the function Game_Actor.performAction(action) only calls Game_Actor.performAttack() if action.isAttack() returns true.
Game_Action.isAttack() returns true, if the skill of this action is equal to the skill with the ID of Game_Action.subject().attackSkillId().
And Game_BattlerBase.attackSkillId() finally is hardcoded to return 1.

In conclusion: the base engine is programmed in a way that the weapon sprite will only show up if either a counter or the skill with ID 1 is performed. This can not be changed through settings as you described, but requires a plugin.

Of course it is always possible that I am mistaken, in which case feel free to prove me otherwise.

EDIT: fixed typo
In that case I think one of the version updates changed this.

It worked the way I described early after MV was released, but due to health reasons I haven't done much with MV or MZ in the last several years.

And the analysis of the code - really sounds like it was intended like I described (there would be no need for the "normal attack" setting in animation if that was hardcoded to skill ID #1, and same goes for a number of other traits involving normal attack), but changed for some reason in a later version.
What is really frustrating is that when I use the Weapon Skill plugin, it works beautifully with whatever I set as the replacement Attack. But then I have to jump through some hoops to get this very basic effect with a Skill.

EDIT: As the answer was pretty definitive, I have created a request thread for a plugin with the desired behavior, here.
Victor's Battle Motions can accomplish the same thing as well.
How i can set it up to do both animations ?

Joozes, please refrain from necro-posting in a thread. Necro-posting is posting in a thread that has not had posting activity in over 30 days. You can review our forum rules here. Thank you.


Please make a new thread instead.

Original thread: https://forums.rpgmakerweb.com/threads/weapon-animation-using-a-skill.143759/