How to get IDs, like active actor, in battle?

Hey guys =)

I let a skill call a common event. In that event I have a few conditions that chose the skill that will be used.

Now I want the active actor to use it.

Normally I want the active actor to use the skill that was rolled before on an enemy that he can choose.

But actually I just found:

$gameParty.members()[index].forceAction(skillId, targetIndex);I think "index" is an array of all partymembers. If there are 4 it would be 0-3 I guess? So how to get the ID or party position (whatever I need) and the target index? Or how could I even handle it to let the player choose the target by his/her own?

Thanks for help! 😀
I think the easiest to do this is by using Yanfly's plugins. It allow you to use JS in the notetag of your skill, and make conditions, custom formula, etc... 
I think the easiest to do this is by using Yanfly's plugins. It allow you to use JS in the notetag of your skill, and make conditions, custom formula, etc... 
Well.. even then I need a way to get the ID's

Original thread: https://forums.rpgmakerweb.com/threads/how-to-get-ids-like-active-actor-in-battle.53594/