Can i use itens to interact with map?

I'm making a game on RPG Maker MZ, I wanted to know if there is any way to use items to interact with the scenery. The only way I found was to use "if have x item on party", but I want to make the player choose the item on the menu screen and then interact with the event.
many ways.

select item is a command that returns the ID of the selected item from inventory, then use conditional branch to react depending on the item chosen.

control variable has a very powerfull game data section that allows you to get (among other things) the coordinates of the player or events on the map

get location info returns info on a certain map position based on given or calculated map coordinates.


Those are the basic commands available and they can be used in many ways.
for more help you would ask more specific questions on how to do what.
many ways.

select item is a command that returns the ID of the selected item from inventory, then use conditional branch to react depending on the item chosen.

control variable has a very powerfull game data section that allows you to get (among other things) the coordinates of the player or events on the map

get location info returns info on a certain map position based on given or calculated map coordinates.


Those are the basic commands available and they can be used in many ways.
for more help you would ask more specific questions on how to do what.
I don't think I quite understand how to use this in practice. When an item is selected from the inventory, you are only given the option to use it on a member of the party.
When an item is selected from the inventory, you are only given the option to use it on a member of the party.
you don't select it from inventory, the select item command only works outside the inventory on the map.

you trigger an event on the map, that event uses the select item command to ask the player what item to use on the event and then checks the returned variable for item id's it can handle or do nothing with the wrong items.

if you want to use an item through inventory, you need to attach a common event and make the item have no other effect. then in the common event you use control variable to find out where on the map the player is and check if there is something there that makes sense for the common event to be triggered there.
You can try this
1) Create an item and add a common event when use in bag
2) Check Map ID (you can add other conditions)
3) If all requirements are met, change the map like transfer player to another map or get an item

Original thread: https://forums.rpgmakerweb.com/threads/can-i-use-itens-to-interact-with-map.172080/