Equippable Limits

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

This script allows you to limit how many instances of item any actor can equip at the same time. For example, if you have three accessory slots, you might disallow equipping more than one exp bonus accessory at any given time.

equippableLimits1
(item disabled for illustration only)

Download

Script: download here

Installation

Place this script below Materials and above Main

Usage

equippableLimits2

Note-tag equips with

<equippable limit: x>

An actor cannot equip more than x instances of those equips.

You can also limit equips by the item’s type, by typing the word “type” after

<equippable limit: x type>

For example, suppose you can only equip at most one katana at any given time (meaning, you can’t equip two katana). You can tag every katana type weapon with

<equippable limit: 1 type>

And then whenever you equip a katana, all of the other katana can no longer be equipped until you remove it.

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...

14 Responses

  1. Eon says:

    This is just what I needed! The protagonist of my current project uses two different weapon types, and I needed some way to prevent players from equipping two of the same type.

  2. TiagoMS says:

    it's possible used in a state?

  3. Axel says:

    Hi!
    It is possible to make this works with Instance Items?
    So when you equip an instance of an item you with '<equippable limit: 1>' on its template, you are unable to equip any other instance of this item

  4. Animebryan says:

    Stupid dropbox won’t load. I just get that stupid box with the spinning circle that says loading. It never loads!

  5. RogueDeus says:

    This became necessary for me with the addition of the dynamic equipment slots mechanic. 🙂

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