How to go back to the previous scene ?

Hi community,

I have a problem with my menu here is the situation.

When I go to map I teleport to the map I created; so far no problem. But I can't seem to go back to the previous scene. I found the script call on forums but it doesn't work. How to do it please?
"SceneManager.return"

Another question on the menu (picture below) ovus can see at the top N [1]. I would like to make sure there is the hero's name. For info I use the yanfly main manager plugin

I also recorded a video for more details

Thanks a lot 🙂

Capture d’écran 2021-05-02 à 14.31.59.png

Capture d’écran 2021-05-02 à 14.32.05.png
Generally speaking, if you want to teleport and be able to get back to where you were, you want to store the player's current Map Id, Player X and Player Y into variables and then use those variables to transfer back when your game needs it.

For the name thing, you can try \N[1] to see if that works. If not, you'll need a plugin to enable these kinds of codes in your Choice List.
Thanks for the reply, how do you store the card id ?

For the name it does not work I will need a plugin
Generally speaking, if you want to teleport and be able to get back to where you were, you want to store the player's current Map Id, Player X and Player Y into variables and then use those variables to transfer back when your game needs it.

For the name thing, you can try \N[1] to see if that works. If not, you'll need a plugin to enable these kinds of codes in your Choice List.
Thanks for the reply, how do you store the card id ?

For the name it does not work I will need a plugin
the control variable command can access and store most game data - just change the default "Map ID" to whatever else you need.
the control variable command can access and store most game data - just change the default "Map ID" to whatever else you need.
Thank a lot it's work ! 😀

Original thread: https://forums.rpgmakerweb.com/threads/how-to-go-back-to-the-previous-scene.136091/