Szyu 52 Posted August 28, 2014 (edited) Szyu's Items Class Restriction Introduction Easily specify items, weapons and armors, which can only be used/equipped by certain classes How to Use An item's note have to contain one of these: <classes: x> # This will allow specified classes to use this item <!classes: x> # This will forbit specified classes to use this item Seperate multiple classes with ','! Allowed Database Items, which can be restricted by this script: - Items - Weapons - Armors If There is none of those tags in the items note, every class is permitted to use or equip this item! Same goes wie <actors: x> and <!actors> for restricting items, weapons and armors for actors. Links Pastebin via Adf.ly if you want to support mePastebin direct Credits Credits to Szyu if you plan to use this script. Changelog - Fixed problem when the player's party's size is larger than 1 - Added function for restricting by actors - Fixed bug where actors and classes could use restricted items in battle Edited September 11, 2015 by Szyu Share this post Link to post Share on other sites
MHRob 8 Posted August 28, 2014 I can definately see the use for this with just items. Weapons and armors can already be done via the game and just adding in more terms and what not. Either ways, thanks for the script. Now if anyone ever wanted a robot to only drink an oil item and not a human character, well, they basically can, using your script. Thanks for sharing! Share this post Link to post Share on other sites
LucidK 39 Posted August 28, 2014 Would this script work to say, create a negative impact if a specific class used a certain item?Example:Party: Archer, Warrior, Zombie, DogItem: PotionEffect: Heal 20hpProblem: Zombie is undead. Zombie would be hurt by health potion. Share this post Link to post Share on other sites
Szyu 52 Posted August 28, 2014 No this script will not allow something like this. It just prohibits usage/equiping by specific classes. But this is a good idea for a script.. Think I will be uploading the new one soon 1 Share this post Link to post Share on other sites
Amber 1 Posted August 28, 2014 This scripts reminds me during rm2k3 where items can only be used by certain class or actors. It's brings back memories Though in the game already been provided by database and class/actor section, if just ACTOR and actor can't equip this or that and needs that class in order to equip it Share this post Link to post Share on other sites
Szyu 52 Posted August 28, 2014 Added new function to restrict usage by actors and fixed a problem with larger parties Share this post Link to post Share on other sites
Szyu 52 Posted September 11, 2015 Updated to version 1.2 A bug was fixed, where actors and classes could use restricted items in battle. Share this post Link to post Share on other sites
AdamGrayson 0 Posted July 13, 2016 whenever I try to use this script and my characters use a heal spell it crashes the game. Share this post Link to post Share on other sites
zizonlu 0 Posted May 21, 2019 On 8/28/2014 at 5:21 PM, Szyu said: Added new function to restrict usage by actors and fixed a problem with larger parties its never working Share this post Link to post Share on other sites
roninator2 256 Posted May 22, 2019 7 hours ago, zizonlu said: its never working Again, tested and works fine. <actors: x> and <classes: x> both work as described. Share this post Link to post Share on other sites
Zizi 0 Posted March 31 So I'm using this like was said and now it's not letting me use either item? I'm not entirely sure what's going on with it but at least I know it works to block access, even after only using the non '!' part of the script. For the time being it's not too important but I would like to figure it out. Share this post Link to post Share on other sites
Perang Cemen 188 Posted April 1 18 hours ago, Zizi said: So I'm using this like was said and now it's not letting me use either item? I'm not entirely sure what's going on with it but at least I know it works to block access, even after only using the non '!' part of the script. For the time being it's not too important but I would like to figure it out. Does it need to put [array] manually there? I'm not much of a scripter but I would put the Array stuff in the "Scrpit" not in the "Note", so I can just put the numbers/ID at Note like these: <classes: 2, 3> or perhaps: <classes: "2","3"> or maybe: <classes: 2 - 3> That's just a rough example, like I said I'm not much of a scripter(doesn't sound convincing) myself so correct me if I'm wrong. Share this post Link to post Share on other sites
roninator2 256 Posted April 2 @Zizi, @Perang Cemen Looking at the code, the note tags are to be used like this <actors: x, y, z> <classes: x, y, z> Share this post Link to post Share on other sites