Character performs multiple actions on their turn

Not sure if this is doable via events, but here's the problem set:

I have a character. I want him to be able to use an ability. That ability is used, and then possibly used a second or third time (depending on other factors. For the case let's just assume it repeats a number of times equal to X).

Each use of the ability does more than just simple damage (It applies some states, maybe even calls a common event).

Any thoughts on this? I keep thinking about it for a bit, and then deciding to work on something else... Maybe there is an action queue I can add on to for a battler or something that I haven't seen.

Edit: Oh yeah, and in general is there a way to have someone do more than one action on their turn? As in, they are allowed to cast two spells because of a state, or they can use an item and a skill, etc.
For the first question, that will involve Skill's Repeat function and you need a script for something like that since you want it to deal with custom factors.

For the second question, use this.

QHbnjSf.png
Making sure I understand, skills have a 'repeat' function? And I'm guessing it is called if HIT > 1? I just need to override the trigger for it with my custom foo.

For some reason the 'action times' other option has been invisible to me for the past month, never noticed it before.
The default Repeat function is right next to the skill's Success%, it's a static integer that makes the skill happen that many times, whether the first usage (if it's higher than 1) misses or not. If you have a heal skill with a repeat of 2, it will heal twice every time.

There's a script by Tsukihime that allows for random Repeats and it has variable support. Basically what you can do is have your formula done first, store it in a variable (let's call it "001: Repeat"), and then have it repeat from v[1] to v[1].  Use the tag <repeats: v[1] v[1]>

http://www.rpgmakervxace.net/topic/9342-random-repeats/

Tell me if that works for you.

Original thread: https://forums.rpgmakerweb.com/threads/character-performs-multiple-actions-on-their-turn.16482/