Check if event is moving (for Common Event or Parallel Process)

Hi all,

I'm looking for a way to check if a specific event is moving and check that in a conditional branch.

Using '$gamePlayer.isMoving();' works perfectly fine for the player in any event/common event,
but for other events so far I have only found 'this.character().isMoving();' which as far as I can tell has to be called
inside that specific event.

Is there any way to check if a specific event is moving using another event? Or common event?
Is there any way to check if a specific event is moving using another event? Or common event?
Code:
var eventId = 1; $gameMap.event(eventId).isMoving()
Code:
var eventId = 1; $gameMap.event(eventId).isMoving()
Thanks so much for the quick reply!
Could you explain how to use this in a conditional branch? Sorry, im not understanding the first part of the code you provided.
1587946591454.png

Sure no prob. That help?
Also simplified without setting a the eventId variable first.

...or wait did you want the event that is currently running?
View attachment 141102
Sure no prob. That help?
Also simplified without the setting the eventId variable.

...or wait did you want the event that is currently running?
Thanks so much! Works flawlessly.
This is why i love this forum, had a problem and 15min later its fixed.

Thanks again! Ultimate footsteps commence 😀
Thanks so much! Works flawlessly.
This is why i love this forum, had a problem and 15min later its fixed.
Thanks again! Ultimate footsteps commence 😀
Yay! No prob. happy I could help 🙂
In the future if you need a common event to do such you may need use of my "LastCalledEventId" to get the ID of the event that called the common event.

Happy Game Making! :popcorn:

Original thread: https://forums.rpgmakerweb.com/threads/check-if-event-is-moving-for-common-event-or-parallel-process.120688/