Thank you for the reply, but I can't interact with it because it is a parallel event. It looks like this
The event will just run the code in it constantly which is why I need a conditional branch in it that says if player interacts with me, then play petting animation. I just don't know how rpg maker by default does the code to check when a player interacts with the event that has the default trigger "action button" instead of parallel, then run the code for the event because the player interacted with it.
In my case, I want the sheep to follow you and then stand still and if you go too far away from it then it starts running to catch up which I already coded, but I need to make this a parallel event to do this. I might also want to make it so that if it sees a monster then it runs away, so I can't just use the approach movement type.
Because of the custom movement, I need to do a script call in the parallel event that checks if player interacted with it, then you can do something like pet it because if I put the petting animation within this current parallel event then it would do the petting animation every 5 frames which is why I need the if statement for on player interacted with this. I just don't know the script call for how rpg maker detects if player interacts with an event