I am trying to make a little script in Ace that will position an event a certain number of tiles away from the player, in a random direction, such that it could be given a "move toward player" move route that would eventually put it on the player's tile (or right next to).
So it's not really a pathfinding script - if there's an obstacle or passage issue that would force the event to move away from the player to get around it, that would be an invalid starting point.
The two approaches I can come up with are to start with all tiles that are X distance away, and simulate a 'move toward player' repeated route and see which ones don't get blocked, or to start at the player's position and spread out in all directions until I end up X tiles away. I think both options have drawbacks. Looking for some suggestions on how to best handle this.
So it's not really a pathfinding script - if there's an obstacle or passage issue that would force the event to move away from the player to get around it, that would be an invalid starting point.
The two approaches I can come up with are to start with all tiles that are X distance away, and simulate a 'move toward player' repeated route and see which ones don't get blocked, or to start at the player's position and spread out in all directions until I end up X tiles away. I think both options have drawbacks. Looking for some suggestions on how to best handle this.

