Somebody has a quick solution or Plugin in which I can forbid access to use Items for specific Actors or Classes? I want specific Actors to behave like summons or pets (beastmastery). If not, I would quickly write a Plugin for myself, but maybe someone already has some tips.
Disallow Usage of Items for specific Actor / Class?
RPG Maker MV Supportthere is one that forbid Equips though, but not items or skills,
skills specific might be one of yanfly plugins though, but still,
there is not for items.
combine armor, skills, items etc in 1 plugin is better than using 3 for the same purpose 😛
skills specific might be one of yanfly plugins though, but still,
there is not for items.
combine armor, skills, items etc in 1 plugin is better than using 3 for the same purpose 😛
I think Yanfly's Item Requirements can help do this. It provides you a way to forbid item usage via pieces of codes putting into the item's note tag. Take a look and follow his instructions on how to set up, and I hope your problem can be resolved.
Good tip! But it's not exactly what I was looking for. I wish to remove or disable the "Use Item" Command during Battle completly when a pet is selected. Okay then I just do it by myself, it shouldn't be too difficult.
If anyone finds this thread because he has the same issue, after some years or whatever, feel free to contact me.
Were you able to do it?
In the mean time I just programmed a Plugin that disables Item Command for any Actor except the first one, as I had only one Protagonist and the rest were pets. Super simple but works fine for me 🙂
If I need it to be more flexible I could extend it.
Can you share the code? I have some item (vodka for example) only special actor can use. But in the game menu.
Sure, but I don't think it fits your needs. But I can think about making a more flexible Plugin 😉
As you can see, it just overrides the Battle Menu and removes Item Command when the actor Id is not 1.
Code:
// Override
Window_ActorCommand.prototype.addItemCommand = function() {
if (this._actor && this._actor._actorId == 1)
this.addCommand(TextManager.item, 'item');
};
As you can see, it just overrides the Battle Menu and removes Item Command when the actor Id is not 1.
A, I see. Thanks anyway)
Original thread: https://forums.rpgmakerweb.com/threads/disallow-usage-of-items-for-specific-actor-class.120217/