Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #==============================================================================
- # [RGSS/2] Level Up SE
- # Version : 1.1
- # Author : LowlingLife
- #==============================================================================
- # Script ini akan memainkan SE setiap ada aktor yang Level-Up.
- #==============================================================================
- # CHANGELOG
- # V 1.0 | Initial Release
- # V 1.1 | Cross Engine
- #==============================================================================
- module LevelUpSE
- # SE yang akan dimainkan setiap kali level-up.
- # Level => [Filename, Volume, Pitch]
- LEVEL_SE = {
- 2 => ["001-System01", 100, 100],
- 3 => ["002-System02", 100, 100]
- }
- end
- #------------------------------------------------------------------------------
- # EDITING BEYOND THIS LINE CAN CAUSE DAMAGE TO YOUR GAME.
- #------------------------------------------------------------------------------
- VX = defined?(Window_ActorCommand)
- level = VX ? "change_level" : "level="
- eval "
- class Game_Actor < Game_Battler
- include LevelUpSE
- alias level_se #{level} unless $@
- def #{level}(*args, &block)
- level_se(*args, &block)
- LEVEL_SE.each{|level, sound|
- if @level == level
- Audio.se_play('Audio/SE/' + sound[0], sound[1], sound[2])
- end}
- end
- end#"
Advertisement
Add Comment
Please, Sign In to add comment