Title is self explanatory, how can I call the load menu using a script call in a event, in a similar way to SceneManager.push from RPG Maker MV and such?
[RMXP] How to call the load menu with scripts
RPG Maker XP SupportThe default load scene is only meant to be accessible from the title screen. You'll have to make a couple changes for it to be used from the map.
Make the following edits to the Scene_Load script
Then you should be able to call it via
That 'true' bit is absolutely required.
Make the following edits to the Scene_Load script
Code:
def initialize(from_map = false)
@from_map = from_map
# Remake temporary object
$game_temp = Game_Temp.new
# Timestamp selects new file
$game_temp.last_file_index = 0
latest_time = Time.at(0)
for i in 0..3
filename = make_filename(i)
if FileTest.exist?(filename)
file = File.open(filename, "r")
if file.mtime > latest_time
latest_time = file.mtime
$game_temp.last_file_index = i
end
file.close
end
end
super("Which file would you like to load?")
end
Code:
def on_cancel
# Play cancel SE
$game_system.se_play($data_system.cancel_se)
# Switch to title screen
$scene = @from_map ? Scene_Map.new : Scene_Title.new
end
Code:
$scene = Scene_Load.new(true)
Oh my! Thank you so much, it works perfectly!
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/rmxp-how-to-call-the-load-menu-with-scripts.137571/