Hello! The title should be self-explanatory, but I'm looking for a way to create a passive skill that boosts the unit's damage against enemies that have AT LEAST 1 of a specific category of states. Here are the details:
I hope I'm in the right place to ask this question. If not, I apologize in advance!
- I am using a few Yanfly Engine plugins, but the most relevant ones for this question are the "Auto Passive States" plugin and the "States Categories" plugin. Still, I do have all of the Yanfly Engine plugins available if needed.
- In my current project, I'm using states as debuffs rather than the built-in debuff system. This is because I separated debuffs in three states: "Attack Down" lowers both physical attack and magic attack, "Defense Down" lowers both physical defense and magic defense, and "Speed Down" just lowers agility. All three of the debuff states are in the "Debuff" state category.
- My first idea for implementing this effect (without delving too much into other plugins or coding) was to give the user of the passive skill a "Strong VS Debuffs" element to their normal attacks and use the "Element Core" plugin to stack element effects multiplicatively. Since in my project all skills use the "Normal Attack" element, that means every skill would have the "Strong VS Debuffs" element. Then, I would give each of the debuff states a 120% weakness to the "Strong VS Debuffs" element. However, as far as I know, this would mean that, if the enemy has for example 2 debuff states, they would take 144% damage, rather than 120%, and I don't want that.
- My second idea was to bite the bullet and use the extended damage formula from the "Damage Core" plugin in every damage formula and check:
(1): if the skill does damage,
(2): if the user is affected by the "Strong VS Debuffs" passive state,
(3): if the target is affected by a state in the "Debuff" category,
and, if all of those are true, multiply the damage by 1.2. I think this way SHOULD work as intended. However, I would rather not do this, as it would be kind of annoying to have this huge ugly block of if statements in EVERY damage skill's notes, and it would be the only "special" damage multiplier in the entire game that I'd have to manually check in the damage formula, so I'd rather not have to use this solution if at all possible.
I hope I'm in the right place to ask this question. If not, I apologize in advance!