자유게시판

어떻게 하죠? 이벤트에서 고급에서 스크립트 한다음에 모르겠어요
#==============================================================================
# ** 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'

  1. 아방스 게시물 · 댓글 작성 규칙 (최근 수정일 2015.11.25)

    Date2012.07.17 Category공지 By완폐남™ Views41175
    read more
  2. PC방에 앉아

    Date2009.02.05 Category잡담 Byこなた Views396
    Read More
  3. 닉네임대신 그림넣는것

    Date2009.02.05 Category잡담 By꽃게랑 Views406
    Read More
  4. 제 영혼을 드립니다.

    Date2009.02.05 Category잡담 Byこなた Views363
    Read More
  5. 정말 실망이다..

    Date2009.02.05 Category잡담 By알중. Views424
    Read More
  6. 개학해서 그런가 =ㅁ=

    Date2009.02.06 Category잡담 Byこなた Views687
    Read More
  7. 으후루~

    Date2009.02.06 Category잡담 By*PS인간 Views395
    Read More
  8. xp로 이전을 심각하게 고려중..

    Date2009.02.06 Category잡담 Byこなた Views417
    Read More
  9. 제가 최근 제작중이었던 vx 프로젝트를 공개합니다.

    Date2009.02.06 Category잡담 Byこなた Views466
    Read More
  10. XAS는 알면알수록 병맛+신기술 이 생기는군요.

    Date2009.02.06 Category잡담 By*PS인간 Views364
    Read More
  11. 영어마을 갑니다

    Date2009.02.06 Category잡담 By나뚜루 Views315
    Read More
  12. 챔프에서 러키스타 해주네...

    Date2009.02.06 Category잡담 ByScud Views353
    Read More
  13. 나보다 도트 잘하는 사람은 없을꺼임.

    Date2009.02.07 Category잡담 ByMania Views503
    Read More
  14. 이게 무슨일이야 시-바ㄹ

    Date2009.02.07 Category잡담 ByScud Views553
    Read More
  15. 아 챗방안되네@_@

    Date2009.02.07 Category잡담 By*PS인간 Views368
    Read More
  16. 심한 고민이있는데...

    Date2009.02.07 Category잡담 By할렘 Views447
    Read More
  17. 님들 왜 더빙 싫어함?

    Date2009.02.07 Category잡담 ByScud Views348
    Read More
  18. 저도 더빙이 좋은데 헤헤;

    Date2009.02.07 Category잡담 By*PS인간 Views319
    Read More
  19. 들렸다감

    Date2009.02.07 Category잡담 ByCiTY Views667
    Read More
  20. pwang님 도트..

    Date2009.02.08 Category잡담 By()_().. Views354
    Read More
  21. 스크립트 에디트 이벤트로 실행방법알려주세요

    Date2009.02.08 Category잡담 By위퍼스널팩 Views315
    Read More
목록
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