MV (RMMV) Yanfly Attachable Augments

Hello,

I'm using RPGMaker MV and I am wanting to create a weapon customization system that is similar to Final Fantasy X. For those that don't know, FFX has weapons with 0-4 slots in them. The player can customize the slots to whatever they want. You can add status effects, elements, and stat boosters. You can only have 1 of a stat booster at a time, ie HP+20% can be added once, but you can add HP +10% as well if there are 2 open slots. Once added they cannot be removed.

Using Yanfly's Attachable Augments plugin, I figured out how to attach augments giving them specific stats and how to make them unable to be removed. The issue I have is that if I add an element to a weapon, I can add another element to the same weapon. I would like it so each stat is unique and cannot be added twice, and as for elements, only 1 element can be equipped at a given time. Is that something that is possible?

Any help would be greatly appreciated. Thanks.

I also have another issue, but I want to resolve this one first as it is the most important to me.
The simple solution would be the included functionality of the slot types.

For example, the default slots and types in the plugin are Rune, Glyph, Orb, and Mark. You'd make all of your weapons have only one, for example, Rune slot, and all augments that can add elements are Rune type.

Thus, you could only ever have one element augment applied to a weapon.

There's no other method in the plugin to do this, there isn't any kind of conditions to check for an augment to be able to be applied or not.
The simple solution would be the included functionality of the slot types.

For example, the default slots and types in the plugin are Rune, Glyph, Orb, and Mark. You'd make all of your weapons have only one, for example, Rune slot, and all augments that can add elements are Rune type.

Thus, you could only ever have one element augment applied to a weapon.

There's no other method in the plugin to do this, there isn't any kind of conditions to check for an augment to be able to be applied or not.
I knew the Elements would be a simple fix and I cannot believe I forgot about that. Thank you for that.

I was more concerned about the HP +20% example as well. I was hoping there'd be a simple solution for that. I guess I can adjust the Customizability a bit and figure out a way to balance it. Thanks for the assist.

I had another question to. Is there a way for the same item to apply different effects if its on a weapon versus an armor. Like Fire element on a weapon, but absorbs Fire if put on armor?
Again, the easy way would be to use the slots. Say all things that can affect parameters are Glyphs. All things that can give states are Orbs. Whatever kind of thing like that.

It's much more complicated to write code that iterates through all attached augments and looks up to see what they're supposed to have done to the item.
I made a plugin that allows you to group augments so that you can't add multiple of a set.
Check it out and see if it helps.

Link
Again, the easy way would be to use the slots. Say all things that can affect parameters are Glyphs. All things that can give states are Orbs. Whatever kind of thing like that.

It's much more complicated to write code that iterates through all attached augments and looks up to see what they're supposed to have done to the item.
I think I've got just about everything working the way I want it, the issue I have now is the elements. I have a Flamestone that I want to give the Fire Attack Element when equipped to a weapon, but when equipped to an armor, I want it to change the Fire Element rate to 50% to halve the damage of fire-based attacks.

I figured out how to do it using separate items (a Fire Polish can only be equipped to a weapon and a Flame Shard can only be equipped to armor), but I feel it isn't very intuitive for the player considering I have a crafting mechanic. I would much rather have the Flamestone be equipped to either weapon or armor, and have it apply the appropriate effect based on which item it is augmented too.

Is that even possible? I found Yanfly,s Animation Augmentation Tips & Tricks and didn't know if it was something that could be handled through "Lunatic Mode" or if it can be done through the plugin itself.
I currently do this with the item upgrade plugin. I'm fairly certain it can be done with augments, especially since yours aren't meant to be removable.
Just have to use some lunatic code.
I have found something that will work the way I want it to. Yanfly Duplicity Augments Tips & Tricks is exactly what I was wanting to do. However, the issue I have is using it for Attack Element and Element Rate. I don't know what the code is for those, or adding states. Can anyone help me?
Take a look at his Regen Scroll, that shows how to push passive states onto items. The passive state can have the regular traits for attack element and element rate on it.

Take a look at his Regen Scroll, that shows how to push passive states onto items. The passive state can have the regular traits for attack element and element rate on it.

This worked like a charm. Thank you so much for all your help. I combined the code for the Regen Scroll with the Duplicity Augments and it is exactly what I wanted. Thank you so much.

Original thread: https://forums.rpgmakerweb.com/threads/rmmv-yanfly-attachable-augments.168471/