Re: Setting it/him, etc in Inform
14 Aug 95 10:45:51 BST
In article <40ihd5$ogd@holly.csv.warwick.ac.uk>, mauer@csv.warwick.ac.uk (Ralf) writes:
> 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?
>
Try
himobj = the_guard;
Similarly for itobj and herobj. This practice is entirely encouraged -
it isn't to be regarded as messing about with the parser's internals.
Indeed, changing itobj is often good practice, especially when one
object (a pumpkin) has been transformed into another (a carriage).
Graham Nelson