Yanfly's Item Requirements plugin apparently only works for items in battle. I have an item that is only usable from the menu, never in battle, and I need it restricted to a specific actor. As it is now, anyone can use it but it's completely wasted on anyone but #1. What would be the best way to go about this?
MV Need to make an item usable only by a specific actor
Javascript/Plugin Supportsearch in the objects plugin for "canUse"
there is actor and gameparty canUse.. for example
you might be able to make an edit that asks about the item id or item note, and if that is "true"(means your item is in question of canUse) , add a condition that only returns canUse as "true" in relation to the actor id
However this solution will need JS knowledge and i am just giving hints where to start. Perhaps anybody else can give you step by step advices how to do this solution..
you must be very carefull with this edit to not affect other items or even skills "canUse-trigger" aswell
-> also dont edit the default objects plugin itself, better make a miniplugin that rebuilds the edited function
---------
pehaps there is also a plugin solution that is easier ,but i got no idea, what plugin could be used for that.
there is actor and gameparty canUse.. for example
you might be able to make an edit that asks about the item id or item note, and if that is "true"(means your item is in question of canUse) , add a condition that only returns canUse as "true" in relation to the actor id
However this solution will need JS knowledge and i am just giving hints where to start. Perhaps anybody else can give you step by step advices how to do this solution..
you must be very carefull with this edit to not affect other items or even skills "canUse-trigger" aswell
-> also dont edit the default objects plugin itself, better make a miniplugin that rebuilds the edited function
---------
pehaps there is also a plugin solution that is easier ,but i got no idea, what plugin could be used for that.
What kind of effect does it do?
Give the item Other -> Common Event. Set the Common Event to only work for/on that character. If if it's supposed to be consumed, set it as non-consummable and decrease the inventory of it if the correct character uses it.
Moved to: Plugin Support
It teaches a skill
Not sure if this is what you need but a friend of mine created a plugin to restrict the use of an item to specific actors : you just have to turn it on and add in the item's note box the list of actors that can use the item, for example if it should only work on your second and third actors:
<target:0002:0003>
It only works for consumable though, I'm joining the plugin to this reply.
Edit : just saw your reply about the fact that it teaches a skill, so this should work hopefully 🙂
<target:0002:0003>
It only works for consumable though, I'm joining the plugin to this reply.
Edit : just saw your reply about the fact that it teaches a skill, so this should work hopefully 🙂
Thread closed
Original thread: https://forums.rpgmakerweb.com/threads/need-to-make-an-item-usable-only-by-a-specific-actor.143739/