Yanfly's Event Spawner, how to call multiple times?

I'm currently copy pasting the same script call in order to have multiple events on a map, is there a way to write it down in a single line?

here is the script call:
Yanfly.SpawnEventInRegion(1, 3, 1, false)

I want something like:
[n]Yanfly.SpawnEventInRegion(1, 3, 1, false)
n - is how many times the script is called

Script by Yanfly: http://yanfly.moe/2018/09/14/yep-170-event-spawner-rpg-maker-mv/
@chrisxiao Please edit your post to include a link to the web page where you got the plugin so that people don't have to hunt for it if they need to check something before replying.
Thanks
Code:
for (var i = 0; i < 50; i++) { Yanfly.SpawnEventInRegion(1, 3, 1, false); }

Replace 50 with the number of events you want.
Code:
for (var i = 0; i < 50; i++) { Yanfly.SpawnEventInRegion(1, 3, 1, false); }

Replace 50 with the number of events you want.
Thank you very much, it works <3

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/yanflys-event-spawner-how-to-call-multiple-times.103811/