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.

Skip Title Screen script (one that works!)

Hello all, I know there are many scripts that allow you to go straight to the player's starting position without going to the Title screen, but literally every single one I tried had a problem with it. SephirothSpawn's Intro & Splash gave me an error saying that Scene_Base was not detected, even though I had the SDK, another one didn't even do anything, and then there was one that opened the game for like a second and then it just closed abruptly.

What I'm trying to do specifically in my game:
The game would open with a blank map that first asks "Enable full screen?"-Yes or No, then it would say "Choose a Destination:" (or something)-Watch Intro or Go to Title.

So what I'm asking for is a simple, plug-and-play script that goes to the map that the player starts on. Also, I would like for it to NOT require SDK! I want it to also enable me to be able to use the "Return to Title Screen" event command without any hassle.

Thank you to anyone who can post/ make me such a script. :smile: :smile: :grin:
 

Zeriab

Sponsor

It's no wonder that they normally use the SDK. It's much easier in that case.
Anyway here you are: (Yes, it is a bit ugly)
[rgss]class Scene_Title
  alias_method :zeriab_scene_title_main, :main
  def main
    load_database
    command_new_game
    alias :main :zeriab_scene_title_main
  end
 
  def load_database
    # 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")
    # Make system object
    $game_system = Game_System.new
  end
end
[/rgss]

*hugs*
- Zeriab
 
UGLY!? That's the most beautiful thing I have ever seen!! You have no idea how badly I needed this. Thank you!
*hugs back*

Now, just one last thing.

How do I edit Scene_Title so that instead of making "New Game" send set the player to the starting position, it transfers him to a specified map, as if using the Transfer Player event command? It's probably a simple edit. I tried doing it myself but failed miserably. (I changed line 133 and erased start_ and put after map_id the name of the specific map I wanted in quotes and parentheses but it didn't work.)
 

Zeriab

Sponsor

Aww, thank you :blush:
It really just is me being lazy. You definitely wouldn't say that if you were a scripter.

Anyway what about letting "New Game" send the player to the set starting position and instead specify where to start when you open the game? It's easier that way:
[rgss]class Scene_Title
  alias_method :zeriab_scene_title_main, :main
  def main
    alias :main :zeriab_scene_title_main
    load_database
    # Select the starting map and coordinates
    $data_system.start_map_id = 2
    $data_system.start_x, $data_system.start_y = 5, 9
    command_new_game
  end
 
  def load_database
    # 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")
    # Make system object
    $game_system = Game_System.new
  end
end
[/rgss]

Remember that you must not use leading zeros. $data_system.start_map_id = 09 gives you an error while $data_system.start_map_id = 9 don't.

*hugs*
- Zeriab
 

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