Check Position of Event in MoveRoute?

Hello! I want an event to walk to a specific position (in the moveroute).
Iam using yanflys moveroute script "Move to: X,Y" and its working fine, but I want to check that
"if event is on X,Y then SelfSwitch A on" in the moveroute.

It has to be in the moveroute, cause I want to be able to talk to the event and other things.

I also don't wanna use a parallel event that checks the position of the event everytime, because I have multiple events that should move from x to y (wanna fake a busy marketplace)

Maybe you can help with a script call I could use?
I also don't wanna use a parallel event that checks the position of the event everytime, because I have multiple events that should move from x to y (wanna fake a busy marketplace)
I don't really see why this is a reason not to use parallel process?
if you're concerned about possible lag, I'd say try it out first and see if it actually affects performance.

Anyhow, the script call is if ($gameMap.event(this.eventId()).pos(x, y)) { $gameSelfSwitches.setValue([this._mapId, this.eventId(), 'A'], true) }
It would be more helpful if you showed your event and described the purpose of everything.

Since you would have to put code into a specific place in your move route, I don't really see the point of doing that rather than doing part of the move route, using a regular Conditional Branch event command, then the rest of the move route.

There's no way you can, like, have your event checking that every step if you're also using the script command from Yanfly's Move Route Core.

Original thread: https://forums.rpgmakerweb.com/threads/check-position-of-event-in-moveroute.163923/