I'm using this code:
To add a new option to the title screen menu, New Game+ that sends you to a different map than New Game.
I'd like to grey it out unless there's a save file existing, just like Continue.
I can just prevent player from progressing on the map itself, but it's confusing for a player to start off with two choices, one of which is a dead end...
class Window_TitleCommand < Window_Command
def make_command_list
#first argument is what will appear in the title menu,
#sceond one is a key for the command that wiil be executed
add_command(Vocab::new_game, :new_game)
add_command(Vocab::continue, :continue, continue_enabled)
add_command("New Game+", :newgame2)
#add_command("Options", 😮ptions)
add_command(Vocab::shutdown, :shutdown)
#you can add as many of those as you want
end
end
class Scene_Title < Scene_Base
alias retnuh_title_create_command_window create_command_window
def create_command_window
retnuh_title_create_command_window
#first argument is the key you used previously,
#second one is the name of the method that will be executed
@command_window.set_handler🙂newgame2, method🙂command_newgame2))
@command_window.set_handler🙂options, method🙂command_options))
#add as many as you had previously
end
#create a new_method with the name you used before
def command_newgame2
#this is the standard command_new_game_block
DataManager.setup_new_game
close_command_window
fadeout_all
$game_map.autoplay
#I add two line just before the line that open the map screen
$game_map.setup(2) #arg is the map_id of the map where you wanna be
$game_player.moveto(6,10) # args are the x,y positions on the map
SceneManager.goto(Scene_Map)
end
def command_options
SceneManager.goto(Scene_System)
end
end
def make_command_list
#first argument is what will appear in the title menu,
#sceond one is a key for the command that wiil be executed
add_command(Vocab::new_game, :new_game)
add_command(Vocab::continue, :continue, continue_enabled)
add_command("New Game+", :newgame2)
#add_command("Options", 😮ptions)
add_command(Vocab::shutdown, :shutdown)
#you can add as many of those as you want
end
end
class Scene_Title < Scene_Base
alias retnuh_title_create_command_window create_command_window
def create_command_window
retnuh_title_create_command_window
#first argument is the key you used previously,
#second one is the name of the method that will be executed
@command_window.set_handler🙂newgame2, method🙂command_newgame2))
@command_window.set_handler🙂options, method🙂command_options))
#add as many as you had previously
end
#create a new_method with the name you used before
def command_newgame2
#this is the standard command_new_game_block
DataManager.setup_new_game
close_command_window
fadeout_all
$game_map.autoplay
#I add two line just before the line that open the map screen
$game_map.setup(2) #arg is the map_id of the map where you wanna be
$game_player.moveto(6,10) # args are the x,y positions on the map
SceneManager.goto(Scene_Map)
end
def command_options
SceneManager.goto(Scene_System)
end
end
To add a new option to the title screen menu, New Game+ that sends you to a different map than New Game.
I'd like to grey it out unless there's a save file existing, just like Continue.
I can just prevent player from progressing on the map itself, but it's confusing for a player to start off with two choices, one of which is a dead end...