So I've got these events that trigger based on proximity to the player, but lately found out that these events that use move toward player move routes can be blocked simply by maneuvering a follower between the event and the player.
Is there something I can change such that followers are set to through or move toward player ignores followers as obstacles?
Edit: So this kinda does what I want but seems to be frame dependant on whether it works
Is there something I can change such that followers are set to through or move toward player ignores followers as obstacles?
Edit: So this kinda does what I want but seems to be frame dependant on whether it works
Code:
class Game_Followers
def followers_array
@data
end
end
class Game_Character
alias_method :original_passable?, :passable?
def passable?(x, y, d)
return true if $game_player.followers.followers_array.any? {|f|f.x==x && f.y==y}
original_passable?(x, y, d)
end
end