加入我们,或者,欢迎回来。
您需要 登录 才可以下载或查看,没有帐号?注册会员
x
本帖最后由 VIPArcher 于 2014-7-30 12:42 编辑
#添加更改战斗BGM $BattleMusic= [ "Battle1", "Battle2", "Battle3", "Battle4", "Battle5", "Battle6", "Battle7", "Battle8", "Battle9" ] module BattleManager #-------------------------------------------------------------------------- # ● 播放战斗 BGM #-------------------------------------------------------------------------- def self.play_battle_bgm @vip=rand($BattleMusic.size) if $game_switches[1] == true #使用的开关 Audio.bgm_play("Audio/BGM/" + $BattleMusic[@vip]) else $game_system.battle_bgm.play end RPG::BGS.stop end end
#添加更改战斗BGM
$BattleMusic=
[
"Battle1",
"Battle2",
"Battle3",
"Battle4",
"Battle5",
"Battle6",
"Battle7",
"Battle8",
"Battle9"
]
module BattleManager
#--------------------------------------------------------------------------
# ● 播放战斗 BGM
#--------------------------------------------------------------------------
def self.play_battle_bgm
@vip=rand($BattleMusic.size)
if $game_switches[1] == true #使用的开关
Audio.bgm_play("Audio/BGM/" + $BattleMusic[@vip])
else
$game_system.battle_bgm.play
end
RPG::BGS.stop
end
end
————————————————————————————————————————————————
我的
#添加更改战斗BGM $BattleMusic= [ "Battle1"=Audio.bgm_play("Audio/BGM/BattleTheme.mp3" + $BattleMusic,100,100) ] module BattleManager #-------------------------------------------------------------------------- # ● 播放战斗 BGM #-------------------------------------------------------------------------- def self.play_battle_bgm @vip=rand($BattleMusic.size) if $game_switches[66] == true #使用的开关 Audio.bgm_play("Audio/BGM/" + $BattleMusic[@vip]) else $game_system.battle_bgm.play end RPG::BGS.stop end end
#添加更改战斗BGM
$BattleMusic=
[
"Battle1"=Audio.bgm_play("Audio/BGM/BattleTheme.mp3" + $BattleMusic,100,100)
]
module BattleManager
#--------------------------------------------------------------------------
# ● 播放战斗 BGM
#--------------------------------------------------------------------------
def self.play_battle_bgm
@vip=rand($BattleMusic.size)
if $game_switches[66] == true #使用的开关
Audio.bgm_play("Audio/BGM/" + $BattleMusic[@vip])
else
$game_system.battle_bgm.play
end
RPG::BGS.stop
end
end
|