Re: Referring to player in Inform


13 Aug 1995 15:07:22 GMT

Christopher E. Forman <ceforma@rs6000.cmp.ilstu.edu> wrote:
> I need to know of a simple modification to the Inform library that
> will allow players to refer to the character in the story by name
> (i.e., saying "EXAMINE JOHN" means the same as "EXAMINE ME.")

No modification of the library sources is necessary. Do something like
this:

[ PlayerParseName;
if (NextWord() == 'john') return 1;
return 0;
];

[ Initialise;
...
selfobj.parse_name = #r$PlayerParseName;
];

--
Gareth Rees