\documentclass[theme=dnd]{rpgbook}
\graphicspath{{img/}}
\title{The Sunken Temple}
\subtitle{An example adventure for typesetters}
\author{A. W. Riter}
\cover{enraged-monster}
\RpgCoverTransparency{0.3}
\RpgPartTransparency{0.4}
%% this is the GM's copy, so show the secrets (dnd-handout.tex leaves them hidden)
\RpgSwitch{ShowSecrets}{on}
\begin{document}
\maketitle
%% D&D themed table of contents are possible, but with an example document this short it looks bad, so use it when it makes sense!
% \tableofcontents
\chapter{The Village of Saltmere}
\begin{RpgNarration}
The tide is out, and the whole village smells of salt and tar. Nets hang drying between the houses, and a bell clangs somewhere out on the flats, though there is no wind to ring it.
The buildings around are dilapidated and empty, the only warmth coming from a low-slung building to the west, balanced on stilts which keep it out of the muddy water. The sign outside declares itself to be ``The Drowned Bell".
\end{RpgNarration}
\input{village.tex}
\appendix
\chapter{Creatures}
%% The adventure's final foe: a full-width (RpgStat*) legendary statblock
\begin{RpgStat*}{The Typesetter}[
size=Medium,
type=Undead,
alignment={Chaotic evil},
AC=15,
HP=12d8+24,
str=12, dex=15, con=14, int=18, wis=14, cha=12,
str-save, int-save,
skills={Perception, Arcana},
skills-expertise=History,
cr=6,
languages={Common, Draconic, \LaTeX},
]
\RpgStatLegendaryResistance{2}
\begin{RpgStatSpells}[title={Drowned Spellcasting}, innate, modifier=int]
\atWill{faulty preamble, thunderclap}
\perDay{2}{fireball}
\level[3][2]{compile document}
\end{RpgStatSpells}
\section{Actions}
\attack{Inkblade}[distance=both, reach=10, range=20/60, modifier=int, dmg=1d8+\RpgStatMod{int}, dmg-type=necrotic]
\RpgStatLegendarySection[uses=2]
\action{Rapid Edit} \name{} makes an Inkblade attack, then moves up to 30 feet.
\RpgStatMythicSection[narration={Just as the Typesetter falls, a voice rings out: \textit{``but will it compile on Overleaf?''} The ink on the walls begins to move\ldots}]
\save{Online Woes}[modifier=int, dc=15, shape=sphere, origin={within 10 feet of the Typesetter}, success={half damage, and is not stunned}, fail={\RpgDice{4d10} psychic damage, and is stunned until the end of its next turn}]
\end{RpgStat*}
\begin{RpgStat}{Powerful Dragon Format}[
size=Tiny,
type=Dragon,
alignment={Lawful neutral},
AC=13,
HP=2d8+2,
speed={10ft, fly 30ft},
str=5, dex=16, con=12, int=16, wis=12, cha=15,
cr=1/8,
int-save, wis-save,
languages={Draconic, \LaTeX},
nickname=PDF,
]
\trait{Portable} The \name{} is unaffected by its surroundings, ignoring difficult terrain and strong winds.
\section{Actions}
\attack{Claw}[modifier=dex, dmg-type=slashing, plus-dmg=1d6, plus-type=fire]
\end{RpgStat}
\chapter{Treasure \& Magic}
The following items can be found in the temple, and the Typesetter casts the spells below.
\section{Magic Items}
\begin{RpgItem}{Knonald's Quill}[
type={Wondrous item},
rarity=Rare,
requires-attunement={by a creature with an Intelligence of 13 or higher},
]
As an action, you may use this quill to write on any surface. The symbols you write are so beautifully typeset that a creature which reads them must succeed on a DC 13 Intelligence saving throw or be charmed by you, as if by the \textit{charm person} spell.
\end{RpgItem}
\section{Spells}
\begin{RpgSpell}{Compile Document}[
level=3,
school=Conjuration,
range={60 feet},
area={30-foot cube},
components=VS,
]
Roll \RpgDice{1d4}. That many documents within the area are converted into a \textit{Powerful Dragon Format}, which acts on its own initiative and regards you as an ally. For each dragon created in this way, you regain 5 hit points.
\RpgSpellUpcast[The hit points restored by each dragon increase by]{5}
\end{RpgSpell}
\begin{RpgSpell}{Faulty Preamble}[
school=Evocation,
range=Touch,
duration={Until dispelled},
]
You corrupt a document that you touch. When this document is next affected by \textit{compile document}, it does not become a Powerful Dragon Format. Instead, it deals \RpgDice{1d10} psychic damage to the creature attempting the compilation.
\RpgCantripScaling{1d10}{2d10}{3d10}{4d10}
\end{RpgSpell}
\end{document}