TITLE SCRIPT DISABLE CODE?
Posts
Pages:
1
hey guys is there anyone that could tell me how to disable the title script after its used at the beginning?
heres the script
#==============================================================================
# Vixotic_Map Story_Title <VX>
#------------------------------------------------------------------------------
# Version 1
# by Vixotic
# Exclusive Script for http://rpgmakervx.net/
#==============================================================================
module VIX
#-----------------------
# Map Story Location
#----------------------
MAP_ID = 160
MAP_X = 7
MAP_Y = 8
MEMBERS = # Members when Map Story Start.
# is No Member. is Members ID 1-2-3 from Database
#--------------------------
# Title Window Properties
#-------------------------
TITLE_WINDOW_SKIN = "Window" # Get Windowskin File from System Folder
TITLE_WINDOW_X = 355
TITLE_WINDOW_Y = 170
TITLE_WINDOW_WIDTH = 172
TITLE_WINDOW_OPACITY = 200 # 0 to 255
end
class Scene_Title < Scene_Base
def vix_title_window_setup
$title_window.windowskin = Cache.system(VIX::TITLE_WINDOW_SKIN)
$title_window.x = VIX::TITLE_WINDOW_X
$title_window.y = VIX::TITLE_WINDOW_Y
$title_window.width = VIX::TITLE_WINDOW_WIDTH
$title_window.opacity = VIX::TITLE_WINDOW_OPACITY
end
def start
super
load_database
create_game_objects
if $title_on == true
$title_on = false
command_new_game
else
$game_party.vix_setup_starting_member(VIX::MEMBERS)
$game_map.setup(VIX::MAP_ID)
$game_player.moveto(VIX::MAP_X,VIX::MAP_Y)
$game_player.refresh
$game_map.titlewin = 1
$scene = Scene_Map.new
$title_window = Window_Command.new(172, )
vix_title_window_setup
$game_map.autoplay
end
end
def command_new_game
confirm_player_location
$game_party.setup_starting_members
$game_map.setup($data_system.start_map_id)
$game_player.moveto($data_system.start_x, $data_system.start_y)
$game_player.refresh
$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
def post_start
end
def terminate
end
def update
end
def pre_terminate
end
def perform_transition
end
def close_command_window
end
def perform_transition
end
end
class Game_Map
attr_accessor :titlewin
alias vix_map_update update
def update
vix_map_update
$title_window.visible = true if not $title_window.disposed? and $title_window.visible == false and @titlewin != 2
if @titlewin == 1
$title_window.update
if Input.trigger?(Input::C) and not $game_message.visible
case $title_window.index
when 0 # New Game
Sound.play_decision
Graphics.fadeout(30)
$title_window.dispose unless $title_window.disposed?
@titlewin = 2
$title_on = true
$scene = Scene_Title.new
when 1 # Continue
Sound.play_decision
$scene = Scene_File.new(false, false, true)
when 2 # Shutdown
Sound.play_decision
$title_window.dispose unless $title_window.disposed?
@titlewin = 2
RPG::BGM.fade(800)
RPG::BGS.fade(800)
RPG::ME.fade(800)
$scene = nil
end
end
end
end
end
class Scene_Map
alias vix_map_terminate terminate
def terminate
if $scene.is_a?(Scene_Battle)
$title_window.visible = false unless $title_window.disposed?
end
vix_map_terminate
end
end
class Scene_File < Scene_Base
alias vix_read_data read_save_data
def read_save_data(file)
vix_read_data(file)
$game_map.titlewin = 2
$title_window.dispose unless $title_window.disposed?
end
end
class Game_Party
def vix_setup_starting_member(charalist)
@actors = charalist
end
end
please guys if you can help it would be amazing and you will be credited in game :D
lee and ed
heres the script
#==============================================================================
# Vixotic_Map Story_Title <VX>
#------------------------------------------------------------------------------
# Version 1
# by Vixotic
# Exclusive Script for http://rpgmakervx.net/
#==============================================================================
module VIX
#-----------------------
# Map Story Location
#----------------------
MAP_ID = 160
MAP_X = 7
MAP_Y = 8
MEMBERS = # Members when Map Story Start.
# is No Member. is Members ID 1-2-3 from Database
#--------------------------
# Title Window Properties
#-------------------------
TITLE_WINDOW_SKIN = "Window" # Get Windowskin File from System Folder
TITLE_WINDOW_X = 355
TITLE_WINDOW_Y = 170
TITLE_WINDOW_WIDTH = 172
TITLE_WINDOW_OPACITY = 200 # 0 to 255
end
class Scene_Title < Scene_Base
def vix_title_window_setup
$title_window.windowskin = Cache.system(VIX::TITLE_WINDOW_SKIN)
$title_window.x = VIX::TITLE_WINDOW_X
$title_window.y = VIX::TITLE_WINDOW_Y
$title_window.width = VIX::TITLE_WINDOW_WIDTH
$title_window.opacity = VIX::TITLE_WINDOW_OPACITY
end
def start
super
load_database
create_game_objects
if $title_on == true
$title_on = false
command_new_game
else
$game_party.vix_setup_starting_member(VIX::MEMBERS)
$game_map.setup(VIX::MAP_ID)
$game_player.moveto(VIX::MAP_X,VIX::MAP_Y)
$game_player.refresh
$game_map.titlewin = 1
$scene = Scene_Map.new
$title_window = Window_Command.new(172, )
vix_title_window_setup
$game_map.autoplay
end
end
def command_new_game
confirm_player_location
$game_party.setup_starting_members
$game_map.setup($data_system.start_map_id)
$game_player.moveto($data_system.start_x, $data_system.start_y)
$game_player.refresh
$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
def post_start
end
def terminate
end
def update
end
def pre_terminate
end
def perform_transition
end
def close_command_window
end
def perform_transition
end
end
class Game_Map
attr_accessor :titlewin
alias vix_map_update update
def update
vix_map_update
$title_window.visible = true if not $title_window.disposed? and $title_window.visible == false and @titlewin != 2
if @titlewin == 1
$title_window.update
if Input.trigger?(Input::C) and not $game_message.visible
case $title_window.index
when 0 # New Game
Sound.play_decision
Graphics.fadeout(30)
$title_window.dispose unless $title_window.disposed?
@titlewin = 2
$title_on = true
$scene = Scene_Title.new
when 1 # Continue
Sound.play_decision
$scene = Scene_File.new(false, false, true)
when 2 # Shutdown
Sound.play_decision
$title_window.dispose unless $title_window.disposed?
@titlewin = 2
RPG::BGM.fade(800)
RPG::BGS.fade(800)
RPG::ME.fade(800)
$scene = nil
end
end
end
end
end
class Scene_Map
alias vix_map_terminate terminate
def terminate
if $scene.is_a?(Scene_Battle)
$title_window.visible = false unless $title_window.disposed?
end
vix_map_terminate
end
end
class Scene_File < Scene_Base
alias vix_read_data read_save_data
def read_save_data(file)
vix_read_data(file)
$game_map.titlewin = 2
$title_window.dispose unless $title_window.disposed?
end
end
class Game_Party
def vix_setup_starting_member(charalist)
@actors = charalist
end
end
please guys if you can help it would be amazing and you will be credited in game :D
lee and ed
Pages:
1















