I am currently working on creating an overworld enemy that roams and interacts with the player's attacks. The spawning of these enemies will utilize the event copy feature from the YEP plugin. Given that there will frequently be multiple enemies on the screen, I am unable to use variables to store their X and Y coordinates.
The specific ID of these enemies does not transfer when they are copied to another map, which prevents me from using scripts that rely on the the enemy's specific event ID. Instead, I need a script that verifies whether the player is facing the enemy and is positioned correctly to engage with it, without relying on variables or specific IDs. If all conditions are met, the script should return true, otherwise, it should return false.
The specific ID of these enemies does not transfer when they are copied to another map, which prevents me from using scripts that rely on the the enemy's specific event ID. Instead, I need a script that verifies whether the player is facing the enemy and is positioned correctly to engage with it, without relying on variables or specific IDs. If all conditions are met, the script should return true, otherwise, it should return false.