Dynamic Equip Slots

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 add or remove equip slots during the game using script calls. You can add or remove equip slots as many times as you want using simple script calls.

Download

Script: download here
Required: Core – Equip Slots

Installation

Place this script below Core – Equip Slots and above Main

Usage

Adding equip slots

To add equip slots, use the script call

add_equip_slot(actor_id, etype_id)

Your slots will automatically be sorted based on your configuration in Core – Equip Slots

dynamicEquipSlots2

Removing equip slots

To remove an equip slot, use the script call

remove_equip_slot(actor_id, etype_id)

Any equipped items in the removed slot will be returned to your inventory.

dynamicEquipSlots1

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

13 Responses

  1. AxD141 says:

    Hello there. Can support be added for adding slots to an actor based on his/her position in the party?

    This would remove the need for a rather large conditional branching, due to the large amount of actors in my game :s

    That’s all.

  2. Silent Darkness says:

    Yeah. Would that work?

    • Silent Darkness says:

      Sorry, I can’t seem to post another reply in that comment series for some reason.

      • Hime says:

        Comments seem to be only able to go a few levels deep. Next time just reply to one of the earlier comments in the tree so it’s still localized.

        Equip slots are added or removed based on script call, so if you check the actor ID and it doesn’t satisfy the condition, then don’t make the script call, and the slots won’t be added.

  3. Silent Darkness says:

    Interesting. Would it be possible to make with the dynamic equip slot adding/removing for one particular party member only?

    I have an idea for how to use this script, where there’s this unique quest item amulet that a character can wear, that gives extra equip slots to insert crystals into the amulet. Of course, there’s the problem of making sure all characters don’t get these extra slots atop it. Any ideas?

    • Hime says:

      The script currently only provides script calls, so I would imagine you can just do a condition check to see who is trying to equip it.

      • Silent Darkness says:

        Not exactly sure how i’d precisely go about adding a conditional branch to check on who is trying to equip in those extra slots. I mean I have a general idea, but not sure on the where. I’m guessing that the extra slots would still show up for all party members, though?

        • Hime says:

          The way the Core Equip Slots script is designed, each actor keeps track of which slots they have. This script builds on that concept and allows you to add/remove slots for each actor individually.

          Let’s assume the conditions don’t matter. How are you planning to add the slots in the first place?

          • Silent Darkness says:

            How I would have the slots be added is that I would have a parallel process common event that would check, on a loop, to see if any of the party members have said amulet equipped. If so, the script adds the slots to the actor who does, and then instead runs checks to make sure that the party member still has the amulet equipped.

            The player can’t remove the amulet from the party member without removing the crystals first, however.

          • Hime says:

            Presumably if you’re checking if the actor has an amulet on, you would be able to check this actor’s ID as well?

  1. September 29, 2015

    […] start off, get the script from here, open the script editor (F11) and insert it under the “▼ Materials section” and above the […]

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