GM notes can now include arbitrary additional sections as attributes.

This commit is contained in:
Mark Wolfman
2021-07-24 17:40:01 -05:00
parent a1a5d7783a
commit 6bfaddf821
8 changed files with 77 additions and 4 deletions
+23 -1
View File
@@ -50,7 +50,8 @@ Random Tables
=============
Random tables can be used in-game to make decisions on-the-fly. These
tables can be included in the PDF using ``random_tables``. Currently the following random tables are available.
tables can be included in the PDF using ``random_tables``. Currently
the following random tables are available.
- **"conjure animals"** - A list of options to choose from when a
player casts the *Conjure Animals* spell.
@@ -60,3 +61,24 @@ tables can be included in the PDF using ``random_tables``. Currently the followi
random_tables = ["conjure animals"]
Adding Arbitrary Content
========================
Additional content can be included in arbitrary sections that get
added to the end of the GM notes output. In addition to the attributes
described above, suitable extra attributes in the notes (``.py``) file
will be rendered as a new section, with a heading based on the name of
the attribute and a body with the content parsed as restructured
text. Attributes that begin with an underscore ("_") or those that are
not a string will be ignored.
For example, the following entry will be rendered as a new section
with the heading "The Bar Fight":
.. code-block:: python
the_bar_fight = (
"If the characters decide to go to the *Alliance Friendly Bar*, "
"they will probably have to fight their way out against 5 enemies "
"(3 Veteran, 2 Soldier)."
)