Introduction
Changes the music when you are targeted by an enemy
Features
Screenshots
no screen shot needed
Demo
no demo
Script
Instructions
add the musics you want to the array of musics in the config
to change the music use $game_player.music_type = index
index goes 0 for the first 1 1 for the secound ect...
place this script Below Blizz-ABS
Compatibility
requires Blizz-ABS
Credits and Thanks
Author's Notes
if you have any issues or suggestions post here
ขอโทษทีครับ
คุณ blizzard เป็นคน อังกฤษครับ เลยเป็นภาษา อังกฤษ {:9_330:}
Changes the music when you are targeted by an enemy
Features
- easy config just put the battle music you want in the config
Screenshots
no screen shot needed
Demo
no demo
Script
#:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=
# BlizzABS Battle Music by Nathmatt
# Version: 1.02
# Type: Music changer
#:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=
#
# This work is protected by the following license:
# #----------------------------------------------------------------------------
# #
# # Creative Commons - Attribution-NonCommercial-ShareAlike 3.0 Unported
# # ( http://creativecommons.org/licenses/by-nc-sa/3.0/ )
# #
# # You are free:
# #
# # to Share - to copy, distribute and transmit the work
# # to Remix - to adapt the work
# #
# # Under the following conditions:
# #
# # Attribution. You must attribute the work in the manner specified by the
# # author or licensor (but not in any way that suggests that they endorse you
# # or your use of the work).
# #
# # Noncommercial. You may not use this work for commercial purposes.
# #
# # Share alike. If you alter, transform, or build upon this work, you may
# # distribute the resulting work only under the same or similar license to
# # this one.
# #
# # - For any reuse or distribution, you must make clear to others the license
# # terms of this work. The best way to do this is with a link to this web
# # page.
# #
# # - Any of the above conditions can be waived if you get permission from the
# # copyright holder.
# #
# # - Nothing in this license impairs or restricts the author's moral rights.
# #
# #----------------------------------------------------------------------------
#
#:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=
module Music_Change
def self.Music
return ['001-Battle01'] # Array of musics
end
end
class Game_Map
def active?
return (battlers.find_all {|battler| battler.valid? && battler.update? &&
battler.ai.target != nil})
end
end
class Scene_Map
alias music_change_update update
def update
if $game_map.active?.size > 0
if !@battle_music
@battle_music = true
@normal_music = false
Audio.bgm_play("Audio/BGM/" + Music_Change.Music[$game_player.music_type])
end
else
if !@normal_music
@battle_music = false
@normal_music = true
$game_system.bgm_play($game_map.map.bgm)
end
end
music_change_update
end
end
class Game_Player
attr_accessor :music_type
alias battle_music_initialize initialize
def initialize
battle_music_initialize
@music_type = 0
end
end
Instructions
add the musics you want to the array of musics in the config
to change the music use $game_player.music_type = index
index goes 0 for the first 1 1 for the secound ect...
place this script Below Blizz-ABS
Compatibility
requires Blizz-ABS
Credits and Thanks
- Nathmatt
- Magus for requesting it
Author's Notes
if you have any issues or suggestions post here
ขอโทษทีครับ
คุณ blizzard เป็นคน อังกฤษครับ เลยเป็นภาษา อังกฤษ {:9_330:}
[สคริปต์] Blizz-ABS Battle Music