Equippable Limits
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.
(item disabled for illustration only)
Download
Script: download here
Installation
Place this script below Materials and above Main
Usage
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.
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.
it's possible used in a state?
Sorry, they get it wrong, thought it might be possible to perhaps add:
"<equippable limit: x type>" = "<equippable limit: 2 w2>"
But I got it wrong. xD
That could be added but then I might need to change the note-tag.
You will do this? xD
But the idea is good = D
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
nvm i did it
If you want to share your code I can post it as an add-on for anyone else that might be interested.
Sorry for the delay. I'm really busy lately…
Anyway here it is: <a href=http://pastebin.com/R5jkjie9 title="here">
http://pastebin.com/R5jkjie9
Ok, looks like the tags system are messed up xD
Stupid dropbox won’t load. I just get that stupid box with the spinning circle that says loading. It never loads!
Nevermind, it finally did after a while.
This became necessary for me with the addition of the dynamic equipment slots mechanic. 🙂