RPG Maker MV - Change Character sprite on Map when equipping a specific weapon

I was just wondering is there a way I can get the game to change my main character to a different sprite when I change weapon?
I made a sprite here for my character's main weapon, I haven't made another weapon sprite yet. I want the game to change it to this one if I re-equipped the red sword. Anyone know a possible way?
Guruman has a script that does this:


The thing to watch out for is either to add a lot of conditional branches or limit the equipment to the main character only that makes the changes.
you have SRD_DynamicActors

Original thread: https://forums.rpgmakerweb.com/threads/rpg-maker-mv-change-character-sprite-on-map-when-equipping-a-specific-weapon.122515/