VX 스크립트


Screenshot


For the curious kitten...


DEMO

DEMO

시작!!!
#==============================================================================
# ** Force Save
#------------------------------------------------------------------------------
# Author  : puppeto4 (puppeto5@hotmail.com)
# Version : 1.0 revision 1
# Date    : 06 / 06 / 2008
# Note    : Order Pizza Hut, support the rebellion.
# Check RPG RPG Revolution(http://www.rpgrevolution.com) for support
#------------------------------------------------------------------------------
# Function :  
#   This script will force player to save when starting a new game.
#==============================================================================
#==============================================================================
# ** Puppeto
#------------------------------------------------------------------------------
#  This module handles setup for any script writen by me ^^.
#==============================================================================

module Puppeto
  # Message shown when the force save screen appear.
  ForceMessage     = "Please save your game before proceed"
#==============================================================================
# ** End of Puppeto module
#------------------------------------------------------------------------------
end  
#==============================================================================
# ** Class Alias
#==============================================================================
#----------------------------------------------------------------------------
# * Aliased Class(es) : Scene_Title, Scene_File
#----------------------------------------------------------------------------
#==============================================================================
# ** Scene_Title
#------------------------------------------------------------------------------
#  This class performs the title screen processing.
#==============================================================================
#----------------------------------------------------------------------------
# * Aliased Method(s) : command_new_game
#----------------------------------------------------------------------------

class Scene_Title < Scene_Base
  #--------------------------------------------------------------------------
  # * Alias Listing
  #--------------------------------------------------------------------------
  alias puppet_forcesave_command_new_game command_new_game    
  #--------------------------------------------------------------------------
  # * Command: New Game
  #--------------------------------------------------------------------------
  def command_new_game
    # The usual
    puppet_forcesave_command_new_game
    # If $FSAVE is false or nil
    if $FSAVE == false or $FSAVE.nil?
      # Call Scene_File(save type)
      $scene = Scene_File.new(true, true, false)
      # Set $FSAVE to true to enable force_save in Scene_File
      $FSAVE = true
    end  
  end
end
#==============================================================================
# ** Scene_File
#------------------------------------------------------------------------------
#  This class performs the save and load screen processing.
#==============================================================================
#----------------------------------------------------------------------------
# * Aliased Method(s) : main, start, return_scene
# * New Method(s)     : force_save
#----------------------------------------------------------------------------

class Scene_File < Scene_Base
  #--------------------------------------------------------------------------
  # * Alias Listing
  #--------------------------------------------------------------------------
  if @new_stack.nil?
    alias puppet_forcesave_main main    
    alias puppet_forcesave_start start    
    alias puppet_forcesave_return_scene return_scene  
    @new_stack = true
  end  
  #--------------------------------------------------------------------------
  # * Main Processing
  #--------------------------------------------------------------------------
  def main
    puppet_forcesave_main             # The usual
    force_save if $FSAVE              # Start force save if $FSAVE is true
  end
  #--------------------------------------------------------------------------
  # * Start processing
  #--------------------------------------------------------------------------
  def start
    # The usual
    puppet_forcesave_start
    # Set a difference text on help windo if $FSAVE is true
    @help_window.set_text(Puppeto::ForceMessage, 1) if $FSAVE
  end  
  #--------------------------------------------------------------------------
  # * Return to Original Screen
  #--------------------------------------------------------------------------
  def return_scene
    # If $FSAVE is true
    if $FSAVE
      # If Input::B is triggered
      if Input.trigger?(Input::B)
        # Stop all SE playback
        Audio.se_stop
        # Ignore if play_buzzer SE
        next if Sound.play_buzzer
        # Return
        return
      end  
    end  
    # The usual
    puppet_forcesave_return_scene
  end    
  #--------------------------------------------------------------------------
  # * Force Save
  #--------------------------------------------------------------------------
  def force_save
    # Call Scene_Map
    $scene = Scene_Map.new
    # Set $FSAVE to false to prevent looping
    $FSAVE = false      
  end  
end
#==============================================================================
# ** End of Class Alias
#==============================================================================
Comment '4'

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