MV Weapon Sprite on Normal Attacks

Per this discussion, the weapon sprites only appear when you make an Attack (skill ID 1). One approach was suggested in this discussion.

My request is this: can someone help with a plugin such that, when an attack has the Normal Attack state, the skill executes the weapon motion with the sprite? Is this a feasible approach?
i think this is handled @
"Game_Actor.prototype.performAttack = function() {"
.. from the "rpg.objects" plugin

i once edited that function to show weapons on wield attacks, incase the other hand uses another weapon..

But i am not sure what kind of edit is needed to solve your request
Where is that plugin available?
Where is that plugin available?
you mean the rpg objects=?


thats one of the default plugins which can be found in any project
@dopan editing performAttack will not solve this, as the problem is that the function is not called in the first place. Personally my first try would be along the lines of the linked approach of @caethyril but instead of looking at the skill's notetags, look whether it has 'Normal Attack' as their animation.

Also I want to point out that calling a script file of the core engine a plugin is misleading.

That said, @pawsplay is it really necessary to create a new plugin? The threads you linked call out three already existing plugins that would also allow you to display the weapon with a skill.
Necessary is probably a strong word. I'd really like this to work, if it can be done simply. I'm still very much a beginner when it comes to the maker's code base. If it's not worth the effort, I can use one of the above approaches. I was just hoping it would take a few lines of code, and I thought it might be generally useful to others besides myself.

If it's not too much of a PITA, I would appreciate a little hand-holding from anyone who is willing to help.
As I said I would start with @caethyril 's approach, but replace the part that looks at the notetags. If I see this correctly in the core engine's code, then the 'normal attack' animation is marked by being an animation Id less than 0. So put together I would try:
JavaScript:
(function(alias) {
  Game_Action.prototype.isAttack = function() {
    return alias.apply(this, arguments) || this.item().animationId < 0;
  };
})(Game_Action.prototype.isAttack);
Though I didn't test that, so your mileage may vary.
No luck.
I just tested it and it seemed to work fine for me. Please follow standard plugin troubleshooting steps. (check whether it works in a blank project with no other plugins; check the console (F8) for messages; ensure that the plugin is installed and turned on start a new playtest without loading a save; etc)
Ok, my bad. I think there was a cached copy of the game, for some reason. I exited the DB, saved, and tried again and it works. This does indeed fix the case for "weapon skills" and cleave attacks and stuff.
However. This isn't completely the behavior I was looking for. One of the skills I was playing with was a Flame Arrow, which would have the bow motion but a fire animation. That's why I was hoping to key this off whether the attack does Normal Attack state, since that seems like the most general case of a Skill that uses a weapon.
Oh state, I misread. This keys of off the normal attack animation. But the approach would remain the same. We just need to look whether the normal attack state gets added. So something like this:
JavaScript:
(function(alias) {
  Game_Action.prototype.isAttack = function() {
    var doesAddNormalAttackState = false;
    for(let i=0; i<this.item().effects.length; i++)
        if(this.item().effects[i].code == 21 && this.item().effects[i].dataId == 0)
            doesAddNormalAttackState = true;
    return alias.apply(this, arguments) || doesAddNormalAttackState;
  };
})(Game_Action.prototype.isAttack);
Again untested, but from looking at the code, effect.code means adding a state and the state with id 0 is the normal attack state.
And it works, and it doesn't seem to have broken any other plugins. Thank you!

Original thread: https://forums.rpgmakerweb.com/threads/weapon-sprite-on-normal-attacks.143772/