\newcommand{\lineDots}[1][1]{\vspace{1.5em}\Repeat{#1}{\hbox to \textwidth{\leaders\hbox to 30pt{\hss . \hss}\hfil}\vspace{1em}}}
\newcommand\race{}
\newcommand\concept{}
\newcommand\code{}
\newcommand\culture{}
\newcommand\rank{}

\newcommand\csComments{}

\newcounter{Strength}
\newcounter{Dexterity}
\newcounter{Speed}
\newcounter{Intelligence}
\newcounter{Wits}
\newcounter{Charisma}

\newcounter{Academics}
  \setcounter{Academics}{0}
\newcounter{Alchemy}
  \setcounter{Alchemy}{0}
\newcounter{Athletics}
  \setcounter{Athletics}{0}
\newcounter{Caving}
  \setcounter{Caving}{0}
\newcounter{Crafts}
  \setcounter{Crafts}{0}
\newcounter{Deceit}
  \setcounter{Deceit}{0}
\newcounter{Empathy}
  \setcounter{Empathy}{0}
\newcounter{Flight}
  \setcounter{Flight}{0}
\newcounter{Medicine}
  \setcounter{Medicine}{0}
\newcounter{Performance}
  \setcounter{Performance}{0}
\newcounter{Larceny}
  \setcounter{Larceny}{0}
\newcounter{Seafaring}
  \setcounter{Seafaring}{0}
\newcounter{Stealth}
  \setcounter{Stealth}{0}
\newcounter{Tactics}
  \setcounter{Tactics}{0}
\newcounter{Vigilance}
  \setcounter{Vigilance}{0}
\newcounter{Wyldcrafting}
  \setcounter{Wyldcrafting}{0}
\newcounter{Xenomology}
  \setcounter{Xenomology}{0}

\newcounter{Brawl}
  \setcounter{Brawl}{0}
\newcounter{Combat}
  \setcounter{Combat}{0}
\newcounter{Projectiles}
  \setcounter{Projectiles}{0}
\newcounter{Air}
  \setcounter{Air}{0}
\newcounter{Earth}
  \setcounter{Earth}{0}
\newcounter{Fire}
  \setcounter{Fire}{0}
\newcounter{Water}
  \setcounter{Water}{0}
\newcounter{Fate}
  \setcounter{Fate}{0}
\newcounter{Mind}
  \setcounter{Mind}{0}
\newcounter{Light}
  \setcounter{Light}{0}
\newcounter{Life}
  \setcounter{Life}{0}
\newcounter{Death}
  \setcounter{Death}{0}
\newcounter{Force}
  \setcounter{Force}{0}


\newcommand\characterWeapon{}
\newcommand\characterArmour{}
\newcommand\characterEquipment{}
\newcommand\knackOne{}
\newcommand\knackTwo{}

\newcommand\charSpellList{}


%%%%% Show Dots Commands %%%%%

\newcounter{statCircles}
\newcounter{statDots}

\newcommand\statCircle[1][\large]{#1\textbf{\Circle}}
\newcommand\statDot[1][\large]{#1\textbf{\CIRCLE}}
\newcommand\currentCircle{}
\newcommand{\weeline}{\line(1,0){30} \hspace{.6cm}}

\newcommand\showAttribute[1]{
  \setcounter{track}{-4}%
  {#1}%
  \whileboolexpr{%
    test {\ifnumcomp{\value{track}}{<}{5}}%
  }%
  {%
    &%
    \ifnum\value{track}>0%
      \ifnum\value{track}>\value{#1}%
        \statCircle%
      \else%
        \statDot%
      \fi%
    \else%
      \ifnum\value{track}=0%
        \raisebox{2pt}{\statDot[\footnotesize]}%
      \else%
        \ifnum\value{#1}>\value{track}%
          {\Large\Square}%
        \else%
          {\Large\XBox}%
        \fi%
      \fi%
    \fi%
    \stepcounter{track}%
  }%
  \\%
}



\newcommand{\skill}[1]{
  \setcounter{statCircles}{3}
  \addtocounter{statCircles}{-\value{#1}}
  #1 \dotfill &
  \Repeat{\value{#1}}{\statDot}\Repeat{\value{statCircles}}{\statCircle}\\
  \stepcounter{track}
}

\newcommand\emptySkill{%
    \dotfill & %
    \Repeat{3}{\statCircle}%
    \\%
}

\newcommand\setXtoLowestOf[3]{%
  \ifnum\value{#2}<\value{#3}%
    \setcounter{#1}{\value{#2}}%
  \else%
    \setcounter{#1}{\value{#3}}%
  \fi%
}

\newcommand\setHighSpheres{
  \setXtoLowestOf{Mind}{Water}{Fate}
  \setXtoLowestOf{Death}{Air}{Fate}
  \setXtoLowestOf{Light}{Air}{Fire}
  \setXtoLowestOf{Force}{Fire}{Earth}
  \setXtoLowestOf{Life}{Earth}{Water}
}

