Create Events From Other Events

I'm trying to include an event from an inactive map, into a running map's event list, but I'm having issues determining the exact method I should go about doing this.  I've tried running the map setup on the map id, hardcoding the map and reading the data, etc, i'm still having issues.  When a map activates it runs a large routine.

Basically I'm trying to run a script to transfer a full event to another area, without having an event base on the map you transfer to itself (like say an empty map with no events).  By event I mean a character, a sprite, and an event that exists in a tile that updates, walks around, etc.  Essentially using a placeholder map to procedurally generate monsters, trees, etc, into a map.  I've been developing an algorithm that handles multiple active maps, and using base events as placeholders such as commented 'empty' events, or 'monster' events.

I was hoping to simply "add" an event into an active map, then moveto the event into its position based on whatever data I've been using.  So far I've run into multiple bugs with it, and haven't been able to solve my issue.  I can't simply setup_events, it throws errors.  If someone can assist that would be great.

Any logical assistance, or technical help would be greatly appreciated.  As it stands I can't simply release my procedurally generated AI script out, but I can post my interpereter results for the event "creation" procedure.  So far I'm not having any luck though, it runs into bugs, or alters the wrong events, etc.
Or you could use this.


Even if you don't want to use the 'dummy' event, it should give you a whole lot of information about creating new events, copying events from other maps, whatever you need, so you can generate the new event via script rather than looking for the comment in an existing 'empty' event.
Or you could use this.

Even if you don't want to use the 'dummy' event, it should give you a whole lot of information about creating new events, copying events from other maps, whatever you need, so you can generate the new event via script rather than looking for the comment in an existing 'empty' event.
I'm not sure how to handle RGSS3, but it seems useful.  I'm using RGSS2, so the data structure is a bit different.  It shouldn't be too hard to translate however.

Much appreciated.
Oh - sorry. I missed the VX.


Hopefully it shouldn't be too difficult to extract what you need and apply it to VX. But shout if you get stuck.
Oh - sorry. I missed the VX.

Hopefully it shouldn't be too difficult to extract what you need and apply it to VX. But shout if you get stuck.
Okay so from what I gather, you generate the maps on initialization rather than while being active.  Am I correct?
By default, all the events for a map are loaded when the map is first loaded. But you can use the same methods to create one at any time.
I've had great success with this so far.  Check my signature for an updated form.  The interpreter to handle event_add manipulation should be ready soon.

This post can be closed.

Original thread: https://forums.rpgmakerweb.com/threads/create-events-from-other-events.18870/