Script That Calls a Common Event?

I was wondering if there was a script that will call a common event. I basically want to set an event's movement to move towards the player while running a common event. Is there a way to do that?
I think you explain better what you want to do in total - from what you said that needs neither a script nor a common event, I would just use multiple event pages conditioned by switches to do this.

Because yes, that is possible - but it has some disadvantages due to the way common events work.
For example if a regular map event calls a common event by event command, the common event gains a link to that map event and can control its specific properties. If the common event is called by a script, that link does not exist automatically and you'll have to do a lot more to identify and controll the map event.
I found a call script for common events but couldn't make it actually do what I was trying to do. But I think I have it figured out now. I'm still a little unsure of why nothing at all happened with running a common event from the events move route, though I did get it to get stuck once, so I know the program tried at least. I will say that I did make sure that everything in the common event affected the event with the move route, I think I was maybe just asking the common event to do too much at once or something. Or I just didn't set it up well enough.

As for what exactly I was trying to do, I'm back to trying to work out an evented projectile system and wanted to get events to shoot projectiles while moving towards the player, while at the same time having a random battle set to player touch so if the event touches the player, it will do a random battle, whereas if it hits the player with the projectile it will take away HP.
for that, calling common events by script is the wrong way.

you'll need a plugin that clones map events on command whenever a new projectile is needed.
But the projectile itself should be made completely with eventing, using a regular call to a common event where neccessary.
I didn't have time to implement it, but I think I have the solution to what I was trying to do. I'll post a tutorial if I actually have it working like I was trying to do.

Original thread: https://forums.rpgmakerweb.com/threads/script-that-calls-a-common-event.96213/