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 5398
457 스킬 스킬, 아이템 적아 구분 없이 쓰기 10 file EuclidE 2011.10.16 2900
456 스킬 스킬 필요조건에 살짝 손대봤습니다. -- 수정 18 아이미르 2011.03.23 2499
455 스킬 스킬 필요 조건(번역) 23 file 훈덕 2009.02.03 4644
454 전투 스킬 커맨드 스크립트 16 아방스 2009.02.05 4535
453 상점 스킬 샾 스크립트 2.0 48 아방스 2008.03.05 6628
452 스킬 스킬 사용시 컷인 연출 (번역) 26 file 훈덕 2009.02.05 5387
451 기타 스크립트로 커먼 이벤트 실행 [수정] 3 허걱 2009.08.17 2311
450 기타 스크립트강좌 4 아하!잘봤어요. 2009.05.04 2158
449 기타 스크린샷 기능 14 비극ㆍ 2010.04.19 2090
448 이동 및 탈것 스위치 on일때 못 움직이게...(이동고정) 6 허걱 2009.07.14 2322
447 메시지 소설풍(노벨풍) 문자 스크립트 31 file 맛난호빵 2011.01.03 5551
446 저장 세이브/로드가 불가능한 스크립트!!! 9 file ~AYARSB~ 2010.03.08 3298
445 기타 세이브 포인트 2 비극ㆍ 2010.04.19 2518
444 저장 세이브 파일 개수 16개로 늘리기 (기본 세이브 엔진용) 1 file Bunny_Boy 2015.09.07 816
443 저장 세이브 시스템 확장 스크립트 9 file 신규회원 2012.02.24 3315
442 기타 설명하기 힘든 스크립트 (스크린샷 확인) 10 file 사람이라면? 2010.08.16 3818
441 직업 서브클래스 선택 시스템 Subclass Selection System 7 file 카르와푸딩의아틀리에 2009.06.30 3943
440 새로운 종류의 세이브 스크립트!! 8 Man... 2008.10.28 3517
439 전투 새로운 전투돌입효과 29 file RPGbooster 2008.10.08 5079
438 맵/타일 새로운 월드맵 만들기 (로맨싱사가풍) 37 file 078656577er 2009.10.09 6151
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