So I was trying to make an event duplication/spawn script and made it to work, but right now some event commands doesn't work on the duplicated events (mostly commands that change the sprite shown like the face direction commands, erase command doesn't work too, "talking" to the event doesn't make it face you too)...
I also stumbled upon Yanfly's spawn events and tried it to see if the error is on my script alone but even yanfly's script has those problems...
Does anybody know how to fix this?
here is the duplication script I made btw, (inside the game map class)
def dup_event(mapid,eventid,x,y,view,z) @mapx = load_data(sprintf("Data/Map%03d.rvdata2", mapid)) event = get_event(@mapx, eventid) key = @events.keys.max + 1 @events[key] = Game_Event.new(@map_id, event) @events[key].view = view @events[key].priority_type = z @events[key].doodad = true @events[key].moveto(x,y) @events[key].update SceneManager.scene.spriteset.refresh_characters refresh update end def get_event(map, event_id) for events in map.events event = events[1] next if event.nil? return event if event.id == event_id end return nil endYanfly's script is almost like this, just without the .doodad, .view, .priority, .update and the refresh and update calls
The full script together with the Auto-tint system can be found here:
http://forums.rpgmakerweb.com/index.php?/topic/19770-duplicate-and-auto-untint-events-v100/
Note: This issue is already there even before I added the auto-tint, also tested the yanfly script with my whole script disabled, and the results were the same...