Splash Script
Introduction
This makes it so when your game loads up it loads up a map just follow the instructions! also to go to the title screen use the call script event and use
Instructions
Replace main with this and follow the comments and change the right numbers!
- begin
- $data_actors = load_data("Data/Actors.rxdata")
- $data_classes = load_data("Data/Classes.rxdata")
- $data_skills = load_data("Data/Skills.rxdata")
- $data_items = load_data("Data/Items.rxdata")
- $data_weapons = load_data("Data/Weapons.rxdata")
- $data_armors = load_data("Data/Armors.rxdata")
- $data_enemies = load_data("Data/Enemies.rxdata")
- $data_troops = load_data("Data/Troops.rxdata")
- $data_states = load_data("Data/States.rxdata")
- $data_animations = load_data("Data/Animations.rxdata")
- $data_tilesets = load_data("Data/Tilesets.rxdata")
- $data_common_events = load_data("Data/CommonEvents.rxdata")
- $data_system = load_data("Data/System.rxdata")
- $showm = Win32API.new 'user32', 'keybd_event', %w(l l l l), ''
- # Font used in windows
- $defaultfonttype = $fontface = $fontname = Font.default_name = "Arial"
- # Font size used
- $defaultfontsize = $fontsize = Font.default_size = 18
- Graphics.freeze
- $game_temp = Game_Temp.new
- $game_system = Game_System.new
- $game_switches = Game_Switches.new
- $game_variables = Game_Variables.new
- $game_self_switches = Game_SelfSwitches.new
- $game_screen = Game_Screen.new
- $game_actors = Game_Actors.new
- $game_party = Game_Party.new
- $game_troop = Game_Troop.new
- $game_map = Game_Map.new
- $game_player = Game_Player.new
- #This controls the Map ID which you are taken to when it starts
- $map = @map_id = 1
- #This controls the x coordinance which you are taken to when it starts
- $x = @display_x = 1
- #This controls the y coordinance which you are taken to when it starts
- $y = @display_y = 1
- $game_party.setup_starting_members
- $game_map.setup($Map)
- $game_player.moveto($x,$y)
- $game_player.refresh
- $game_map.autoplay
- $game_map.update
- $scene = Scene_Map.new
- while $scene != nil
- $scene.main
- Graphics.freeze
- end
- Graphics.transition(20)
- rescue Errno::ENOENT
- filename = $!.message.sub("No such file or directory - ", "")
- print("File #{filename} not found.")
- end
Expand to see the code.
Incompatibility
Other splash scripts
Other information...
Yes i relize i could have used a local variable method but this was before i learned that so deal with it! :P