In the example below you can see that both environments get the same caption.
How to prevent this? You will get the same result if you use an other package like amsthm
, theorem
or thmtools
.
\setcounter{errorcontextlines}{999}
\documentclass{scrartcl}
\usepackage{ntheorem,xcolor}
\def\tempA{Game}
\newtheorem{game}{\color{red}\bfseries\tempA}
\def\tempA{Example}
\newtheorem{example}{\color{blue}\bfseries\tempA}
\begin{document}
\begin{example}
Test
\end{example}
\vspace*{2em}
\begin{game}
Test
\end{game}
\end{document}