Small addition to the discussion of faction play. Here's a tiny article that gives a usable formula for complex dynamics between factions. You could use this for dungeons too.