Re: Inform Scoring


17 Jun 1995 08:58:31 GMT

FunkyJester <courtj3@eworl.com> wrote:
> I'm programming a game using Inform on a mac, and I want to create a
> scoring system somewhat like Bureaucracy's- The player starts with,
> say, 50 points, and certain (dumb) actions cause the points to go
> down. If it hits 0, the player dies. I also want to customize the
> status line so it says something other than "score".

Scoring: the score is stored in the variable `score', so if you want to
start with 50 points, put `score = 50' in Initialise, and if you want to
make the score go down, use `score = score - 5'. Making the player die
when score hits 0: write a `TimePasses' routine (which is run at the end
of every turn) that does the check. Status line: take a look in the
Parser.h header file at the `DrawStatusLine' routine, which can be
`Replace'd with your own version.

--
Gareth Rees