Instance Items with Falcao’s Manastone Enchantment

Help spread the word!Share on FacebookShare on TumblrTweet about this on TwitterShare on Google+Share on LinkedInShare on RedditFlattr the author

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.

Help spread the word!Share on FacebookShare on TumblrTweet about this on TwitterShare on Google+Share on LinkedInShare on RedditFlattr the author

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.

To create code blocks or other preformatted text, indent by four spaces:

    This will be displayed in a monospaced font. The first four 
    spaces will be stripped off, but all other whitespace
    will be preserved.
    
    Markdown is turned off in code blocks:
     [This is not a link](http://example.com)

To create not a block, but an inline code span, use backticks:

Here is some inline `code`.

For more help see http://daringfireball.net/projects/markdown/syntax