Is it possible to make skills repeat based on a state?

I'm trying to make a skill that adds a state to the user that allows them to cast spells multiple times in at once but I can't figure out how to do it. I know that since I'm using yanfly's action sequence I can add an if statement to every skill checking for the state and then just copy and paste the sequence several times but I was wondering if there's a better way to do it.

Original thread: https://forums.rpgmakerweb.com/threads/is-it-possible-to-make-skills-repeat-based-on-a-state.100834/