Copy specific event page?

Imagine the scenario: you have 100 people (arbitary number) set to walk out of a building to some co-ordinates. Now, while I'm sure I could find this script later (it's basically just pathfinding), it would be great if there was a script to make it much easier to copy a certain event's event page onto other events so one wouldn't have to copy and paste that specific page on all 100 people and edit all 100 again if there was a mistake.

I know this would require specific setup (making sure all 100 events do not use page 5 or something) but it would make things a thousand times easier for mass-movement and the like.

I suggest the utilisation of an event-calling code in the event notebox, rather than any parallel trigger or whathaveyou as this trigger would be set up on the event page being copied.

Thanks 😀
You can easily do that if you modify the JSON file of the map.

You'll need a text editor and a "Json prettifier", as Rpg Maker generates minified JSONs.
Ok, just ran a bit through a prettifier. It's very long! The huge issue still exists though - if something changes, I'd have to re-copy and paste in all locations which is exactly what I am trying to avoid!
Ah, I hadn't understood you before.

You want a plugin that picks one page from one event and add it to other existing events, so you can keep changing that page in the original event and have it reflect on the others?
Ah, I hadn't understood you before.

You want a plugin that picks one page from one event and add it to other existing events, so you can keep changing that page in the original event and have it reflect on the others?
Exactly, so it (the event page that is being copied) only has to be written once 🙂

Sidenote: don't copy that event page's graphic, or at least make it a toggleable option, so that we can still set graphics on the pages we want to copy to (like so we can have 100 different looking people all doing the same thing).

Thanks 😀
I will be porting over my Clone Events script from Ace, but that clones the entire event, not just the pages/commands, and not an individual page.


I could certainly look at accommodating this request.


My question is, if you have so many of them, what would be on the page that you're cloning? If you have a movement route, isn't that going to make them all move to the same place? And if you don't want to copy the graphic, are there other things that you also don't want to copy, like the trigger, options, priority?
I will be porting over my Clone Events script from Ace, but that clones the entire event, not just the pages/commands, and not an individual page.

I could certainly look at accommodating this request.

My question is, if you have so many of them, what would be on the page that you're cloning? If you have a movement route, isn't that going to make them all move to the same place? And if you don't want to copy the graphic, are there other things that you also don't want to copy, like the trigger, options, priority?
Assuming the usage of a go-to co-ordinate and pathfinding script in this example as well (I'm sorted in this regard):

Let's use an example of 100 students, all in one hall. A member of staff runs inside, shouting there is a troll in the dungeon, then collapses. (This is not an actual situation that I am using, but a good demonstration of mass-movement I think! 😛 ) The students panic, but are calmed down by the headmaster, then told to go to their dorms. Dorms are at certain x/y co-ordinates depending which dorm each student is in, so a dorm group would go to 5,5 and another dorm group would go to 4,4, etc. 

By taking each group of students, I would be able to say "group A goes to 5,5, via a move route (in the box on the left-hand side of the event window) so I would need page 1 of event 100 copied" and "group B goes to 4,4 so I would need page 1 of event 101 copied". This means that I could simply turn on ONE switch to activate both event 100 and event 101. Event 100 would have a move route set onto it, telling the event to go to 5,5 and event 101 would likewise go to 4,4. Once they reach 4,4 or 5,5 or whatever, they individually turn transparent.

Therefore, all students would pathfind to their respective dorms.

This means what would otherwise be the same event for all students only has to be copied once per "dorm" in this example, perhaps even less if you are making one event with the move routes set, and four other individual events copying that one event page and adding their own x/y s! This minimizes bugs and redoing entire chunks of code for each area that has said mistake if there is one, and would be a huge timesaver.

In this instance, the trigger, options and priority etc would all remain the same as that is the point of copying the event - so they are all set off at once. However, I could see the use of this for events which are the same thing, just with a different trigger (for example, a moving platform that goes upwards if you press A or B or C, then goes downward, then can later only be triggered again to move upwards with D - this would probably normally require a couple of event pages at the minimum to be neat, but could be done with one... maybe? Just gets messy.) so perhaps some sort of customization down the road after the basic request I've outlined might be good, as this would be quite a bit more complicated to implement, I think. Unless of course, it is just a switch in the comment of the event that is to be copied to, to not copy the triggers etc.
Can't you just put the commands in a common event and call it from all the events?
Theoretically I *could*, but I really would like to avoid CEs for this as they simply do not offer the diverse functionality that a proper event page does. You lose the entire left half of the eventing window, for instance - and "erase event" wouldn't work, in the event anyone wanted to use it for such a purpose of a temporary event duplicated lots of times. You'd end up still needing to get around that lack of temporary erase by forming bits around an event that deals with self-switching (which again, you lose in common events unless you have it in an actual event page) so... 

In this instance, you'd have 100 students all calling one of four different common events, each of which does the same thing except for an x/y change, and then that common would run as a PP - imagine 100 PPs going off at once! If they were all autoruns, they'd be going one after the other. I'm sure there are workarounds or solutions to such a thing, but the simplest solution would be to treat a proper event page as the "common event" in this instance, and apply it to a normal event rather than fiddling with the common events. 

I just never found common events useful for anything other than "called once" or "called many times" events. The key take here is "called". An actual event page would allow for proper functionality like setting a specific graphic without having to define it in the CE, a set move route without having to define the entire event as a PP or AR, etc, and so on. It's just not flexible enough imo.

A disclaimer: I do not yet know how performance-intensive moving 100 students is via an event move route is compared to having 100 PPs going off at once, but I would imagine it is much less as they would not be "continuously checking" for an input, were they on PP.

There is a lot more scope for this, but this is just one of the immediate issues I've thought of, off the top of my head.
Actually, it would work.


You don't run the common event as a PP - you use the Call Common Event command from within the event. And when called this way, the common event behaves as if it IS a part of the event, so Erase Event will erase the event that's calling it.


I haven't read through the rest of the posts - I'll come back and take a good look when I plan to make a start on the script conversion.

Original thread: https://forums.rpgmakerweb.com/threads/copy-specific-event-page.49947/