How to remove "optimize" from the Equip menu?

I want to remove the optimize option from the equip menus, how can I do this?
depends, if you use plugins, if you dont use any plugins yet,
it require one to remove that option.

save this to a .js and your good to go.

JavaScript:
Window_EquipCommand.prototype.makeCommandList = function() {
    this.addCommand(TextManager.equip2,   'equip');
    //this.addCommand(TextManager.optimize, 'optimize');
    this.addCommand(TextManager.clear,    'clear');
};

place it below any equipment plugin as this overwrite it.
if it offers more, it needs a modification.
depends, if you use plugins, if you dont use any plugins yet,
it require one to remove that option.

save this to a .js and your good to go.

JavaScript:
Window_EquipCommand.prototype.makeCommandList = function() {
    this.addCommand(TextManager.equip2,   'equip');
    //this.addCommand(TextManager.optimize, 'optimize');
    this.addCommand(TextManager.clear,    'clear');
};

place it below any equipment plugin as this overwrite it.
if it offers more, it needs a modification.
Thank you, that worked!

Would crediting you by ShadowDragon be fine?
it will be fine, but not necessary though if not using one 1 of my plugins 🙂
but it's up to you though.

as it is minor, no credits needed, as if it has a conflict with another equip
plugin, it needs to alter to work with that code correctly.

if you need a beta tester, I might check it out 🙂

good luck with your project.
I was also looking for the same thing. Thanks, Shadow D!
A little off-topic, but out of curiosity might I ask *why* you want to remove the option? I promise I have a reason for asking. 😛
depends, if you use plugins, if you dont use any plugins yet,
it require one to remove that option.

save this to a .js and your good to go.

JavaScript:
Window_EquipCommand.prototype.makeCommandList = function() {
    this.addCommand(TextManager.equip2,   'equip');
    //this.addCommand(TextManager.optimize, 'optimize');
    this.addCommand(TextManager.clear,    'clear');
};

place it below any equipment plugin as this overwrite it.
if it offers more, it needs a modification.
How do I download this? I tried saving it as a .js, but the plugin was blank
EDIT: For anyone wondering, just copy/paste it in notepad and then save that.
Thanks so much. It's exactly what I was looking for
A little off-topic, but out of curiosity might I ask *why* you want to remove the option? I promise I have a reason for asking. 😛
I'm not the OP and also apparently a year late (sorry if that's awkward), but in case a substitute is good enough and you still want to know why someone would want to remove the Optimize function from the equip screen:

In my case it's because I'm handling stat customization purely via class change, and equipment is more used for special augments that do stuff like change the damage formula of your attacks, giving you damage mitigation abilities, granting you new skills, etc. As such, there's (ideally) not really a "best" option for every character, and a feature that advertises itself as "automatically equip top gear" and determines this top gear via comparing equipment by incidental stat increases would be potentially misleading for the player.

Like, hypothetical example: If I have a belt that makes all physical attacks against the user deal half damage, and another that increases defense by a flat 4, the former would generally be more useful at higher levels, whereas the latter would end up picked as the most "optimal" by the script because it has the best stats. So to prevent that, might as well do away with it.
@gb3792 I would consider that a good reason to re-code how Optimize works, not to remove it as a first recourse. I believe Trihan asked the question because he has a plugin which does that.
This worked for me as well, thanks. BTW, added this because optimize function was removing equipment and re-equiping it to players when used. This creates a problem because one of my items will increase max HP and MP. If I use optimize, it removes the equpment, loweres max points, then re-equips the item, but the points are lost and need to be replenished to get to max. Does anyone have solution or segestions. I would still like the optimize feature if so.
Ah, this thread is a bit on the old side, so I’m gonna close it. I would recommended making a fresh thread central to your particular issue, @Non-Original_Prankster

Original thread: https://forums.rpgmakerweb.com/threads/how-to-remove-optimize-from-the-equip-menu.150848/