MV Yanfly's Map Select Skill (or a plugin like it) that shows the skills of whoever the lead actor is?

Yanfly's Map Select Skill does ALMOST exactly what I'm looking for. You drop a plugin command in an event, and it shows a list of skills, either all a particular actor's skills, or all a particular actor's skills under a specific Skill Type. Problem is, instead of being able to set the list of skills to the ones known by a particular member of your party (like, whoever's in the lead actor slot), it only works off of the actor number of an actor in the Actors database. Like, so if my party consists of actors 1,2,3, and 4 in the database, I could set the actor number to like, 9. And then the skill popup would show me all the skills of an actor who's not even in my current party. I really wish I could set it to whatever actor is in position 1, the lead actor in my party, rather than the first actor in the database.

There's no native support for this in the plugin. Does anyone know of a plugin that does this, or maybe a way to alter or override Yanfly's plugin to make it do this?
Could you try setting a Control Variable to $gameParty.leader()._actorId then doing

MapSelectSkill v \V[9] s

where 9 is the variable number you used?
MapSelectSkill v a s
- This will open up the Map Select Skill window. Replace 'v' with the ID of
the variable you wish to set to the selected skill. Replace 'a' with the ID
of the actor whose skill list you want to see. 's' is optional, but if used,
it will display the skills from skill type 's' only. Replace 's' with the
skill type's ID number.
Open the plugin, go to line 353.

Change it to read:
Code:
    this.setActor($gameParty.members()[actorId]);

That will change the "actor ID" to the party location. So to always use the party leader, just provide 0.

@AquaEcho The plugin isn't designed to accept JavaScript in that field.
Could you try setting a Control Variable to $gameParty.leader()._actorId then doing

MapSelectSkill v \V[9] s

where 9 is the variable number you used?
Nah. It just froze the game. Too bad, I really thought that would work.
Nah. It just froze the game. Too bad, I really thought that would work.
As a general rule, arguments for plugin commands can never accept JavaScript unless the author tells you they can.

The way you treat the arguments in the code is completely different.

Edit: I misread. AquaEcho wasn't suggesting JavaScript, she was suggesting a text escape code, which would doubly not work. Those only work specifically in the editor's text fields (or, again, if a plugin author tells you they can be used someplace else).
I did say "try" and that usually works for the plugins I use. I was only going to look into the plugin deeper if that failed.
Open the plugin, go to line 353.

Change it to read:
Code:
    this.setActor($gameParty.members()[actorId]);

That will change the "actor ID" to the party location. So to always use the party leader, just provide 0.

@AquaEcho The plugin isn't designed to accept JavaScript in that field.
This is really weird...If I use 0 like you said, the game freezes. But if I use 1, it gives me the skills from the SECOND actor. So...it works, just not with the first actor?? This is odd.

EDIT: You know, I just changed "actorId" to "0" and now it always uses the first actor. I have no idea what I'm doing, I don't know the first thing about java or programming in general, but it worked!

EDIT 2: I think the plugin just can't handle a 0 in the actor field, because once I did that, it doesn't matter what number I put in there, it always goes to the lead actor, but if I try to use 0 the game freezes. Anyways, thanks for your help!!
EDIT 2: I think the plugin just can't handle a 0 in the actor field, because once I did that, it doesn't matter what number I put in there, it always goes to the lead actor, but if I try to use 0 the game freezes. Anyways, thanks for your help!!
The plugin command is taking the Actor ID in the database as an argument. There is no actor 0 there so it would throw an error.

actorId here:
$gameParty.members()[actorId]
is the party member's position in formation which is stored in an array. Arrays start at 0 for the first position.
I didn't look at the various handling functions it passed through to get to that, so if there's something in there that automatically rejects a 0, that might be the cause.

But yes, if you always want to just use the party leader, simply hard-coding a 0 there will work fine for you.

Original thread: https://forums.rpgmakerweb.com/threads/yanflys-map-select-skill-or-a-plugin-like-it-that-shows-the-skills-of-whoever-the-lead-actor-is.165391/