[VXAce] Use (key) item on event - How to?

I've seen this sort of thing done in RPG Maker games, I think.
  • The player character stands in front of and facing the object you're about to use the item on
  • The menu is opened manually, and the relevant item is selected, also manually
  • Things happen as a result
I've got a key item and an object I intend to use it on, but I'm afraid I don't know how to do that. I've looked up some tutorials, but a lot of them don't have quite what I'm looking for - for example, I don't want a system that automatically checks whether I have an item in my inventory when I examine the object and reacts accordingly, and I don't want to have a system where the player character checks the object, and that opens up a sort of key item menu to select the key item from.

(I later intend to find a way to reduce the items menu to just key items - no armor/equipment submenus, etc. - and I don't know how to do that, either. I only mention it here in case it's pertinent to the above problem.)

Thanks for any help you can give me.
If you are using key items, the player doesn't open the menu manually - they interact with the object in front of them, and a menu opens showing only items that are marked as key items.

In your event, use the Key Item command, and select a variable to put the item id into. This will cause the menu to open with all the key items currently in inventory listed. The player will choose an item, and the item id will go into that variable. Next you will use a Conditional Branch to see if that variable has the correct number in it - the id of the item that needs to be used. If the player has used the correct item, the commands after the conditional branch will be executed. If they haven't, the commands after the Else statement (if you have one) will be executed.


The other way to do it, without using Key Item, is to let them open the menu manually and choose an item, but this lists ALL items currently in inventory, and some of those will already be set up to affect the party or a party member in certain ways. You would then have to have common events attached to all your items, and then a whole truckload of conditional branches to determine where the player is currently standing and what event they may (or may not) be facing, and if that particular item can be used on that particular event. That would be way too much work, and too confusing for the player.
I once used a script called "Using Key Items to Trigger Events" from Tsukihime. I think it is what you are looking for: http://himeworks.com/2014/11/using-key-items-to-trigger-events/#more
I once used a script called "Using Key Items to Trigger Events" from Tsukihime. I think it is what you are looking for: http://himeworks.com/2014/11/using-key-items-to-trigger-events/#more
That looks like what I'm looking for, but will that work considering I'm not using MV? EDIT: I got the same page when I looked down the long list of VX Ace scripts, so I guess it will.

In case this helps, what I'm looking to do is something like what happens in this video, about three minutes in:
The link i gave you is a script for VX Ace, not a plugin for MV. Tsukihime first created scripts for VX Ace, then plugins when MV was released.
I believe that video's effect is achieved by making the item trigger a common event, related to the player's location.
it sends the player's coordinates to the event, and the event reacts.
it can be done with any item, it doesn't have to be a key item.
note that when the player interacts *with the bush*, *it* says "the way is blocked"
I'm assuming that sequence is made without any plugins.
Did you manage to Event it? Or do you need further assistence?
Did you manage to Event it? Or do you need further assistence?
Testing it out now, and it seems to be exactly what I was looking for!

Thanks, everyone.

Original thread: https://forums.rpgmakerweb.com/threads/vxace-use-key-item-on-event-how-to.86382/