The RPG Maker Resource Kit

RMRK RPG Maker Creation => RPG Maker General => General Scripting => Topic started by: Red Blood on August 25, 2007, 12:50:51 AM

Title: Cutscene Before Title Help
Post by: Red Blood on August 25, 2007, 12:50:51 AM
This Is My Third Topic Today http://rmrk.net/index.php/topic,8605.0.html I need Help it Says MAP id I dont UnderStand And It Ask For Cordiniates is it corinates for cutscene OR were you start?     >:(
Title: Re: Cutscene Before Title Help
Post by: Falcon on August 25, 2007, 01:03:33 AM
Why the hell are you asking for help in a new topic and not in the tutorials topic?
Title: Re: Cutscene Before Title Help
Post by: Red Blood on August 25, 2007, 01:09:09 AM
Well Cause This Is Script Help and I need Help With A script
Title: Re: Cutscene Before Title Help
Post by: Falcon on August 25, 2007, 01:12:32 AM
But if you need help with a script that has it's own topic, you should post it in the topic, not here. People who are framilliar with that script will notice a post in the topic, not one of the hundreds of topics in the script help forum.
Title: Re: Cutscene Before Title Help
Post by: Red Blood on August 25, 2007, 01:14:16 AM
Well Thats A old Script I think So itl Take Longer For People TO pOST
Title: Re: Cutscene Before Title Help
Post by: Shinami on August 25, 2007, 09:38:43 PM
I think s/he was just trying to avoid necro posting? I've seen this script before and the scripter who made it forgot to add in a small snippit of code to consider if it's a battle test or an actual test play. Another thing is that the original scripter didn't use the built in method that starts the player at the starting position. Won't take me long to fix those things and I'll have a more user friendly version for you to use.

Side note:Consider yourself lucky. I have little time for scripting.
Title: Re: Cutscene Before Title Help
Post by: Shinami on August 25, 2007, 09:50:30 PM
I hate double posting but it took...5 minutes? to fix what over sights were there. All you have to do to use it, is just set the starting point and change this line in Main.

$scene = Scene_Title.new
replace it with this one
$scene = Scene_Cutscene.new

[spoiler=Scene_Cutscene revised]

#Original scripter:n/a
#scripter who fixed the bugs:Shinami
class Scene_Cutscene
  def main
    # If battle test
    if $BTEST
      $scene = Scene_Title.new
      return
    end
    # Load database
    $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")
    @save_max = 3
    for i in 0..@save_max
      if FileTest.exist?("Save#{i + 1}.rxdata")
        $scene = Scene_Title.new
        return
      end
    end
    $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
    # Set up initial party
    $game_party.setup_starting_members
    # Set up initial map position
    $game_map.setup($data_system.start_map_id)
    # Move player to initial position
    $game_player.moveto($data_system.start_x, $data_system.start_y)
    # Refresh player
    $game_player.refresh
    # Run automatic change for BGM and BGS set with map
    $game_map.autoplay
    # Update map (run parallel process event)
    $game_map.update
    # Switch to map screen
    $scene = Scene_Map.new
  end
end

[/spoiler]