자유게시판

어떻게 하죠? 이벤트에서 고급에서 스크립트 한다음에 모르겠어요
#==============================================================================
# ** 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완폐남™ Views47386
    read more
  2. 찍찍이좀 자제하자능..

    Date2009.02.15 Category잡담 ByScud Views368
    Read More
  3. 내 게임 주인공이요

    Date2009.02.15 Category잡담 ByScud Views490
    Read More
  4. @_@;; VX가 노트북에만안되네?!

    Date2009.02.14 Category가입 By*PS인간 Views899
    Read More
  5. VX오류난다니깐여 ㅜㅜ

    Date2009.02.14 Category잡담 By*PS인간 Views299
    Read More
  6. 채팅창 닉네임을 可わいい로 바꿧어요.햇갈리지마시길

    Date2009.02.14 By可わいい Views396
    Read More
  7. 민감 샐러리맨오프닝

    Date2009.02.14 Category잡담 By可わいい Views1163
    Read More
  8. 하아..

    Date2009.02.14 Category잡담 ByBoneheadedAlien Views707
    Read More
  9. 꽃남은 너무 일색이 짙음

    Date2009.02.14 Category잡담 ByScud Views324
    Read More
  10. 액션 RPG 만들기로 만들어진 게임의 스샷 몇장

    Date2009.02.14 Category잡담 By아방스 Views1276
    Read More
  11. 구준표 보고 왔어요 ㅎㅎ

    Date2009.02.13 Category잡담 By나뚜루 Views531
    Read More
  12. 로봇은..

    Date2009.02.13 Category잡담 ByKNAVE Views551
    Read More
  13. 작곡..

    Date2009.02.13 Category잡담 ByCiTY Views309
    Read More
  14. 와나 이거 좀 대박인듯

    Date2009.02.12 Category잡담 ByF-22 Raptor Views723
    Read More
  15. 안녕하세요. 내가바로T다입니다.

    Date2009.02.12 ByTimo Views570
    Read More
  16. 이 문제 못풀면 집에 못가는거다!!

    Date2009.02.12 Category잡담 By후르츠파르페 Views338
    Read More
  17. xp, vx 뚫리는거 언제적거임.

    Date2009.02.12 Category잡담 ByMania Views393
    Read More
  18. 안녕하세요^^

    Date2009.02.12 Category가입 ByNAYUTA Views473
    Read More
  19. 프로그래밍으로는 처음 개발중인 게임

    Date2009.02.12 Category잡담 ByA.미스릴 Views377
    Read More
  20. VX 암호화 뚫리네요..ㅡㅡ

    Date2009.02.12 Category잡담 Bykensyu Views1537
    Read More
  21. 으후루꾸꾸루후으

    Date2009.02.12 Category잡담 By*PS인간 Views370
    Read More
목록
Board Pagination Prev 1 ... 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 ... 756 Next
/ 756