\documentclass[a4paper]{article}
\input{star-wars-formatting.sty}

\begin{document}
  \input{talent trees/ace.tex}
  % \input{talent trees/bounty hunter.tex}
  % \input{talent trees/clone soldier.tex}
  % \input{talent trees/colonist.tex}
  \input{talent trees/commander.tex}
  % \input{talent trees/consular.tex}
  \input{talent trees/diplomat.tex}
  \input{talent trees/engineer.tex}
  % \input{talent trees/explorer.tex}
  % \input{talent trees/guardian.tex}
  % \input{talent trees/hired gun.tex}
  % \input{talent trees/jedi.tex}
  % \input{talent trees/mystic.tex}
  % \input{talent trees/seeker.tex}
  % \input{talent trees/sentinel.tex}
  % \input{talent trees/smuggler.tex}
  \input{talent trees/soldier.tex}
  \input{talent trees/spy.tex}
  % \input{talent trees/technician.tex}
  % \input{talent trees/warrior.tex}
  % \input{talent trees/universal.tex}

  \ifthenelse{\equal{\undeffed}{}}{}{
    \newpage%
    \tn%
    {\huge Undefined talents (\arabic{undeffed})}
    \large\undeffed{}
  }
\end{document}
