Greetings, I've came to a point when I want to code NPC respawning in.
I have a few ideas.
1) Use areas for different types of mobs. It's bad though because I use areas to handle music. Any advice how to combine these too? I don't think it's possible to have two areas on one tile, am I right?
2) Upon the world creation save all placed critters' location. Then when they Die() send them to a room, and from time to time send them to their original location if there're no players around. How do I check if there're no mobs with keys around a location?
3) Make stationary invisible objects as markers. This one seems tempting because I should be able to see them on map, but I am not sure how to make this random because I don't want to make an object for EACH mob.
If people who have time and experience can share better ideas, I would really like to listen to them.