Merging Features of Equips

Hi all,

I've made a script that allows users to equip items to their weapons and armours for benefits. I'm having trouble getting the features of the items to be recognised and updated.

For example I have an item that when equipped to a weapon gives you +20% MaxHP. I can get the weapon features to update to reflect this but then the actual actor doesn't get updated features and no HP change happens.

I've tried as many things as I can think of and looked at other scripts for examples, I'm just wondering if this is possible without having to use a separate script to manage features.

Any help is much appreciated 🙂
My item affix script provides an example of how you might merge features.


Basically when you add an affix to an equip, all of the features from the affix are added to the equip's list of features.


Once the affix is removed, those features are removed from the equip as well.


Another way you could do it is to just modify the equip `features` method to return all of the features from any items that are attached to it.
Thank's for the reply, I should've known I needed to change the method in the BaseItem (I completely forgot about it)!

It's actually playing around with your instance items work that's got me into this 😛

Edit:

It's now working perfectly, thank you!

Original thread: https://forums.rpgmakerweb.com/threads/merging-features-of-equips.44618/