Cleaning up skill window?

Hello all! So I have a hopefully simple question in search of a hopefully simply solution. I got pretty far into my game and it really bothers me how ugly my skills window looks. Everything looks disorganized and out of order. As you can see from the screenshot below.
Skills test.png


Let me explain how the skill are in this game. I do skills learn by level up. I.E Learn this at level 5, learn this at level 12, learn that at level 20, etc. Each character has an element and some sort of physical attack.
Example here, Gaile has wind arrow, which is a weak wind attack. Gust arrow is the stronger version of the attack, and Tornado arrow is the strongest version of her wind attack. Similiarly, Dice is the weak version of her physical attck, fury Dice is the stronger, and focus slash is the strongest. I once looked at a yanfly engine video about this and I had thought I found a decent solution. It organized the moves sure, but it also ended up giving her ALL the moves right off the bat. At level one she had all three strengths of her wind attack,which is not what I wanted

What I want to know is, if anyone has any ideas, or suggestions to help make my skills window look a little more clean and organized for my characters. Thanks in advance!
Skills appear in the same order they're added in the database. Rearranging the skill order there will help clean up the way the menu looks in battle.
And if you've already done a lot of skills and it would suck to reorder it and fix all of the references in your classes and stuff, it's probably an easy bit of code to reorder the display if you can give specific criteria.
Skills appear in the same order they're added in the database. Rearranging the skill order there will help clean up the way the menu looks in battle.
I see what you mean. I looked at my created skills and found that they really do appear in the order of when they were created. I have..... quite a bit of skills and that's gonna take quite a bit of time to organize. But if I cant' find any other way to do it this may have to suffice.
And if you've already done a lot of skills and it would suck to reorder it and fix all of the references in your classes and stuff, it's probably an easy bit of code to reorder the display if you can give specific criteria.
Yeah that's true because I did make a lot of skills. Both characters and enemies, but I really only needs the character skills to look a bit better. What's this about the criteria and code. Sorry, I'm an amateur at this and when i hear "coding" I practically freeze up.
Yeah that's true because I did make a lot of skills. Both characters and enemies, but I really only needs the character skills to look a bit better. What's this about the criteria and code. Sorry, I'm an amateur at this and when i hear "coding" I practically freeze up.
Turan simply means your criteria for how you want the skills organized. What do you want to appear first in your lists and all that.
Turan simply means your criteria for how you want the skills organized. What do you want to appear first in your lists and all that.
Ah I see. I thank you both! I'm gonna try to clean it up as best I can.
What's this about the criteria and code.
😛

How do you want them ordered? Alphabetically? By MP cost?
😛

How do you want them ordered? Alphabetically? By MP cost?
I know what criteria means, I guess I just overthought the question.
Technically I wanted them by damage output but I suppose the closest thing I can think would be by mp(pp in my game) cost. It would be easier if I need to go back and change pp cause I probably need to do that for some of the skills anyway.
Copy the below into a text editor. Save as a *.js file and include as a plugin.

Code:
Window_SkillList.prototype.makeItemList = function() {
    if (this._actor) {
        this._data = this._actor.skills().filter(function(item) {
            return this.includes(item);
        }, this);
        this._data.sort((a, b) => ($dataSkills[a].mpCost - $dataSkills[b].mpCost));
    } else {
        this._data = [];
    }
};
Copy the below into a text editor. Save as a *.js file and include as a plugin.

Code:
Window_SkillList.prototype.makeItemList = function() {
    if (this._actor) {
        this._data = this._actor.skills().filter(function(item) {
            return this.includes(item);
        }, this);
        this._data.sort((a, b) => ($dataSkills[a].mpCost - $dataSkills[b].mpCost));
    } else {
        this._data = [];
    }
};
Alright, I did this.
Did it work?
Did it work?
I got an error when I tried a battle test. I must have missed something.
I got an error when I tried a battle test. I must have missed something.
Always start a new game when testing plugins, especially anything that modifies battles. Battle Test doesn't register some plugin changes.
Always start a new game when testing plugins, especially anything that modifies battles. Battle Test doesn't register some plugin changes.
Ah, I see. I can do a few things here and there and test it in new game. I'll give it another shot.
And if there's still a problem - just saying "it gives an error" doesn't mean anything.

You'd press F8, go to the Console tab, and provide a screenshot of the error trace.
Well, now I tried it on playtest and got the error message again. Here it is.
Error screenshot.png
I mean, that seems pretty self-explanatory - it can't load a file you said is there.

Double check the spelling of the filename, make sure the extension really is .js and there's not, like, another .txt after it.

If you haven't done so, it's a good idea to enable viewing filename extensions in Windows.
I went back to check everything and here's everything i've done so far.
plugins.png


plugins2.png


plugins3.png
I went back to check everything and here's everything i've done so far.
View attachment 276798

View attachment 276799

View attachment 276800
Uh, could you name the plugin something else, like MyPlugin.js? It probably thinks anything that comes after a . is a file extension

And put it at the very bottom of your plugin list

Original thread: https://forums.rpgmakerweb.com/threads/cleaning-up-skill-window.161236/