% LaTeX/Central/badges.tex
%
% Badges are entirely automated, based on the information in 
% LaTeX/Lists/characters.tex and players.tex (see those files' comments).

% If you want to change how badges look, play with LaTeX/Styles/badges.sty.

\documentclass{game}
\usepackage{badges}

% Mostly we want to produce a badge for each entry in Lists/characters.tex;
% since badges.sty defines \doname to make a badge, we'll just call
% \name on each character.

% We also want to get a page of ghost badges first, so we use
% a silly but in this case harmless trick relying on how game.cls magic works.
% This will also make an extra ghost badge at the very end, but oh well.
%
\newchar\GHOST{}
\player\GHOST{}
\expandafter\def\csname\string\GHOST.player\endcsname{\reallybig OBSERVER}
\expandafter\def\csname\string\GHOST.ghost\endcsname{yeah}

\begin{document}

\pageof{\name{\GHOST}}

\renewcommand\eachcharaction[1]{\name{#1}}  % what to do for each character
\eachchar  % do it

\end{document}
