Skip to content
Snippets Groups Projects
Verified Commit 2028bcf4 authored by Malin Freeborn's avatar Malin Freeborn
Browse files

allow easy random stats

parent 748c8127
No related branches found
No related tags found
No related merge requests found
......@@ -113,7 +113,6 @@
{\ifnum\value{\s}>0 \s~\arabic{\s}, \fi}
}
\newcommand\traits[7]{%
\clean%
\randomize%
......@@ -517,11 +516,15 @@
%%
%
\newcommand{\body}[3]{%
\setcounter{Strength}{#1}\setcounter{Dexterity}{#2}\setcounter{Speed}{#3}%
\ifltxcounter{#1}{\setcounter{Strength}{\value{#1}}}{\setcounter{Strength}{#1}}%
\ifltxcounter{#2}{\setcounter{Dexterity}{\value{#2}}}{\setcounter{Dexterity}{#2}}%
\ifltxcounter{#3}{\setcounter{Speed}{\value{#3}}}{\setcounter{Speed}{#3}}%
}
\newcommand{\mind}[3]{%
\setcounter{Intelligence}{#1}\setcounter{Wits}{#2}\setcounter{Charisma}{#3}%
\ifltxcounter{#1}{\setcounter{Intelligence}{\value{#1}}}{\setcounter{Intelligence}{#1}}%
\ifltxcounter{#2}{\setcounter{Wits}{\value{#2}}}{\setcounter{Wits}{#2}}%
\ifltxcounter{#3}{\setcounter{Charisma}{\value{#3}}}{\setcounter{Charisma}{#3}}%
}
\newtoggle{snapCaster}
......@@ -900,9 +903,10 @@
%%% = Attack (TN) * Dam + max((spd-hef),mp)^2
\setcounter{attackXPtotal}{\value{att}}%
\multiply\value{attackXPtotal} by \value{damage}%
\addtocounter{Speed}{-\value{heft}}%
\ifnum\value{Speed}>\value{mp}%
\setcounter{enc}{\value{Speed}}%
\setcounter{gold}{\value{Speed}}%
\addtocounter{gold}{-\value{heft}}%
\ifnum\value{gold}>\value{mp}%
\setcounter{enc}{\value{gold}}%
\else%
\setcounter{enc}{\value{mp}}%
\fi%
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment