hi again, i'm using YEP_BuffStatesCore to make state counters but i don't know how to use it to apply debuffs to the targets that increase depending on the counter, so please any help would be appreciated.
state counter lowering the parameters
RPG Maker MV SupportYou can stack states as much as you want with the plugin. Not sure what the problem might be with that vague description.
ah, sorry for my poor writing, i'm not used to english yet, but what i want to do is that each time the state is applied (up to 3 times) the defense will go down... (first state will make defense go to 85% of mdf, the second time will make defense go to 45% of mdf and if its applied a third time, then the defense will go 5%)
There's nothing in Yanfly's plugin(s) that will do parameter changes like that. You would have to use another plugin like Quasi Params Plus, as well as multiple states.
I am not exactly certain what numbers you want because you mention both def and mdf, but I'm not sure whether you mean the target's mdf or the attacker's. Or if mdf is a mistake and it should all be def.
I'll give you an example just using defense and you can modify it as you need.
You'd make 3 states...let's say they're IDs 20, 21, and 22.
In state 20 you put
Then state 21 has
and state 22 has
I am not exactly certain what numbers you want because you mention both def and mdf, but I'm not sure whether you mean the target's mdf or the attacker's. Or if mdf is a mistake and it should all be def.
I'll give you an example just using defense and you can modify it as you need.
You'd make 3 states...let's say they're IDs 20, 21, and 22.
In state 20 you put
Code:
<params>DEF: Math.round(a.def*.85)</params>
<Custom Apply Effect>
if (target.isStateAffected(20))
{
target.removeState(20);
target.addState(21);
}
else if (target.isStateAffected(21))
{
target.removeState(21);
target.addState(22);
}
</Custom Apply Effect>
Then state 21 has
Code:
<params>DEF: Math.round(a.def*.45)</params>
and state 22 has
Code:
<params>DEF: Math.round(a.def*.05)</params>
Thank you, it almost worked but i needed to create one more state since it will always skip the first one because it will check if the first state is applied after its applied, so it always add the second one in that same instant, but thanks to you now i can continue. much appreciated
Original thread: https://forums.rpgmakerweb.com/threads/state-counter-lowering-the-parameters.158939/