• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • Ever thought it'd be cool to have your art, writing, or challenge runs featured on PokéCommunity? Click here for info - we'd love to spotlight your work!
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

[Scripting Question] Credits Goes to Main Menu After

  • 65
    Posts
    12
    Years
    • Seen Jan 4, 2022
    It's as it sounds. I want to make it so that after the credits the game goes to the main menu and doesnt return the player to where they were.

    I don't know too much about scripting so I didn't want to mess with things too much, but how can I tweak the credits to return to the title screen after they have fully played. Using events didn't work well because it always skipped over the credits and just went to the main screen. I tried a wait but that didnt work well either.
     
    Of course! So this was explained to me by: TechSkylander1518.

    "In UI_Credits, replace $scene = Scene_Map.new with $scene = pbCallTitle, and do the same for $scene = ($game_map) ? Scene_Map.new : nil. If you follow this option, you should make sure to quietly move the player to their new location and save the game before calling $scene = Scene_Credits.new, as you won't be able to do after calling the credits scene."

    These can be found closer to the end of the script under #setup comments.

    Now, I found that using pbcalltitle wasn't exactly what I was looking for. What it essentially did, was once the credits finished it returned to the screen where the player can choose to load their game. The immediate issue that presents after that is the music from the map the player was standing on when the credits began to roll, will carry over to this title screen.

    I instead replaced "$scene = Scene_Map.new" with "$scene = Scene_Intro.new" as well as replacing "$scene = ($game_map) ? Scene_Map.new : nil." With "$scene = Scene_Intro.new" instead. What this does is when the credits finish, it returns to the opening splash before the title.png for the opening of the game. Essentially it makes it like the game booted back up from the start.
     
    Back
    Top