Question:
How do I detect player/event collision through a script call?
I have a little dilemma. I'm making an enemy detection system using a view range script. Right now, I've got it set up so that the first event page for an enemy is a parallel process in which they are constantly scanning to see if the player is within range via a script call - when they are, a self switch goes on and they chase the player down, etc., etc. However, there's a little problem: the few times I've tested it where the enemies DON'T see me, I can walk right up behind them and into them but nothing happens. Obviously, whether or not the enemy sees the player or not, I want a battle to start when the player touches the enemy. However, I can't do this simply by making an 'Event Touch' condition for battle processing because I need a parallel process to check for when the enemy DOES see the player.
So, all that rambling preamble is to this question: Is there a way to make a script call that will detect whether or not a player is in collision with an event? If I could use a conditional branch on the first parallel process page, that would bypass the problem completely.
Thanks!