Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
My firt script
#1
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.


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)
}


Possibly Related Threads…
Thread Author Replies Views Last Post
  Change character script jaigai 0 2,737 11-19-2006, 01:00 PM
Last Post: jaigai
  Just a modification of Abyssos' facs script lumina... 0 2,589 11-01-2006, 01:00 PM
Last Post: lumina...
  Credit Script 1.1 acoole 0 2,416 10-24-2006, 01:00 PM
Last Post: acoole
  Script Dev Kit Nick 0 2,793 10-15-2006, 01:00 PM
Last Post: Nick
  Opening Image script sasuke89 0 2,020 07-24-2006, 01:00 PM
Last Post: sasuke89
  Change Color of The diferent Status Script MASTERLOKI 0 2,267 07-18-2006, 01:00 PM
Last Post: MASTERLOKI
  Event Name and ID Search Script Hadriel 0 2,026 06-21-2006, 01:00 PM
Last Post: Hadriel
  Currency Script Split 0 2,273 05-18-2006, 01:00 PM
Last Post: Split
  Book Script and Utility Bruth 0 2,217 05-07-2006, 01:00 PM
Last Post: Bruth
  Individuality Script DrakoShade 0 2,175 03-12-2006, 01:00 PM
Last Post: DrakoShade



Users browsing this thread: