How can I force an action, targeting a party member?

Hi! I dont think I can use an event command to acomplish this.

I know I can use the script call
Code:
BattleManager.queueForceAction(user, skill, target);
where "target" gets a numeric value. (1 = troop member 1, 2= troop member 2, -2 = last target, -1 = random foe (i think?) But , is there a way to represent a party member with a number?

I just want to force an action against my own party member X.

Thanks!!
I don't see a queueForceAction function, or any other function in BattleManager that has the arguments you list.

But you can do this through "Force Action" in events. It's all dependent on what targets are valid for the skill you're forcing. You can only force an action to target valid targets. A skill that targets enemies will only ever target the other side. A skill that targets allies will only ever target the same side. So if you were to use Force Action on one of your actors during battle, forcing them to use the default skill "Heal", the target you choose will be picked from the battle party. So without changing the code, the maximum valid target index from the list would be 4. (If you choose an invalid target index, it seems to default to the first valid target.)
Im sorry, I always assume things. Im USING this plugin: http://yanfly.moe/2015/10/10/yep-3-battle-engine-core/
Where I can call the function .queueForceAction. So what I need is to force an action to a specific actor ID.
Now, I understand that if I force by using the event command, It will depend on the scope of the skill to determine if the index is for troop or for party, Am I right?

And if that is true, forcing by Index will not help me, I need to force it by specific Actor Id.

Thanks and sorry foe not explaining myself from the beginning.

Original thread: https://forums.rpgmakerweb.com/threads/how-can-i-force-an-action-targeting-a-party-member.89772/