2013-06-18 23:21:29 +03:00
|
|
|
title = Counters Example
|
|
|
|
= Introduction
|
|
|
|
This example gamebook shows how to use counters.
|
|
|
|
* 1 start
|
|
|
|
This is where the gamebook starts.
|
|
|
|
We have counters for [count life]Life Points[/count] and for
|
|
|
|
[count gold]Gold[/count]. You start the adventure with
|
2013-06-24 00:58:48 +03:00
|
|
|
[set life]10[/set] Life Points and [set gold]12[/set] Gold.
|
|
|
|
You can never have less than [min gold]0[/min] Gold. FIXME need to
|
2013-06-18 23:21:29 +03:00
|
|
|
figure out best syntax for death when life points go below 1.
|
|
|
|
Go to [[getgold]] to get more Gold or [[dangerous]] to lose some Life Points.
|
|
|
|
|
|
|
|
* getgold
|
2013-06-24 00:58:48 +03:00
|
|
|
Congratulations, you found [inc gold]2[/gold] Gold.
|
|
|
|
If you have less than [lessthan life]1[/lessthan] Life Points,
|
|
|
|
turn to [[auto death]].
|
2013-06-18 23:21:29 +03:00
|
|
|
You can go to [[dangerous]] to lose some life or to [[losegold]] to drop
|
2013-06-24 00:58:48 +03:00
|
|
|
some gold. If you have at least [atleast gold]16[/atleast] Gold you
|
2013-06-18 23:41:50 +03:00
|
|
|
can turn to [[hurrah]]. If you have even more than
|
2013-06-24 00:58:48 +03:00
|
|
|
[morethan gold]16[/morethan] Gold you can turn to [[rich]].
|
2013-06-18 23:21:29 +03:00
|
|
|
|
|
|
|
* dangerous
|
2013-06-24 00:58:48 +03:00
|
|
|
You lose [dec life]1[/dec] Life Points.
|
2013-06-18 23:21:29 +03:00
|
|
|
You can go to [[getgold]] to get some Gold.
|
|
|
|
|
|
|
|
* losegold
|
2013-06-24 00:58:48 +03:00
|
|
|
You drop [dec gold]5[/dec] Gold. It should not be possible to
|
2013-06-18 23:21:29 +03:00
|
|
|
go below 0. Then go on to get gold at [[getgold]] or lose life at [[dangerous]].
|
2013-06-18 23:41:50 +03:00
|
|
|
|
|
|
|
* rich
|
|
|
|
You have more than 16 Gold. How nice.
|
|
|
|
Go back to get some more at [[getgold]].
|
|
|
|
|
|
|
|
* hurrah
|
|
|
|
You have at least 16 gold. Go back to get some more at [[getgold]].
|
|
|
|
|
|
|
|
* death
|
|
|
|
Less than 1 Life Point means the adventure ends now.
|