Skip to content
Snippets Groups Projects
Unverified Commit aa5ff1b3 authored by Malin Freeborn's avatar Malin Freeborn
Browse files

create swarm command

parent c84d07d8
Branches
Tags
No related merge requests found
......@@ -102,6 +102,10 @@ Then the \verb"\humansoldier" command turns from this:
This second soldier is still random, but note the loot they carry has changed into a roll.
And finally, we have swarms:
\swarm[\flight]{Stirges}{5}{1}{3}{1}
\subsection{Boxes}
You can add things for these people to say with a \verb"\begin{speechtext}" command:
......
......@@ -786,7 +786,52 @@
}{}%
}
}
%
\newcommand\swarm[6][]%
{
\begin{tcolorbox}[
title={\A\ Swarm: #2},
before upper={\parindent0pt},
ornamented,
fontupper=\small,
halign=flush left,
left=10pt,
right=15pt,
top=0pt,
bottom=0pt,
]
\clean
\setcounter{hp}{#3}
\setcounter{Dexterity}{#4}
\setcounter{att}{#4}
\addtocounter{att}{10}
\setcounter{Speed}{#5}
\setcounter{ap}{#5}
\addtocounter{ap}{3}
\setcounter{Wits}{#6}
\renewcommand\abilities{#1}
\scshape
\begin{tabularx}{\textwidth}{cYcc}
\hiderowcolors
\Gls{ap}: \arabic{ap} & Att: $\arabic{att} - HP$
\iftoggle{verbose}{
& Speed: \arabic{Speed}
& Wits: \arabic{Wits}
}{
& Dam: 1
}
\\
& \showBoxes & \\
\end{tabularx}
\ifdefempty{\abilities}{}{%
\textbf{Abilities}: \abilities
}%
\end{tcolorbox}
}
%%%%%%%%%%%%%%%%%%%% Creature Abilities
\newcommand{\abilities}{}
......
......@@ -502,6 +502,11 @@ When using a bestiary chapter, the stats appear as dice rolls, rather than fixed
\begin{multicols}{2}
\randomdozen
\setcounter{track}{\value{r12}}
\swarm[\flight]{Stirges}{\value{r12}}{1}{3}{1}
\lipsum[\arabic{r4}]
\humanbard
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment