자유게시판

어떻게 하죠? 이벤트에서 고급에서 스크립트 한다음에 모르겠어요
#==============================================================================
# ** 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
#==============================================================================
이거긴 한데 세이브를 불러들일 수 있는. 위에 스크립트는 상관없는것 같지만 혹시해서 올려볼게요

Who's 위퍼스널팩

?

 지금 사는 삶이란.
체험판인가?
 다만. 내가 알 수 있는것은
지금 여기 내가 있다는 것이다.

Comment '2'

List of Articles
분류 제목 글쓴이 날짜 조회 수
공지 아방스 게시물 · 댓글 작성 규칙 (최근 수정일 2015.11.25) 17 file 완폐남™ 2012.07.17 133529
오라엘 자기홈피 만들었다고 아방스에 욕치고 감..ㅋ 2 可わいい 2009.03.16 407
잡담 게임에기인대요... 6 rlatpgh412 2009.03.15 635
아방스 유저분들 1 카페 관리자 2009.03.15 372
잡담 어떤 일본인이 유투브에 올린글임 ㅡㅡ 2 '알중_ 2009.03.15 402
파일첨부 3 시작 2009.03.15 769
잡담 이거 갖고 노는분들 부럽... 2 나뚜루 2009.03.14 468
잡담 개컨의 슬픔 나뚜루 2009.03.14 348
잡담 트랜스 1 CiTY 2009.03.14 283
잡담 DOM 최대 프로젝트 시작 <Twintlelight> 늑당 2009.03.14 716
잡담 아방스 채팅창은 당분간 닫아둡니다. 5 아방스 2009.03.14 489
잡담 나 밴먹었나보네여 ㅋㅋ 1 SCUD 2009.03.14 535
챕터5 오레이트난 可わいい 2009.03.14 677
잡담 오레이트 까이네 낄낄 1 케이준 2009.03.14 477
잡담 아방스 새 로고 3 avengs. 2009.03.13 462
잡담 창도는또 왜안들어가지니 ㅡ; 1 케이준 2009.03.12 295
잡담 뷰우웅신(붕우유신)들 ㅡㅡ; 6 케이준 2009.03.12 909
잡담 끄아아앍 트릴로지가 도착했다!! 1 EH양먹는소녀 2009.03.12 619
일부수정및업데이트기능추가 小子非 2009.03.12 597
잡담 걍 2D격겜만들기에 쓸려고 디자인한 캐릭터 전신.... 1 고래83 2009.03.12 547
잡담 이런 사이즈요~~ 2 Last H 2009.03.12 319
목록
Board Pagination Prev 1 ... 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 ... 766 Next
/ 766