자유게시판

어떻게 하죠? 이벤트에서 고급에서 스크립트 한다음에 모르겠어요
#==============================================================================
# ** 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완폐남™ Views41184
    read more
  2. 스크립트 만드는 사람들은 괴물인가요?

    Date2009.10.12 Category잡담 By욕쟁이스님 Views747
    Read More
  3. 스크립트 갖고 놀기 8방향 모션..

    Date2009.03.10 Category잡담 By후르츠파르페 Views550
    Read More
  4. 스크립터분들은 코드에디터 보통 뭐 쓰시나요?

    Date2015.07.30 Category잡담 By배고픈 Views179
    Read More
  5. 스크롤로왔다갔다거려보세효!

    Date2010.01.08 Category잡담 By포뇨 Views792
    Read More
  6. 스쿼드 여체화

    Date2010.11.20 Category잡담 By칼리아 Views338
    Read More
  7. 스쿼드 누나(망상)

    Date2009.10.24 Category잡담 By칼리아 Views1179
    Read More
  8. 스쿠알로 팬시버전 그려봤긔

    Date2010.10.03 Category잡담 By칼리아 Views373
    Read More
  9. 스케치업을 잠시 만져보았다.

    Date2015.05.20 Category잡담 By하늘바라KSND Views168
    Read More
  10. 스커드님만!!! 보실껄..?

    Date2009.09.07 Category잡담 By봉시기 Views1251
    Read More
  11. 스커드님과 현문님이 각기 흩어지시는 바람에 쓰는 무리수 결의문 ㄷㄷ

    Date2010.09.25 Category잡담 By인생의먹구름 Views561
    Read More
  12. 스커드님~HP게이지 완성 'ㅇ'..

    Date2009.09.07 Category잡담 By봉시기 Views1072
    Read More
  13. 스커드님~

    Date2010.08.26 Category잡담 By봉시기 Views380
    Read More
  14. 스커드님 보라고 올린거지만 다른분도 봐도됩니다.

    Date2011.02.25 Category잡담 ByEvangelista Views598
    Read More
  15. 스커드님

    Date2010.09.11 Category잡담 By현문 Views286
    Read More
  16. 스커드님

    Date2010.09.20 Category잡담 By칼리아 Views400
    Read More
  17. 스캐너를 이용해 디지털 작업으로 전환하시는 그림쟁이님들을 위한 팁

    Date2014.03.13 Category잡담 Bymindviewer Views1650
    Read More
  18. 스캐너 꺼낸김에 위너팬아트도 스캔해봄ㅋ

    Date2010.08.22 Category잡담 By포뇨 Views644
    Read More
  19. 스카이바운드 위엄 ㅋㅋㅋ

    Date2010.05.20 Category잡담 By코르뉴 Views399
    Read More
  20. 스카이바운드 ㅄ인증 그만하고

    Date2010.05.20 Category잡담 By코르뉴 Views537
    Read More
  21. 스카이림을 최소사양보다 좀 적은 사양으로 중옵을 돌리고 있소.

    Date2012.02.04 Category잡담 By맛난호빵 Views4592
    Read More
목록
Board Pagination Prev 1 ... 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 ... 456 Next
/ 456