SEE - Title Screen

~ Intro ~

Time for a new script series?
Yeah, I think so too.

StormCross Engine Evolution aims to provide you with the maximum amount of customization for the default RPG Maker VX scripts, while adding new features and keeping compatibility with other scripts.

These scripts are able to be used alltogether, or just a small selection, your choice.

~ This Script ~

This script gives you all the customization powers you could want for the title screen, including random title music and random title backgrounds.
Just follow the instructions in the Title module to set everything up how you want it.

~ Script ~

Content Hidden Show
  1. #===============================================================================
  2. # * SEE - Title Screen Customisation                           * Version 1 *
  3. # * By StormCross
  4. # * http://www.planetdev.co.uk
  5. # * 21/09/2011
  6. # * If you like my scripts, please show your appreciation by checking out
  7. #   my friendly, helpful Game Development Community, PlanetDev. Link above.
  8. #  ---------------------------------------------------------------------------
  9. # * Overwritten Methods
  10. #   - create_title_graphic
  11. #   - play_title_music
  12. #
  13. # * Aliased Methods
  14. #   - create_command_window
  15. #  ---------------------------------------------------------------------------
  16. # * This script allows you to customize the title screen in many different ways.
  17. #   Just follow the instructions in the Title module to set everything up.
  18. #===============================================================================
  19.  
  20. $imported = {} if $imported == nil
  21. $imported["SEE - Title Screen"] = true
  22.  
  23. #===============================================================================
  24. # * Main StormCross Engine Evolution Configuration Module
  25. #===============================================================================
  26. module SEE
  27.   #=============================================================================
  28.   # * Title Screen Configuration Module
  29.   #=============================================================================
  30.   module Title
  31.     #===========================================================================
  32.     # * X Coordinate of the Command Window
  33.     #===========================================================================
  34.     COMMAND_WINDOW_X = 186
  35.     #===========================================================================
  36.     # * Y Coordinate of the Command Window
  37.     #===========================================================================
  38.     COMMAND_WINDOW_Y = 288
  39.     #===========================================================================
  40.     # * Opacity of the Command window. Max value is 255.
  41.     #===========================================================================
  42.     COMMAND_WINDOW_OPACITY = 150
  43.     #===========================================================================
  44.     # * Play a random music file? Set to true if yes, and false if not.
  45.     #===========================================================================
  46.     RANDOM_MUSIC = false
  47.     #===========================================================================
  48.     # * If you've set RANDOM_MUSIC to false, the first music file will play.
  49.     # * If not, seperate each filename with a comma. Always wrap the filenames
  50.     #   in quote tags
  51.     #===========================================================================
  52.     MUSIC_FILES = ["Airship", "Dungeon1", "Dungeon2"]
  53.     #===========================================================================
  54.     # * Play the music at a random pitch? Set to true if yes, or false if not
  55.     #===========================================================================
  56.     RANDOM_PITCH = true
  57.     #===========================================================================
  58.     # * If RANDOM_PITCH is false, this value will be used.
  59.     #   50 = Minimum. Low Pitch.
  60.     #   100 = Normal Pitch
  61.     #   150 = Maximum. High Pitch
  62.     #===========================================================================
  63.     PITCH = 100
  64.     #===========================================================================
  65.     # * Show a random background? Set to true if yes, or false if not.
  66.     #===========================================================================
  67.     RANDOM_BACKGROUND = false
  68.     #===========================================================================
  69.     # * If you've set RANDOM_BACKGROUND to false, the first background will be
  70.     #   used. If you set it to true, then a random background will be displayed.
  71.     #   Seperate each filename with a comma, and always wrap in quote tags.
  72.     #===========================================================================
  73.     BACKGROUNDS = ["Title"]
  74.   end # Title
  75. end # SEE
  76.  
  77. #===============================================================================
  78. # * Scene_Title Edit for SEE - Title Screen
  79. #===============================================================================
  80. class Scene_Title < Scene_Base
  81.   #=============================================================================
  82.   # * Include the Config Module
  83.   #=============================================================================
  84.   include SEE::Title
  85.   #=============================================================================
  86.   # * create_title_graphic
  87.   #=============================================================================
  88.   def create_title_graphic # Overwritten
  89.     @sprite = Sprite.new
  90.     if RANDOM_BACKGROUND
  91.       index = rand(BACKGROUNDS.size)
  92.       background = BACKGROUNDS[index]
  93.     else
  94.       background = BACKGROUNDS[0]
  95.     end
  96.     @sprite.bitmap = Cache.system(background)
  97.   end # create_title_graphic
  98.   #=============================================================================
  99.   # * play_title_music
  100.   #=============================================================================
  101.   def play_title_music # Overwritten
  102.     if RANDOM_MUSIC
  103.       index = rand(MUSIC_FILES.size)
  104.       music = MUSIC_FILES[index]
  105.     else
  106.       music = $data_system.title_bgm.name
  107.     end
  108.     if RANDOM_PITCH
  109.       begin
  110.         pitch = rand(150)
  111.       end until pitch >= 50 && pitch <= 150
  112.     else
  113.       pitch = 100
  114.     end
  115.     Audio.bgm_play("Audio/BGM/#{music}", 100, pitch)
  116.     RPG::BGS.stop
  117.     RPG::ME.stop
  118.   end # play_title_music
  119.   #=============================================================================
  120.   # * Alias the method, and add in customization values.
  121.   #=============================================================================
  122.   alias see_scenetitle_createcommand create_command_window
  123.   #=============================================================================
  124.   # * create_command_window
  125.   #=============================================================================
  126.   def create_command_window # Alised
  127.     see_scenetitle_createcommand
  128.     @command_window.x = COMMAND_WINDOW_X
  129.     @command_window.y = COMMAND_WINDOW_Y
  130.     @command_window.opacity = COMMAND_WINDOW_OPACITY
  131.   end # create_command_window
  132. end # Scene_Title
Expand to see the code.


~ Credits ~

Please credit me if you use this script.

~ Commercial Games ~

This script is free for use in commercial games. Just remember to give credit!
honestly i was expecting to see more from this script. but i see what you were going for. why would you ever use a random pitch? to me that seems like a loss of control. music is very important in a game.
The Random pitch is just an option, I just wanted to have every possible option I could think of, so every base was covered.

I'm aware there are a couple more, and will be putting them in the next version.
Thanks for your feedback though :D
Interesting fact: If you wouldn't have dropped the C (for 'Cross') in the abbreviation, you would get SCEE. :)

Also interesting: Your bare-bones line count is 36... and those 36 lines don't really do anything but provide a different interface for the default Scene_Title. I wouldn't necessarily call it more user-friendly... more like "you could use the steering wheel to control your car... but look, I made this very complex automaton that will turn it according to your input on this gamepad here! :thumb:"

Well, as always, I'm missing the point of it... I'm starting to think it might be me :crazy:

*points to signature barely noticeable*

Original thread: https://www.hbgames.org/forums/viewtopic.php?t=75555