MZ Script Call for Action Times?

Hi all!

I keep wracking my head on how to achieve this and am not quite coming up with an answer, either via the battle plugin I'm using or basic. I'm using Visustella OTB, and I'd like a skill to a have a percent-based chance of granting the user another action that turn. I know <OTB User Add Current Turn Actions: x> doesn't allow for that, so am trying to figure out an alternative way to achieve the desired effect. Thought an easy way might just be an action times+ state, but while that does succeed in sometimes giving the user another action for the current turn, I've been unable to prevent it from giving the user another action in the following turn also, whether it lasts 1-1 actions/turns or 0-0 actions/turns. 🙄

There doesn't seem to be any action sequence commands to add an action that I can tell. Was thinking of perhaps doing it with a script call, but not sure what it could be (maybe UserAddActionCurrent?). And am not sure if there's a vanilla script call to give a target an extra action?

My only other thought was having the skill instead call another skill on the backend, sometimes calling the one that adds an action and sometimes not. But surely there must be a more straight forward way. :?
Their plugin page has a script call (doesn't this do what you want?):

$otbAddBattlerToCurrentTurnEnd(battler, times)

- Adds a battler to current turn's end
- Replace 'battler' with a battler object or target
- Replace 'times' with a number representing the number of actions to add

Throw that in an action sequence script, where you roll random variable and put a conditional (or use code for the random chance too). If you want, you can also use the MECH: OTB Order plugin Battle Core plugin command to change the turn order after that in the action sequence.
Their plugin page has a script call (doesn't this do what you want?):

$otbAddBattlerToCurrentTurnEnd(battler, times)

- Adds a battler to current turn's end
- Replace 'battler' with a battler object or target
- Replace 'times' with a number representing the number of actions to add

Throw that in an action sequence script, where you roll random variable and put a conditional (or use code for the random chance too). If you want, you can also use the MECH: OTB Order plugin Battle Core plugin command to change the turn order after that in the action sequence.
Now how in the heck did I not find this?? I am legit mortified I have read over that page so many times

Much much obliged. I’ll whip something together shortly and see if there’s any hiccups. Thank you as always.

Original thread: https://forums.rpgmakerweb.com/threads/script-call-for-action-times.182063/