Adding States at the end of existing State duration

Hey all,

tl;dr: Does anyone know a good way to set a flag to add a State when an already applied State expires?

 

I'm looking to create a system with skills that grant buffs that turn into debuffs.

 

So, Skill A would give a buff for 3 turns, and then after 3 turns a debuff would be applied when the buff expires.

 

However, I'm getting stuck getting the debuff applied properly.

 

I tried having both states active at once, with the buff being twice as strong and the debuff lasting twice as long, but that didn't result in anything.

 

I've also managed to lock up the game with a loop that never ends. I saw there was a script for VXA, but haven't been able to find any plugins for MV related to this.

 

Thanks for any help!
I saw there was a script for VXA, but haven't been able to find any plugins for MV related to this.
You didn't look hard enough
Ah, thanks! I had been using Google, and I'm pretty new to these boards. I had searched this forum, but didn't think to check the others. I'll do so from now on!

Original thread: https://forums.rpgmakerweb.com/threads/adding-states-at-the-end-of-existing-state-duration.54160/