Adding Options to Title Screen with Switch

● ARCHIVED · READ-ONLY
Started by Halfmoon Media 5 posts View original ↗
  1. What I'm trying to do: Add "Sound Test" or "Picture Gallery" to title screen upon game completion (I am using a switch for this right now)

    Problem: Game adds options without regardless of switch state

    Scene_Title:

    Spoiler
     def create_command_window    @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.set_handler:)options, method:)command_options))

        if $game_switches[31]

          @command_window.set_handler:)sound_test, method:)command_sound_test))

          @command_window.set_handler:)picture_gallery, method:)command_picture_gallery))

        end

        @command_window.set_handler:)shutdown, method:)command_shutdown))

      end
     

    I want to learn HOW to do this, but I can reverse engineer the solution if someone just wants to post the method instead of teaching me.

     

    Also, if switches aren't the way to go, then what is? I've noticed that it's hard to set switches from the title screen...
  2. Game switches being turned on or off are saved within the save file. When you're on the title screen, there isn't a save file that's being read in. I'd suggest looking at one of the New Game+ scripts out there and see how they do it. The only methods I can think of doing it are all sloppy so I won't post my ideas =P

    edit: after a bit more thought.. you could write to the game.ini file when a game reaches the end.
  3. Write to the game.ini file? I havn't heard of that...

    Also, I don't necessarily mind sloppy methods, if they work. Sure the cleaner the better, but if it works and there's no other way, then it works.
  4. I've moved this thread to Learning Ruby and RGSSx. Please be sure to post your threads in the correct forum next time. Thank you.
  5. Sorry about that, thank you!  Wasn't 100% on where it should go.