Hey there, is there any way to show an extra option in the title screen? Like a "TUTORIAL" option. When they click that, it transfers them to another map.
Extra Option In Title Screen
RGSS3 Script Requeststechnically yes, but it would need a custom script to reprogram the title screen.
most people go a slightly different way instead: the use a skip title script to remove the original title screen and then on the first map they use event commands to simulate their own title screen with whatever show choice options or show picture/conditional branch button pressed sequence they like
most people go a slightly different way instead: the use a skip title script to remove the original title screen and then on the first map they use event commands to simulate their own title screen with whatever show choice options or show picture/conditional branch button pressed sequence they like
Well, I'm using my own hand-made script for the title screen (It's in Japanese), I don't think I can skip the title screen. Is there any other way?
Here's my script, if you want to look at it:
Ruby:
#==============================================================================
# ■ Vocab
#------------------------------------------------------------------------------
# 用語とメッセージを定義するモジュールです。定数でメッセージなどを直接定義す
# るほか、グローバル変数 $data_system から用語データを取得します。
#==============================================================================
module Vocab
EASY = "EASY"
NORMAL = "NORMAL"
HARD = "HARD"
NIGHTMARE = "PROFESSIONAL"
end
#==============================================================================
# ■ Window_TitleCommand
#------------------------------------------------------------------------------
# タイトル画面で、ニューゲーム/コンティニューを選択するウィンドウです。
#==============================================================================
class Window_TitleCommand < Window_Command
#--------------------------------------------------------------------------
# ● オブジェクト初期化
#--------------------------------------------------------------------------
def initialize
super(0, 0)
update_placement
select_symbol(:continue) if continue_enabled
self.opacity = 0 # 追加
self.openness = 0
open
end
#--------------------------------------------------------------------------
# ● コマンドリストの作成
#--------------------------------------------------------------------------
def make_command_list
add_command(Vocab::new_game, :new_game)
add_command(Vocab::continue, :continue, continue_enabled)
add_command(Vocab::shutdown, :shutdown)
end
#--------------------------------------------------------------------------
# ● ウィンドウ位置の更新
#--------------------------------------------------------------------------
def update_placement
self.x = (Graphics.width - width) / 2 - 150
self.y = (Graphics.height * 1.6 - height) / 2
end
end
#==============================================================================
# ■ Scene_Title
#------------------------------------------------------------------------------
# タイトル画面の処理を行うクラスです。
#==============================================================================
class Scene_Title < Scene_Base
#--------------------------------------------------------------------------
# ● コマンドウィンドウを閉じる
#--------------------------------------------------------------------------
def close_command_window
@command_window.close
update until @command_window.close?
end
#--------------------------------------------------------------------------
# ● コマンド[ニューゲーム]
#--------------------------------------------------------------------------
def command_new_game
close_command_window
SceneManager.call(Scene_ModeSelect)
end
#--------------------------------------------------------------------------
# ● コマンドウィンドウの作成
#--------------------------------------------------------------------------
def create_command_window
@command_window = Window_TitleCommand.new
@command_window.set_handler(:new_game, method(:command_new_game))
@command_window.set_handler(:special, method(:command_special))
@command_window.set_handler(:continue, method(:command_continue))
@command_window.set_handler(:shutdown, method(:command_shutdown))
end
#--------------------------------------------------------------------------
# ● コマンド[スペシャルゲーム]
#--------------------------------------------------------------------------
def command_special
close_command_window
SceneManager.call(Scene_SpecialGame)
end
end
#==============================================================================
# ■ Window_ModeSelectCommand
#------------------------------------------------------------------------------
# モードセレクト画面で、ニューゲーム/コンティニューを選択するウィンドウです。
#==============================================================================
class Window_ModeSelectCommand < Window_Command
#--------------------------------------------------------------------------
# ● オブジェクト初期化
#--------------------------------------------------------------------------
def initialize
super(0, 0)
update_placement
self.opacity = 0 # 追加
self.openness = 0
open
end
#--------------------------------------------------------------------------
# ● ウィンドウ幅の取得
#--------------------------------------------------------------------------
def window_width
return 160
end
#--------------------------------------------------------------------------
# ● ウィンドウ位置の更新
#--------------------------------------------------------------------------
def update_placement
self.x = (Graphics.width - width) / 2
self.y = (Graphics.height * 1.6 - height) / 2
end
#--------------------------------------------------------------------------
# ● ウィンドウ位置の更新
#--------------------------------------------------------------------------
def update_placement
self.x = (Graphics.width - width) / 2 - 150
self.y = (Graphics.height * 1.6 - height) / 2
end
#--------------------------------------------------------------------------
# ● コマンドリストの作成
#--------------------------------------------------------------------------
def make_command_list
add_command(Vocab::EASY, :easy)
add_command(Vocab::NORMAL, :normal)
add_command(Vocab::HARD, :hard)
add_command(Vocab::NIGHTMARE,:nightmare)
add_command(Vocab::to_title, :to_title)
end
#--------------------------------------------------------------------------
# ● コマンド選択可能判定
#--------------------------------------------------------------------------
def command_selectable?(value = 0)
return false
end
end
#==============================================================================
# ■ Scene_ModeSelect
#------------------------------------------------------------------------------
# タイトル画面の処理を行うクラスです。
#==============================================================================
class Scene_ModeSelect < Scene_Base
#--------------------------------------------------------------------------
# ● 開始処理
#--------------------------------------------------------------------------
def start
super
create_background
create_foreground
create_command_window
end
#--------------------------------------------------------------------------
# ● トランジション速度の取得
#--------------------------------------------------------------------------
def transition_speed
return 20
end
#--------------------------------------------------------------------------
# ● 終了処理
#--------------------------------------------------------------------------
def terminate
super
SceneManager.snapshot_for_background
dispose_background
dispose_foreground
end
#--------------------------------------------------------------------------
# ● 背景の作成
#--------------------------------------------------------------------------
def create_background
@sprite1 = Sprite.new
@sprite1.bitmap = Cache.title1($data_system.title1_name)
@sprite2 = Sprite.new
@sprite2.bitmap = Cache.title2($data_system.title2_name)
center_sprite(@sprite1)
center_sprite(@sprite2)
end
#--------------------------------------------------------------------------
# ● 前景の作成
#--------------------------------------------------------------------------
def create_foreground
@foreground_sprite = Sprite.new
@foreground_sprite.bitmap = Bitmap.new(Graphics.width, Graphics.height)
@foreground_sprite.z = 100
draw_game_title if $data_system.opt_draw_title
end
#--------------------------------------------------------------------------
# ● ゲームタイトルの描画
#--------------------------------------------------------------------------
def draw_game_title
@foreground_sprite.bitmap.font.size = 48
rect = Rect.new(0, 0, Graphics.width, Graphics.height / 2)
@foreground_sprite.bitmap.draw_text(rect, $data_system.game_title, 1)
end
#--------------------------------------------------------------------------
# ● 背景の解放
#--------------------------------------------------------------------------
def dispose_background
@sprite1.bitmap.dispose
@sprite1.dispose
@sprite2.bitmap.dispose
@sprite2.dispose
end
#--------------------------------------------------------------------------
# ● 前景の解放
#--------------------------------------------------------------------------
def dispose_foreground
@foreground_sprite.bitmap.dispose
@foreground_sprite.dispose
end
#--------------------------------------------------------------------------
# ● スプライトを画面中央に移動
#--------------------------------------------------------------------------
def center_sprite(sprite)
sprite.ox = sprite.bitmap.width / 2
sprite.oy = sprite.bitmap.height / 2
sprite.x = Graphics.width / 2
sprite.y = Graphics.height / 2
end
#--------------------------------------------------------------------------
# ● コマンドウィンドウの作成
#--------------------------------------------------------------------------
def create_command_window
@command_window = Window_ModeSelectCommand.new
@command_window.set_handler(:easy ,method(:easy_new_game))
@command_window.set_handler(:normal ,method(:normal_new_game))
@command_window.set_handler(:hard ,method(:hard_new_game))
@command_window.set_handler(:nightmare ,method(:nightmare_new_game))
@command_window.set_handler(:to_title, method(:command_to_title))
end
#--------------------------------------------------------------------------
# ● 終了処理
#--------------------------------------------------------------------------
def terminate
super
@command_window.dispose
end
#--------------------------------------------------------------------------
# ● コマンドウィンドウを閉じる
#--------------------------------------------------------------------------
def close_command_window
@command_window.close
update until @command_window.close?
end
#--------------------------------------------------------------------------
# ● 難易度選択ニューゲーム
#--------------------------------------------------------------------------
def easy_new_game;extra_command_new_game(0);end #EASY
def normal_new_game;extra_command_new_game(1);end #NORMAL
def hard_new_game;extra_command_new_game(2);end #HARD
def nightmare_new_game;extra_command_new_game(3);end #NIGHTMARE
#--------------------------------------------------------------------------
# ● エクストラニューゲーム
#--------------------------------------------------------------------------
def extra_command_new_game(value = 0)
@value = value
DataManager.setup_new_game
$game_variables[NOBIHAZA_COMMON::NANIDO_ID] = @value#難易度の代入
$game_variables[21] = 0 # ゲームセレクト
close_command_window
Sound.play_load#ロードSEを鳴らす
fadeout_all
$game_map.autoplay
SceneManager.goto(Scene_Map)
end
#--------------------------------------------------------------------------
# ● タイトル画面に戻る
#--------------------------------------------------------------------------
def command_to_title
close_command_window
SceneManager.call(Scene_Title)
end
end
#==============================================================================
# ■ Window_ModeSelectCommand
#------------------------------------------------------------------------------
# モードセレクト画面で、ニューゲーム/コンティニューを選択するウィンドウです。
#==============================================================================
class Window_SpecialGameSelectCommand < Window_ModeSelectCommand
end
#==============================================================================
# ■ Scene_SpecialGame
#------------------------------------------------------------------------------
# タイトル画面のスペシャルゲームセレクトの処理を行うクラスです。
#==============================================================================
class Scene_SpecialGame < Scene_ModeSelect
#--------------------------------------------------------------------------
# ● エクストラニューゲーム
#--------------------------------------------------------------------------
def extra_command_new_game(value = 0)
@value = value
DataManager.setup_new_game()
$game_variables[NOBIHAZA_COMMON::NANIDO_ID] = @value#難易度の代入
$game_variables[21] = 1 # ゲームセレクト
close_command_window
Sound.play_load#ロードSEを鳴らす
fadeout_all
$game_map.autoplay
SceneManager.goto(Scene_Map)
end
end
That script looks like it has a "special" already created. But would not show up in the title scene.
Is that something you want?
And the difficulty select seems to only set a variable to a value from 0-3. I assume you have something else that controls how difficult the game is from that.
I can make a title screen script for tutorial that takes you to a specific map.
You can use Doctor Todd's difficulty script for a difficulty if you like.
Or are you set on this one and just need it changed?
Is that something you want?
And the difficulty select seems to only set a variable to a value from 0-3. I assume you have something else that controls how difficult the game is from that.
I can make a title screen script for tutorial that takes you to a specific map.
You can use Doctor Todd's difficulty script for a difficulty if you like.
Or are you set on this one and just need it changed?
I am set on this one and just need it changed.
I dunno how to make a player get transfered to another map through scripts tho, that's my problem
And that special will just show more harder difficultys.
Ruby:
#==============================================================================
# ■ Roninator2 Module
#------------------------------------------------------------------------------
# Configure options for tutorial map
#==============================================================================
module R2_Title_Tutorial_Options
Command = "Tutorial"
Starting_Map_id = 2
Player_X = 10
Player_Y = 10
Tutorial_Actors = [1, 3]
end
#==============================================================================
# ■ Game_Party
#------------------------------------------------------------------------------
# Add method to set starting actors
#==============================================================================
class Game_Party
def actors=(actlist)
@actors = actlist
end
end
#==============================================================================
# ■ Vocab
#------------------------------------------------------------------------------
# 用語とメッセージを定義するモジュールです。定数でメッセージなどを直接定義す
# るほか、グローバル変数 $data_system から用語データを取得します。
#==============================================================================
module Vocab
EASY = "EASY"
NORMAL = "NORMAL"
HARD = "HARD"
NIGHTMARE = "PROFESSIONAL"
end
#==============================================================================
# ■ Window_TitleCommand
#------------------------------------------------------------------------------
# タイトル画面で、ニューゲーム/コンティニューを選択するウィンドウです。
#==============================================================================
class Window_TitleCommand < Window_Command
#--------------------------------------------------------------------------
# ● オブジェクト初期化
#--------------------------------------------------------------------------
def initialize
super(0, 0)
update_placement
select_symbol(:continue) if continue_enabled
self.opacity = 0 # 追加
self.openness = 0
open
end
#--------------------------------------------------------------------------
# ● コマンドリストの作成
#--------------------------------------------------------------------------
def make_command_list
add_command(Vocab::new_game, :new_game)
add_command(Vocab::continue, :continue, continue_enabled)
add_command(R2_Title_Tutorial_Options::Command, :tutorial)
add_command(Vocab::shutdown, :shutdown)
end
#--------------------------------------------------------------------------
# ● ウィンドウ位置の更新
#--------------------------------------------------------------------------
def update_placement
self.x = (Graphics.width - width) / 2 - 150
self.y = (Graphics.height * 1.6 - height) / 2
end
end
#==============================================================================
# ■ Scene_Title
#------------------------------------------------------------------------------
# タイトル画面の処理を行うクラスです。
#==============================================================================
class Scene_Title < Scene_Base
#--------------------------------------------------------------------------
# ● コマンドウィンドウを閉じる
#--------------------------------------------------------------------------
def close_command_window
@command_window.close
update until @command_window.close?
end
#--------------------------------------------------------------------------
# ● コマンド[ニューゲーム]
#--------------------------------------------------------------------------
def command_new_game
close_command_window
SceneManager.call(Scene_ModeSelect)
end
#--------------------------------------------------------------------------
# ● コマンドウィンドウの作成
#--------------------------------------------------------------------------
def create_command_window
@command_window = Window_TitleCommand.new
@command_window.set_handler(:new_game, method(:command_new_game))
@command_window.set_handler(:special, method(:command_special))
@command_window.set_handler(:tutorial, method(:command_tutorial))
@command_window.set_handler(:continue, method(:command_continue))
@command_window.set_handler(:shutdown, method(:command_shutdown))
end
#--------------------------------------------------------------------------
# ● コマンド[スペシャルゲーム]
#--------------------------------------------------------------------------
def command_special
close_command_window
SceneManager.call(Scene_SpecialGame)
end
#--------------------------------------------------------------------------
# Tutorial command
#--------------------------------------------------------------------------
def command_tutorial
DataManager.create_game_objects
$game_party.actors = R2_Title_Tutorial_Options::Tutorial_Actors
$game_map.setup(R2_Title_Tutorial_Options::Starting_Map_id)
$game_player.moveto(R2_Title_Tutorial_Options::Player_X, R2_Title_Tutorial_Options::Player_Y)
$game_player.refresh
Graphics.frame_count = 0
close_command_window
fadeout_all
$game_map.autoplay
SceneManager.goto(Scene_Map)
end
end
#==============================================================================
# ■ Window_ModeSelectCommand
#------------------------------------------------------------------------------
# モードセレクト画面で、ニューゲーム/コンティニューを選択するウィンドウです。
#==============================================================================
class Window_ModeSelectCommand < Window_Command
#--------------------------------------------------------------------------
# ● オブジェクト初期化
#--------------------------------------------------------------------------
def initialize
super(0, 0)
update_placement
self.opacity = 0 # 追加
self.openness = 0
open
end
#--------------------------------------------------------------------------
# ● ウィンドウ幅の取得
#--------------------------------------------------------------------------
def window_width
return 160
end
#--------------------------------------------------------------------------
# ● ウィンドウ位置の更新
#--------------------------------------------------------------------------
def update_placement
self.x = (Graphics.width - width) / 2
self.y = (Graphics.height * 1.6 - height) / 2
end
#--------------------------------------------------------------------------
# ● ウィンドウ位置の更新
#--------------------------------------------------------------------------
def update_placement
self.x = (Graphics.width - width) / 2 - 150
self.y = (Graphics.height * 1.6 - height) / 2
end
#--------------------------------------------------------------------------
# ● コマンドリストの作成
#--------------------------------------------------------------------------
def make_command_list
add_command(Vocab::EASY, :easy)
add_command(Vocab::NORMAL, :normal)
add_command(Vocab::HARD, :hard)
add_command(Vocab::NIGHTMARE,:nightmare)
add_command(Vocab::to_title, :to_title)
end
#--------------------------------------------------------------------------
# ● コマンド選択可能判定
#--------------------------------------------------------------------------
def command_selectable?(value = 0)
return false
end
end
#==============================================================================
# ■ Scene_ModeSelect
#------------------------------------------------------------------------------
# タイトル画面の処理を行うクラスです。
#==============================================================================
class Scene_ModeSelect < Scene_Base
#--------------------------------------------------------------------------
# ● 開始処理
#--------------------------------------------------------------------------
def start
super
create_background
create_foreground
create_command_window
end
#--------------------------------------------------------------------------
# ● トランジション速度の取得
#--------------------------------------------------------------------------
def transition_speed
return 20
end
#--------------------------------------------------------------------------
# ● 終了処理
#--------------------------------------------------------------------------
def terminate
super
SceneManager.snapshot_for_background
dispose_background
dispose_foreground
end
#--------------------------------------------------------------------------
# ● 背景の作成
#--------------------------------------------------------------------------
def create_background
@sprite1 = Sprite.new
@sprite1.bitmap = Cache.title1($data_system.title1_name)
@sprite2 = Sprite.new
@sprite2.bitmap = Cache.title2($data_system.title2_name)
center_sprite(@sprite1)
center_sprite(@sprite2)
end
#--------------------------------------------------------------------------
# ● 前景の作成
#--------------------------------------------------------------------------
def create_foreground
@foreground_sprite = Sprite.new
@foreground_sprite.bitmap = Bitmap.new(Graphics.width, Graphics.height)
@foreground_sprite.z = 100
draw_game_title if $data_system.opt_draw_title
end
#--------------------------------------------------------------------------
# ● ゲームタイトルの描画
#--------------------------------------------------------------------------
def draw_game_title
@foreground_sprite.bitmap.font.size = 48
rect = Rect.new(0, 0, Graphics.width, Graphics.height / 2)
@foreground_sprite.bitmap.draw_text(rect, $data_system.game_title, 1)
end
#--------------------------------------------------------------------------
# ● 背景の解放
#--------------------------------------------------------------------------
def dispose_background
@sprite1.bitmap.dispose
@sprite1.dispose
@sprite2.bitmap.dispose
@sprite2.dispose
end
#--------------------------------------------------------------------------
# ● 前景の解放
#--------------------------------------------------------------------------
def dispose_foreground
@foreground_sprite.bitmap.dispose
@foreground_sprite.dispose
end
#--------------------------------------------------------------------------
# ● スプライトを画面中央に移動
#--------------------------------------------------------------------------
def center_sprite(sprite)
sprite.ox = sprite.bitmap.width / 2
sprite.oy = sprite.bitmap.height / 2
sprite.x = Graphics.width / 2
sprite.y = Graphics.height / 2
end
#--------------------------------------------------------------------------
# ● コマンドウィンドウの作成
#--------------------------------------------------------------------------
def create_command_window
@command_window = Window_ModeSelectCommand.new
@command_window.set_handler(:easy ,method(:easy_new_game))
@command_window.set_handler(:normal ,method(:normal_new_game))
@command_window.set_handler(:hard ,method(:hard_new_game))
@command_window.set_handler(:nightmare ,method(:nightmare_new_game))
@command_window.set_handler(:to_title, method(:command_to_title))
end
#--------------------------------------------------------------------------
# ● 終了処理
#--------------------------------------------------------------------------
def terminate
super
@command_window.dispose
end
#--------------------------------------------------------------------------
# ● コマンドウィンドウを閉じる
#--------------------------------------------------------------------------
def close_command_window
@command_window.close
update until @command_window.close?
end
#--------------------------------------------------------------------------
# ● 難易度選択ニューゲーム
#--------------------------------------------------------------------------
def easy_new_game;extra_command_new_game(0);end #EASY
def normal_new_game;extra_command_new_game(1);end #NORMAL
def hard_new_game;extra_command_new_game(2);end #HARD
def nightmare_new_game;extra_command_new_game(3);end #NIGHTMARE
#--------------------------------------------------------------------------
# ● エクストラニューゲーム
#--------------------------------------------------------------------------
def extra_command_new_game(value = 0)
@value = value
DataManager.setup_new_game
$game_variables[NOBIHAZA_COMMON::NANIDO_ID] = @value#難易度の代入
$game_variables[21] = 0 # ゲームセレクト
close_command_window
Sound.play_load#ロードSEを鳴らす
fadeout_all
$game_map.autoplay
SceneManager.goto(Scene_Map)
end
#--------------------------------------------------------------------------
# ● タイトル画面に戻る
#--------------------------------------------------------------------------
def command_to_title
close_command_window
SceneManager.call(Scene_Title)
end
end
#==============================================================================
# ■ Window_ModeSelectCommand
#------------------------------------------------------------------------------
# モードセレクト画面で、ニューゲーム/コンティニューを選択するウィンドウです。
#==============================================================================
class Window_SpecialGameSelectCommand < Window_ModeSelectCommand
end
#==============================================================================
# ■ Scene_SpecialGame
#------------------------------------------------------------------------------
# タイトル画面のスペシャルゲームセレクトの処理を行うクラスです。
#==============================================================================
class Scene_SpecialGame < Scene_ModeSelect
#--------------------------------------------------------------------------
# ● エクストラニューゲーム
#--------------------------------------------------------------------------
def extra_command_new_game(value = 0)
@value = value
DataManager.setup_new_game()
$game_variables[NOBIHAZA_COMMON::NANIDO_ID] = @value#難易度の代入
$game_variables[21] = 1 # ゲームセレクト
close_command_window
Sound.play_load#ロードSEを鳴らす
fadeout_all
$game_map.autoplay
SceneManager.goto(Scene_Map)
end
end
Original thread: https://forums.rpgmakerweb.com/threads/extra-option-in-title-screen.146934/