MZ Plugin or script to change sv_actor sprite based on equipped weapon?

I'm sure this question has been asked before but I haven't been able to find an answer, so here goes:

Is there a plugin or script that would allow me to change an actor's sv battler sprite based on their currently equipped weapon? Like e.g. if an actor has different sprites for whether they're holding an iron sword or a steel sword, how would I get their sprite to change based entirely on whether they have an iron sword or a steel sword equipped?

I know you can do something similar via weapon animations, but my project doesn't have those - the weapons are part of the battler sprite, not a separate thing, and it's not really something I can change at this point.
Didn't this dudes equip plugin work on MZ?


Then just put a notetag on the equipment (change file name):
<Custom On Equip Eval>
user.setBattlerImage('Filename');
</Custom On Equip Eval>

If you can completely remove equipment you need to put a remove notetag too.
Ooh thanks, will have a look when I'm back at my PC
ok, just tried it out in-game and this is exactly what I was looking for. Thank you so much!

Original thread: https://forums.rpgmakerweb.com/threads/plugin-or-script-to-change-sv_actor-sprite-based-on-equipped-weapon.183440/