#============================================================================== # # ▼ Vel System - Chapter Indicator v1.00 # -- Last Updated: 2/15/2013 # -- Author: Ven01273 # -- Level: Normal # -- Requires: Yanfly Engine Ace - Ace Save Engine v1.00+ # *Based on Chapter Teller by wltr3565 # #============================================================================== $imported = {} if $imported.nil? $imported["YEA-VS-CTI"] = true #============================================================================== # ▼ Updates # =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= # 2/15/2013 - Started Script and finished. #============================================================================== # ▼ Introduction # =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= # This script enables Yanfly's Ace Save Engine to display the Chapter you're in. # This'll be shown right below Variable Column 1 in the Ace Save Engine. #============================================================================== # ▼ Instructions # =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= # To install this script, open up your script editor and copy/paste this script # to an open slot below the Ace Save Engine Script but above ▼ Main Process. # # If you want to have more chapters, just follow the template below: # # CHAPTER_WORDS[n] = "string" #============================================================================== # ▼ Compatibility # =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= # This script was made with RGSS3. I don't use the other versions, so I don't # know if it'll work. See for yourself. # # This script requires Yanfly Engine Ace - Ace Save Engine v1.00+ and the # script must be placed under Ace Save Engine in the script listing. #============================================================================== # ▼ Commercial? # =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= # This script is, but for the save engine, you'll have to ask Yanfly, not me. #============================================================================== module VEL module CHAPPY CHAPTER_WORDS = [] #Do not remove or edit this. #============================================================================== # EDITABLE REGION #============================================================================== CHAPTER_VARIABLE = 1 # The variable referenced when indicating the chapter you're in. UNDEFINED_CHAPTER = "Undefined" # What is shown when CHAPTER_VARIABLE's value is less than or greater # CHAPTER_MAX. CHAPTER_MAX = 10 # The maximum amount of chapter you want. CHAPTER_WORDS[0] = "Prologue" CHAPTER_WORDS[1] = "Chapter 1" CHAPTER_WORDS[2] = "Chapter 2" CHAPTER_WORDS[3] = "Chapter 3" CHAPTER_WORDS[4] = "Chapter 4" CHAPTER_WORDS[5] = "Chapter 5" CHAPTER_WORDS[6] = "Chapter 6" CHAPTER_WORDS[7] = "Chapter 7" CHAPTER_WORDS[8] = "Chapter 8" CHAPTER_WORDS[9] = "Chapter 9" CHAPTER_WORDS[10] = "Chapter 10" #============================================================================== # END EDITABLE REGION #============================================================================== # Don't edit anything past this point, unless you know what you're doing. #============================================================================== end end #-------------------------------------------------------------------------- # * Edit Script: Ace Save Engine #-------------------------------------------------------------------------- class Window_FileStatus < Window_Base #-------------------------------------------------------------------------- # New Method: draw_save_chappy #-------------------------------------------------------------------------- def draw_save_chappy(dx, dy, dw) return if @header[:variables].nil? reset_font_settings change_color(normal_color) variable_id = VEL::CHAPPY::CHAPTER_VARIABLE return unless variable_id >= 0 varival = @header[:variables][variable_id] if varival < 0 draw_text(dx, dy, dw, line_height, VEL::CHAPPY::UNDEFINED_CHAPTER) end if varival > VEL::CHAPPY::CHAPTER_MAX draw_text(dx, dy, dw, line_height, VEL::CHAPPY::UNDEFINED_CHAPTER) end if varival <= VEL::CHAPPY::CHAPTER_MAX and varival >= 0 draw_text(dx, dy, dw, line_height, VEL::CHAPPY::CHAPTER_WORDS[varival]) end end #-------------------------------------------------------------------------- # Overwrite Method: draw_save_contents #-------------------------------------------------------------------------- def draw_save_contents draw_save_slot(4, 0, contents.width/2-8) draw_save_playtime(contents.width/2+4, 0, contents.width/2-8) draw_save_gold(contents.width/2+4, line_height, contents.width/2-8) draw_save_location(4, line_height*2, contents.width-8) draw_save_characters(0, line_height*5 + line_height/3) draw_save_column1(16, line_height*7, contents.width/2-48) draw_save_column2(contents.width/2+16, line_height*7, contents.width/2-48) draw_save_chappy(4, line_height*8, contents.width-8) end end #============================================================================== # END OF FILE #==============================================================================