MV Trilobytes MV: Optimize Plus!

Optimize Plus v1.02
Trilobytes by Trihan
​

Introduction

By default, the "Optimize" command in RPG Maker has always been somewhat...underwhelming. It has never done anything more ambitious or exciting than add up all the basic param bonuses offered by each piece of equipment and equip the one with the highest number. This results in some ludicrous scenarios like you having some armour with 5 def and another piece with 4 def which gives you immunity to death, poison and silence while increasing max HP by 20% and halving the encounter rate. The default system will pick the one with 5 def just because its basic params are higher. And that's where Optimize Plus comes in! This plugin makes mediocre optimization a thing of the past by taking traits into account as well when deciding what the best piece of equipment is. But it doesn't end there! The weighting of each trait, and even the individual aspects of that trait, are fully customisable using the plugin parameters and optional notetags. Want to give more consideration to equipment that unlocks new skill types? No problem! Want a pair of mages where one prefers equipment that offers fire resistance while the other favours ice? You can do that! Want a thief who mainly looks for equipment that allows dual wielding? As easy as pie.

Features
  • Assign weighting to traits, allowing them to be factored into which equipment items are chosen for the "Optimize" command in the equipment menu
  • Set global defaults that will be used across the whole game
  • Weight the standard parameters currently used by the command
  • Weight all assignable traits, from state rates to party abilities (premium version only)
  • Default setup has been done for you, so the plugin is usable out of the box unless you want to change weighting
  • Allow actors/classes to prefer specific weapons/armours or specific weapon/armour types (premium version only)

Screenshots (from VX Ace version)
1709929613909.png

1709929664578.png

1709929722554.png

1709929748472.png


Top: Default behaviour
Bottom: With plugin enabled

How to Use
Download the .js file for the plugin, add it to an empty slot in the plugin manager, set up parameters to your liking, and read the help file for usage instructions and an example setup.

Plugin Commands / Script Calls
None

Demo
N/A

Download
You can obtain the free or premium version of the plugin from itch.io

Terms and Credits
The free version of the plugin can be used in non-profit games; the premium version can be used in both non-profit and commercial projects. In either case, please credit Trilobytes or Trihan. Full terms of use are listed in the help section of the plugin file.
Awesome plugin and excellent timing! I was wondering, is this able to be used with custom params?
Awesome plugin and excellent timing! I was wondering, is this able to be used with custom params?
Not out of the box, it would need a bit of editing for that.
Nice! Gonna see how it works with my game.
Awesome plugin and excellent timing! I was wondering, is this able to be used with custom params?
What kind of custom params were you wanting to use with it?
So I use ICFSoft custom params and have quite a few added. These do integrate with Yanfly plugins and others as well, as long as I use the right tags. Not every plugin works with these for some reason, but most of the ones I have tried do. Not sure exactly why some do and others do not, but it is extremely useful for games like mine that have parameters that govern things like block, parry, initiative, etc.

1709947070800.png


1709947167840.png
eqscreen.png
Looks really useful. I will try it out over the next few days.

In my project the different physical combat classes can use most weapons for basic attacks, but get special skills for their particular weapon. For instance, warriors can use swords, spears and bows for basic attacks, but only get powerful strikes or damage more than one enemy with axes. Archers can do more things with bows than other classes. I am hoping that I can give classes a distinct preference for their own type of weapon.

Edit: Tried the free version. Works fine for making the magic using classes choose staves (which enhance their magical abilities) in preference to daggers (better for simple attacks). I am a bit busy today, but might well go for the paid version to see if I can get Archers to prefer bows, Warriors to prefer axes, Soldiers to prefer spears and Blades to prefer swords.

Edit 2: @Trihan - I am having a little difficulty with the precise format for the class notetags. I am trying to get the "Blade" class to prefer the "Short Sword" weapon (which is of the "Sword" type) over low-level alternatives. I can't get the notetag to work. I have tried varying the format. This is the latest version of the notetag that I have used:

<Weight: [equipweapon], ["Short Sword"], [20]>

What am I doing wrong?
@Piyan Glupak I think you need to remove the brackets like:
<weight: equipweapon, "Short Sword", 20> or <weight: "equipweapon", "Short Sword", 20>
as brackets that some uses as indicates to be removed as well.

@Trihan in the free demo plugin, it says it only works for MZ, which I think you mean MV,
as it is an MV version? I know you have an MZ version too, just pointed it out.
@ShadowDragon Thank you for your reply. I tried both tour suggestions, but still no luck.

@Trihan Both the free one and the paid one from the link in your top post say that they are MZ only. The free one seemed to work with MV, but is it possible that the paid one doesn't work with MV?
@Piyan Glupak through reading, its weit = trait, so you need "Ice", "fire", "attack", etc.
but not sure what all the types are, so try those, as I got low use of the optimize.
but it's looks far better than default.

Good luck on your project.
@ShadowDragon Thank you for your reply. I tried both tour suggestions, but still no luck.

@Trihan Both the free one and the paid one from the link in your top post say that they are MZ only. The free one seemed to work with MV, but is it possible that the paid one doesn't work with MV?
I've probably just forgotten to replace a Z, but I'll look into it. And I'll have a look at what you need for your class thing, one sec. 🙂
Okay, so yeah I forgot to replace a bit in the help for the MV version; I'll get that sorted.

@Piyan Glupak It doesn't actually allow for weighting specific weapons or armours at the moment, I hadn't even considered that as a feature but I'll add it in to the premium version. With the plugin as-is, what you'd have to do is put Short Sword into its own type and weight that higher than the others.
Okay, so yeah I forgot to replace a bit in the help for the MV version; I'll get that sorted.

@Piyan Glupak It doesn't actually allow for weighting specific weapons or armours at the moment, I hadn't even considered that as a feature but I'll add it in to the premium version. With the plugin as-is, what you'd have to do is put Short Sword into its own type and weight that higher than the others.
What I want is for a class to prefer a type of weapon over several types that they can use, and for the other classes to each have a different preferred type of weapon, even though they can use most weapons. Blades, Warriors, Archers and Soldiers can all use the various swords, axes, bows, spears and knives. Blades gain special skills that require a weapon of the sword type. Therefore, I want Blades to prefer the various swords over other types of weapons they can use.

Similarly, Warriors gain special skills that require axes, so I want them to tend to prefer axes over swords etc.

Edit: I have a sword type that includes "Short Sword", "Falcion", "Long Sword", "Broad Sword", "Knight Sword" and "Noble Sword". For the Blades class I want to give preference to any type of sword. Archers should have a preference for bows, Warriors for axes and Soldiers for spears. They can all use each others' weapons for basic attacks only.
What I want is for a class to prefer a type of weapon over several types that they can use, and for the other classes to each have a different preferred type of weapon, even though they can use most weapons. Blades, Warriors, Archers and Soldiers can all use the various swords, axes, bows, spears and knives. Blades gain special skills that require a weapon of the sword type. Therefore, I want Blades to prefer the various swords over other types of weapons they can use.

Similarly, Warriors gain special skills that require axes, so I want them to tend to prefer axes over swords etc.

Edit: I have a sword type that includes "Short Sword", "Falcion", "Long Sword", "Broad Sword", "Knight Sword" and "Noble Sword". For the Blades class I want to give preference to any type of sword. Archers should have a preference for bows, Warriors for axes and Soldiers for spears. They can all use each others' weapons for basic attacks only.
Oh, beans. I've put in the ability to weight all the different traits you can set on an item, but I didn't add an option for actual weapon/equip types. I'll add those in.
If you could do all three, aTypes, wTypes, and eTypes, that would be pretty awesome and perfect for my project too. Looking forward for the next update.
Just a suggestion for weapon "Shor Sword" to make id's?

<weight: someHere, [id's, of, swords, to, check], [whatever numbers here]>

sample 1: <weight: "HP", "Sword", 2> or <weight: "HP", 1, 2> (1 = ID of Sword)
sample 2: <weight: ["HP", "MP", "ATT"], ["Sword", "Blade"], [1,3,5]>
as Sword and Blade can also be id numbers?
as it might be useful in MZ too to extend optimizing?
I believe that I am getting somewhere. I creating a skill "UseSword" that is enabled by equipping the weapon "Short Sword". I put the following notetag in the Blade class:

<Weight: addskill, UseSword, 30>

Note the lack of square brackets.

The default for the skill "UseSword" less than 30.

Now, Blades pick Short Swords in preference to Short Bows, but others still prefer Short Bows if given a choice.

I can give "UseSword" a better name and have it actually do something minor but useful, and make all the swords enable it. Then, I can do similar things for bows, axes, and spears.
I believe that I am getting somewhere. I creating a skill "UseSword" that is enabled by equipping the weapon "Short Sword". I put the following notetag in the Blade class:

<Weight: addskill, UseSword, 30>

Note the lack of square brackets.

The default for the skill "UseSword" less than 30.

Now, Blades pick Short Swords in preference to Short Bows, but others still prefer Short Bows if given a choice.

I can give "UseSword" a better name and have it actually do something minor but useful, and make all the swords enable it. Then, I can do similar things for bows, axes, and spears.
Oh, that's great! I'm still going to add options for other equipment settings since that's kinda hacky.
Okay, question about how best to set this up. Would you prefer notetags on actors/classes, a parameter that maps actors and classes to wtypes/atypes/etypes they prefer, a parameter that maps wtypes/atypes/etypes to actors and classes that prefer them, or a combination?
I would be very happy with notetags for classes and actors. These would be flexible, but easy for the developer to use.

It seems to me to be better to allow actors and classes to have preferred weapons or armour than the other way round. Two or more classes or actors might prefer the same equipment. In my game, all 4 magic using classes use knives and staves, but staves help them perform their main function, casting spells, by boosting M.Attack, M.Defence and Max MP.

Original thread: https://forums.rpgmakerweb.com/threads/trilobytes-mv-optimize-plus.166596/