mirror of
https://github.com/Threnklyn/dungeon-sheets.git
synced 2026-05-19 04:33:26 +02:00
GM notes can now include arbitrary additional sections as attributes.
This commit is contained in:
+23
-1
@@ -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)."
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user