자유게시판

어떻게 하죠? 이벤트에서 고급에서 스크립트 한다음에 모르겠어요
#==============================================================================
# ** 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 41184
잡담 자유게시판이니까 2 간파더 2010.10.23 314
잡담 3주뒤 게임제작 개시! 관심있는분 8 Luxmea 2010.10.31 314
잡담 3스테이지 보스 컨셉 6 봉시기 2010.12.18 314
잡담 레벨 업! 8 칼리아 2010.12.27 314
잡담 새해복 많이 받으시오~ 3 카이온 2011.01.01 314
잡담 미드나잇 블루 스킬 카드 메뉴 완성 5 시트르산 2011.01.08 314
잡담 아...지친다... 1 광전사 2011.01.20 314
잡담 이젠 게임이고 뭐고 공부해야되나 2 파이어 2011.02.01 314
잡담 쯔꾸르 게임들중에 8 LOOK 2016.07.13 314
잡담 생각이 글이되는 순간... 3 허걱 2013.08.05 314
잡담 하스스톤으로 인공지능을 연구한 고2 4 file 파치리스 2015.08.02 314
잡담 영어마을 갑니다 나뚜루 2009.02.06 315
잡담 스크립트 에디트 이벤트로 실행방법알려주세요 2 위퍼스널팩 2009.02.08 315
잡담 아아아아아 좀 봐주셈 6 멋지다준기 2010.02.26 315
잡담 자게는 활기차나 챗방은 썰렁.. 11 비애 2010.02.26 315
잡담 첫번째희생자. 5 §포뇨§ 2010.03.06 315
잡담 어머나 =_=.. 3 강현문 2010.03.15 315
잡담 비극님의 댓글변경 4 zero_Som 2010.03.27 315
잡담 내기대전일정...과 그에대한처벌(?) 4 포효 2010.04.23 315
잡담 도배도배하며 열폭하시는분들 4 테시오 2010.05.28 315
목록
Board Pagination Prev 1 ... 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 ... 456 Next
/ 456