Classes advantages/disadvantages at battle

Hi guys!

I use RPG Maker MV and I'm having a question about a mechanics of advantages / disadvantages of classes in battle.

In my game there are 6 classes, of which 5 have "interaction" with each other. For example: The "Tactical" class has an advantage against the "Sniper" class, but it has a disadvantage against "Stealth". Therefore, Tactical heroes deal double damage to "Sniper", but cause damage by half in "Stealth".

I was able to make this work by adding the classes as Elements, adding these elements to the (normal) attack of each class, and applying those advantages / disadvantages calculations to the strokes of each class. The problem is when a character (for example, a Sniper) uses a skill of another element (for example, a fire attack), because then the damage happens to be that element (Fire) and not the class element (Sniper ) - which makes the advantages and disadvantages of their classes do not apply to the attack.

Is there any way for me to add these elements, or to make these class advantages and disadvantages differently applied to those of the attack elements? How?

Thank you in advance! \O
classes are constructs of specific combinations of advantages/disadvantages to specific elements, plus specific skills at specific levels, plus the ability to use certain equipment.

you should write the interaction between classes, as an interaction between elements tied to those classes.
if one class were to not have a defense against fire, that would make that class inherently vulnerable to fire, regardless of the class attacking them.
IF, in addition to that, you would give that class at a disadvantage, a bonus against every other class except that one specific class you want to give it disadvantage against, then that class at a disadvantage would be tied against every other class, except that one you both don't give it an advantage against, and also give it a disadvantage against.

the balance system works in pairs, with two-way relations.
Sounds like what you need is to have skills possess more than 1 element, and if that's the case, Yanfly's Element Core is the plugin for you!
http://yanfly.moe/2016/06/10/yep-107-element-core-rpg-maker-mv/

Original thread: https://forums.rpgmakerweb.com/threads/classes-advantages-disadvantages-at-battle.108393/