You must meet the needs and desires of your inhabitants (such as enough sleeping space and
food supplies) whilst also ensuring you have the required resources to run certain rooms (for example the Tinker, who makes traps, needs to have crates which a workshop creates) and you must also have the right creatures employed in your dungeon (Certain creatures operate certain machines, like an orc will run the Tinker station but an
Imp will run the Mana well).