Instance Items with Falcao’s Manastone Enchantment

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.

You may also like...

2 Responses

  1. Allusion says:

    Looks great! I’m itching to make an RPG now, with all these new goodies available, lol. Would this script be able to equip skills to weapons, too? Like ‘skill stones’ as well as manastones?

Leave a Reply

Your email address will not be published. Required fields are marked *