Event touch + page swtiching making my events stop moving?

Hallo, I'm trying to make a sorta kinda rogue-like movement style where the event characters move when the player presses the arrow keys, but with what I have now If the player just quickly taps an arrow key while the events are touching the player (the player doesn't have to be facing them, they can moving into a wall with the events around them) it may make the event stop moving completely until the player touches them again, then they start moving normally again, also it seems to only happen with "player touch" it didn't seem to ever happen with "event touch."
EDIT: It's event touch that has the problem, and player touch that works fine.

This is a stripped down version of the event that still has the problem:

Here's the common event that's controls the "player pressing the moving buttons or not" (the "constant engine" switch is turned on at the start of this map and stays on.)
Project2 - RPG Maker VX Ace 8_8_2023 7_57_14 PM.png


Here's the event page 1, when they're moving and acting
Project2 - RPG Maker VX Ace 8_8_2023 7_57_25 PM.png


and page 2, when they're stopped when the player isn't moving
Project2 - RPG Maker VX Ace 8_8_2023 7_57_35 PM.png

If you want to recreate it, just move and stop abruptly bumping into the events, might need to ctrl move if they corner you.

Sorry if I didn't explain it well, thanks for listening 🙂
that is what the triggers are actually doing:

Event touch means the event moves on the player, so it can only be triggered if the event is moving.
Player touch means the ploayer moves on the event, so of course it isn't triggered if the player is not moving.
Hello, Thanks for replying 🙂

Oh shoot I made a mistake above, It's event touch that's the problem and player touch that's fine, sorry about that!

I tried to make a gif to show the problem, the ones that stopped moving will move again if the player touches them again, it's not a consistent thing either, only happens sometimes, when the player moves in a certain way.
RPGVXA Stop problem 3.gif
There might be a reason for it, but the effect you are seeing is reproducable and is caused by the event locking.
It's set in the code.
Game_Event line 175

Put this in below materials and it should fix it.
Also place the comment in the events that are to not be locked.
1691585546634.png

Ruby:
module R2_Unlock_Rogue_Event
  Text = "free_lock"
end

class Game_Event < Game_Character
  def start
    return if empty?
    @starting = true
    lock if trigger_in?([0,1,2]) unless free_lock
  end
  def free_lock
    @list.each { |line|
      if line.code == 108
        return true if line.parameters.include?(R2_Unlock_Rogue_Event::Text)
      end
    }
    return false
  end
end
It looks like that fixed it! thanks friend!
I also just found this (again). didn't think there was something for this already.
Should do the same thing

Also updated my code. forgot to take out a print statement

Original thread: https://forums.rpgmakerweb.com/threads/event-touch-page-swtiching-making-my-events-stop-moving.160152/