Making D&D puzzles is by far the most complex challenge you can create in the game. Here you'll read all about it and how you can make them.
469