Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

help with understanding intro script i found

hey i was wondering if any one could help me out with understanding part of this script i found. i have tried to find it on the forums but i got it so long ago that i found this (before i even owned rpgxp) cant even remember who made it :

well here it is

class Scene_Cutscene
def main
$data_actors = load_data("Data/Actors.rxdata")
$data_tilesets = load_data("Data/Tilesets.rxdata")
$data_common_events = load_data("Data/CommonEvents.rxdata")
$data_system = load_data("Data/System.rxdata")
$data_mapInfos = load_data("Data/MapInfos.rxdata")
$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_map = Game_Map.new
$game_player = Game_Player.new
@save_max = 3
for i in 0..@save_max
if FileTest.exist?("Save#{i+1}.rxdata") : $scene = Scene_Title.new end
end
$game_map.setup(002)
$game_player.moveto(2,1)
$game_player.refresh
$game_map.update
$scene = Scene_Map.new
end
end

Now, my problem isnt, that i cant get it to work as an intro script but rather i can figure out what part of this makes the intro spikable if there is a save or 2 which i was led to believe it could do ( BTW, i have no real understanding of rpgxp scripting language only owning it for a short time now) my gut/ the part that says "rxdata" tells me it is this section:

@save_max = 3
for i in 0..@save_max
if FileTest.exist?("Save#{i+1}.rxdata") : $scene = Scene_Title.new end
end

but because i have no idea whats going on i dont want to play with anything and ruin wat ive done on my game so far.

any help would be appreciated . . .
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top