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

Status
Not open for further replies.

NeoPGX

~ King of Cuteness ~
Veteran
Joined
May 15, 2014
Messages
847
Reaction score
175
First Language
English (US)
Primarily Uses
N/A
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.
 

Yato

(aka Racheal)
Veteran
Joined
Mar 17, 2012
Messages
825
Reaction score
346
Primarily Uses
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
 
Last edited by a moderator:

Yato

(aka Racheal)
Veteran
Joined
Mar 17, 2012
Messages
825
Reaction score
346
Primarily Uses
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
 

NeoPGX

~ King of Cuteness ~
Veteran
Joined
May 15, 2014
Messages
847
Reaction score
175
First Language
English (US)
Primarily Uses
N/A
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?
 

Yato

(aka Racheal)
Veteran
Joined
Mar 17, 2012
Messages
825
Reaction score
346
Primarily Uses
I wrote it for you, and I use requester's usernames when I alias. (Basically, I have no creativity)
 

NeoPGX

~ King of Cuteness ~
Veteran
Joined
May 15, 2014
Messages
847
Reaction score
175
First Language
English (US)
Primarily Uses
N/A
 OK so where exactly am I supposed to put all that? I'm confused as there are no instructions.
 

Yato

(aka Racheal)
Veteran
Joined
Mar 17, 2012
Messages
825
Reaction score
346
Primarily Uses
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.
 

NeoPGX

~ King of Cuteness ~
Veteran
Joined
May 15, 2014
Messages
847
Reaction score
175
First Language
English (US)
Primarily Uses
N/A
Thank you. for a moment I thought it was a script mod, not a script itself. :) About to test it now.
 

NeoPGX

~ King of Cuteness ~
Veteran
Joined
May 15, 2014
Messages
847
Reaction score
175
First Language
English (US)
Primarily Uses
N/A
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) endenddoublesystem_option.PNG
 
Last edited by a moderator:

Yato

(aka Racheal)
Veteran
Joined
Mar 17, 2012
Messages
825
Reaction score
346
Primarily Uses
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.
 
Last edited by a moderator:

NeoPGX

~ King of Cuteness ~
Veteran
Joined
May 15, 2014
Messages
847
Reaction score
175
First Language
English (US)
Primarily Uses
N/A
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
 

Yato

(aka Racheal)
Veteran
Joined
Mar 17, 2012
Messages
825
Reaction score
346
Primarily Uses
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)
 
Last edited by a moderator:

NeoPGX

~ King of Cuteness ~
Veteran
Joined
May 15, 2014
Messages
847
Reaction score
175
First Language
English (US)
Primarily Uses
N/A
well that worked but even exit game takes me to the system options menu which its not supposed to.
 

Yato

(aka Racheal)
Veteran
Joined
Mar 17, 2012
Messages
825
Reaction score
346
Primarily Uses
You did put it under the yanfly script, and not above it, right?
 

NeoPGX

~ King of Cuteness ~
Veteran
Joined
May 15, 2014
Messages
847
Reaction score
175
First Language
English (US)
Primarily Uses
N/A
You did put it under the yanfly script, and not above it, right?
Whoops! Fixed and now it's working perfectly.

Thanks. :)
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
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
 
Last edited by a moderator:
Status
Not open for further replies.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,863
Messages
1,017,053
Members
137,571
Latest member
grr
Top