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

add \rollDice macro

parent d1179dfb
Branches
Tags
No related merge requests found
......@@ -15,7 +15,7 @@
\RequirePackage{gfsartemisia-euler} % fancy fonts
\RequirePackage{epsdice} % for dice
\RequirePackage[T1]{fontenc} %
%\RequirePackage[T1]{fontenc} %
\RequirePackage{starfont} % for creature symbols
\RequirePackage{wasysym} % for sq checkboxes
\RequirePackage{appendix}
......@@ -357,6 +357,19 @@ bookmarks=true]%
\fi%
}
\newcounter{diceNo2}
\newcommand\rollDice[1]{%
\setcounter{track}{#1}%
\setcounter{diceNo}{1}%
\setcounter{diceNo2}{1}%
\ifnum\value{track}>7%
\setcounter{diceNo2}{6}%
\fi%
\addtocounter{track}{-\value{diceNo2}}%
\setcounter{diceNo}{\value{track}}%
\epsdice[black]{\arabic{diceNo}} \epsdice{\arabic{diceNo2}}
}
\newcounter{dlist}
\newenvironment{dlist}%
{\begin{list}{\Large\dicef{\value{dlist}}}{\usecounter{dlist}}}%
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment