Rename Skill name from a collected variable in script

Hello everyone.

I am trying to rename skills midgame through script according to new variables.

I already tried a thousand times, but I still missing something.

Could someone help me?

This is how my rename script currently is:

JavaScript:
var name = $gameActors.actor($gameVariables.value(206)).name();
$dataSkills[$gameVariables.value(204)].setName(name);
You cannot change skills names that way, because their names are read from JSON files.
The only reasonable solution would be to write a plugin that alters the Window_SkillList function of drawing skills names - however, skills will keep the original names, but new names will be displayed.

This is function that builds list of skills for actors from group:
Code:
Window_SkillList.prototype.makeItemList = function() {
    if (this._actor) {
        this._data = this._actor.skills().filter(function(item) {
            return this.includes(item);
        }, this);
    } else {
        this._data = [];
    }
};
So all changes you want you make here.
I wrote a tiny plugin to alter any name from $dataName to be saved
in the save file.

but I dont know why you use actor names, rather than skill names?

You can find it [here].
Thank you both!

I am using actor names, because this code is part of the dinosaur taming system.

I want people to be able to name their pets and call them by Summon skills.

This is why skills must be renamed every time the equivalent pet is renamed.

You have my gratitude.

Original thread: https://forums.rpgmakerweb.com/threads/rename-skill-name-from-a-collected-variable-in-script.150219/