diff --git a/monsters.tex b/monsters.tex index 191c33ae17ec8ae4ab6b35adc12e038bc61c5639..83b2f5e956819b1939154171e1530f64bdd55d8e 100644 --- a/monsters.tex +++ b/monsters.tex @@ -575,7 +575,7 @@ {1}%SPEED {{\arabic{age}}{2}{1}}%MENTAL ATTRIBUTES {0}{\ifodd\value{list}1\else2\fi}% - {\ifodd\thepage\else Projectiles, \arabic{age}\fi Academics \arabic{age}, Athletics 1, \ifodd \thechapter Crafts \arabic{age}\else Performance \arabic{age}\fi, Stealth 1, Survival 2, Vigilance \arabic{age}\Path{Blood \ifodd\thechapter\else \& Song\fi}{\setcounter{enc}{\value{age}}\addtocounter{enc}{2}Aldaron \arabic{enc}, \addtocounter{age}{1}Enchantment \arabic{age}}\addtocounter{age}{-1} \ifodd\thechapter\else Fate \arabic{enc}\fi, \ifodd\thepage Polymorph \arabic{age}\else Invocation \arabic{age}\fi}{\ifnumcomp{\value{enc}}{>}{-1}{\rapier, dagger, shortbow}{} % + {\ifodd\value{gold}\else Projectiles, \arabic{age}\fi Academics \arabic{age}, Athletics 1, \ifodd \thechapter Crafts \arabic{age}\else Performance \arabic{age}\fi, Stealth 1, Survival 2, Vigilance \arabic{age}\Path{Blood \ifodd\thechapter\else \& Song\fi}{\addtocounter{enc}{1} Aldaron \arabic{enc}, \addtocounter{age}{1}Enchantment \arabic{age}}\addtocounter{age}{-1} \ifodd\value{gold}\else Fate \arabic{random}\fi\addtocounter{gold}{1}, \ifodd\value{gold} Polymorph \arabic{age}\else Invocation \arabic{age}\fi}{\ifnumcomp{\value{list}}{>}{2}{\rapier, dagger, shortbow}{} % \ifnumcomp{\thechapter}{=}{\value{bestiarychapter}}{$3D6$sp worth of jewellery}{\ifnumcomp{\thechapter}{>}{3}{\multiply\value{gold} by \thepage \ifnumcomp{\value{gold}}{>}{100}{\divide\value{gold} by 100 \ifnumcomp{\value{enc}}{>}{4}{\arabic{gold} sp worth of earrings and bracelets}{random magical item}}{Ornamental dagger, worth \thepage sp}}{one necklace worth \thechapter sp}}}% {\multiply\value{age} by 2 \mana{\value{age}}} } @@ -854,6 +854,19 @@ {} } +\newcommand{\nurawoodspy}{ + \randomtwo\addtocounter{enc}{4}\addtocounter{random}{1} +\animal{\arabic{random}}% STRENGTH +{\arabic{enc}}% DEXTERITY +{3}% SPEED +{2}% WITS +{3}% DR +{\arabic{random}}% AGGRESSION +{Athletics 2, Stealth 4, Survival 2, Tactics 2}% SKILLS +{None}% ABILITIES +{} +} + \newcommand{\nurawolf}{ \animal{1}% STRENGTH {1}% DEXTERITY diff --git a/preamble.tex b/preamble.tex index edb6fa6b278ca4396172d043c3cbe94b36e3595e..dc872dbfd3a74a143695a530000a08ff3c08b835 100644 --- a/preamble.tex +++ b/preamble.tex @@ -228,14 +228,22 @@ Roll & Result \\ %%% Random Number by grabbing last page digit \newcounter{random} +\setcounter{random}{1} +\newcounter{increment} +\setcounter{increment}{1} \newcommand{\random}{ - \addtocounter{random}{\value{page}}\addtocounter{random}{1} - \multiply\value{random} by \value{chapter} + \addtocounter{random}{\value{page}} + \multiply\value{random} by \value{chapter}\addtocounter{random}{\value{increment}} + \whileboolexpr{ + test {\ifnumcomp{\value{random}}{>}{100}} + } + {\addtocounter{random}{-100}} \whileboolexpr{ test {\ifnumcomp{\value{random}}{>}{10}} } {\addtocounter{random}{-10}} + \addtocounter{increment}{1} } \newcommand{\randomthree}{