Remove formation option and put End Game under System in the menu

Will be used in a commercial game.

OK I have installed Yanfly's system options which replaces End Game with System. However I want to put End game under system and remove shut down and return to title from Yanfly's system options menu. Along with this I want to completely remove the formation option from the menu.
Generally when asking for an edit of an existing script, you should link said script so anyone who potentially wants to help you doesn't have to hunt it down themselves.

That said, I'm somewhat familiar with the script in question, and I believe you can remove commands (like end game) in the configuration section at the top.

To remove the formation command, you can use the following:

Code:
class Window_MenuCommand < Window_Command  #--------------------------------------------------------------------------  # * Add Formation to Command List  #--------------------------------------------------------------------------  def add_formation_command    #add_command(Vocab::formation, :formation, formation_enabled)  endend
Generally when asking for an edit of an existing script, you should link said script so anyone who potentially wants to help you doesn't have to hunt it down themselves.
Here's the script: https://yanflychannel.wordpress.com/rmvxa/menu-scripts/system-options/
For rearranging the system/game end commands, you could use the following:

Code:
class Window_MenuCommand < Window_Command  #--------------------------------------------------------------------------  # * Add Exit Game to Command List  #--------------------------------------------------------------------------  def add_game_end_command    add_command("System", :system)    add_command(Vocab::game_end, :game_end)  endendclass Scene_Menu < Scene_MenuBase  #--------------------------------------------------------------------------  # * Create Command Window  #--------------------------------------------------------------------------  alias starwarrior_reorder_create_command_window create_command_window  def create_command_window    starwarrior_reorder_create_command_window    @command_window.set_handler(:system,      method(:command_system))  end    #--------------------------------------------------------------------------  # * [Exit Game] Command  #--------------------------------------------------------------------------  def command_game_end    SceneManager.call(Scene_End)  end    #--------------------------------------------------------------------------  # * [System] Command  #--------------------------------------------------------------------------  def command_system    SceneManager.call(Scene_System)  endend
Just one question before I do this script:

 

alias starwarrior_reorder_create_command_window create_command_window
def create_command_window
starwarrior_reorder_create_command_window
@command_window.set_handler🙂system, method🙂command_system))
end
Why is my username in the script?
I wrote it for you, and I use requester's usernames when I alias. (Basically, I have no creativity)
 OK so where exactly am I supposed to put all that? I'm confused as there are no instructions.
Sorry, seeing as you have made other script requests and use other scripts, I assumed you knew how to use them. Paste in the materials section below the options script and above main. You can put both in the same slot.
Thank you. for a moment I thought it was a script mod, not a script itself. 🙂 About to test it now.
OK, what did I do wrong here? Check the attached file for more info.

 

class Window_MenuCommand < Window_Command #-------------------------------------------------------------------------- # * Add Exit Game to Command List #-------------------------------------------------------------------------- def add_game_end_command add_command("System", :system) add_command(Vocab::game_end, :game_end) end #-------------------------------------------------------------------------- # * Add Formation to Command List #-------------------------------------------------------------------------- def add_formation_command #add_command(Vocab::formation, :formation, formation_enabled) endendclass Scene_Menu < Scene_MenuBase #-------------------------------------------------------------------------- # * Create Command Window #-------------------------------------------------------------------------- alias starwarrior_reorder_create_command_window create_command_window def create_command_window starwarrior_reorder_create_command_window @command_window.set_handler🙂system, method🙂command_system)) end #-------------------------------------------------------------------------- # * [Exit Game] Command #-------------------------------------------------------------------------- def command_game_end SceneManager.call(Scene_End) end #-------------------------------------------------------------------------- # * [System] Command #-------------------------------------------------------------------------- def command_system SceneManager.call(Scene_System) endend doublesystem_option.PNG
What do you have the Game End term set to in the database?


[Edit] Nevermind, I see now that's a part of the options script I was not familiar with. Fix incoming.


Or just change the Vocab::game_end part of add_command(Vocab::game_end, :game_end) to "End" or whatever you want it to be.
Well that worked awfully well. (sarcasm; check attachment)

 

class Window_MenuCommand < Window_Command #-------------------------------------------------------------------------- # * Add Exit Game to Command List #-------------------------------------------------------------------------- def add_game_end_command add_command("System", :system) add_command(Exit_Game, :game_end) end #-------------------------------------------------------------------------- # * Add Formation to Command List #-------------------------------------------------------------------------- def add_formation_command #add_command(Vocab::formation, :formation, formation_enabled) endendclass Scene_Menu < Scene_MenuBase #-------------------------------------------------------------------------- # * Create Command Window #-------------------------------------------------------------------------- alias starwarrior_reorder_create_command_window create_command_window def create_command_window starwarrior_reorder_create_command_window @command_window.set_handler🙂system, method🙂command_system)) end #-------------------------------------------------------------------------- # * [Exit Game] Command #-------------------------------------------------------------------------- def command_game_end SceneManager.call(Scene_End) end #-------------------------------------------------------------------------- # * [System] Command #-------------------------------------------------------------------------- def command_system SceneManager.call(Scene_System) endenderror.PNG
a) You don't need to repost the entire thing every time.


b ) There were quotation marks in my post for a reason. Try "Exit Game" or if copy-pasting the entire line is easier for you.

Code:
    add_command("Exit Game", :game_end)
well that worked but even exit game takes me to the system options menu which its not supposed to.
You did put it under the yanfly script, and not above it, right?
You did put it under the yanfly script, and not above it, right?
Whoops! Fixed and now it's working perfectly.

Thanks. 🙂
StarWarrior00, please avoid double posting, as it is against the forum rules. You can review our forum rules here. Thank you.


That's rich, seeing as you recently mini-modded someone else for double posting 😉


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.


at OP's request

Original thread: https://forums.rpgmakerweb.com/threads/remove-formation-option-and-put-end-game-under-system-in-the-menu.36743/