Changing Event Speed For All Events At Once?

I have a bunch of events on a map that all move around, using move route event command. They repeat their movements. I would like to change the speed on them so they move slower. I'd prefer not doing this through the move route events I have set up bc I'm worried having it repeat that over and over will screw something up, and I also don't want to edit all 70+ events one at a time. Any way to just have one event set all the speed all at once?
for (var i = 1; i < $gameMap.events().length; i++) if ($gameMap.event(i)) $gameMap.event(i)._moveSpeed = 10;
for (var i = 1; i < $gameMap.events().length; i++) if ($gameMap.event(i)) $gameMap.event(i)._moveSpeed = 10;

I'm really sorry, but I'm just dense when it comes to this stuff. What all do I need to make this work? I'm assuming I need to tell it what map and which events but... where? Also, for moveSpeed, what do I need to put there for slower? 10 or do different numbers do different stuff?
Use "script" event command and copy it in. As for the number, by default the mv editor allows one to six. I put 10 there just for fun. But yes, naturally if you want to get slower, go lower.
Awesome, that did it! Thanks!!!

Original thread: https://forums.rpgmakerweb.com/threads/changing-event-speed-for-all-events-at-once.102610/