This is a simple yet very effective front/back organizing system that arranges the order of objects depending on thier Y position like in most 2D RPGs.
You can add more objects by just copying one of the organizing events and applying it to the other objects. I hope others currently working on an RPG find this useful.
True, but if you use the layer object, it'll sort all active objects. With my engine, you can select what it sorts and leave out what it doesn't.
Edit: For example, you'd want a dialogue box to always be in the front. If you used the layer object to sort the objects, an NPC might be standing ontop of the dialogue box.
It could be done with an object qualifier to save some event copying and space. Also, try and save some RAM and avoid crashes by only making the objects change level when they need to, when the player or other objects overlap them and such.