Re: Inform floating objects--Help!


28 Feb 1995 09:29:50 GMT

Jim Newland <76461.2144@CompuServe.COM> wrote:
> I have a character in my game who is "found_in" both the inner room
> and outer room but is initially "absent." When the door is knocked on,
> it is given "open" and the character is given "~absent."
> Unfortunately, the parser doesn't seem to recognize this [...]

The reason for this is that floating objects are implemented by a
routine that shuffles them round to appear in the appropriate places,
namely MoveFloatingObjects() in VerbLib.h. This routine is activated by
the verb handler LookSub, so that's why typing "Look" causes the
floating objects to appear.

So the solution is to call MoveFloatingObjects() yourself when the
character appears.

--
Gareth Rees