Jump to content
buddysievers

Goto Menu Scene after loading a file

Recommended Posts

Hi and hello big sry if im posting in the wrong section!
I wonder if i can get vx ace to open the menu instead of going to scene map after loading a file?
I tried to set a switch to true when the game gets saved and again to false after that and then added
a condition in scene map which checks if the switch is on and then go to the menu scene but you can see the map
before which i dont want.
I tried to put a Graphics.brightness = 0 at the top of the start method but that didnt worked so i have no clue what to do.
Maybe someone can help me out with that.
Sry for the bad grammar and big thx in advance! :)

Share this post


Link to post
Share on other sites

Hi buddysievers,

 

It seems you are looking for a script for this, since normally loading a file transports you back to the map, rather than on the menu. 

Share this post


Link to post
Share on other sites

I dont think that there is a script for that, i can only hope someone have an idea where to start in the standard scripts.

MAybe its not possible at all and before i start digging arround i thought maybe someone knows more then me.

Share this post


Link to post
Share on other sites

Well, the simplest hack you can do is on the Scene_Load. For example:

 

class Scene_Load < Scene_File
  def on_load_success
    Sound.play_load
    fadeout_all
    $game_system.on_after_load
    SceneManager.goto(Scene_Menu)
  end
end

Something like this. But remember that when this happens, the scene still places you on the title screen. I wonder how you'd be transported from the map, however, or how you're exactly planning on doing that.

Share this post


Link to post
Share on other sites

Thx alot for your help so far!

That works great when you just go back to the title screen and load a game but

when you restart it and load then ace crashes.

 

uninitialized class variable @@last_command_symbol in

Window_MenuCommand

 

 

Edit: Well when i close my menu i call a worldmap scene from where i go to different maps.

I cant tell why i dont want people to save from maps yet cus its a big part of my game mechancs.

 

Edited by buddysievers

Share this post


Link to post
Share on other sites
module SceneManager
  self.loadmenu
    @stack.push(Scene_Map.new)
    @scene = Scene_Menu.new
  end
end

class Scene_Load < Scene_File
  def on_load_success
    Sound.play_load
    fadeout_all
    $game_system.on_after_load
    SceneManager.loadmenu
  end
end

 

I found this in RMW forums under the same topic. I wonder if this would work.

Share this post


Link to post
Share on other sites
On 29.9.2017 at 11:25 AM, PhoenixSoul said:

module SceneManager
  self.loadmenu
    @stack.push(Scene_Map.new)
    @scene = Scene_Menu.new
  end
end

class Scene_Load < Scene_File
  def on_load_success
    Sound.play_load
    fadeout_all
    $game_system.on_after_load
    SceneManager.loadmenu
  end
end

 

I found this in RMW forums under the same topic. I wonder if this would work.

Gives the same error.

 

uninitialized class variable @@last_command_symbol in

Window_MenuCommand

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×