diff --git a/bind.sty b/bind.sty index 11073927e423a80d12ff3140bc4280bf99defc52..461647fa1deb39ac289773b11ae0f31c0495ccff 100644 --- a/bind.sty +++ b/bind.sty @@ -298,7 +298,7 @@ bookmarks=true]% \renewcommand{\mannerism}{#4} \renewcommand{\archetype}{#5} } -\newcommand{\T}{\opposition\settoggle{team}{false}} % groups +\newcommand{\T}{\opposition\settoggle{team}{true}} % groups \newcommand{\M}{\mars} % male \newcommand{\F}{\venus} % female \newcommand{\E}{\mercury} % blood casters @@ -593,6 +593,4 @@ Roll & Result \\ & \ding{111} & \ding{111} & \ding{111} \\ } - \newcommand{\longline}{\line(1,0){340}\par\vspace{.2cm}} - diff --git a/example.tex b/example.tex index 1f1ceb173a1a38f5168928e6ab72d09ade4d5a7d..0163c05da397ebb39d498eaa576ae2002b64fcb2 100644 --- a/example.tex +++ b/example.tex @@ -146,6 +146,8 @@ With a little study, you can summon dozens of monsters, including {\tt\textbacks \subsection{Humanoids} +\goblin[\npc{\N}{Random Goblin}] + \goblin \goblin diff --git a/monsters.sty b/monsters.sty index 59054c13a796f0600e1846654305a971c61375d3..8340c2ca51864662e1b034eae5416473cdb4e381 100644 --- a/monsters.sty +++ b/monsters.sty @@ -29,38 +29,48 @@ } \newcommand{\lootMagic}{% -\iftoggle{bestiarychapter}{}% - {\iftoggle{team}{}{\ifnumcomp{\value{r2}}{>}{1}{% - \ifodd\value{r3}% - \ifodd\value{r4}% - \ifodd\value{r3b}% - Townmaster's Hat\else% - Deck of Cards% - \fi% + \iftoggle{team}{% + Mana stone holding 2 MP + }{% + \iftoggle{bestiarychapter}{}% + {\iftoggle{team}{}{\ifnumcomp{\value{r2}}{>}{1}{% + \ifodd\value{r3}% + \ifodd\value{r4}% + \ifodd\value{r3b}% + Townmaster's Hat% + \else% + Deck of Cards% + \fi% + \else% + Wild Seeds\fi% \else% - Wild Seeds\fi% - \else% - \ifodd\value{r2b}% - Bag of Holding% + \ifodd\value{r2b}% + Bag of Holding% + \else% + Taming Flute% + \fi% + \fi}% + {\ifodd\value{r3}% + \ifodd\value{r4}% + Portal Scroll% + \else% + Sleeping Dust% + \fi% \else% - Taming Flute% - \fi% - \fi}% - {\ifodd\value{r3}% - \ifodd\value{r4}% - Portal Scroll\else% - Sleeping Dust% - \fi% - \else% - \ifodd\value{r2b}% - \ifnum\value{dr}>0% - Ring of Asphyxiation\else% - Ghost Shield% - \fi% - \else% - Bag of Tricks% - \fi% - \fi}}}} + \ifodd\value{r2b}% + \ifnum\value{dr}>0% + Ring of Asphyxiation% + \else% + Ghost Shield% + \fi% + \else% + Bag of Tricks% + \fi% + \fi} + } + } + } +} \newcommand{\lootJewellery}{% \iftoggle{bestiarychapter}{jewellery worth \ifodd\value{r2}$3D6$sp\else$1D6+2$gp\fi}% @@ -1168,7 +1178,7 @@ Academics~1, \ifodd\value{page} Crafts~\arabic{r2}, \else \fi Deceit~1, \ifodd\v {} } -\newcommand{\humanarcher}[1][\npc{\M}{\arabic{r12} Archers}]{ +\newcommand{\humanarcher}[1][\npc{\M\T}{\arabic{r12} Archers}]{ #1 \randomtwo \randomtwoB @@ -1186,7 +1196,14 @@ Academics~1, \ifodd\value{page} Crafts~\arabic{r2}, \else \fi Deceit~1, \ifodd\v \else% \knacks{\mightydraw} \fi}% SKILLS -{\longbow, dagger, \ifodd\value{r2}\partialleather, \lootMedium\fi}% EQUIPMENT +{\longbow, dagger, \ifodd\value{r2}\partialleather, \lootMedium\fi% +\iftoggle{team}{}% + {% + \ifnum\value{r12}<4% + , Spider arrows.% + \fi% + }% +}% EQUIPMENT {} } @@ -1240,27 +1257,32 @@ Academics~1, \ifodd\value{page} Crafts~\arabic{r2}, \else \fi Deceit~1, \ifodd\v {1}% WITS {\arabic{r3}}}% CHARISMA {0}% DR -{\arabic{r2}}% COMBAT +{\arabic{age}}% COMBAT {Academics~\ifodd\thepage\arabic{r2}\else\arabic{r3b}\fi, Empathy~\arabic{enc}, Deceit~\ifodd\thepage 2\else 1\fi, Performance~\ifodd\thechapter 2\else 1\fi% -\ifnum\value{r3}>2 - \ifnum\value{r12}>6 - \Path{Song}{\ifodd\value{r3b}% - Enchantment% - \else% - Aldaron% - \fi~% - \arabic{r4}, % - \ifodd\value{r12}% - Fate \arabic{enc}% - \fi % - \ifodd\value{gold}% - \addtocounter{r2b}{1}% - Illusion \arabic{r2b}% - \fi} +\iftoggle{team}{}% +{% + \ifnum\value{r3}>2 + \ifnum\value{r12}>6 + \Path{Song}{% + \ifodd\value{r3b}% + Enchantment% + \else% + Aldaron% + \fi~% + \arabic{r4}, % + \ifodd\value{r12}% + Fate \arabic{enc}% + \fi % + \ifodd\value{gold}% + \addtocounter{r2b}{1}% + Illusion \arabic{r2b}% + \fi} + \fi + \else \fi -\else -\fi}% SKILLS +}% +}% SKILLS {\ifodd\value{r3}\rapier% \else% \Dagger% @@ -1481,7 +1503,7 @@ Academics~1, \ifodd\value{page} Crafts~\arabic{r2}, \else \fi Deceit~1, \ifodd\v %%%%%%%%%% NURA %%%%%%%%%% -\newcommand{\goblin}[1][\npc{\M\N}{\arabic{r12} Goblins}]{ +\newcommand{\goblin}[1][\npc{\M\N\T}{\arabic{r12} Goblins}]{ #1 \randomtwo \randomtwoB @@ -1509,8 +1531,10 @@ Academics~1, \ifodd\value{page} Crafts~\arabic{r2}, \else \fi Deceit~1, \ifodd\v \Dagger% \fi% \fi% -\ifnum\value{r4b}=4% - , lock picking set% +\ifodd\value{r3b}% + \iftoggle{team}{}{ + , lock picking set% + } \fi% .}% EQUIPMENT {} @@ -1558,6 +1582,7 @@ Academics~1, \ifodd\value{page} Crafts~\arabic{r2}, \else \fi Deceit~1, \ifodd\v \addtocounter{age}{-1} \randomthreeB \randomfour + \randomfourB \person{-2}% STRENGTH {\arabic{r3}}% DEXTERITY {1}% SPEED @@ -1568,7 +1593,11 @@ Academics~1, \ifodd\value{page} Crafts~\arabic{r2}, \else \fi Deceit~1, \ifodd\v {\arabic{age}}% AGGRESSION {Projectiles~\arabic{r2}, \ifodd\value{r3} Deceit\else Athletics\fi~\arabic{r3}, Medicine~\arabic{r2}, Stealth~1, Tactics~2 \Path{Nura}{Invocation~\arabic{r3}, Necromancy~\arabic{r3b}, Saurecanta~\arabic{r4}}}% SKILLS -{\Dagger\ifodd\value{r4}, torch\fi}% EQUIPMENT +{\Dagger\ifodd\value{r4}, torch\fi% +\ifnum\value{r4b}=4% + , \lootMagic +\fi% +}% EQUIPMENT {\mana{4}} }