修改脚本 把事件当成主角来解决这问题
如果用LS的办法来解决的话除非你NPC遇到对话就一二个如果多的话用LS的方法就不可行了
修改以下@trigger == 2 and x == $game_player.x and y == $game_player.y
这句。也可以在这句下面加上语句
#--------------------------------------------------------------------------
# ● 接触事件启动判定
#--------------------------------------------------------------------------
def check_event_trigger_touch(x, y)
# 事件执行中的情况下
if $game_system.map_interpreter.running?
return
end
# 目标为 [与事件接触] 以及和主角坐标一致的情况下
if @trigger == 2 and x == $game_player.x and y == $game_player.y
# 除跳跃中以外的情况、启动判定就是正面的事件
if not jumping? and not over_trigger?
start
end
end
end
#--------------------------------------------------------------------------
# ● 自动事件启动判定
#--------------------------------------------------------------------------
def check_event_trigger_auto
# 目标为 [与事件接触] 以及和主角坐标一致的情况下
if @trigger == 2 and @x == $game_player.x and @y == $game_player.y
# 除跳跃中以外的情况、启动判定就是同位置的事件
if not jumping? and over_trigger?
start
end
end
# 目标是 [自动执行] 的情况下
if @trigger == 3
start
end
end