Item to dream land

I plan to make an item, that can use it to go to other map, like a dream land. Then i will remove the item from tools, add in with another item that has same name and icon. Next, i will use newly add item, to transfer back to the location where i start to use the ori item and get transferred away.

Mean:

Item A: remember current location, transfer to dream land

Item B: transfer back to the location remembered by Item A

Can anyone please teach me step by step, on how to create the item in order to get the location for Item A? I tried variable with map ID, then get location info in page three of the event setting menu, but it does not work properly.
So here's the jist of it. This assumes that you've taken the time to skim through the menus and have a basic understanding of variables, switches and events. I'll leave out the basic/common sense stuff.

Make a common event and assign it to your item.

First Event/First Item:

"Get Player Location/Region" -> Have variables called "Location" or something like that, and set them to receive the X and Y coordinates of the player. Then Teleport to the 'Dream Land' and do "Change Item" (Decrease, constant: 1) for the first item, and then "Change Item" (Increase, constant: 1) to add the second item to the player's inventory.

Second Event/Second Item:

Teleport via Variable [The "Location" variables that you set up before] and the same "Add/Remove" item steps from before, but reversed.

I'm not sure why you'd want two items if they'll have the same icon. Just use a self-switch and two event pages.
Ya, i just think off to use one item, and set some switch is enough. So that i does not need to use two item and need to add and drop in the common event page. The problem now is the x and y coordinate. I can get the MAP ID via control variables_game data_MAP ID. But the x and y I try to use Get Location Info_Terrain tag_and assign x and y variable for the Map X: and Map Y:, it does not work as i plan. Is it i use it in a wrong way?
Now i realize what i have done is wrong. Sorry for that Levi W. I just look at the Map ID, actually can look for Character Map X in control variable as well. Thanks for the help given. Usually im just adding constant into control variable, never realize the other function....Now learn a new thing.
I'm glad to help! I feel like I have been through everything in RPG Maker, but I still learn new things everyday! 🙂
Ya is true. I am happy when i can learn new thing everyday. Especially in RPG maker. Hehe...so happy to use new thing leant in game making, and upgrade the story of game...
xiaoyaotaigong, please avoid double posting, as it is against the forum rules. You can review our forum rules here. Thank you.

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/item-to-dream-land.2840/