How to force an especific actor to perform an action without lock him in a forced party position

Hi!
Basically, the situation is: i´m making an ability that will be used by an especific actor and consists in call a common event and force another ability a certain number of times defined by a variable that has a random value. I´ve tested the character and he was working, but when i´ve tested him with another characters, his ability just dont worked. After some tests, i´ve noticed that his ability only worked when he was in the first place of the party, so i´ve changed to every position perform the action, and this worked, well, with a detail. I´m using the XRXS ATB Battle System script, and when he perform his ability, he just stole the turn of the slowest characters, like, he perform his ability and after that, when the slowest actors are with his bar close to the end, they back to the middle (the fastest dont are affected, for some reason). i´ve already tried to use the Blizzard Multiple Hit Script, but he just dont have worked with the ATB script. After think a bit more, i came to the conclusion that if i dont want to this actor to be a turn thief or a useless, i would need to make this through a script call, that will reconize the actor through the ID, and not the position, and make him perform the action, but now the problem is that i dont know how to make this, i know just a litle bit of ruby and barely can read. Somebody have a better alternative?
Thanks for reading
Help?
If it is for a single skill, only used by a single actor, you can do it like this.
If you need more skills for more users, you might want to look for a plugin.

1740949510087.png


(Edit: I see you use XP, but the idea should be the same, although it might look different)
Thank you for your attention, but i´m not sure if its posible to change the actor slot during a battle in xp. This is the images of my common event. This first works well, but only works when him is in the first place. Bassicaly, a variable give a 1..4 number, if the number is 1, the skill is forced one time, if is 2, the skill is forced twice, and so it goes

burrice 2.PNG


This second works every time, but is the thief of the slowest´s atb. The idea is the same of the first one, but the skill is forced in the four positions
burrice 2.PNG

I could be wrong, but i´ve never seen a slot change option in xp
I´ve found a conditional script (I´ve tottaly forget that this was possible) made by KK20. Just make a little change to each position. It was like this now:
1740956151490.png

Its more work, but at last works very well now. Thanks so much for the help!
🙂
Happy to help. To be honest, that code doesn't tell me anything... feels like a foreign language to me. 😛 But if it works, then everything is fine. 🙂

Edit: Oh, I see what you did... The parts I do understand is that you check if party member X is actor Y. Yeah, that is a much faster way to do it. 😮

Original thread: https://forums.rpgmakerweb.com/threads/how-to-force-an-especific-actor-to-perform-an-action-without-lock-him-in-a-forced-party-position.175885/