以下引用天仙玉女于2008-5-21 20:00:03的发言:
先把Game_Player第403行注釋掉(就是前面加上 # )
再把Game_Map第116~127行替換成
本帖相关代码如下:
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 # 判斷隊伍是否無效
$game_troop.setup(troop_id)
if $game_player.in_vehicle?
if $game_player.in_airship?
return unless $game_troop.troop.name.include?("[air]")
else
return unless $game_troop.troop.name.include?("[water]")
end
end
$game_troop.can_escape = true
$game_temp.battle_proc = nil
$game_temp.next_scene = "battle"
preemptive_or_surprise
end
這樣,在飛船中只能遇到名稱帶有 [air] 的敵人隊伍
在小/大型船中只能遇到名稱帶有 [water] 的敵人隊伍
以下引用天仙玉女于2008-5-21 22:28:02的发言:
抱歉
手誤打錯了
是Scene_Map不是Game_Map
欢迎光临 Project1 (https://rpg.blue/) | Powered by Discuz! X3.1 |