Replacing Attack with skill category.

Hæ! This may be something very basic, but how do you replace Attack with a skill category?
I have four basic skill categories (strikes, grapples, special, weapon) and I want only those displayed at all times. I'm aware of Yanfly's Weapon Unleash plugin, put I only manage to replace Attack with a certain skill, not the category it belongs to. Or can I blend out Attack and Guard completely, not replacing them with anything? Thanks!
I would say you're approaching this from the wrong angle.

Replacing Attack with a skill category is not actually what you need, right? After all, every skill category is automatically listed as long as the character can use some skills in that category. So all you need to do is hide the Attack skill and everything else will just work out.

I don't know if Yanfly has something that does this. It's pretty simply to do in a mini-plugin, but if Yanfly has an option built-in, you should use that. If it doesn't have one, you can try the below code as a plugin, but there's a chance it could break other things.

JavaScript:
Window_ActorCommand.prototype.makeCommandList = function() {
    if (this._actor) {
        this.addSkillCommands();
        this.addGuardCommand();
        this.addItemCommand();
    }
};
Exactly, hiding Attack, Guard and Item would suffice.

Thanks. Your code gets rid of Attack, however Guard and Item are still there.
I think it should be obvious which lines you need to delete from my code to get what you want. 😉

Original thread: https://forums.rpgmakerweb.com/threads/replacing-attack-with-skill-category.181821/