10-26-2005, 01:00 PM
This is a locked, single-post thread from Creation Asylum. Archived here to prevent its loss.
No support is given. If you are the owner of the thread, please contact administration.
No support is given. If you are the owner of the thread, please contact administration.
I edited the "scene_End" script to give you a choise of 3 fonts to change to. Pressing the Confirm boutton
will swich fonts, and the cancel boutton will bring you to the menu.
To insert the script make a new one above main and name it "Scene_FontEdit"
now put this Script inside:
Code:
#==============================================================================
# ■ Scene_FontEdit
#------------------------------------------------------------------------------
# ゲーム終了画面の処理を行うクラスです。
#==============================================================================
#This script was edited by Deamonslayer. you nay deleate all other comments
class Scene_FontEdit
#--------------------------------------------------------------------------
# ● メイン処理
#--------------------------------------------------------------------------
def main
# コマンドウィンドウを作成
s1 = "Change font to David"#that's the name of the font. modify at will.
s2 = "Change fot to Comic Sans MS"
s3 = "Change font to Ariel"
@command_window = Window_Command.new(192, [s1, s2, s3])#heare you can edit the choises and the window size to fit your needs
@command_window.x = 320 - @command_window.width / 2
@command_window.y = 240 - @command_window.height / 2
# トランジション実行
Graphics.transition
# メインループ
loop do
# ゲーム画面を更新
Graphics.update
# 入力情報を更新
Input.update
# フレーム更新
update
# 画面が切り替わったらループを中断
if $scene != self
break
end
end
# トランジション準備
Graphics.freeze
# ウィンドウを解放
@command_window.dispose
# タイトル画面に切り替え中の場合
if $scene.is_a?(Scene_FontEdit)#What script commant turns on this menu. in this case, it's Scene_FontEdit.New
# 画面をフェードアウト
Graphics.transition
Graphics.freeze
end
end
#--------------------------------------------------------------------------
# ● フレーム更新
#--------------------------------------------------------------------------
def update
# コマンドウィンドウを更新
@command_window.update
# B ボタンが押された場合
if Input.trigger?(Input::B)#this is the buttun the player has to press to exit this menu
# キャンセル SE を演奏
$game_system.se_play($data_system.cancel_se)#the sound effect you hear when the player presses the bouton above^
# メニュー画面に切り替え
$scene = Scene_Menu.new(0)#the player will pe moved to the menu after pressing the Cancel boutton with the "item" commant highlighted
return
end
# C ボタンが押された場合
if Input.trigger?(Input::C)
# コマンドウィンドウのカーソル位置で分岐
case @command_window.index
when 0 # タイトルへ
$game_system.se_play($data_system.decision_se)
$defaultfonttype = $fontface = $fontname = Font.default_name = "David"#the font name. must be in the players "Windows\Fonts" folder
$scene = Scene_FontEdit.new
when 1 # シャットダウン
$game_system.se_play($data_system.decision_se)
$defaultfonttype = $fontface = $fontname = Font.default_name = "Comic Sans MS"
$scene = Scene_FontEdit.new
when 2 # やめる
$game_system.se_play($data_system.decision_se)
$defaultfonttype = $fontface = $fontname = Font.default_name = "Arial"
$scene = Scene_FontEdit.new
end
return
end
end
#--------------------------------------------------------------------------
# ● コマンド [タイトルへ] 選択時の処理
#--------------------------------------------------------------------------
def command_to_title
# 決定 SE を演奏
$game_system.se_play($data_system.decision_se)
# BGM、BGS、ME をフェードアウト
Audio.bgm_fade(800)
Audio.bgs_fade(800)
Audio.me_fade(800)
# タイトル画面に切り替え
$scene = Scene_Title.new
end
#--------------------------------------------------------------------------
# ● コマンド [シャットダウン] 選択時の処理
#--------------------------------------------------------------------------
def command_shutdown
# 決定 SE を演奏
$game_system.se_play($data_system.decision_se)
# BGM、BGS、ME をフェードアウト
Audio.bgm_fade(800)
Audio.bgs_fade(800)
Audio.me_fade(800)
# シャットダウン
$scene = nil
end
#--------------------------------------------------------------------------
# ● コマンド [やめる] 選択時の処理
#--------------------------------------------------------------------------
def command_cancel
# 決定 SE を演奏
$game_system.se_play($data_system.decision_se)
# メニュー画面に切り替え
$scene = Scene_Menu.new(0)
end
end
Now to call the menu, call this script:
Code:
Scene_FontEdit.New
(This is a very basic script, took me only 10 Minutes to make)