Re: Referring to player in Inform


Thu, 10 Aug 1995 12:06:59 -0400

ceforma@rs6000.cmp.ilstu.edu (Christopher E. Forman) writes:
> 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.")

Object newplay "yourself"
with description "As good-looking as ever.",
number thedark,
after $ffff, life $ffff, each_turn $ffff,
time_out $ffff, describe $ffff, capacity 100,
parse_name 0, short_name 0,
has concealed animate proper transparent;

[ Initialise
oldplayer;

oldplayer = player;

location = MeadowEdge;
move newplay to MeadowEdge; ChangePlayer(newplay);

remove oldplayer;

! rest of your initialization code...
];

This is exactly what I use in "Weather". Add a name property to
newplay and you should be set.

--Z

"And Aholibamah bare Jeush, and Jaalam, and Korah: these were the borogoves..."