lz的原因不知道,不过建议用下面的脚本..若lz需要"枪"的脚本,可再次说明
class Interpreter Face_Event = [nil,[0,-1],[1,0],[-1,0],[0,1]] def aexy return false unless @event_id [2,4,6,8].any?{|i|$game_player.direction==i and [$game_player.x-$game_map.events[@event_id].x,$game_player.y-$game_map.events[@event_id].y] == Face_Event[i/2]} end end
class Interpreter
Face_Event = [nil,[0,-1],[1,0],[-1,0],[0,1]]
def aexy
return false unless @event_id
[2,4,6,8].any?{|i|$game_player.direction==i and [$game_player.x-$game_map.events[@event_id].x,$game_player.y-$game_map.events[@event_id].y] == Face_Event[i/2]}
end
end
|