2 TADS questions


3 Jun 1995 13:02:28 GMT

So I'm running out of easy stuff to code in my next game, and am forced
to turn to the difficult parts:

1) I want to have an action by the player move an item into a hidden
location (i.e., under something else). But as I understand it, TADS has
to initialize the whole hiddenItem class at the beginning of play, so I'm
not sure it would work to just change its underLoc property. (And if it
has an underLoc, location should be nil?)

And before you start complaining, the player should be aware of where the
object is going, so it wouldn't be an "I already looked there once!" puzzle.

2) I want to have an actor who takes anything dropped on the ground in
certain locations. Unfortunately, there are always going to be two
objects in those locations that it shouldn't take: itself, and the
player. So I can't just do self.location.contents.moveInto(self).

Any suggestions would be appreciated.

Neil deMause
http://www.echonyc.com/~wham/neild.html