% Provides Dungeons and Dragons 4 macros % By Adam Petaccia \ProvidesPackage{dnd4} \usepackage{pifont} \usepackage[table,dvipsnames,svgnames]{xcolor} \setlength{\columnsep}{.35in} \addtolength{\voffset}{-1in} \addtolength{\textheight}{1in} % Stats \newcommand{\STR}{Strength} \newcommand{\CON}{Constitution} \newcommand{\DEX}{Dexterity} \newcommand{\INT}{Intelligence} \newcommand{\WIS}{Wisdom} \newcommand{\CHA}{Charisma} % Defenses \newcommand{\AC}{AC} \newcommand{\FORT}{Fortitude defense} \newcommand{\REF}{Reflex defense} \newcommand{\WILL}{Will defense} \newcommand{\vs}{\emph{vs }} % Attacks \newcommand{\Burst}[1]{\textbf{Burst }{#1}} \newcommand{\Close}[1]{\textbf{Close }{#1}} \newcommand{\Melee}{\textbf{Melee }} \newcommand{\Ranged}[1]{\textbf{Ranged: }#1} \newcommand{\Personal}{\textbf{Personal}} % Description \newcommand{\action}[2]{\textbf{{#1} Action}\hspace{\stretch{1}}{#2}\hspace{\stretch{1}} \newline} \newcommand{\Special}[1]{\textbf{Special: }{#1}\newline} \newcommand{\attack}[1]{\textbf{Attack: }{#1}\\} \newcommand{\labels}[2]{\small{\textbf{{#1} \ding{70} {#2}}}\newline} \newcommand{\target}[1]{\textbf{Target: }{#1}\newline} \newcommand{\trigger}[1]{\textbf{Trigger: }{#1}\newline} \newcommand{\crit}[1]{\textbf{\small\emph{Critical Hit: }}{#1}\\} \newcommand{\freeding}{\hspace{1.3em}} \newcommand{\boxding}{\ding{114}} % 1 = row color; 2 = ding; 3 = title % 4 = Class + Level; 5 = Type; 6 = Qualifiers \newcommand{\boxcommon}[6]{% \noindent \begin{minipage}[t]{22em} \rowcolors{1}{LightGray}{} \begin{tabular}[t]{p{21em}} \rowcolor{#1} {\Large{\hspace{-1.3em}#2}} \textcolor{white}{\textbf{{#3}} \hspace{\stretch{1}}\small#4} \\ \labels{#5}{#6} } \newcommand{\boxend}{\end{tabular}\end{minipage}} \newenvironment{will}[3] { \boxcommon% {-red!75!green!50!blue} {\freeding} {#1} {#2} {At-Will} {#3} } { \boxend } \newenvironment{Encounter}[3] { \boxcommon% {red!85!blue} {\boxding} {#1} {#2} {Encounter} {#3} } { \boxend } \newenvironment{Daily}[3] { \boxcommon% {Gray} {\boxding} {#1} {#2} {Daily} {#3} } { \boxend } \newenvironment{chad}[3] { \boxcommon% {red!85!blue} {\freeding} %ding 1 for the space {#1} {#2} {Encounter} {#3} } { \boxend } \newcommand{\chaddesc}{% \subsection*{\ding{114} Channel Divinity} %You can use one of your channel divinity features once per encounter. Regardless of how many different uses for Channel Divinity you know, you can use only one. \\\\ } \newcommand{\ItemboxHero}{% \noindent \begin{tabular}[t]{l r} Daily Item Powers Per Day: & {\large \boxding}\\ Per Milestone: & {\large \boxding\ / \boxding\ / \boxding\ / \boxding}\\ \end{tabular} } \newcommand{\ItemboxParagon}{% \noindent \begin{tabular}[t]{l r} Daily Item Powers Per Day: & {\large \boxding\ / \boxding}\\ Per Milestone: & {\large \boxding\ / \boxding\ / \boxding\ / \boxding}\\ \end{tabular} } \newcommand{\ItemboxEpic}{% \noindent \begin{tabular}[t]{l r} Daily Item Powers Per Day: & {\large \boxding\ / \boxding\ / \boxding}\\ Per Milestone: & {\large \boxding\ / \boxding\ / \boxding\ / \boxding}\\ \end{tabular} } \newenvironment{Item}[3] { \boxcommon% {Dandelion} {\boxding} {#1} {#2} {Daily} {#3} } { \boxend } \newenvironment{Item*}[3] { \boxcommon% {Dandelion} {\freeding} {#1} {#2} {At-Will} {#3} } { \boxend } \newenvironment{hit}{\textbf{Hit: }}{\newline} \newenvironment{miss}{\textbf{Miss: }}{\newline} \newenvironment{sustain}[1]{\textbf{Sustain {#1}: }}{\newline} \newenvironment{effect}{\textbf{Effect: }}{\newline} % Rituals \newcommand{\rit}[1]{\subsubsection*{{#1}}} \newcommand{\lev}[2]{\textbf{Level: }{#1}\hspace{3em}\textbf{Component Cost: }{#2}GP\\} \newcommand{\cat}[2]{\textbf{Category:} {#1}\hspace{3em}\textbf{Market Price: }{#2}GP\\} \newcommand{\tim}[2]{\textbf{Time: }{#1}\hspace{3em}\textbf{Key Skill: }{#2}\\} \newcommand{\dur}[1]{\textbf{Duration: }{#1}\\}