MV Skill that applies states with varying numbers of turns

I have a two states that last 5 turns. I wanna make a skill that applies those two states, but instead of lasting for 5 turns, they last for 3.
I guess this is possible using Yanfly's buffs & states core but I'm bit lost here...

Thanks!
I don't think you'll even need to use Yanflys buff and states.


You need to make two versions of both states, one lasting 5 turns and the second lasting 3 turns.


1. Poison (Long)
2. Poison (Short)
3. Slow (long)
4. Slow (short)

Then have the skills work as such.

Skill 1 (adds poison state)
Add state "Poison (long)"
remove state "Poison (short)"

Skill 2 (Adds slow state)
Add State Slow (Long)
Remove State Slow (short)

Skill 3 (adds poison and slow)
Add state Poison (short)
Add State Slow (short)
Remove State Slow (long)
Remove State Poison (long)
I wanna make a skill that...
Thats a job for yanfly's skill core imo. you should be able to check the target's result in a post damage eval or an after eval, see if the state was added, and then change the duration to 3 there.

Original thread: https://forums.rpgmakerweb.com/threads/skill-that-applies-states-with-varying-numbers-of-turns.180822/