Class Help - Debuffer

I use RG Maker MV.

I think this the correct boards for this post as I think a plugin would be required, at least to make it feel good, but I am not sure if there's stuff here that can be done without a plugin.

So the biggest problem with debuffs, or a class used to debuff exclusively, is that most bosses or larger monsters are immune to most of the game changing debuffs that the debuffer class would be brought along for.
With that in mind, I wanted to create a debuffer class that would be wanted even when the monsters are immune to those debuffs.



To explain what i would like for this class in a simplistic way, let's say my game only has 3 debuffs; Silence, Blind, and Sleep.
And let's say that these 3 skills have a 100% chance to inflict those states if the monster is not immune.

However if the monster is immune, I would like them to still gain a state.
If I cast Silence, and the monster is not immune, then they become Silenced.
If I cast Silence, and the monster is immune, then they gain a state but is not Silenced.

The function of the 'other state' that seemingly does nothing, is to boost the attack power of the debuffer class. For example, let's say it buffs the attack by 100%. [May be too high, but just as example].

Ex, each debuff deals 500 damage, and 100% to apply the state if not immune.

Monster A is not immune to any states.
Cast Silence, deal 500 damage, Silence is applied.
Cast Blind, deal 500 damage, Blind is applied.
Cast Sleep, deal 500 damage, Sleep is applied.

Monster B is immune to Sleep.
Cast Sleep, deal 500 damage, Sleep is not applied, but 'false sleep' state is applied.
Cast Silence, deal 1,000 damage, Silence is applied.
Cast Blind, deal 1,000 damage, Blind is applied.

Monster C is immune to all.
Cast Sleep, deal 500 damage, Sleep is not applied, but 'false sleep' state is applied.
Cast Silence, deal 1,000 damage, Silence is not applied, but 'false silence' state is applied.
Cast Blind, deal 2,000 damage, Blind is not applied, but 'false blind' state is applied.
Cast Sleep, deal 4,000 damage, Sleep is not applied, but 'false sleep' state is refreshed.
Hm...not sure if you need a plugin for this. There is a probably a smoother way to do this, but a way I know how is:

Make your characters debuffs actually apply both states - Sleep and 'False Sleep'. make these skills an element, such as 'Debuff.' Now, regular troops will be immune to 'False Sleep' but will be able to get 'Sleep.' Likewise, bosses are immune to 'Sleep' but can get 'False Sleep.'

What 'False Sleep' will do is increase damage they get dealt from Debuff element attacks by whatever amount you choose. Ideally, 'False Blind' and 'False Silence' can stack with these, increasing damage done from Debuff element attacks exponentially. However, I'm not sure if that's how stacked states work or not. That aspect may need a plugin, but I'm sure you could use one of Yanfly's many plugins for it.

Hopefully I explained that correctly.
You don't need a plugin for this. You can make each spell do both as previously stated, but make sleep grant immunity to false sleep. Doing this will automatically remove false sleep if sleep is ever placed.
For the damage, you just need a bit of code in the damage formula to double the damage if the false state is applied.

If you need help with the details let us know.
Thanks both for the awesome replies.

I am trying to set it up for testing, and I am having some trouble adding an element weakness to the state. I am able to set the element weakness to a certain number, but this makes it so it doesn't stack. I am using Yanfly's Element Core for another skill which incrementally increase the damage I can do with a specific element. But it seems this plugin doesn't offer the ability to incrementally add a % of damage taken from an element.

I could attempt to change the false state to be applied to the debuffer class and increase his debuff damage instead, but this means that he would have the buff when moving onto new enemies, which seems a little overpowered?


edit: So I downloaded HIME_ElementalNegation and works to increase damage incrementally per state and the increases are multiplicative, too.

Thanks so much for the help guys.

Original thread: https://forums.rpgmakerweb.com/threads/class-help-debuffer.86306/