Activation

To enable DD parsing on any description text, the text must begin with the #D control string. Without it, the code treats the text as a plain, static description and no substitutions are made.

Controls within a DD block

Control Effect
#D Activates Dynamic Description parsing. Must be the very first characters of the description text.
#N Inserts a line break. Forces whatever follows to begin on the next line.
## Outputs a literal # character, preventing it from being read as a control sequence.
#S Preserves the whitespace that follows it. By default, multiple consecutive spaces are collapsed to one.

Notes on #N

#N is a single line break, not a blank line. It moves output to the very next line. To leave an empty line between paragraphs use #N #N.

Notes on #S

Dynamic Descriptions are always left-justified, so leading spaces at the start of a new line are stripped automatically. To preserve intentional leading spaces, place any non-printing character (such as the colour-off code &X) immediately before #S:

The sign says:
&X#S     Welcome to Dragon Village.

Without the &X prefix the leading spaces are discarded and the output would read “Welcome to Dragon Village.” flush with the left margin instead of indented.