Easy script for version of game in Scene_Title
Version: 1.1
By: Teth
Introduction
This script is making an window in Scene_Title that show your game version.
Screenshots
Demo
I think no demo is needed
Script
Compatibility
I think it's compatible with everything that not editing Scene_Title
There was an problem with compatibility with OECS but now its ok ^^
Author's Notes
If i helped you can add me to credits with small letters at the end ^^
I'm not very "talented" scripter yet so there can be some bugs i think.
Sorry for bad English.
Teth
Version: 1.1
By: Teth
Introduction
This script is making an window in Scene_Title that show your game version.
Screenshots
Demo
I think no demo is needed
Script
Code:
#==============================================================================
# ** Window_Version made by Teth
#------------------------------------------------------------------------------
# This window displays the version of game.
# If version isn't show at all edit the draw_text
# parameters
#==============================================================================
class Window_Version < Window_Base
#--------------------------------------------------------------------------
# * Edits Here
#--------------------------------------------------------------------------
Fontname = "Arial" #Name of font that you want to use
Fontsize = 13 #Size of font
Version = '1.1' #Version
#--------------------------------------------------------------------------
# * End of edits
#--------------------------------------------------------------------------
#--------------------------------------------------------------------------
# * Object Initialization
# x : window X coordinate
# y : window Y coordinate
#--------------------------------------------------------------------------
def initialize(x, y)
super(x, y, 544, WLH + 32)
refresh
end
#--------------------------------------------------------------------------
# * Refresh
#--------------------------------------------------------------------------
def refresh
self.contents.clear
self.contents.font.name = Fontname
self.contents.font.size = Fontsize
self.contents.draw_text(-35, -10, 150, 32, "Ver. " + Version, 2) #Edit here if version isn't show at all
end
end
#==============================================================================
# ** Scene_Title
#------------------------------------------------------------------------------
# This class performs the title screen processing.
#==============================================================================
class Scene_Title < Scene_Base
def start
super
load_database # Load database
create_game_objects # Create game objects
check_continue # Determine if continue is enabled
create_title_graphic # Create title graphic
create_command_window # Create command window
@version_window = Window_Version.new(0, 360)
@version_window.opacity = 0
play_title_music # Play title screen music
end
def command_new_game
confirm_player_location
Sound.play_decision
$game_party.setup_starting_members # Initial party
$game_map.setup($data_system.start_map_id) # Initial map position
$game_player.moveto($data_system.start_x, $data_system.start_y)
$game_player.refresh
@version_window = nil
$scene = Scene_Map.new
RPG::BGM.fade(1500)
close_command_window
Graphics.fadeout(60)
Graphics.wait(40)
Graphics.frame_count = 0
RPG::BGM.stop
$game_map.autoplay
end
end
Compatibility
I think it's compatible with everything that not editing Scene_Title
There was an problem with compatibility with OECS but now its ok ^^
Author's Notes
If i helped you can add me to credits with small letters at the end ^^
I'm not very "talented" scripter yet so there can be some bugs i think.
Sorry for bad English.
Teth