Project1
标题:
给八宝粥先生的脚本答案
[打印本页]
作者:
怪蜀黍
时间:
2012-8-14 12:33
标题:
给八宝粥先生的脚本答案
本帖最后由 protosssonny 于 2012-8-14 12:35 编辑
用这个脚本来回答:
Scene_Map类下第113行起,这样改:
#--------------------------------------------------------------------------
# ● 遇敌处理
#--------------------------------------------------------------------------
def update_encounter
return if $game_player.encounter_count > 0 # 检查步数
return if $game_map.interpreter.running? # 判断是否有事件正在执行
return if $game_system.encounter_disabled # 判断是否禁止遇敌
troop_id = $game_player.make_encounter_troop_id # 判断敌人队伍
return if $data_troops[troop_id] == nil # 判断队伍是否无效
#这里假定是20、25、34号敌人组更改战斗音乐Battle3
if [20,25,34].include?(troop_id)
$game_system.battle_bgm = RPG::BGM.new("Battle3", 100, 100)
else
$game_system.battle_bgm = RPG::BGM.new("Battle1", 100, 100)
end
$game_troop.setup(troop_id)
$game_troop.can_escape = true
$game_temp.battle_proc = nil
$game_temp.next_scene = "battle"
preemptive_or_surprise
end
复制代码
作者:
hys111111
时间:
2012-8-14 12:49
甜蜜蜜……
欢迎光临 Project1 (https://rpg.blue/)
Powered by Discuz! X3.1