Use Item on Event

Basically player can press a certain button to open up an item menu, then choose an item to use on an event. The event conditional branch can control whether an item is used on the event and what item is used. Something like Chrono Cross.

For example,

A door blocking the way.

Player trigger it normally. A message popup 'A key is needed to open the door.'.

Player trigger it by using Yellow Key. A message popup 'This key cannot fit in.'.

Player trigger it by using Red key. Door unlocked.

Thank you.
You can use the Select Key Item event command for this.
The way I handled this in Ace was to create something called Event Trigger Labels, with an extension called Key Item Trigger Labels


The general idea is a single event page could be triggered in different ways, either using button presses, or key items.


It basically allowed you to pull up the key item window at anytime and select an item to use.


Once the item was used, it will trigger whatever is in front of you. You can see how it worked in Ace with this tutorial. This was largely inspired by Chrono Cross.


Your events looked like this


UsingKeyItemEventTriggers5.jpg



The label is used to tell the engine what part of the event to process depending on which button or key item you used.


So far, I haven't decided whether that is the approach I will take yet, but if I can't think of any other solution that is easier to manage I will likely just port it over to MV.
Hmm... what I meant was, the player can choose to use an item on any event, instead of having to pre-determine which event allows player to use item on. It includes non-key item as well.

For example, the player can use a potion on an injured man to trigger a certain event.
Galv had an exact script for this in Ace. He hasn't ported it over to MV yet though. No idea if he's working on it either. It was a very useful script, so I'm hoping he's going to port it soon 🙂

Meanwhile, the FoxActionSkills plugin can also be used for what you're intending to do. Why not give it a try?
Hmm... what I meant was, the player can choose to use an item on any event, instead of having to pre-determine which event allows player to use item on. It includes non-key item as well.


For example, the player can use a potion on an injured man to trigger a certain event.
If you're using RMMV, the limit to key item has been removed from that command, it can use any item (even items that are hidden from inventory).
And it's much easier to program the event to check if the correct item is used on it than to program an item's common event to detect and identify every possible event it could be used on.

Original thread: https://forums.rpgmakerweb.com/threads/use-item-on-event.50913/