I need help on getting past the title screen. What i mean is i want no title screen, i want my game to go straight to the 1st map.If you need more info just ask. thanks.
I didn't make this.
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
#Place the ID of the map here
$game_map.setup(##)
#Place the coordinates here
$game_player.moveto(0, 0)
$game_player.refresh
$game_map.update
$scene = Scene_Map.new
end
end
And in main replace $scene = Scene_Title.new with $scene = Scene_Cutscene.new
i got it to work but it don't show the Char i have for the starting party. i even made an event that gives me the char and it gives me an error
?????'Game_Actor'?67 ??? NoMethodError?????????
unidefined method `[]'for nil:NilClass
What scripts are you using?
just this one
Maybe you need SDK...?
EDIT: But at a second thought... I totally, totally SUCK at scripting and stuff like that so... I've got just no idea, át all, what you should do ^^'
There is no SDK dependency in the script above. Who ever made that script screwed up with the loading of data. Several $data variables I saw in Scene_Title are missing. I've already got numerous requests going but it shouldn't take me more than 20-30 minutes to fix this.
EDIT:Make that 5 minutes. I think the main thing missing was that whoever scripted this didn't call the method that sets up your starting party. Hence the error you got but regardless, time for instructions on using this. Just insert right above main and inside main, replace $scene = Scene_Title.new with $scene = Scene_Cutscene.new
The script will take the player to where ever you have the starting location set to.
class Scene_Cutscene
def main
$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")
$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
#Place the ID of the map here
$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
$game_map.autoplay
$game_map.update
$scene = Scene_Map.new
end
end
EDIT#2:I gotta admit this script is handy when you're working on a script project. coughcardcoughbattlecoughsystemcough
i will try it when i get home thanks :)
Who do i give credit to?
Credit Sir Edeon X
http://rmrk.net/index.php/topic,8605.0.html (http://rmrk.net/index.php/topic,8605.0.html)
Thanks for all your help everyone ;)