Different animations for different armor

Hi everyone.

I'm using a script to change a character's sprite based on what armor they're wearing. That works great, but I'm running into another problem. When my characters equip a weapon, for example a pistol, a skill type named Pistol becomes available for that character. Now when we choose that option during battle (default battle system) we see all the skills the character can use that involve a pistol. That works great, except with the different armors/outfits. My skill animations involve the character sprite appearing and firing a shot, how can I make the skill have a different animation depending on the character's armor?
Please lock this topic as I've worked on a solution to the problem.

Original thread: https://forums.rpgmakerweb.com/threads/different-animations-for-different-armor.36476/