MV adjust order of actor commands

i have a separate skill type for passive skills that arent able to be used on command and while i do still want them to be visible in battle (as some will be battle oriented) i dont want them to be in the way like so
1770860166013.png

ideally theyd be below the inventory so you dont have to scroll past them because most people wont have much reason to check them during battle
im aware this might be iffy to do because the items command is like built in whereas passives is just an additional skill type so let me know if its too complicated to be worth trying to figure out
With the base engine it's not too hard to adjust the order of commands, but considering how different yours looks, I can't be sure if it's close enough to the base engine for the same approach to work.

Could you let us know what plugins you're using? Particularly plugins that relate to your menu system.
oh just the SRD hud plugins its effectively just the default menus but i turned the opacity of the menu background to 0 and put custom images there with hudmaker, also resized and moved them around a bit but thats also not really important
Wouldn't a sensible person just hit the up key if they wanted to quickly go to the bottom of the list? I know this doesn't really solve the "problem", but I figure it's something to keep in mind anyway. 😂
thats fair and i habitually do that but it makes more sense in my head for the less relevant option to be more visually out of the way
Yeah try putting something like this as a plugin (you can alias the first function if you need). Change the X in both functions to your Passives skill type id:

Window_ActorCommand.prototype.makeCommandList = function() {
if (this._actor) {
this.addAttackCommand();
this.addSkillCommands();
this.addGuardCommand();
this.addItemCommand();
this.addPassiveSkillCommand();
}
};

Window_ActorCommand.prototype.addSkillCommands = function() {
var skillTypes = this._actor.addedSkillTypes();
skillTypes.sort(function(a, b) {
return a - b;
});
skillTypes.forEach(function(stypeId) {
if (stypeId === X) return;
var name = $dataSystem.skillTypes[stypeId];
this.addCommand(name, 'skill', true, stypeId);
}, this);
};

Window_ActorCommand.prototype.addPassiveSkillCommand = function() {
this.addCommand('Passives', 'skill', true, X);
};
ty !!

Original thread: https://forums.rpgmakerweb.com/threads/adjust-order-of-actor-commands.182412/