Create Events From Other Events

Funplayer

Self proclaimed sponge.
Veteran
Joined
Oct 9, 2013
Messages
120
Reaction score
35
First Language
English
Primarily Uses
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.
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
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.
 

Funplayer

Self proclaimed sponge.
Veteran
Joined
Oct 9, 2013
Messages
120
Reaction score
35
First Language
English
Primarily Uses
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.
 
Last edited by a moderator:

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
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.
 

Funplayer

Self proclaimed sponge.
Veteran
Joined
Oct 9, 2013
Messages
120
Reaction score
35
First Language
English
Primarily Uses
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?
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
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.
 

Funplayer

Self proclaimed sponge.
Veteran
Joined
Oct 9, 2013
Messages
120
Reaction score
35
First Language
English
Primarily Uses
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.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,862
Messages
1,017,049
Members
137,570
Latest member
fgfhdfg
Top