Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # ==============================================================================
- # ▼▼▼▼▼▼ TroyZ - Title SE Select ▼▼▼▼▼▼
- # ==============================================================================
- # Script by : Agung Prasetyo(TroyZ)
- # Contact me by : - Email agung.endisnear.xyz@gmail.com
- # - Forum RPGMakerID, username TroyZ
- # - Handphone 085756289121
- # Engine : VXAce
- # Level : Easy
- # Version : 1.0
- # ------------------------------------------------------------------------------
- # Change Logs :
- # 5 December 2013 : Version 1.0 released
- # ------------------------------------------------------------------------------
- # How this work :
- # This script allows you to add custom SE when the title command is selected.
- # ------------------------------------------------------------------------------
- # How to use :
- # Place it between material and main. Just config the script module and you're
- # done.
- # ------------------------------------------------------------------------------
- # Compatibility issues :
- # None yet. If you found some, let me know, and bug fixes will come out soon.
- # ------------------------------------------------------------------------------
- # Who to credit :
- # - Allah swt. : For the chance of living that he has given to me.
- # - Nabi Muhammad saw. : As a leader and messenger and prophet of Muslim.
- # I'm proud to be your follower. :)
- # - Agung Prasetyo(TroyZ) : Thats me, of course, the ones that made this script. :P
- # ------------------------------------------------------------------------------
- # License :
- # - Free Game : Just credit those names above.
- # - Commercial Game : Same as free game's license.
- # ------------------------------------------------------------------------------
- $imported = {} if $imported.nil?
- $imported[:TroyZ_TitleSESelect] = true
- # ------------------------------------------------------------------------------
- # Configuration of script start here
- # ------------------------------------------------------------------------------
- module AGUNG
- module TITLE_SE_SELECT
- USE_DEFAULT_NEW_GAME_SE = false
- SE_NEW_GAME = "Audio/SE/Resident Evil Start Sound Effect.mp3" # The SE to be
- # played. Set it to nil if you don't want to use it
- SE_NEW_GAME_VOLUME = 100 # The SE Volume
- SE_NEW_GAME_PITCH = 100 # The SE Pitch
- #-------------------------------------------------------------------------------
- USE_DEFAULT_LOAD_GAME_SE = true
- SE_LOAD_GAME = nil # The SE to be
- # played. Set it to nil if you don't want to use it
- SE_LOAD_GAME_VOLUME = 100 # The SE Volume
- SE_LOAD_GAME_PITCH = 100 # The SE Pitch
- #-------------------------------------------------------------------------------
- USE_DEFAULT_EXIT_GAME_SE = true
- SE_EXIT_GAME = nil # The SE to be
- # played. Set it to nil if you don't want to use it
- SE_EXIT_GAME_VOLUME = 100 # The SE Volume
- SE_EXIT_GAME_PITCH = 100 # The SE Pitch
- end
- end
- # ------------------------------------------------------------------------------
- # End of configuration
- # ------------------------------------------------------------------------------
- # ------------------------------------------------------------------------------
- # You shall not pass
- # ------------------------------------------------------------------------------
- class Window_TitleCommand < Window_Command
- def process_ok
- if current_item_enabled?
- Input.update
- deactivate
- call_ok_handler
- else
- Sound.play_buzzer
- end
- end
- end
- class Scene_Title < Scene_Base
- include AGUNG::TITLE_SE_SELECT
- alias agung_se_select_new_game_x command_new_game
- def command_new_game
- Sound.play_ok if USE_DEFAULT_NEW_GAME_SE
- Audio.se_play(SE_NEW_GAME, SE_NEW_GAME_VOLUME, SE_NEW_GAME_PITCH) if SE_NEW_GAME != nil
- agung_se_select_new_game_x
- end
- alias agung_se_select_load_game_x command_continue
- def command_continue
- Sound.play_ok if USE_DEFAULT_LOAD_GAME_SE
- Audio.se_play(SE_LOAD_GAME, SE_LOAD_GAME_VOLUME, SE_LOAD_GAME_PITCH) if SE_LOAD_GAME != nil
- agung_se_select_load_game_x
- end
- alias agung_se_select_exit_game_x command_shutdown
- def command_shutdown
- Sound.play_ok if USE_DEFAULT_EXIT_GAME_SE
- Audio.se_play(SE_EXIT_GAME, SE_EXIT_GAME_VOLUME, SE_EXIT_GAME_PITCH) if SE_EXIT_GAME != nil
- agung_se_select_exit_game_x
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement