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 . . .
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 . . .