Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
- # MCI Audio Plugin : Auto-Restore
- # Author: ForeverZer0
- # Version: 1.0
- # Date: 7.8.2012
- #=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
- #
- # Introduction:
- # This plugin automatically memorizes and restores BGM/BGS after battle to
- # the position it was at when battle commenced.
- #
- # Instructions:
- # - For use with MCI Audio Player 1.2 and higher.
- # - Place script below MCI Audio Player script
- #
- #=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
- #===============================================================================
- # ** Scene_Map
- #===============================================================================
- class Scene_Map
- #-----------------------------------------------------------------------------
- # * Call Battle (alias)
- #-----------------------------------------------------------------------------
- alias memorize_audio_battle call_battle
- def call_battle
- $game_system.memorize_audio('BGM', 'BGS')
- memorize_audio_battle
- end
- end
- #===============================================================================
- # ** Scene_Battle
- #===============================================================================
- class Scene_Battle
- #-----------------------------------------------------------------------------
- # * Start End of Battle Phase (alias)
- #-----------------------------------------------------------------------------
- alias restore_audio_battle start_phase5
- def start_phase5
- restore_audio_battle
- $game_system.restore_audio('BGM', 'BGS')
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement