Recently I received a request for compatibility between Instance Items and Falcao’s Manastone Enchantment script.
Since the script seemed interesting, I decided to write a compatibility patch.
You can see it in this video:
The script by default stores manastones separate from the items themselves. This is because the default engine does not support instance items.
I started by simply having each equip return their own manastones if there are any:
class RPG::EquipItem < RPG::BaseItem def manaslots @manaslots ||= [nil] * given_sl end end
Fortunately the script was already designed so that any access to an equip’s manastones would go through this method, which made it easy to modify.
I then added some functionality when it came to “trying on” equip. In the video, you can see that when I am comparing the current rune blade with other rune blades, the parameters correctly include any manastones that were added to it. The script originally did not support this, so this is something cool.