Using items in a specific place

So, I want the character to be able to go into their inventory and use an item and have it do a certain thing in a certain place/on a tile. I think there's a way to do this with common events but I'm not sure how. If there's a script please tell me :0

Thanks!
you canhave the item call a common event and have the CE check the current player position.


Or you can make a map event at that position checking for the item in inventory and trigger the effects.
Have the common event activated by the item store the Map ID (and the player's X and Y coordinates, if needed) in variables, then use conditional branches to see if the player is in the map the item can be used and if their position on the map is acceptable for using the item. Make sure each subsequent conditional branch is within the previous one, so that all conditions are needed. You can then set it to activate a switch if all conditions are fulfilled, which can trigger an autorun event in the map the item should be used in.
Another thing you can do is use this script. http://himeworks.com/2014/11/key-item-trigger-labels/ It works quite well, without forcing you to make a dozens of conditionals , if you plan on making, say, a puzzle game, where you can try and use the same item on many different situations.

The only downside is that you can only do it from the designated key item window, not manually. Meaning, pressing the B button to go to the menu, going to the items menu and selecting the key item.

There's another script made by Tsuki that works a bit differently and utilizes common events and switches. But that means that you might have to make a lot of switches just for a single function, which I don't like.
thanks!

Original thread: https://forums.rpgmakerweb.com/threads/using-items-in-a-specific-place.49634/