How to make a skill effect's depend on equipment?

Here's the issue. I have a skill called "Chi Force Base". It's the skill in its normal state, with no equipment, and the actor knows it by instinct.


When he equips a weapon, "Chi Force Base" is supposed to be replaced by "Chi Force Offensive", a variation of the first skill which has new bonuses. "Chi Force Base" should dissappear from the skill list for as long as the weapon is equipped.


But, if instead of a weapon, he equips armor, "Chi Force Base" should be replaced by "Chi Force Defensive", also a variation of the first one, having its own bonuses too. "Chi Force Base" should dissappear from the skill list for as long as the armor is equipped.


Now: if the actor equips both the weapon AND the armor, "Chi Force Base" is supposed to be replaced by "Chi Force Omega", which has the bonuses that both the weapon and armor provide.


So, essentially, it's four different skills, with one being the base and the rest, variations, learned by equipping equipment: "Chi Force Base" when nothing is equipped, "Chi Force Offensive" when a weapon is equipped but not armor, "Chi Force Defensive" when armor is equipped but not a weapon, and "Chi Force Omega" when both a weapon and armor are equipped.


Anyone knows how to do this? I'd appreciate any help.
My bad this was in the VX Ace section, idk ruby. Sorry
The easiest way (probably) would be using a troop event during turn 0 to check if actor has weapon and/or armor equipped then add/remove skills based on the result. Since you can copy/paste events in the troops tab it is really easy to check it at the beginning of every battle.


As Shaz said in this thread (scroll down because the 1st answer contains an error) you can check if a weapon or an armor is equipped using the reletive slot id (0 for the 1st slot).

Original thread: https://forums.rpgmakerweb.com/threads/how-to-make-a-skill-effects-depend-on-equipment.70796/