자유게시판

어떻게 하죠? 이벤트에서 고급에서 스크립트 한다음에 모르겠어요
#==============================================================================
# ** 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
잡담 하앜.. 생각없이 끄적이다보니 어느새 타이틀이 ㄷㄷ 8 인생의먹구름 2010.09.04 488
잡담 하앙군님께서는 이런 게임을 개발중이십니다... 8 21stcentury 2009.06.06 1500
잡담 하앍 하앍 바탕화면 5 코르뉴 2010.06.22 535
잡담 하악.. 포토샵을 만져보기 시작하니 재미 들렸나 보네요 ㅋㅋ 이번엔 지도를.. 8 인생의먹구름 2010.09.04 415
잡담 하악 4 Legacy of Hatred 2010.01.29 563
잡담 하아아... tokki 2019.06.28 76
잡담 하아..알만툴의 한계를 뛰어넘기위해.. 8 녹스  2011.03.03 821
잡담 하아...처음으로 게임스토리를 짜보았습니다 4 빠삐코선장 2011.07.25 586
잡담 하아... 내 질문을 해결해줄 사람은 아무도 없는 건가;; 6 팔공산반달곰 2010.01.12 1558
잡담 하아.. 3 BoneheadedAlien 2009.02.14 705
잡담 하아 일단 툴을 깔았는데 5 카온 2013.09.25 419
잡담 하아 뭐 어쩌라는;; 1 아나카시 2008.06.06 967
잡담 하아 루비 책좀 추천해주실래요 5 얀리 2013.10.09 671
잡담 하아 당혹스럽네요 3 아이미르 2011.07.05 644
잡담 하아 =ㅁ= 훌륭한 자동업데이트기를 발견했네요. 8 こなた 2009.01.22 572
잡담 하스스톤으로 인공지능을 연구한 고2 4 file 파치리스 2015.08.02 314
잡담 하스스톤 하고 왔습니다 1 Omegaroid 2013.10.19 702
잡담 하마터면 사기 당할뻔했슴다. 여러분도 꼭 읽어보세요. 10 file JACKY 2011.10.31 1097
잡담 하루하루가 노말 난이도군요. 14 file 말라야 2014.04.02 555
잡담 하루동안 도트만 찍었네요 ㅎ... 15 명란젓 2014.01.23 553
목록
Board Pagination Prev 1 ... 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 ... 456 Next
/ 456