Hii! Possibly a stupid question, but in the game I'm working on there are both human and mech playable characters. I was thinking humans would need food to function, while the mechs would require fuel. Is there a way to make it so that the player *can't* make a human character drink a fuel item or a mech character eat a food item?
Can you make some items only usable by certain classes?
RPG Maker MV SupportIf no one can give a more elegant solution, you could have the items run a common event that includes choosing which actor uses or benefits from the item. You can either restrict the choices to sensible ones, or if an inappropriate choice is made, tell the player ("Robby the Robot can't eat the apple pie.")
That sounds simple enough! Thank you, that should work 😀
I got ActionRestriction that block the use of items to actors or on skills.
it might work for your need.
items wont be visible for the actor if it is blocked or blocked
if an actor try to use it on them.
I could add classes specific if it wasn't added already
it might work for your need.
items wont be visible for the actor if it is blocked or blocked
if an actor try to use it on them.
I could add classes specific if it wasn't added already
You can also use my plugin: https://aerosys.blog/item-restrictions
Actually turns out it wasn't simple enough for me... I know next to nothing about how any of this works and I'm a total newbie hehe
Would you happen to know how I should go about having the event be different based on what actor it targets? For example have it work if the apple pie is being fed to ''Henry the Human'', but tell the player that ''Robby the Robot'' can't eat it if they try giving it to him. I've tried conditional branches but there doesn't seem to be an option that directly depends on what party member the item is being used on 😅
Actually, that works! Thank you everybody 👍
It sounds as if you have found a solution, so feel free to ignore below.🙂
Make the item have a scope of "none", but under "Effects" call a common event. The common event lets the player choose who to apply the item to, and allows you to exclude actors who can't use it. For instance, if you don't have a huge number of actors you could use the editor command "Show Choice", where the choices are actors who the item can be used on.
Some games have a choice of which actors the player uses, which means there would be some actors who would be able to use the item but are not in the party. There are a number of ways round this; for instance, you could use a plugin such as the HIME_HiddenChoicesConditions, to hide choices for actors that aren't in the party.
Here is what I had in mind:
The item:
And the common event:
Anyway, good luck.
The Common Event solution works great if you have a stable roster of actors. If you are going to be swapping out, the plugin approach is going to be a lot more straightforward, and less work.
Original thread: https://forums.rpgmakerweb.com/threads/can-you-make-some-items-only-usable-by-certain-classes.179702/