자유게시판

어떻게 하죠? 이벤트에서 고급에서 스크립트 한다음에 모르겠어요
#==============================================================================
# ** 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 132123
잡담 아폴로 하면 생각나는것은? 9 나뚜루 2009.02.20 781
잡담 카와이님 발견했어요 4 나뚜루 2009.02.20 354
잡담 미카누얌님 제발 해명좀 ;ㅅ; 오카마는 아니져? ;ㅅ; 4 *可わいい 2009.02.20 429
도와주세요!!! 메이커 2009.02.20 324
잡담 방금 아이도저 해봤는데 3 Scud 2009.02.20 333
잡담 요즘 꽃남을 보는데... 6 가이사르 2009.02.19 459
잡담 ㅠㅠ 니오티소프트는 사람들 기억속에서 잊혀져가는건가요 6 EH양먹는소녀 2009.02.19 715
잡담 lllAVANGS 6 아내의유혹 2009.02.19 437
잡담 랭킹존 말입죠... 6 쉴더 2009.02.19 610
잡담 자료 올리시는 분들 보셔야 할듯 싶네요. 9 쉴더 2009.02.19 636
잡담 자 다들 조용히하시고 3 EH양먹는소녀 2009.02.19 298
잡담 칠용 5시간 사냥 ㅠㅠ 망했다능 5 Scud 2009.02.19 368
잡담 아방스님은 웹프로그래머? 4 레오 2009.02.19 348
잡담 내 이미지네임의 원본.. 6 *可わいい 2009.02.19 368
자작한챗 3 나뚜루 2009.02.19 415
잡담 간단한 테스트 몇개 5 공인주인공 2009.02.19 487
잡담 제가 올리는 애니메이션 말이죠. 2 쉴더 2009.02.19 389
잡담 ㅎㅇ 나왓써욜 1 *PS인간 2009.02.18 332
잡담 공부해야되는데.. 3 CiTY 2009.02.18 487
여러분! 저작권 문제가 될 수 있는 게시글들은 모두 지우시기 바랍니다. 6 독도2005 2009.02.18 757
목록
Board Pagination Prev 1 ... 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 ... 758 Next
/ 758