Party Member Position to obtain Skills

Is there any way to instead of "Change Skill" for a individual actor, its "Change Skill" for a actor's position in the active party.

[ Example : Actor 4 is in the position 2 slot in the active party instead of Actor 2, but only Actor 2 gains skills even if not available. ]

In my game, I am building a skill tree not through the use of a plugin, but through a map where the player moves around to select a "orb" that details what the skill is. There will be multiple characters to choose from to join your party but you can only choose a select amount of those characters ( Like if there was 7 actors but you can only choose 3 ). I can't use the "Change Skill" function in the event command window due to a actor may not be chosen by the player. Is there anything like a script to call for this function or a conditional branch to create this function.

Based on another person's question, but for RPG Maker MV
Link : https://www.rpgmakercentral.com/topic/39525-check-if-a-certain-party-member-has-skill/
In events you can check if (Actorname) is in the party. There is also a script call (i think) that lets you call actors in certain positions. I'll check to make sure

It's $gameActors.actor(ID)

ID being where they are in the party. I think 0 is the party leader, so you'll want to use 1
In events you can check if (Actorname) is in the party. There is also a script call (i think) that lets you call actors in certain positions. I'll check to make sure

It's $gameActors.actor(ID)

ID being where they are in the party. I think 0 is the party leader, so you'll want to use 1

I can find that it checks the actor position in the active party, but how exactly do I call for the script for a actor in that position to gain a skill or parameter increase?
You can do script calls in events
If you're using events.
tl;dr: Use a variable, and then use the change skill event command as normal.

long version:
Set a variable to the actor in member #X where x is the position in the party, in this case the member #1 is the first person, or the party leader.
Screenshot (53).png

Then using the change event command, set the Actor to the variable that has the actor Id. And let them learn a skill, in this case flame.
Screenshot (57).png

Then you're all done. And there you go.
Screenshot (55).png


You can also do that with the parameter as well.
As seen here:
Screenshot (58).png



You can do this with variables with all the event commands listed here, that's in the orange box:

Screenshot (59).png
If you're using events.
tl;dr: Use a variable, and then use the change skill event command as normal.

long version:
Set a variable to the actor in member #X where x is the position in the party, in this case the member #1 is the first person, or the party leader.
View attachment 123976
Then using the change event command, set the Actor to the variable that has the actor Id. And let them learn a skill, in this case flame.
View attachment 123979
Then you're all done. And there you go.
View attachment 123980

You can also do that with the parameter as well.
As seen here:
View attachment 123981


You can do this with variables with all the event commands listed here, that's in the orange box:

View attachment 123983
Wow, that is exactly what I was looking for, thank you.

Edit : That was much easier then I thought it was.

Original thread: https://forums.rpgmakerweb.com/threads/party-member-position-to-obtain-skills.113444/