TheoAllen

Theo - Continuous Battle BGM

May 11th, 2013
489
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 1.82 KB | None | 0 0
  1. # =============================================================================
  2. # TheoAllen - Continuous Battle BGM
  3. # Version : 1.0
  4. # Contact : www.rpgmakerid.com (or) http://theolized.blogspot.com
  5. # (This script documentation is written in informal indonesian language)
  6. # =============================================================================
  7. ($imported ||= {})[:Theo_Continuous] = true
  8. # =============================================================================
  9. # CHANGE LOGS:
  10. # -----------------------------------------------------------------------------
  11. # 2013.05.11 - Started and Finished script
  12. # =============================================================================
  13. =begin
  14.  
  15.   Script ini ngebikin lagu dalam map bisa tetap berlanjut ke dalam battle jika
  16.   switch id tertentu (yang dikonfigurasi dalam script ini) bernilai true/ ON
  17.  
  18.   Note :
  19.   - Karena script ini kelewat simple, wa bebasin mo kredit ane ato kaga.
  20.   - Kalo semisal u make Random Battle Music gw, pastikan script ini taruh
  21.     dibawahnya
  22.  
  23. =end
  24. # =============================================================================
  25. # Konfigurasi :
  26. # =============================================================================
  27. module THEO
  28.   module SOUND
  29.    
  30.     CONTINUOUS_SWITCH = 12
  31.     # Switch id untuk continuous battle bgm. Jika true, maka akan berlanjut
  32.    
  33.   end
  34. end
  35. # =============================================================================
  36. # Batas akhir konfig
  37. # =============================================================================
  38. module BattleManager
  39.  
  40.   class << self
  41.     alias not_continuous_battle_bgm play_battle_bgm
  42.   end
  43.  
  44.   def self.play_battle_bgm
  45.     if $game_switches[THEO::SOUND::CONTINUOUS_SWITCH]
  46.       RPG::BGS.stop
  47.     else
  48.       not_continuous_battle_bgm
  49.     end
  50.   end
  51.  
  52. end
Advertisement
Add Comment
Please, Sign In to add comment