\thispagestyle{empty}
\begin{tcbposter}[
  coverage = {
      spread,
  },
  poster   = {
    showframe=false,
    columns=30,
    rows=18
  },
  boxes    = {
    enhanced standard jigsaw,
    boxsep=2pt,
    left=1pt,
    right=1pt,
    boxrule=.6mm,
    colback=white,
    drop fuzzy shadow,
   }
]

% reset damage so it calculates properly
\setcounter{damage}{0}
\setcounter{weaponBonus}{0}
\setcounter{knacks}{0}

%----
  \posterbox[
    remember, blankest, halign=center,valign=center,
  ]{name=title,column=1,span=29}{
    \vspace{.8cm}
    \begin{tabularx}{\linewidth}{lXlXlX}
      \hiderowcolors
      \textbf{Name:} & \iftoggle{examplecharacter}{\sffamily\name}{\hrulefill} &
      \textbf{Player:} & \hrulefill &
      \textbf{Code:} & \iftoggle{examplecharacter}{\sffamily\code}{\hrulefill}
      \\
      \\

      \textbf{Race:} & \iftoggle{examplecharacter}{\sffamily\race}{\hrulefill} &
      \textbf{Concept:} & \iftoggle{examplecharacter}{\sffamily\concept}{\hrulefill} &
      \textbf{Rank:} & \iftoggle{examplecharacter}{\sffamily\rank}{\hrulefill} \\
    \end{tabularx}
}

%----
  \posterbox[
    adjusted title=Attributes \hint{ 5 | 10 / 20 / 30 / 50 },
    remember,
  ]{name=attributes,column=1,row=3,span=10,rowspan=4}{
    \hspace{-0.5em}
    \renewcommand{\arraystretch}{1.5}
    \addtolength{\tabcolsep}{-0.53em}
    \begin{tabularx}{\linewidth}{Ycccccccccc}
    & \tiny{-4} & \tiny{-3} & \tiny{-2} & \tiny{-1} & \tiny{0} & \tiny{1} & \tiny{2} & \tiny{3} & \tiny{4} \\[-5pt]
    \showAttribute{Strength}
    \showAttribute{Dexterity}
    \showAttribute{Speed}
    \showAttribute{Intelligence}
    \showAttribute{Wits}
    \showAttribute{Charisma}[-8pt]
    \hspace{2em}\footnotesize{\dicef{7}} & & \tiny{2} & \tiny{3} & \tiny{4--5} & \tiny{6--8} & \tiny{9--10} & \tiny{11} & \tiny{12} & \\
    \end{tabularx}
  }

%----

  \posterbox[
    remember, blankest,interior engine=path,valign=center,
  ]{name=gumption,column=1,row=9,span=4,rowspan=8}{

    \begin{tikzpicture}[
circle label/.style = {
        postaction={
            decoration={
                text along path,
                text = {#1},
                text align=center,
                reverse path,
            },
        decorate,
    }
    }
    ]
     \path[circle label={FP = XP / 10 + Charisma}] (-1,3) arc (-90:360-90:1.1);
      \draw[dotted] (-1,4) circle (1) node [align=left,text width=3.5em] {};
     \path[circle label={HP = 6 + Strength}] (-1,0.6) arc (-90:360-90:1.1);
      \draw[dotted] (-1,1.7) circle (1);
     \path[circle label={Fatigue Points}] (-1,-2) arc (-90:360-90:1.1);
      \draw[dotted] (-1,-0.9) circle (1);
     \path[circle label={MP = 3 x spheres}] (-1,-4.6) arc (-90:315-45:1.1);
      \draw[dotted] (-1,-3.5) circle (1) node [align=left] {};
     \path[circle label={Encumbrance}] (-1,-7.2) arc (-90:315-45:1.1);
      \draw[dotted] (-1,-6.1) circle (1) node [align=left] {};
    \end{tikzpicture}

  }
%----
  \posterbox[adjusted title={M\^{e}l\'ee \hint{ 10 / 20 / 40 }},
  remember,
  ]{name=melee,column=11,row=3,span=8,rowspan=4}{
    \renewcommand{\arraystretch}{1.4}
    \begin{tabularx}{\linewidth}{Xr@{}}
      \hiderowcolors
      \ifnum\value{Brawl}>0
        \skill{Brawl}
      \else
        \emptySkill
      \fi
      \ifnum\value{Combat}>0
        \skill{Combat}
      \else
        \emptySkill
      \fi
      \ifnum\value{Projectiles}>0
        \skill{Projectiles}
      \else
        \emptySkill
      \fi
      \ifnum\value{Air}>0
        \skill{Air}
      \else
        \emptySkill
      \fi
      \ifnum\value{Fire}>0
        \skill{Fire}
      \else
        \emptySkill
      \fi
      \ifnum\value{Earth}>0
        \skill{Earth}
      \else
        \emptySkill
      \fi
      \ifnum\value{Water}>0
        \skill{Water}
      \else
        \emptySkill
        \emptySkill
      \fi
    \end{tabularx}
  }

%----

  \posterbox[
  adjusted title=Items to Hand,
  remember,
  ]{name=armoury,
  column=5,
  row=9,
  span=22,
  rowspan=3}{
    \renewcommand{\arraystretch}{1.5}
    \vspace{-1em}
    \begin{tabularx}{\linewidth}{p{.37\textwidth}YYYY}
      \hiderowcolors
      \setlength{\parskip}{3mm}
      \textbf{Weapon} & \textbf{Bonus} & \textbf{Damage} & \textbf{\Glsentrytext{ap} Cost} & \textbf{Weight} \\
      
    \iftoggle{examplecharacter}{
      \hline
        \ifdefempty{\characterWeapon}{
          \\
          \\
        }{
          \sffamily\characterWeapon & \sffamily\arabic{weaponBonus} & \sffamily\arabic{damage} & \sffamily\arabic{heft} & \sffamily\arabic{weight} \\
        }
    }{
      \Repeat{2}{
        \hspace{3em} &
        \Repeat{3}{\statCircle} &
        \Repeat{3}{\statCircle} &
        \Repeat{3}{\statCircle} &
        \Repeat{5}{\Large\Square} \\
      }
    }
    \end{tabularx}

    \vspace{1em}
    \begin{tabularx}{\linewidth}{p{.4\textwidth}YYY}
      \hiderowcolors
      \textbf{Armour} & \textbf{\Glsentrytext{dr}} & \textbf{Covering} & \textbf{Weight} \\
      \iftoggle{examplecharacter}{
        \hline
        \ifdefempty{\characterArmour}{}{
          \sffamily\characterArmour & \sffamily\arabic{armourDR} & \sffamily\arabic{covering} & \sffamily\arabic{weight} \\
        }
      }{
        \hspace{3em} &
        \Repeat{5}{\statCircle} &
        \Repeat{5}{\statCircle} &
        \Repeat{5}{\Large\Square} \\
      }
    \end{tabularx}
  }

%-----
  \posterbox[
    blankest,interior engine=path, halign=center,valign=center,
    opacityback=0,
    remember,
  ]
  {name=derived,column=2,row=6,span=18,rowspan=4}{
    \addtolength{\tabcolsep}{-0.2em}
    \begin{tabularx}{\linewidth}{XXXX}
      \hiderowcolors
      \textbf{\Glsentrytext{dr} / Covering} & \textbf{\Glsentrytext{ap}} &\textbf{Attack} & \textbf{Damage} \\
      \vspace{3em}
      \\
      \\
      \\
      \iftoggle{examplecharacter}{\sffamily\arabic{dr}}{\underline{\hspace{2em}/\hspace{2em}}}
      &
      \iftoggle{examplecharacter}%
      {%
        \addtocounter{Speed}{3}%
        \sffamily\arabic{Speed}%
      }%
      {\underline{\hspace{2em}}}
      &
      \iftoggle{examplecharacter}{\sffamily}{}2D6%
      \iftoggle{examplecharacter}% Bonus
      {%
      \addtocounter{Combat}{\value{Dexterity}}%
      \addtocounter{Combat}{\value{weaponBonus}}%
        \sffamily\absNum{Combat}%
      }%
      {\underline{\hspace{2em}}} &
      \iftoggle{examplecharacter}% Damage
      {%
        \addtocounter{damage}{\value{Strength}}%
        \addtocounter{damage}{4}%
        \sffamily\dmg{damage}%
      }%
      {
        \underline{\hspace{1em}} D6+\underline{\hspace{1.5em}}
      }
      \\
      \tiny (by Armour) & \tiny 3 + Speed & \tiny 2D6 + Dex \par + Combat \par + Weapon Bonus & \tiny 1D6 + Strength \par + Weapon  \\
    \end{tabularx}
  }

%----

    \setcounter{track}{7}
    \posterbox[
    blankest,
    remember,
    ]{name=track,column=27,row=3,span=2.8,rowspan=15.8}{ 
      {\large
        \vspace{1em}
        \Repeat{14}{\tracker}
      }
      }


%-----
  \posterbox[
  adjusted title={Skills \hint{ 5 / 10 / 15 }},
  remember,
  ]
  {name=skills,column=19,row=3,span=8,rowspan=6}{
    \renewcommand{\arraystretch}{1.2}
    \begin{tabularx}{\linewidth}{Xr@{}}

      \hiderowcolors
      \skill{Academics}
      \skill{Athletics}
      \skill{Caving}
      \skill{Crafts}
      \skill{Deceit}
      \skill{Empathy}
      \skill{Medicine}
      \skill{Performance}
      \skill{Larceny}
      \skill{Seafaring}
      \skill{Stealth}
      \skill{Tactics}
      \skill{Vigilance}
      \skill{Wyldcrafting}
      \emptySkill
      \emptySkill

    \end{tabularx}
  }


%----
  \posterbox[
    adjusted title=Backpack \hint{\glsentrytext{tn} to remove: \weeline},
    remember,
  ]
  {name=equipment,
    column=6,
    row=15,
    span=23,
    rowspan=3.7,
  }{

    \iftoggle{examplecharacter}{\sffamily\characterEquipment\vspace{12em}}{
      \vspace{1.3em}
      \Repeat{5}{
        {\Repeat{5}{\Square}\hbox to .95\textwidth{\leaders\hbox to 30pt{\hss . \hss}\hfil}\vspace{1em}}
      }
    }
  }

%---

  \posterbox[
    adjusted title=Abilities \& Conditions,
    remember,
  ]
  {name=abilities,
  column=5,
  row=12,
  span=11,
  rowspan=3}{
    \iftoggle{examplecharacter}{}{
      \lineDots[4]
    }
  }

  \posterbox[
    adjusted title=Knacks \hint{ 5 / 10 / 15/ 20 },
    remember,
  ]
  {name=knacks,
  column=16,
  row=12,
  span=11,
  rowspan=3}{

  \setlength{\parskip}{0mm}

    \iftoggle{examplecharacter}{
      \sffamily\knackOne

      \sffamily\knackTwo
    }{
      \lineDots[4]
    }
  }

%------
  \posterbox[
    adjusted title=XP,
    remember,
  ]
  {name=xp,
  column=1,
  row=17,
  span=5,
  rowspan=1.7}{

  \setlength{\parskip}{0mm}
    \small Total:
    \iftoggle{examplecharacter}{\textcolor{gray}{50}}{}
    \tcblower
    \small Unspent:
  }


  \posterbox[
    remember, blankest, halign=center,valign=center,
  ]{name=money,column=6,span=10,row=18,rowspan=1}{
    \vspace{-1.1em}
    \begin{tabularx}{\hsize}{llX}
      \glsentryshortpl{cp}\weeline &
      \glsentryshortpl{sp}\weeline &
      \glsentryshortpl{gp}\weeline \\
    \end{tabularx}
  }

%------
\csComments

\end{tcbposter}
