(RMMV)Transfering actor to where he was before a cutscene[solved]

Hello, I have found a problem and hope someone can help me.
This is my first forum post so I hope didn't make too many mistakes. And English is not my mother tongue so I'm sorry for my language in advance.

So I am currently working on a project, where you can collect memories as Items. If you use one, a corresponding cutscene(memory) will be shown.
But to make that happen I obviously have to transfer the actor back to the map of the cutscene. After the cutscene(memory) is shown, the actor would have to be transferred back to where he was, before he used the memory(item).
I really have no idea how to do that, since the player can use the memories whenever and wherever he is.
So the location is basically random and I can't just use a "transfer actor to" since I don't know where the player was before using a memory.
The Item "memory x" will activate a common event which just transfers you to the map of the scene.
Spoiler: spoiler
wAtm3A.png

Sorry I'm using the german RMMV so I translated right next to it. I hope it's understandable.
The cutscene itself uses events on the map.(I think about putting those to the common events but for now they are on the map)

Does anyone have an idea how I can transfer the player to where he was before transferred to the map of the cutscene? If you can't do it with the RMMV then maybe there is some sort of plugin that I could use?
I haven't seen such a question in the forums but if there is please link it to me. If not I hope there is someone who can help me .
Thank you for helping me! I hope you all have a great day🙂
Yes, you can store the player's current X, Y, and Map coordinates in variables, then use Transfer Player with variables to put them back~
Code:
◆Comment:Remember where player is now.
◆Control Variables:#0016 Player M = Map ID
◆Control Variables:#0017 Player X = Map X of Player
◆Control Variables:#0018 Player Y = Map Y of Player
◆Comment:---------------
:       :STUFF GOES HERE
:       :---------------
◆Comment:Put player back where they were
◆Transfer Player:{Player M} ({Player X},{Player Y})
X and Y coordinates can be stored via Control Variables > Game Data > Character; Map ID is at Game Data > Other. 😤
◆Comment:Remember where player is now. ◆Control Variables:#0016 Player M = Map ID ◆Control Variables:#0017 Player X = Map X of Player ◆Control Variables:#0018 Player Y = Map Y of Player ◆Comment:--------------- : :STUFF GOES HERE : :--------------- ◆Comment:Put player back where they were ◆Transfer Player:{Player M} ({Player X},{Player Y})
Wow, I literally can't thank you enough. I've tried it out and it works perfectly. I hope you have a wonderful day🙂

Original thread: https://forums.rpgmakerweb.com/threads/rmmv-transfering-actor-to-where-he-was-before-a-cutscene-solved.108204/