swapDepth Problems

I’m currently making a game that involves lots of moving NPCs, buildings, trees etc, in the style of an old RPG (think the old Final Fantasys).
I’ve worked on something similar to this where there were just static buildings and 1 moving character, and that was simple enough, just swapdepths between the character and the building if they’re touching.
This however involves moving people, they can go behind each other, they can go behind buildings too.
My mind just can’t handle it :stuck_out_tongue:
I have no good idea on how to achive the mock 3D effect you get like in the early Final Fantasys.
Any help?