VX 스크립트

  1. Intro
    In the RPG Maker 2000 had 15 saveslots. When the RPGXP appeared only 4 slots. But with a script by KGC could expand this. Since the default RPGVX only has 4 saveslots, I thought why I don't make myself such a script as KGC has done? So here is my conclusion:
  2. Features
    • Set the value of saveslots
  3. Screenshots

    #==============================================================================
    # ** More savefiles 1.01 (http://erzvx.de.ms/scripts/MoreSavefiles.txt)
    #------------------------------------------------------------------------------
    #  written by ERZENGEL
    #==============================================================================

    # Max amount of savefiles
    MAXSAVEFILES = 8

    #==============================================================================
    # ** Window_SaveFile
    #------------------------------------------------------------------------------
    #  This window displays save files on the save and load screens.
    #==============================================================================

    class Window_SaveFile < Window_Base
      #--------------------------------------------------------------------------
      # * Object Initialization
      #     file_index : save file index (0 to the value of MAXSAVEFILES)
      #     filename   : filename
      #--------------------------------------------------------------------------
      def initialize(file_index, filename)
        super(0, 56 + file_index % MAXSAVEFILES * 90, 544, 90)
        @file_index = file_index
        @filename = filename
        load_gamedata
        refresh
        @selected = false
      end
    end

    #==============================================================================
    # ** Scene_File
    #------------------------------------------------------------------------------
    #  This class performs the save and load screen processing.
    #==============================================================================

    class Scene_File
      #--------------------------------------------------------------------------
      # * Start processing
      #--------------------------------------------------------------------------
      def start  
        super
        @file_max = MAXSAVEFILES
        create_menu_background
        @help_window = Window_Help.new
        create_savefile_windows
        if @saving
          @index = $game_temp.last_file_index
          @help_window.set_text(Vocab::SaveMessage)
        else
          @index = self.latest_file_index
          @help_window.set_text(Vocab::LoadMessage)
        end
        @savefile_windows[@index].selected = true
        @page_file_max = ((416 - @help_window.height) / 90).truncate
        for i in 0...@file_max
          window = @savefile_windows[i]
          if @index > @page_file_max - 1
            if @index < @file_max - @page_file_max - 1
              @top_row = @index
              window.y -= @index * window.height
            elsif @index >= @file_max - @page_file_max
              @top_row = @file_max - @page_file_max
              window.y -= (@file_max - @page_file_max) * window.height
            else
              @top_row = @index
              window.y -= @index * window.height
            end
          end
          window.visible = (window.y >= @help_window.height and
          window.y < @help_window.height + @page_file_max * window.height)
        end
      end
      #--------------------------------------------------------------------------
      # * Create Save File Window
      #--------------------------------------------------------------------------
      def create_savefile_windows
        @top_row = 0
        @savefile_windows = []
        for i in 0...@file_max
          @savefile_windows.push(Window_SaveFile.new(i, make_filename(i)))
        end
      end
      #--------------------------------------------------------------------------
      # * Move cursor down
      #     wrap : Wraparound allowed
      #--------------------------------------------------------------------------
      def cursor_down(wrap)
        if @index < @file_max - 1 or wrap
          @index = (@index + 1) % @file_max
          for i in 0...@file_max
            window = @savefile_windows[i]
            if @index == 0
              @top_row = 0
              window.y = @help_window.height + i % @file_max * window.height
            elsif @index - @top_row > @page_file_max - 1
              window.y -= window.height
            end
            window.visible = (window.y >= @help_window.height and
              window.y < @help_window.height + @page_file_max * window.height)
          end
          if @index - @top_row > @page_file_max - 1
            @top_row += 1
          end
        end
      end
      #--------------------------------------------------------------------------
      # * Move cursor up
      #     wrap : Wraparound allowed
      #--------------------------------------------------------------------------
      def cursor_up(wrap)
        if @index > 0 or wrap
          @index = (@index - 1 + @file_max) % @file_max
          for i in 0...@file_max
            window = @savefile_windows[i]
            if @index == @file_max - 1
              @top_row = @file_max - @page_file_max
              window.y = @help_window.height + i % @file_max * window.height
              window.y -= (@file_max - @page_file_max) * window.height
            elsif @index - @top_row < 0
              window.y += window.height
            end
            window.visible = (window.y >= @help_window.height and
              window.y < @help_window.height + @page_file_max * window.height)
          end
          if @index - @top_row < 0
            @top_row -= 1
          end
        end
      end
    end
  4. 시작
Comment '2'

List of Articles
번호 분류 제목 글쓴이 날짜 조회 수
공지 스크립트 자료 게시물 작성시 주의사항 3 습작 2012.12.24 5408
537 HUD KH HUD (HP MP 게이지바 스크립트) 41 아방스 2010.12.17 6422
536 전투 GTBS 1.5.1.4 - GubiD's Tactical Battle System 10 아방스 2010.12.11 4455
535 메뉴 기본메인 메뉴 아이콘 추가 10 아방스 2010.12.11 4573
534 HUD HUD 스크립트 모음 10 아방스 2010.12.11 3658
533 전투 전투후 HP/MP 퍼센테이지(지정) 회복 5 하얀슬픔 2010.12.06 2495
532 이동 및 탈것 3D 던젼 스크립트 38 아방스 2010.12.06 5775
531 장비 장비 레벨 개념 추가 스크립트 14 아방스 2010.12.06 3275
530 스킬 체스트 팝업 3.0 9 file 파이어 2010.12.05 3037
529 미니맵 MiniMap 1.0 미니맵 스크립트. 39 아방스 2010.12.02 4740
528 전투 사이드 뷰 시스템 [시트르산님 제공] 56 아방스 2010.11.29 7499
527 변수/스위치 HG_SelfVariables 셀프 변수 8 file 허걱 2010.11.19 2341
526 기타 HG_SHOOT_ANIMATION 4 file 허걱 2010.11.17 2596
525 기타 RMVX Patcher 1.2.0 by Yeyinde 5 file Alkaid 2010.11.12 2118
524 아이템 아이템 무게, 아이템별 소지수 적용 16 file 허걱 2010.11.11 2981
523 스킬 Simple Sort Skill Inventory 1.1 by cozziekuns 5 file Alkaid 2010.11.10 2350
522 스킬 Simple Sort Inventory 1.3a by cozziekuns 5 file Alkaid 2010.11.10 1636
521 전투 RPG tankentai에서의 치명적 문제점을 보완한 스크립트 2 file 톰소여동생 2010.11.03 3117
520 전투 포켓몬 스크립트 한글화 완료 26 file 서울냥이 2010.10.11 6030
519 기타 Modified Advanced Weather Script VX 1.1 3 file Alkaid 2010.10.08 1967
518 기타 책 읽기 스크립트 44 file 히류 2010.10.05 4506
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