Help with recreating Fire Emblem "Ploy Skills" in RMMV

Hello there!

I want to create a set of skills for my project that works similarly to the Ploy skills in Fire Emblem Heroes

Basically, they are skills that debuff enemies if said enemies have less Res (or in RMMV's case, MDF) than the user.

I know it can somewhat be done as an active skill by using Yanfly's Selection Control plugin, but for my game, I'd like for it to be a Passive Aura Effect attached to a specific piece of armor.

So basically I want to make a set of armors that generates this foe aura that only affects enemies with less MDF compared to the user. Is there a way it can be done? Could "Custom Aura Condition" be used for something like this?

I'll leave the Ploy skills descriptions from Fire Emblem Heroes below, just in case:

upload_2019-1-16_15-45-56.png


Any kind of help/feedback will be apprectiated! ♥
Two ways I can see this happening (without plugins):

1. Variable Method
-If your character has the Ploy Armor:
-Record your character's MDF
-For each enemy, record their MDF or type down their number, then compare.
-Do Ploy on Turn 0.

2. Action Method
- Create a Ploy Skill. In the case of Atk Ploy, it should affect all enemies and have a formula similar to "if a.MDF > b.MDF then add state (-5 ATK)"
- In the Troop Page Turn 0 or Common Event (on troop page), if person is wearing Atk Ploy Armor, Force Action "Atk Ploy".

---

Might be easier or faster with plugins, but it should be possible without it. Granted, it would be lengthy through event commands, though could be quick if you try loops through the scripting page like:

AtkPloyArmors = [15,16,17]
for each party member (actor) do{
for each troop member (enemy) do{
if actor.MDF > enemy MDEF && AtkPloyArmors includes actor armor{ add state (-5 ATK)}
}
}
Two ways I can see this happening (without plugins):

1. Variable Method
-If your character has the Ploy Armor:
-Record your character's MDF
-For each enemy, record their MDF or type down their number, then compare.
-Do Ploy on Turn 0.

2. Action Method
- Create a Ploy Skill. In the case of Atk Ploy, it should affect all enemies and have a formula similar to "if a.MDF > b.MDF then add state (-5 ATK)"
- In the Troop Page Turn 0 or Common Event (on troop page), if person is wearing Atk Ploy Armor, Force Action "Atk Ploy".

---

Might be easier or faster with plugins, but it should be possible without it. Granted, it would be lengthy through event commands, though could be quick if you try loops through the scripting page like:

AtkPloyArmors = [15,16,17]
for each party member (actor) do{
for each troop member (enemy) do{
if actor.MDF > enemy MDEF && AtkPloyArmors includes actor armor{ add state (-5 ATK)}
}
}

They're all interesting approaches, I'll give it a try asap!

Thanks!

Original thread: https://forums.rpgmakerweb.com/threads/help-with-recreating-fire-emblem-ploy-skills-in-rmmv.104520/