Title Screen - Remove "Quit Game" from title.

Discussion in 'RGSS3 Script Requests' started by BRITISHConnah, Jan 10, 2016.

    Tags:
  1. BRITISHConnah

    BRITISHConnah Just a member. :> Member

    Messages:
    9
    Likes Received:
    0
    Location:
    Llanfairpwll
    First Language:
    English
    The title screen usually consists of "New Game", "Continue" and "Quit Game".

    Is there any way to remove the "Quit Game" option?

    titlescreenOptions.jpg
     
    #1
  2. Andar

    Andar Veteran Veteran

    Messages:
    28,689
    Likes Received:
    6,596
    Location:
    Germany
    First Language:
    German
    Primarily Uses:
    RMMV
    yes, by modifying the default scripts or using a script that replaces the default title.


    I've moved this thread to Script Request. Please be sure to post your threads in the correct forum next time. Thank you.
     
    #2
    BRITISHConnah likes this.
  3. MeowFace

    MeowFace Meow Veteran

    Messages:
    1,034
    Likes Received:
    179
    Location:
    La La Land
    First Language:
    Meowish
    A quick script for that won't be hard at all but...

    Mind if i ask why you want the quit option to be removed?

    Code:
    #==============================================================================# ■ Meow Face Remove Quit from Title#------------------------------------------------------------------------------# Remove Quit from Title Scene#==============================================================================# How to Use:# [1] Paste this below Material and above Main#==============================================================================class Window_TitleCommand < Window_Command  def make_command_list #overwrite    add_command(Vocab::new_game, :new_game)    add_command(Vocab::continue, :continue, continue_enabled)  endendclass Scene_Title < Scene_Base  def create_command_window #overwrite    @command_window = Window_TitleCommand.new    @command_window.set_handler(:new_game, method(:command_new_game))    @command_window.set_handler(:continue, method(:command_continue))    @command_window.viewport = @viewport  endend
     
    #3
    BRITISHConnah likes this.
  4. BRITISHConnah

    BRITISHConnah Just a member. :> Member

    Messages:
    9
    Likes Received:
    0
    Location:
    Llanfairpwll
    First Language:
    English
    In response to Andar: Thank you. I was unaware of that. I will double-check in future.

    In response to Meow: Thanks as well.

    I'm using it for a FNaF remake game.

    The actual game doesn't have a quit game option.

    The controls will be displayed when New Game is chosen.

    I've also moved the box to the left and a bit further down to similarly create the title screen.

    People can close the game with the [X] button.

    TITLE_TEST.jpg
     
    #4
  5. BRITISHConnah

    BRITISHConnah Just a member. :> Member

    Messages:
    9
    Likes Received:
    0
    Location:
    Llanfairpwll
    First Language:
    English
    finished_result.jpg

    The finished result looks better than the previous with the Quit Game option.

    Thank you! :D

    Although I will be changing the title screen.
     
    Last edited by a moderator: Jan 12, 2016
    #5
  6. MeowFace

    MeowFace Meow Veteran

    Messages:
    1,034
    Likes Received:
    179
    Location:
    La La Land
    First Language:
    Meowish
    You're welcome!
     
    #6
  7. SadGhoster87

    SadGhoster87 Veteran Veteran

    Messages:
    76
    Likes Received:
    5
    First Language:
    English
    If someone goes fullscreen (as is normal with a FNaF game) they're screwed.
     
    #7
  8. BRITISHConnah

    BRITISHConnah Just a member. :> Member

    Messages:
    9
    Likes Received:
    0
    Location:
    Llanfairpwll
    First Language:
    English
    That's why I'm trying to create a command whenever ESC is pressed, it returns to the title screen of something.


    Other than that, if they're confused then task manager is another option but takes more time.


    Although I accidentally found out that F12 resets the game to the title.
     
    #8
  9. MeowFace

    MeowFace Meow Veteran

    Messages:
    1,034
    Likes Received:
    179
    Location:
    La La Land
    First Language:
    Meowish
    Avoid using F12 as a "reset" button. It's not a clean reset and can cause problems. Try not to encourage your player to use it too, the game can be messed up depending on what scripts/variables you are using.
     
    #9
  10. BRITISHConnah

    BRITISHConnah Just a member. :> Member

    Messages:
    9
    Likes Received:
    0
    Location:
    Llanfairpwll
    First Language:
    English
    Oh, is F12 like a soft reset?
     
    #10
  11. MeowFace

    MeowFace Meow Veteran

    Messages:
    1,034
    Likes Received:
    179
    Location:
    La La Land
    First Language:
    Meowish
    More like a quick reset for game developers to test their games. But not a clean reset as some of the variables are carried over to the title scene which might cause weird behaviour after game loaded. Like the F9 button, it's something that should not be available to the player by default. So more like a design miss of the game maker software itself. You can find more informations about it if you look it up in the forums.


    There are scripts out there that let you remove the F12 button, but since it's hardcoded, it's not that easy to find a script that 100% removes it because the code runs before all the scripts so some custom script that removes F12 will not work 100% correctly. The one i know that works nicely is FyxInput, but it will require additional file and dll to make it works.
     
    #11
  12. JoePro

    JoePro None Newb Veteran

    Messages:
    78
    Likes Received:
    17
    First Language:
    English
    This will make the Esc Key Shutdown at the Title Menu.

    Code:
    
    
    ################################################################################
    #↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓#
    #↓                                                                            ↓#
    #↓                    Esc Shutdown Title Menu: Version 0.1                    ↓#
    #↓                                                                            ↓#
    #↕↕↕↕↕↕↕↕↕↕↕↕↕↕↕↕↕↕↕↕↕↕↕↕↕↕↕↕↕↕↕↕↕↕↕↕↕↕↕↕↕↕↕↕↕↕↕↕↕↕↕↕↕↕↕↕↕↕↕↕↕↕↕↕↕↕↕↕↕↕↕↕↕↕↕↕↕↕#
    #↑                                                                            ↑#
    #↑                          Written By: Joseph Hale                           ↑#
    #↑                       Last Edited: February 3, 2014                        ↑#
    #↑                                                                            ↑#
    #↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑#
    ################################################################################
    
    #◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙#
    #◙ ** Disclaimer                                                              ◙#
    #◙••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••◙#
    #◙                                                                            ◙#
    #◙ This script is not for commercial, if you wish to use this script in a     ◙#
    #◙ game please PM me. All credit is to be given to me as the author of this   ◙#
    #◙ script.                                                                    ◙#
    #◙                                                                            ◙#
    #◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙#
    #◙ ** How To Use                                                              ◙#
    #◙••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••◙#
    #◙                                                                            ◙#
    #◙ * Cusomizable area below.                                                  ◙#
    #◙                                                                            ◙#
    #◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙#
    #◙ ** Updates / Version Notes                                                 ◙#
    #◙••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••◙#
    #◙                                                                            ◙#
    #◙   v0.1                                                                     ◙#
    #◙ ~◄◙◙◙◙►~                                                                   ◙#
    #◙ * Allows player to press the Esc key to Shutdown the game from the Title.  ◙#
    #◙                                                                            ◙#
    #◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙◙#
    
    
    
    ################################################################################
    #↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓#
    #↓                                                                            ↓#
    #↕                    Esc Shutdown Title Menu: Version 0.1                    ↕#
    #↑                                                                            ↑#
    #↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑#
    ################################################################################
    
    
    
    #==============================================================================
    # ** Input Module
    #------------------------------------------------------------------------------
    #  This module manages the keyboard and mouse inputs.
    #==============================================================================
    module Input
      
      @keyboard_triggered = Win32API.new("user32", "GetKeyState", 'i', 'i')
          
      #--------------------------------------------------------------------------
      # * Check if Keyboard Key Triggered(Key)
      #--------------------------------------------------------------------------
      def self.esc_key_triggered?
        state = @keyboard_triggered.call(27)
        return true unless state == 0 || state == 1
        return false
      end
      
    end
    
    
    #==============================================================================
    # ** Scene_Title
    #------------------------------------------------------------------------------
    #  This class performs the title screen processing.
    #==============================================================================
    
    class Scene_Title < Scene_Base
       
      #--------------------------------------------------------------------------
      # * Update Processing
      #--------------------------------------------------------------------------
      alias :stu5465441321000 :update
    
      #--------------------------------------------------------------------------
      # * Update Processing
      #--------------------------------------------------------------------------
      def update
        stu5465441321000()
        if Input.esc_key_triggered?
          command_shutdown
        end
      end
      
    end
    
     
    #12

Share This Page