Status
Not open for further replies.

Gamingstar

****** Gang Leader
Veteran
Joined
Jul 17, 2017
Messages
51
Reaction score
11
First Language
English
Primarily Uses
RMVXA
Hello, I need help with adding the a "Load" option above "Save" in the ingame menu. (Without yanfly's menu script) Any help is appreciated!
r2uesZd
https://i.imgur.com/r2uesZd.png
 
Last edited:

Heirukichi

Veteran
Veteran
Joined
Sep 24, 2015
Messages
1,461
Reaction score
625
First Language
Italian
Primarily Uses
RMVXA
This should work for you.

Code:
class Window_MenuCommand < Window_Command
 
  alias hml_add_original_commands_old add_original_commands
  def add_original_commands
    hml_add_original_commands_old
    add_command("Load", :load, load_possible)
  end
 
  def load_possible
    DataManager.save_file_exists?
  end
 
end

class Scene_Menu < Scene_MenuBase
 
  alias hml_create_command_window_old create_command_window
  def create_command_window
    hml_create_command_window_old
    @command_window.set_handler(:load, method(:command_load))
  end
 
  def command_load
    SceneManager.call(Scene_Load)
  end
 
end

Just copy/paste it in your scripts, below Materials.
 
Last edited:
  • Like
Reactions: mar

Gamingstar

****** Gang Leader
Veteran
Joined
Jul 17, 2017
Messages
51
Reaction score
11
First Language
English
Primarily Uses
RMVXA
This should work for you.

Code:
class Window_MenuCommand < Window_Command
 
  alias hml_add_original_commands_old add_original_commands
  def add_original_commands
    hml_add_original_commands_old
    add_command("Load", :load, load_possible)
  end
 
  def load_possible
    DataManager.save_file_exists?
  end
 
end

class Scene_Menu < Scene_MenuBase
 
  alias hml_create_command_window_old create_command_window
  def create_command_window
    hml_create_command_window_old
    @command_window.set_handler(:load, method(:command_load))
  end
 
  def command_load
    SceneManager.call(Scene_Load)
  end
 
end

Just copy/paste it in your scripts, below Materials.
THANKS! Works perfectly! (PS. Do I owe you credit in my game credits when I publish it? I'm gonna credit you for now)
 

Heirukichi

Veteran
Veteran
Joined
Sep 24, 2015
Messages
1,461
Reaction score
625
First Language
Italian
Primarily Uses
RMVXA
Do I owe you credit in my game credits when I publish it? I'm gonna credit you for now
Giving proper credit to people who help you is always the right thing to do. Anyway for that one I only used a few built-in methods already existing in Window_TitleCommand and Scene_Title so it wasn't much work, it took around 5 minutes to get that done (even less probably).

I won't die if you do not give credit to me even if being credited is always appreciated.
 

Gamingstar

****** Gang Leader
Veteran
Joined
Jul 17, 2017
Messages
51
Reaction score
11
First Language
English
Primarily Uses
RMVXA
Giving proper credit to people who help you is always the right thing to do. Anyway for that one I only used a few built-in methods already existing in Window_TitleCommand and Scene_Title so it wasn't much work, it took around 5 minutes to get that done (even less probably).

I won't die if you do not give credit to me even if being credited is always appreciated.
Alright, I'mma give you credit.
 
Status
Not open for further replies.

Latest Threads

Latest Profile Posts

Red_1,png.PNG
I don't know when I'll have time to finish this, so I'll post this mostly complete version now. Another major character of my project, his name is Red (at least until I can think up a better R-name). In case he looks familiar, it's because his design (and personality) is based directly from my favorite anime character of all time (who is, unfortunately, fairly obscure).
Here's a showcase of layers of visual effects I've added over a scene. By stripping them off, one by one. :kaoblush:












Aaaaand, here's me working on the above scene, adding weather effects to it: :kaoeh:


DamageActor1_2.png added!
index.php

Forum statistics

Threads
124,587
Messages
1,164,614
Members
163,414
Latest member
Lichest101
Top