Moving several events through script

Is there a way to move a certain number of events without inputting each and every event's move route, through scripting?
They would all be moving the same way (more specifically, they'd all, at the same time, turn up).
$gameMap.event(eventID).turnRight90 will turn the specified event a 90 degrees to the right. Here are some other commands that can be used
(all of these go after $gameMap.event(eventID) like the example above)

.turnRight90
.turnLeft90
.turnLeftOrRight90
.turn180
.turnRandom
.turnTowardPlayer

So for example, if you had events 3, 4, and 5 as the characters you wanted to face up, and they were facing down, left and right respectively, you could do this as a script call.
$gameMap.event(3).turn180();
$gameMap.event(4).turnRight90();
$gameMap.event(5).turnLeft90();

Then they would all be facing up. Does this help?
I believe Victor Sant has a number of scripts that deal with custom move routes in his Victor Engine module.
https://victorenginescripts.wordpress.com/rpg-maker-mv/
Well, if they all will make the same movement, I think you can use this in the script call field:

Code:
var turnUp = [1, 2, 3, 4, 5];
turnUp.forEach(function(eventId) {
     $gameMap.event(eventId).setDirection(8);
});

You only have to choose the ID of the events you want to use, and put inside the brackets.
Well, if they all will make the same movement, I think you can use this in the script call field:

Code:
var turnUp = [1, 2, 3, 4, 5];
turnUp.forEach(function(eventId) {
     $gameMap.event(eventId).setDirection(8);
});

You only have to choose the ID of the events you want to use, and put inside the brackets.

This works perfectly for my plans! Thanks a lot!

Original thread: https://forums.rpgmakerweb.com/threads/moving-several-events-through-script.110676/