Return to game command

(I'm not sure if this should be placed in a Luna Engine or RGSS scripting board. Please, correct me if I'm wrong.)

I'm playing around with Luna Engine and try to create custom menu. However, I can't figure out how to create "Return to game" button, so that players won't have to press X key.

I tried using:

  • Vocab::cancel
  • SceneManager.return
  • SceneManager.goto(Scene_Map)
  • SceneManager.call(Scene_Map)
  • Window.dispose
Unfortunately none of them did the trick. Could anyone help me, please?
That's weird, when I was making the "Return to game" command I used the third option (SceneManager.call (Scene_Map)) and it worked...
Did you start with the luna engine base ? . If you did as suggested in the manual, then you should have the script by Neon Black called   "CP Menu Command Config" . In this script will be where the magic works. The piece of code your looking for looks like this.

Spoiler
😛ush => 8, :name => "Back", :icon => 495, :type => 1, :type_sym => :return_scene, :actor_sel => false, :nabl_type => 0, :nabl_sym => nil, :appear => true, },
Where this part is the position you want it to be on your menu.
Code:
:push => 8,
If you dont have this script you can get it here. At Luna engine's GitHub.
Brank, thank you for suggestion. However, I'm still in the same spot - :return_scene points to a

  def return_scene    SceneManager.return  endWhich I have already tried. And what I'm trying to do is add an option to get "back to game" from Yanfly Engine Ace - System Options (it offers "Back to title" and "Shutdown" only).

-- Update

Nevermind, I've made some stupid mistake in the code and that was my whole problem. SceneManager.call(Scene_Map) works fine.

Original thread: https://forums.rpgmakerweb.com/threads/return-to-game-command.42201/