The RPG Maker Resource Kit
RMRK RPG Maker Creation => RPG Maker General => General Scripting => Topic started by: Sacrifyx on October 23, 2014, 06:40:47 AM
-
Hey all, hoping someone here can help me out with a problem here. I need to remove the 'New Game' option from the title screen.
I'm using V's Awesome Options script, and I've tried editing it in a few different spots to achieve my desired effect.
If I try commenting out
#--------------------------------------------------------------------------
# * Create Command List
#--------------------------------------------------------------------------
def make_command_list
This line---> add_command(Vocab::new_game, :new_game)
add_command(Vocab::continue, :continue, continue_enabled)
add_command(Vocab::shutdown, :shutdown)
end
under HorzCmmdWin Or
#--------------------------------------------------------------------------
# * Create Command List
#--------------------------------------------------------------------------
def create_command_window
@command_window = Window_TitleCommand.new
@command_window.x = V_OPTS::Specs::Command_Window_x_position
@command_window.y = V_OPTS::Specs::Command_Window_y_position
Font.default_size = 20
This line---> @command_window.set_handler(:new_game, method(:command_new_game))
@command_window.set_handler(:continue, method(:command_continue))
@command_window.set_handler(:shutdown, method(:command_shutdown))
end
Under Scene_Title in the script, I get an error: Script 'Window_Command' line 74: NoMethodError occurred. undefined method '[]' for nil:NilClass
#--------------------------------------------------------------------------
# * Get Activation State of Command
#--------------------------------------------------------------------------
def command_enabled?(index)
This is line 74--->@list[index][:enabled]
end
Now, if I just comment out
#--------------------------------------------------------------------------
# * Create Horizontal Command List
#--------------------------------------------------------------------------
def create_horizontal_command_window
@hrzcommand_window = HorzCmmdWin.new
@hrzcommand_window.x = V_OPTS::Specs::Command_Window_x_position
@hrzcommand_window.y = V_OPTS::Specs::Command_Window_y_position
Font.default_size = 20
This line--->@hrzcommand_window.set_handler(:new_game, method(:command_new_game))
@hrzcommand_window.set_handler(:continue, method(:command_continue))
@hrzcommand_window.set_handler(:shutdown, method(:command_shutdown))
end
also under the Scene_Title section, it makes the New Game option inoperable. It shows up, I can click on it, but it does nothing and goes nowhere. This is doable, but far from ideal. Editing the Scene_Title and Window_TitleCommand scripts does nothing as I assume V's script overrides those, does that sound right?
Anyhoo, is there something simple I'm missing here or should I take what I have and be happy with it?
-
under "Window_TitleCommand"
#--------------------------------------------------------------------------
# * Create Command List
#--------------------------------------------------------------------------
def make_command_list
#comment out this line---> add_command(Vocab::new_game, :new_game)
add_command(Vocab::continue, :continue, continue_enabled)
add_command(Vocab::shutdown, :shutdown)
end
:blizj:
-
under "Window_TitleCommand"
#--------------------------------------------------------------------------
# * Create Command List
#--------------------------------------------------------------------------
def make_command_list
#comment out this line---> add_command(Vocab::new_game, :new_game)
add_command(Vocab::continue, :continue, continue_enabled)
add_command(Vocab::shutdown, :shutdown)
end
:blizj:
Editing the default scripts has no effect, I believe because V's script overrides them or something.
-
i don't know why u want to remove "new game"... how ppl going to play the game? :o
but i look into it..
#--------------------------------------------------------------------------
# * Create Command List
#--------------------------------------------------------------------------
def make_command_list
#comment this out as usual ;) ------> add_command(Vocab::new_game, :new_game)
add_command(Vocab::continue, :continue, continue_enabled)
add_command(Vocab::shutdown, :shutdown)
end
#--------------------------------------------------------------------------
# * Get Number of Items
#--------------------------------------------------------------------------
def item_max
return 3 <-------- then change this to 2
end
#--------------------------------------------------------------------------
# * Get Digit Count
#--------------------------------------------------------------------------
def col_max
return 3 <-------- then change this to 2
end
this should remove new game option, but don't know this is what u want
-
just found a new way to do this
#--------------------------------------------------------------------------
# * Create Command List
#--------------------------------------------------------------------------
def make_command_list
add_command("", :new_game, false)
add_command(Vocab::continue, :continue, continue_enabled)
add_command(Vocab::shutdown, :shutdown)
end
replace the red text with original code
both also change in "V's Awesome Options script"
-
i don't know why u want to remove "new game"... how ppl going to play the game? :o
but i look into it..
#--------------------------------------------------------------------------
# * Create Command List
#--------------------------------------------------------------------------
def make_command_list
#comment this out as usual ;) ------> add_command(Vocab::new_game, :new_game)
add_command(Vocab::continue, :continue, continue_enabled)
add_command(Vocab::shutdown, :shutdown)
end
#--------------------------------------------------------------------------
# * Get Number of Items
#--------------------------------------------------------------------------
def item_max
return 3 <-------- then change this to 2
end
#--------------------------------------------------------------------------
# * Get Digit Count
#--------------------------------------------------------------------------
def col_max
return 3 <-------- then change this to 2
end
this should remove new game option, but don't know this is what u want
This did the trick! I'm getting rid of it in the 2nd and later volumes of the game because the player won't be starting a new game (trying to do so would cause it to error out). The game will only be accessible with a save from the prior volume, so to play volume 2 you'll need a game-end save from volume 1, in volume 3 you'll need one from volume 2, so on and so forth. Thanks for your help!
-
glucophage xr (http://glucophage.company/) antabuse (http://antabuse.recipes/) toprol xl (http://toprolxl.company/) generic for wellbutrin xl (http://wellbutrin.run/) generic viagra (http://genericviagraprofessional100mg.com/) sildenafil (http://cheapsildenafil.irish/) elavil (http://amitriptyline.club/)