Title Screen for Highest LV ActorVersion 1.0
by Woratana
Release Date: 07/02/2008
IntroductionThis script will change Title screen depends on the highest level of members in all the save files.
Features & ScreenshotVersion 1.0- Set different title screen for different level as much as you want
Screenshot
DemoYou can download demo here: Updated 07/02/2008
DownloadScriptPlace it above main.
if you have problem with codebox, you can download script in text file here:
highestlv10.txt ( 2.01K )
Number of downloads: 283CODE
#======================================================================
========
# ■ [RMVX] +Title Screen for Highest LV Actor+
#------------------------------------------------------------------------------
# Version 1.0
# by Woratana [woratana@hotmail.com]
# Release Date: 07/02/2008
#
# Exclusive for RPG RPG Revolution
#=============================================================================
class Scene_Title < Scene_Base
MAX_SAVEFILE = 4
# How many of save slots your game has? Default is 4 slots.
# (change MAX_SAVEFILE if you use script that increase save slots)
Title_lv = Array.new
Title_lv = [10,25,50,80]
# Title_lv = (Use New Title for Level..) [.., ...(as much as you want)]
# New Title file must be in folder "System"
# New Title file's Name must be: "Title(check level in Title_lv)"
# For example, Title_lv = [10,20]
# If Highest LV of actors in all save files is between 0-9: Title file is "Title"
# If Highest LV is between 10-19: Title file is "Title10"
# If Highest LV is more than 20: Title file is "Title20"
alias wor_title_start start
def start
wor_find_max_level
wor_title_start
end
def create_title_graphic
@title_lv = 0
@sprite = Sprite.new
(0..(Title_lv.size - 1)).each do |i|
@title_lv = Title_lv[i] if Title_lv[i] <= @max_lv
end
@title_lv = nil if @title_lv == 0
@sprite.bitmap = Cache.system("Title#{@title_lv}")
end
def wor_find_max_level
@max_lv = 0
(1..MAX_SAVEFILE).each do |id|
next if not FileTest.exist?("Save#{id}.rvdata")
file = File.open("Save#{id}.rvdata", "rb")
(1..9).each do
trash = Marshal.load(file)
end
$game_actors = Marshal.load(file)
$game_party = Marshal.load(file)
(0..($game_party.members.size - 1)).each do |mem|
@max_lv = $game_party.members[mem].level if $game_party.members[mem].level > @max_lv
end
file.close
end
trash = nil
end
end
InstructionFind this line if you are using script that increase save slots:
CODE
MAX_SAVEFILE = 4
# How many of save slots your game has? Default is 4 slots.
# (change MAX_SAVEFILE if you use script that increase save slots)
And find this line to set what highest level you want to show new title screen:
CODE
Title_lv = [10,25,50,80]
# Title_lv = (Use New Title for Level..) [.., ...(as much as you want)]
# New Title file must be in folder "System"
# New Title file's Name must be: "Title(check level in Title_lv)"
# For example,
CODE
Title_lv = [10,20]
# If Highest LV of actors in all save files is between 0-9: Title file is "Title"
# If Highest LV is between 10-19: Title file is "Title10"
# If Highest LV is more than 20: Title file is "Title20"
Author's NotesFree for use in your non-commercial work if credit included. If your project is commercial, please contact me.
Please do not redistribute this script without permission.
And don't post this script out of http://rpgrevolution.com/ without permission.