I understand that library 6/11 change removed the implicit ability to
address the direction objects (n_obj, s_obj, etc) as, say, "EXAMINE
NORTH WALL". I've worked out a partial solution and need some help
finishing it. WallObj is always in scope with the PC object. The PC
object is made the player at the beginning of Initialize().
Object WallObj "wall"
with
parse_name [ myname retval;
retval = 0;
myname = NextWord();
while (myname ~= nothing) {
retval++;
if (myname == 'north') {
retval++;
<<examine n_obj>>;
}
myname = NextWord();
}
return retval;
],
has scenery;
Object pc "me"
with name 'me' 'myself',
description "As good looking as...well...you haven't ever been
attractive, really.",
add_to_scope wallobj;
Now if I drop this code into Shadowgate, the following exchange results:
>examine north wall
It's a stone wall.
It's a stone wall.
You can't see any such thing.
>open skull
(the skull)
As if by magic, the skull rises, revealing an iron key nestled in a tiny
hollow.
>get key
(the iron key)
Taken.
>open door
(the wall)
That's not something you can open.
What am I doing wrong?
--
David Griffith
davidmy...@acm.org <--- Put my last name where it belongs