Duplicated events problem

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...
Are the change looks etc. labelled for "This Event" in move events
yes... If I don't set it to skip, it actually makes everything stop...

and even the normal situation where the event looks at you when you trigger the action button doesn't work too (it works on the first time, but after that the event is stuck on it's facing)

BTW, I posted the script in the Ace section (since this problem is quite minor for the purpose of the script that I have in mind when I made it, which is for decorative events only, plus I added a more major script making this a minor part only of the script). If that gets approved, then will this be moved to script support?
Ah I can move this to script support. Just a sec~

Original thread: https://forums.rpgmakerweb.com/threads/duplicated-events-problem.19769/