RPG Maker Forums

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...

Latest Threads

Latest Profile Posts

Our latest feature is an interview with... me?!

People4_2 (Capelet off and on) added!

Just beat the last of us 2 last night and starting jedi: fallen order right now, both use unreal engine & when I say i knew 80% of jedi's buttons right away because they were the same buttons as TLOU2 its ridiculous, even the same narrow hallway crawl and barely-made-it jump they do. Unreal Engine is just big budget RPG Maker the way they make games nearly identical at its core lol.
Can someone recommend some fun story-heavy RPGs to me? Coming up with good gameplay is a nightmare! I was thinking of making some gameplay platforming-based, but that doesn't work well in RPG form*. I also was thinking of removing battles, but that would be too much like OneShot. I don't even know how to make good puzzles!
one bad plugin combo later and one of my followers is moonwalking off the screen on his own... I didn't even more yet on the new map lol.

Forum statistics

Threads
106,034
Messages
1,018,447
Members
137,820
Latest member
georg09byron
Top