################################################################################ Created By Goldstorm ## Version 0.4 - 8/12/2015 1410 EDT ## This script adds a save counter, and shows the current Map Name the player ## is on in the save file. #################################################################################################################################################################### Change the variables to show what it says on the save/load screen ####################################################################################module Vocab SaveMessage = "Write to book?" LoadMessage = "Read which book?" File = "Bookmark" SaveCounter = "Books Read:"endmodule DataManager; module GOLD#################################################################################### ADJUST THESE NUMBERS TO MOVE THE TEXT ON THE SAVE SCREEN #################################################################################### X_PLAYT = -430 #Adjust Playtime X Axis Location Y_PLAYT = 20 #Adjust Playtime Y Axis Location X_FILES = 4 #Adjust the Vocab::File String X Axis Y_FILES = 0 #Adjust the Vocab::File String Y Axis X_BOOKM = 4 #Adjusts the Vocab::SaveCounter String X Axis Y_BOOKM = 40 #Adjusts the Vocab::SaveCounter String Y Axis X_SAVEN = -378 #Adjusts Save Counter X Axis Location Y_SAVEN = 40 #Adjusts Save Counter Y Axis Location X_SPRITE = 152 #Adjust Sprite X Axis Location Y_SPRITE = 58 #Adjust Sprite Y Axis Location X_MAPLOC = 0 #Adjust Map Name X Axis Location Y_MAPLOC = 0 #AdjuSt Map Name Y Axis Locationend#################################################################################### DON'T ADJUST ANYTHING BELOW HERE, OR DO, WHATEVER... #####################################################################################Add another header def self.make_save_header header = {} header[:characters] = $game_party.characters_for_savefile header[
😛laytime_s] = $game_system.playtime_s header[:savenum] = $game_system.save_count header[:currentmap] = $game_map.display_name header endend class Window_SaveFile < Window_Base #-------------------------------------------------------------------------- # * OVERWRITE Refresh #-------------------------------------------------------------------------- def refresh contents.clear change_color(normal_color) name = Vocab::File + " #{@file_index + 1}" draw_text(DataManager::GOLD::X_FILES, DataManager::GOLD::Y_FILES, 200, line_height, name) @name_width = text_size(name).width draw_party_characters(DataManager::GOLD::X_SPRITE, DataManager::GOLD::Y_SPRITE) draw_playtime(0, contents.height - line_height, contents.width - 4, 2) book = Vocab::SaveCounter draw_text(DataManager::GOLD::X_BOOKM, DataManager::GOLD::Y_BOOKM, 200, line_height, book) draw_savenums(0, contents.height - line_height, contents.width - 4, 2) draw_gamemap(0, contents.height, contents.width - 4, 2) end #-------------------------------------------------------------------------- # * OVERWRITE Draw Play Time #-------------------------------------------------------------------------- def draw_playtime(x, y, width, align) header = DataManager.load_header(@file_index) return unless header draw_text(DataManager::GOLD::X_PLAYT, DataManager::GOLD::Y_PLAYT, width, line_height, header[
😛laytime_s], 2) end #-------------------------------------------------------------------------- # * Draw Save Number #-------------------------------------------------------------------------- def draw_savenums(x, y, width, align) header = DataManager.load_header(@file_index) return unless header draw_text(DataManager::GOLD::X_SAVEN, DataManager::GOLD::Y_SAVEN, width, line_height, header[:savenum], 2) end #-------------------------------------------------------------------------- # * Draw Game Map #-------------------------------------------------------------------------- def draw_gamemap(x, y, width, align) header = DataManager.load_header(@file_index) return unless header draw_text(DataManager::GOLD::X_MAPLOC, DataManager::GOLD::Y_MAPLOC, width, line_height, header[:currentmap], 2) endendScreen Shot: