VX 스크립트

타이틀/게임오버
2008.10.28 19:03

New Title Screen

조회 수 1832 추천 수 0 댓글 3
New Title Screen
Version
1.0
Author puppeto4
Release Date 13th April

Introduction

So,I'm tired of stupid drama that goes around and can't really focus on my main project script(look at my sig if you want to know what is it)and I'm not really in mood today,so I'd decide to make a simple script to relax myself from those dramas.


Features

Title screen won't display "Continue" if there is no save file for the game(simple isn't it?)

Script

Download from attachment :

[attachment=555:New_Title_Screen.txt]

Or copy the script in the spoiler below.
다음은 스크립틍 입니다.
#============================================================================
# ** New Title Screen
#----------------------------------------------------------------------------
# Author  : puppeto4
# Version : 1.0
# Date    : 13th April 2008
#============================================================================


#==============================================================================
# ** Scene_Title
#------------------------------------------------------------------------------
#  This class performs the title screen processing.
#==============================================================================

class Scene_Title < Scene_Base
  #--------------------------------------------------------------------------
  # * Start processing
  #--------------------------------------------------------------------------
  def start
    super
    load_database                     # Load database
    create_game_objects               # Create game objects
    check_continue                    # Determine if continue is enabled
    create_title_graphic              # Create title graphic
    play_title_music                  # Play title screen music
    if @continue_enabled              # If continue is enabled
      create_command_window           # Create command window
    else
      create_command2_window          # Create command window
    end  
  end
  #--------------------------------------------------------------------------
  # * Post-Start Processing
  #--------------------------------------------------------------------------
  def post_start
    super
    if @continue_enabled              # If continue is enabled
      open_command_window
    else
      open_command2_window
    end  
  end
  #--------------------------------------------------------------------------
  # * Pre-termination Processing
  #--------------------------------------------------------------------------
  def pre_terminate
    super
    if @continue_enabled              # If continue is enabled
      close_command_window
    else
      close_command2_window
    end  
  end
  #--------------------------------------------------------------------------
  # * Termination Processing
  #--------------------------------------------------------------------------
  def terminate
    super
    snapshot_for_background
    dispose_title_graphic
    if @continue_enabled              # If continue is enabled
      dispose_command_window
    else
      dispose_command2_window
    end  
  end
  #--------------------------------------------------------------------------
  # * Frame Update
  #--------------------------------------------------------------------------
  def update
    if @continue_enabled              # If continue is enabled
      super
      @command_window.update
      if Input.trigger?(Input::C)
        case @command_window.index
        when 0    #New game
          command_new_game
        when 1    # Continue
          command_continue
        when 2    # Shutdown
          command_shutdown
        end
      end
    else  
      super
      @command2_window.update
      if Input.trigger?(Input::C)
        case @command2_window.index
        when 0    #New game
          command_new_game
        when 1    # Shutdown
          command_shutdown
        end
      end
    end  
  end
  #--------------------------------------------------------------------------
  # * Create Command2 Window
  #--------------------------------------------------------------------------
  def create_command2_window
    s1 = Vocab::new_game
    s2 = Vocab::shutdown
    @command2_window = Window_Command.new(172, [s1, s2])
    @command2_window.x = (544 - @command2_window.width) / 2
    @command2_window.y = 288
    @command2_window.openness = 0
    @command2_window.open
  end
  #--------------------------------------------------------------------------
  # * Dispose of Command2 Window
  #--------------------------------------------------------------------------
  def dispose_command2_window
    @command2_window.dispose
  end
  #--------------------------------------------------------------------------
  # * Open Command2 Window
  #--------------------------------------------------------------------------
  def open_command2_window
    @command2_window.open
    begin
      @command2_window.update
      Graphics.update
    end until @command2_window.openness == 255
  end
  #--------------------------------------------------------------------------
  # * Close Command2 Window
  #--------------------------------------------------------------------------
  def close_command2_window
    @command2_window.close
    begin
      @command2_window.update
      Graphics.update
    end until @command2_window.openness == 0
  end
  #--------------------------------------------------------------------------
  # * Command: New Game
  #--------------------------------------------------------------------------
  def command_new_game
    confirm_player_location
    Sound.play_decision
    $game_party.setup_starting_members            # Initial party
    $game_map.setup($data_system.start_map_id)    # Initial map position
    $game_player.moveto($data_system.start_x, $data_system.start_y)
    $game_player.refresh
    $scene = Scene_Map.new
    RPG::BGM.fade(1500)
    if @continue_enabled              # If continue is enabled
      close_command_window
    else
      close_command2_window
    end  
    Graphics.fadeout(60)
    Graphics.wait(40)
    Graphics.frame_count = 0
    RPG::BGM.stop
    $game_map.autoplay
  end
end
Comment '3'

List of Articles
번호 분류 제목 글쓴이 날짜 조회 수
공지 스크립트 자료 게시물 작성시 주의사항 3 습작 2012.12.24 5407
497 장비 KGC장비종류 추가 스크립트. 36 file 루시페르 2009.03.28 4674
496 제작도구 최대한 한글로 변혁 했음Window Maker V1.0(대박) 15 Man... 2008.10.29 4673
495 스킬 스킬 필요 조건(번역) 23 file 훈덕 2009.02.03 4644
494 기타 아이디를 띄우기 20 12345678 2011.11.07 4627
493 전투 VX SRPG3d 수정본(1) 12 아이미르 2011.10.19 4619
492 이동 및 탈것 점프를 제한 하는 스크립트 15 아방스 2008.01.31 4605
491 메시지 [완성]RPG Maker VX용 한글 조사 자동결정 10 file 시릴캣 2009.08.13 4598
490 퀘스트 오메가7 퀘스트 스크립트 한글화,사용법,데모게임 직접제작 32 file DH Games 2010.02.14 4578
489 메뉴 기본메인 메뉴 아이콘 추가 10 아방스 2010.12.11 4573
488 기타 간단한 스크립트의 사용법 6 아방스 2008.03.09 4552
487 아이템 레벨,능력치,아이템소지갯수,소지금의 한계돌파스크립트 21 file 이탁 2009.01.28 4547
486 상태/속성 넓어진 상태창 v1.0 11 file 아방스 2009.01.20 4536
485 메뉴 스타일 크로노 트리거 메뉴 31 file 콩밥 2010.07.19 4536
484 전투 스킬 커맨드 스크립트 16 아방스 2009.02.05 4535
483 타이틀/게임오버 까만화면으로 시작하기 27 file 허걱 2009.07.04 4528
482 아이템 아이템입수 화면 16 file RPGbooster 2008.10.08 4526
481 메뉴 메뉴 배경화면 바꾸는 스크립트 9 독도2005 2008.03.23 4520
480 전투 Target 몬스터 플래시 스크립트 16 아방스 2008.01.24 4516
479 기타 책 읽기 스크립트 44 file 히류 2010.10.05 4506
478 상점 스킬합성 상점 스크립트 23 file 미얼 2009.10.29 4498
Board Pagination Prev 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 ... 32 Next
/ 32