Re: Setting it/him, etc in Inform


13 Aug 1995 15:09:27 GMT

Ralf <mauer@csv.warwick.ac.uk> wrote:
> Does anyone know how to set the object that it or he refer to? For
> instance, in my game, a guard enters the room, and I would like to
> make him refer to the guard, without the player first having to
> mention him. Is this possible?

The objects pointed to by `it', `him' and `her' are stored in the
variables `itobj', `himobj' and `herobj'. The function call
`ResetVagueWords(obj)' sets the most appropriate of these variables to
`obj' (i.e., `itobj' if `obj' is inanimate, `herobj' if `obj' is animate
and female, `himobj' otherwise).

--
Gareth Rees