Suggestion Allow reordering and branching within the event list

Description of the Feature:
  • I would like to see an improvement to map event handling.

    The way this would work is that le event list on the left while in event mode needs to be re-orderable and even branched like the map list. This would allow finer control over the order in which events are processed on the map. While working on a project, I ran into an issue where some events referencing the same variables or switches became broken if the wrong one referenced it first. The fix was to cut and paste the events into a different map, and then cut and paste them back into the desired map in the correct order.

    Apparently, as it is now, all events are prioritized by the order they have been placed on the map.

    If we could change the orderof the events in the list, we can easily ensure that the events we want to have priority over others have it, no matter whether or not the event was actually placed on the map first.

    Also, if we could create branches in the event list, like we can with maps, we could further control event priority by ensuring that groups of the same event remain together. So if I have a map full of trees I can chop with an axe to get wood, every time I paste an instance of that event, it would add itself to that type of group.

    Group sorting would read the event data and only group events that are identical.

Mockups:
N/A

Why is this feature good?
This feature is great because of the following:
  • Allows finer control over event processing and organization

Possible issues with this feature?
Issues that might arise from this feature:
  • May be process intense for the auto-grouping feature. Being able to turn it on or off in the settings would solve that, if it is an issue at all.
(NB: I am not a representative for the developers of RMMZ.)

I imagine this would be feasible with an extra layer of abstraction, much like MapInfos.json vs the actual map data.
Spoiler: technical thoughts
  • To change in-game layering of characters with equal Z, it might be sufficient to addChild in the "editor order", including groups etc, rather than by ascending ID.

  • The update order (e.g. for move routes) is defined by Game_Map#updateEvents, so I guess that could be made to reference the new "editor order" as well.

For the record: when I want to rearrange event or database IDs, I just copy+paste the ones I want to move, delete the originals, and repeat until ordered. You can copy events to the same map, unless it's already completely filled for some reason.
Thanks for this and I agree. I didn’t even know this was a problem until someone passingly referenced it as a solution for why something weird might be happening.

It never occurred to me that deleting and adding events so events end up “out of order” could cause a problem.

I only thought it was an inconvenience to not have events in a logical grouping and order.

Original thread: https://forums.rpgmakerweb.com/threads/allow-reordering-and-branching-within-the-event-list.157442/