VX 스크립트

#===========================================
#  Final Fantasy Styled Savepoint System
#               for RMVX
#                 v1.0
#             by  Rubymatt
#===========================================

class Scene_Savepoint < Scene_Base
  def start
    super
    create_menu_background
    create_command_window
  end
  def post_start
    super
    open_command_window
  end
  def terminate
    super
    dispose_command_window
    dispose_menu_background
  end
  def update
    super
    update_menu_background
    @command_window.update
    if Input.trigger?(Input::B)
      Sound.play_cancel
      $scene = Scene_Map.new
    elsif Input.trigger?(Input::C)
      case @command_window.index
      when 0 
        Sound.play_decision
        $scene = Scene_File.new(true, false, true)
      when 1
        if $game_party.item_number($data_items[@tent]) < 1         
          Sound.play_buzzer 
        else
          Sound.play_recovery
          $game_party.lose_item($data_items[@tent], 1, false)
          for actor in $game_party.members
            actor.recover_all
          end
          @command_window.dispose
          create_command_window
          @command_window.index = 1
          @command_window.update
        end
      when 2 
        Sound.play_cancel
        $scene = Scene_Map.new
      end
    end
  end
  def update_menu_background
    super
    @menuback_sprite.tone.set(0, 0, 0, 0)
  end
  def create_command_window
    #Edit Below ---------------------------------
    @tent = 21   #ID of Tent item in database
    #Stop Edit ----------------------------------
    s1 = Vocab::save
    s2 = "Tent (" + $game_party.item_number($data_items[@tent]).to_s + " left)"
    s3 = Vocab::cancel
    @command_window = Window_Command.new(172, [s1, s2, s3])
    @command_window.x = (544 - @command_window.width) / 2
    @command_window.y = (416 - @command_window.height) / 2
    if $game_party.item_number($data_items[@tent]) < 1         
      @command_window.draw_item(1, false)   
    end
  end
  def dispose_command_window
    @command_window.dispose
  end
  def open_command_window
    @command_window.open
    begin
      @command_window.update
      Graphics.update
    end until @command_window.openness == 255
  end
  def close_command_window
    @command_window.close
    begin
      @command_window.update
      Graphics.update
    end until @command_window.openness == 0
  end
  def dispose_command_window
    @command_window.dispose
  end
end

으......응?

부속스크립트가아닌 이벤트로 추가해야 하는것가틍데.....

    #Edit Below ---------------------------------
    @tent = 21   #ID of Tent item in database
    #Stop Edit ----------------------------------

 

출처:rmrk

Comment '2'

List of Articles
번호 분류 제목 글쓴이 날짜 조회 수
공지 스크립트 자료 게시물 작성시 주의사항 3 습작 2012.12.24 5398
457 원경 원경(파노라마) 바꾸기 9 file 허걱 2010.05.28 3369
456 기타 [자작]게임 실행시 파일 체크 프로그램. 또는 파일 실행기. 16 file NightWind AYARSB 2010.05.20 3192
455 스킬 [ultimate series]스킬,아이템 데미지계산식을 자기입맛에 맞게 고치는 스크립트 16 file EuclidE 2010.05.04 4373
454 메시지 직접 생각해서 만든 "문장 속 특정 단어 색 바꾸기" 10 file X.66 2010.04.28 4363
453 메뉴 매우 간단명료한 메뉴. 32 file 비극ㆍ 2010.04.23 6618
452 이동 및 탈것 자동 이동 시스템 20 file 허걱 2010.04.21 4303
451 기타 전투후 이어지는 베경음 9 비극ㆍ 2010.04.19 2190
450 그래픽 토마스 에디슨(파티클 엔진 비슷) 9 file 비극ㆍ 2010.04.19 3431
449 기타 Lock Screen 3 비극ㆍ 2010.04.19 2012
448 기타 레벨업 이펙트... 20 비극ㆍ 2010.04.19 3768
» 기타 세이브 포인트 2 비극ㆍ 2010.04.19 2518
446 기타 그림자 없애기... 3 비극ㆍ 2010.04.19 1642
445 기타 메뉴에서 애니매이션 사용! 12 비극ㆍ 2010.04.19 3022
444 타이틀/게임오버 타이틀에서 홈페이지 연결 17 비극ㆍ 2010.04.19 2271
443 기타 스크린샷 기능 14 비극ㆍ 2010.04.19 2090
442 메뉴 Final Fantasy VII Menu System 8 비극ㆍ 2010.04.19 3506
441 기타 땅파기 18 file 비극ㆍ 2010.04.19 3013
440 스킬 Learn Skills By Use 10 비극ㆍ 2010.04.19 2037
439 맵/타일 Map Saver 17 file 비극ㆍ 2010.04.18 2415
438 HUD Zelda Health System 11 file 비극ㆍ 2010.04.18 2850
Board Pagination Prev 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 ... 32 Next
/ 32