mirror of
https://github.com/Oreolek/gamebookformat.git
synced 2024-06-26 03:41:04 +03:00
Also documented a couple of bugs related to cost and trade. Seems like that system needs some rethinking.
76 lines
1.9 KiB
TeX
76 lines
1.9 KiB
TeX
\documentclass[a5paper,onecolumn]{book}
|
|
|
|
\usepackage[utf8]{inputenc}
|
|
\usepackage[T1]{fontenc}
|
|
\usepackage[hidelinks]{hyperref}
|
|
\usepackage{graphicx}
|
|
|
|
\usepackage[top=3.3cm, bottom=3.3cm, left=2cm, right=2cm]{geometry}
|
|
\newif\ifpdf
|
|
\ifx\pdfoutput\undefined
|
|
\pdffalse
|
|
\else
|
|
\ifnum\pdfoutput=1
|
|
\pdftrue
|
|
\else
|
|
\pdffalse
|
|
\fi
|
|
\fi
|
|
|
|
\title{Gamebook}
|
|
\author{}
|
|
\date{}
|
|
|
|
\newcounter{sectionnr}
|
|
|
|
\begin{document}
|
|
|
|
\maketitle
|
|
|
|
\clearpage
|
|
|
|
\thispagestyle{empty}
|
|
|
|
\pagestyle{empty}
|
|
\subsection*{\begin{center} \textbf{Introduction} \end{center}}
|
|
|
|
|
|
\noindent
|
|
Testing trade of things. You can buy things using Gold of which you start with 100. You also have an Inventory. At start you carry a \textbf{sword}.
|
|
\vspace{1em}
|
|
|
|
Turn to 1 to begin.
|
|
\phantomsection
|
|
\refstepcounter{sectionnr}
|
|
\label{section1}
|
|
\subsection*{\begin{center} \textbf{1} \end{center}}
|
|
|
|
\noindent
|
|
You can buy a \textbf{shield} here for 50 Gold or a beautiful \textbf{gold ring} for only 75. There is also a \textbf{chain mail} costing 150. You can pick up some \textbf{spiderweb} for free. You can go to \textbf{\autoref{section4}} at a cost of 50. You can go on to the end at \textbf{\autoref{section2}}.
|
|
\vspace{1em}
|
|
\phantomsection
|
|
\refstepcounter{sectionnr}
|
|
\label{section2}
|
|
\subsection*{\begin{center} \textbf{2} \end{center}}
|
|
|
|
\noindent
|
|
It ends here. There is a \textbf{crown} here that you can trade for some spiderweb.
|
|
\vspace{1em}
|
|
\phantomsection
|
|
\refstepcounter{sectionnr}
|
|
\label{section3}
|
|
\subsection*{\begin{center} \textbf{3} \end{center}}
|
|
|
|
\noindent
|
|
This is somewhere else. Congratulations you have found 100 gold! Go back to \textbf{\autoref{section1}}.
|
|
\vspace{1em}
|
|
\phantomsection
|
|
\refstepcounter{sectionnr}
|
|
\label{section4}
|
|
\subsection*{\begin{center} \textbf{4} \end{center}}
|
|
|
|
\noindent
|
|
Now you have 50 less gold than you just had. You can go back to \textbf{\autoref{section1}}.
|
|
\vspace{1em}
|
|
\end{document}
|