How to display/remove specific skill from specific character?

I would like a player to be able to remove a skill, which is easy enough. The problem is: I would like the player to be able to talk to an NPC, and the NPC would only give him the list of characters that are currently in the party, and the list of skills they know at that time.

So a conversation would go like this:

Would you like to forget a skill?
-Yes
-
No
From which character?
-Party member 1
-Party member 2
-Party member 3
Which skill would you like to forget?
-Fireball
-Guard
-Protect

The only way i can think of to do this right now is to give player a huge list of all the possible characters and skills they can learn, but thats obviously not what i want.
So I went over to the lovely people at Discord to help with this and you can return all the skills an actor has to an in-game variable:

$gameVariables.setValue(VARIABLE_ID, $gameActors.actor(ACTOR_ID).skills());

You can then do a foreach loop on the returned data array.

var index;
var mySkills = $gameVariables.getValue(VARIABLE_ID);
for (index = 0; index < mySkills.length; ++index){
Wherever you want to put the value goes here;}

How were you planning on displaying this data to the user? The native "choices" function in the events page won't support enough different values. You might be able to break that limit if you call "choices" in a script (I genuinely don't know whether you can or not, I've never tried it), but that would still leave you with one long, vertical list...
Yeah, I also had no idea how to display it to the user 😀 Im assuming it cant be done without some plugin. But thanks you for help, i appreciate it

Original thread: https://forums.rpgmakerweb.com/threads/how-to-display-remove-specific-skill-from-specific-character.128843/