Created
February 11, 2014 08:24
-
-
Save BenMakesGames/8931094 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# assuming you have the MOG Character Select script installed, this script | |
# makes it so that selecting "New Game" from the title menu jumps directly | |
# into the Character Select script. once you select a character, the game | |
# begins. | |
# note that using this script renders the Character Select useless EXCEPT | |
# when starting a new game. calling it at any other time will have weird | |
# effects. | |
# the MOG Character Select script can be found here: | |
# http://atelier-rgss.com/RGSS/Menu/ACE_Menu07.html | |
class Scene_Title | |
#-------------------------------------------------------------------------- | |
# * [New Game] Command | |
#-------------------------------------------------------------------------- | |
def command_new_game | |
DataManager.setup_new_game | |
close_command_window | |
fadeout_all | |
SceneManager.goto(Scene_Character_Select) | |
end | |
end | |
class Scene_Character_Select | |
#-------------------------------------------------------------------------- | |
# ● update_select | |
#-------------------------------------------------------------------------- | |
def update_select | |
if Input.trigger?(Input::DOWN) or Input.trigger?(Input::LEFT) | |
Sound.play_cursor | |
@char_index += 1 | |
@char_index = 1 if @char_index > @char_max | |
if @char_max < 3 | |
reset_position(0) | |
else | |
reset_position(1) | |
end | |
elsif Input.trigger?(Input::UP) or Input.trigger?(Input::RIGHT) | |
Sound.play_cursor | |
@char_index -= 1 | |
@char_index = @char_max if @char_index < 1 | |
reset_position(0) | |
elsif Input.trigger?(Input::C) | |
Sound.play_ok | |
$game_party.add_actor(@char_index) | |
$game_map.autoplay | |
SceneManager.goto(Scene_Map) | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment