Main Menu
  • Welcome to The RPG Maker Resource Kit.

[XP] Cutscene before Title

Started by Sir Edeon X, November 07, 2006, 04:37:13 PM

0 Members and 1 Guest are viewing this topic.

Atracious

Quote from: Derek16438 on August 18, 2007, 06:49:41 PM
This is what I want to do with this script. Am I able to do it?

Main character lives in current time and falls through a well in the forest behind his house. When he submerges in the water at the bottom of the well, he gets teleported to Rutearius (where the "game" takes place).

Using this script, am I able to make it so that the demo or "cutscene" is played to basically setup a background for the main character until falling into the well. After falling in the actual game itself starts?

Am I allowed to use more than one map in the demo, or just one? I can't make it work if I can only use one map obviously, so s this possible?


P.S. regardless, this script is awesome, good work.....

Thnx in advance to all...

OK, I believe i have a solution to this, make a script, call it whatever you want, and put this in it:
[spoiler]class My_New_Game
 
  def initialize
    @my_continue_enabled = false
   
    for i in 0..3
     
      if FileTest.exist?("Save#{i+1}.rxdata")
        @my_continue_enabled = true
      end
      if !@my_continue_enabled
        # Loading the 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")
        # Drawing up system object
        $game_system = Game_System.new
        # Stopping BGM
        Audio.bgm_stop
        # Resetting the frame count for play time measurement
        Graphics.frame_count = 0
        # Change to load picture
        $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
        # Setting up the early party
        $game_party.setup_starting_members
        # Setting up the map of initial position
        $game_map.setup($data_system.start_map_id)
        # Moving the prayer to initial position
        $game_player.moveto($data_system.start_x, $data_system.start_y)
        # Refreshing the prayer
        $game_player.refresh
        # Executing the automatic operation change of BGM and BGS which are set to the map
        $game_map.autoplay
        # Map renewal (parallel event execution)
        $game_map.update
        # Change to map picture
        $scene = Scene_Map.new
      else
        $scene = Scene_Title.new
      end
     
    end
   
  end
 
end
[/spoiler]
then replace the 'go to title screen' thing with a call script that says this:
My_New_game.new

this one in particular checks if there are save files, and if there are none, it starts a new game COMPLETELY skipping the title screen, but if there is a save file, it takes you to the title screen. I JUST made this and am currently using it in my game and figured someone else might be able to use it....
"Facts are useless. You could use facts to prove anything that's even remotely true." Homer Jay Simpson

"I do not know what weapons WWIII will be fought with but i know WWIV will be fought with sticks and stones" Albert Einstein

"It's better to have loved and lost than never to have loved at all." from In Memoriam, by Alfred, Lord Tennyson.

"all your base are belonging to us!" awful fantasy 3

"the grapes damb it, it's alway's the grapes!"

Funny anagrams:
Desperation=A rope ends it
Mother in law=Woman hitler
Lottery machine=Money lost in 'em
Election results=Lies lets recount
Dormitory=Dirty room
Snooze alarms=Alas! No more Z's
Eleven plus two=Twelve plus one
Cosmetic surgery="Yes, I correct mugs."
The IRS=Theirs!
Public relations=Crap, built on lies
Astronomer=Moon starer
Dementia="Detain me."
Internet chat rooms=The moron interacts
The eyes!=They see!

Currently making:
http://rmrk.net/index.php/topic,13132.0.html

kerfvalerio

Why do i get an error saying

Script 'Game_player' line 106: NoMEthodError Occured
Undefined method `character name for' nil:NilClass
Current Project-Need help
The Sword Of Espadra

Atracious

Quote from: kerfvalerio on January 05, 2008, 05:51:22 AM
Why do i get an error saying

Script 'Game_player' line 106: NoMEthodError Occured
Undefined method `character name for' nil:NilClass

i can't understand why line 106 is giving you issues....it's a comment in mine(# Initializing opacity and synthetic method) ....the only thing i can see in on 104 it should say: @character_name = actor.character_name
"Facts are useless. You could use facts to prove anything that's even remotely true." Homer Jay Simpson

"I do not know what weapons WWIII will be fought with but i know WWIV will be fought with sticks and stones" Albert Einstein

"It's better to have loved and lost than never to have loved at all." from In Memoriam, by Alfred, Lord Tennyson.

"all your base are belonging to us!" awful fantasy 3

"the grapes damb it, it's alway's the grapes!"

Funny anagrams:
Desperation=A rope ends it
Mother in law=Woman hitler
Lottery machine=Money lost in 'em
Election results=Lies lets recount
Dormitory=Dirty room
Snooze alarms=Alas! No more Z's
Eleven plus two=Twelve plus one
Cosmetic surgery="Yes, I correct mugs."
The IRS=Theirs!
Public relations=Crap, built on lies
Astronomer=Moon starer
Dementia="Detain me."
Internet chat rooms=The moron interacts
The eyes!=They see!

Currently making:
http://rmrk.net/index.php/topic,13132.0.html

Klarth F. Lester

Sintax error line 23.. nobody said anything about that... there was someone else with that problem... mind telling me what is wrong? ><

I apreciate beforehand any help ^^

Atracious

Quote from: Klarth F. Lester on May 26, 2008, 05:15:54 AM
Sintax error line 23.. nobody said anything about that... there was someone else with that problem... mind telling me what is wrong? ><

I apreciate beforehand any help ^^

Quote from: Sir Edeon X on December 09, 2006, 09:59:40 AM
That error means you have an error at line '23' in 'Scene_Cutscene'.
Okay, line 23 is "$game_player.moveto(XXX,YYY). Make sure you have replaced the XXX and YYY
for example "$game_player.moveto(0,0)" if you want the player to start at 0,0.

there you go! Happy animating! :D
"Facts are useless. You could use facts to prove anything that's even remotely true." Homer Jay Simpson

"I do not know what weapons WWIII will be fought with but i know WWIV will be fought with sticks and stones" Albert Einstein

"It's better to have loved and lost than never to have loved at all." from In Memoriam, by Alfred, Lord Tennyson.

"all your base are belonging to us!" awful fantasy 3

"the grapes damb it, it's alway's the grapes!"

Funny anagrams:
Desperation=A rope ends it
Mother in law=Woman hitler
Lottery machine=Money lost in 'em
Election results=Lies lets recount
Dormitory=Dirty room
Snooze alarms=Alas! No more Z's
Eleven plus two=Twelve plus one
Cosmetic surgery="Yes, I correct mugs."
The IRS=Theirs!
Public relations=Crap, built on lies
Astronomer=Moon starer
Dementia="Detain me."
Internet chat rooms=The moron interacts
The eyes!=They see!

Currently making:
http://rmrk.net/index.php/topic,13132.0.html

That_Guy

Super bump! I'm getting the same line 23 error, but I've checked everything a million times and I can't find anything wrong at all. I've been at this for hours, please help! Here's some screenshots.

Scene_Opening:


Main:



Sashikinaroji

when you put in the script, you got rid of the snippet:

begin
  Graphics.freeze
  $scene = Scene_Title.new
  $scene.main while $scene != nil
  Graphics.transition(30)
rescue Errno::ENOENT
  filename = $!.message.sub("No such file or directory - ", "")
  print("Unable to find file #{filename}.")
end

Copy that snippet and put it below the script in Main, and it should fix your problem.

You see, that snippet calls the menu, and the cutscene snippet doesn't do that after it plays the scene.
Ok, DON'T EXPECT HELP FROM ME~! I will perhaps rant a bit, but don't expect me to do graphics for you, even if I say I will... I won't.

That_Guy

I added it under what I had in the main script, but I'm still getting the Scene_Opening Line 23 Syntax Error.  :(

Sashikinaroji

try uploading the game so I can tinker and see what I can turn up (having the game would be easier than you making a bunch of screens, don't you think?)...

Ok, DON'T EXPECT HELP FROM ME~! I will perhaps rant a bit, but don't expect me to do graphics for you, even if I say I will... I won't.

That_Guy

#59
Dammmit I would upload but something really wired happened. I wanted to change the name of the project so I changed the name of the main folder and the title of the game in the editor and now I can't find the game rpgxp project file! It's like it's not there anymore. I can't open the file and I can save from the editor, but I have no clue where it's saving to. I sure hope I didn't just lost this whole game  :mad:

Is there anything I can do? I can't believe this just happened I feel like such an idiot but I don't know how that could happen anyways.

EDIT: I think I figured it out. At least I got it saved. *whew*... *faints*

cozziekuns

Change Line 23 of Scene_Opening to:

$game_player.moveto(8, 32)

That_Guy

When I did that it gave an error that said:

Script 'Main' Line 11: NameError occurred.
uninitialized constant Scene_Opening

Here, I'll just upload the game it should be a helluva lot easier:
http://www.mediafire.com/?e6g5dyhvy7gv2w8

cozziekuns

In line 11, change Scene_Opening to Scene_Cutscene.

That_Guy

Now I get an error saying:
Script 'Scene_Opening' line 23 NoMethodError occurred.
undefined method 'move' for <Game_Player...>

It might be a better idea to fool with the game I uploaded. Otherwise, this might take a very, very long time lol

cozziekuns

Quote from: cozziekuns on July 28, 2010, 02:40:49 AM
Change Line 23 of Scene_Opening to:

$game_player.moveto(8, 32)

Do this again.

That_Guy

That's the way I had it when I got that error.

That_Guy

Bump. So is there a possibility that scripts are conflicting or did I just do something really stupid? I'm about to give up on this guys.

cozziekuns

Paste your script configuration and we'll see what's wrong.

That_Guy

Because there could be things wrong in multiple scripts I thought it would be better to just uploaded the game file.
http://www.mediafire.com/?e6g5dyhvy7gv2w8

cozziekuns

I think you should re-upload, I can't seem to get it.