MV YEP Event Chase Player: Events sometimes don't trigger upon contact

I'm trying to use YEP Event Chase Player to make an on-field encounter. But this rat only SOMETIMES triggers battle on contact. Other times, it just sits in front of me like this. Its trigger is set to Event Touch, by the way.

(Also, even if I use Himeworks's Follower Event Touch plugin, the rat does not trigger battle upon contact with my followers and instead goes around them to try to reach me anyway.)

Does anyone know what's going on?
1722305002439.png
The issue here might be, that the event is not acutally trying to move to the same tile as the player or follower, but instead stops, when its on a adjactent tile. This way the battle would only be triggered if the player bumps into the event, which would explain why it sometimes works out.
Not a hundred percent sure if the plugin works like this though.

Anyway, I'd advise you to share a screen shot of your event page and movement route, just in case. There might still be an error you didn't see.
The issue here might be, that the event is not acutally trying to move to the same tile as the player or follower, but instead stops, when its on a adjactent tile. This way the battle would only be triggered if the player bumps into the event, which would explain why it sometimes works out.
Not a hundred percent sure if the plugin works like this though.

Anyway, I'd advise you to share a screen shot of your event page and movement route, just in case. There might still be an error you didn't see.
1722442378376.png

1722442400554.png

Except when this happens, I can also run into the rat and nothing happens. I can even step downward, the rat will move down with me, turn towards me, and the same thing will happen. Even pressing A to interact with the rat doesn't start the battle.
Hmm I can't see why it wouldn't work. Did you try it without the plugin, when it runs into you normally?
Also try setting it to player touch and/or skip if cannot move, though don't have much hope that it makes any difference.

If it works without the plugin however, then we need to take a look at the order of your plugin manager.
Hmm I can't see why it wouldn't work. Did you try it without the plugin, when it runs into you normally?
Also try setting it to player touch and/or skip if cannot move, though don't have much hope that it makes any difference.

If it works without the plugin however, then we need to take a look at the order of your plugin manager.
Tried all those things, still doesn't work.

After some fiddling, I feel like it only works when both the rat and the player are in the process of trying to move onto the same space. If either the rat or I am stationary, it doesn't work.
You didn't set skip if cannot move and it get stuck at random move.
You didn't set skip if cannot move and it get stuck at random move.
I tried turning on Skip If Cannot Move and it didn't change anything.
Can you post the script here? The window is too small to display it.
Can you post the script here? The window is too small to display it.
The movement script?
Yes.
>Move At Random
>Script: this._chaseRange = 5
>Script: this._returnAfter = false

Repeat movements: On
Skip if cannot move: On
So do you see the balloon on the mouse when it is chasing you?
Because I copied your code and it works just fine.
By default the event need to see the player (facing them) within the range.
To me they also seem fine. But from what I understand the problem is not with the chasing, but with the event trigger not working correctly. Did you try it without the plugins yet?
To me they also seem fine. But from what I understand the problem is not with the chasing, but with the event trigger not working correctly. Did you try it without the plugins yet?
Same thing happens without the chase plugin. The battle only activates if both me and the rat are moving when we collide.
Did you also try turning the other Plugins off or using a Clean Project to Test?
Did you also try turning the other Plugins off or using a Clean Project to Test?
Tried it with a clean project and it seems to work.
Then the next step is to turn off all your Plugins one by one to find the culprit.

Also, since you are using yanfly plugins, did you check the order? Yanflys Plugins need to be placed in a specific order, found in their Website to work properly.
Then the next step is to turn off all your Plugins one by one to find the culprit.

Also, since you are using yanfly plugins, did you check the order? Yanflys Plugins need to be placed in a specific order, found in their Website to work properly.
I think I figured out the problem. It wasn't what I thought it was at all. It was because the collision was taking place on a tile with a region I had disabled Random Encounters on, and the Battle Processing command was set to Same As Random Encounter, so it had no encounters to grab. The moments when it worked was when I stepped off the path into a region that had random encounters designated. If I use a Disable Encounters command, I'll be able to disable random encounters while still having something for the on-field enemies to grab for their designated encounter.

Thanks for working with me. I am the dumb. XD
Haha xD Well I am happy you finally found what caused it

Original thread: https://forums.rpgmakerweb.com/threads/yep-event-chase-player-events-sometimes-dont-trigger-upon-contact.170731/