Re: 2 TADS questions


5 Jun 1995 16:49:50 GMT

In article <3qtssm$74i@subway.echonyc.com>,
Neil Demause <neild@echonyc.com> wrote:
>Thanks, all. Now there's just one problem to go:
>
>: 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?)

Well, the docs do say that it's not designed to have a player be able to put
stuff underneath the object during game play. Still, a quick code persual
suggests that you should just append the object onto the underLoc property
of the hider, and then set the object's location to nil, and that should work.
(It looks to me like the initialization part just figures out what objects
should be under it, and adds them to the list automatically.)

--

------------------------------------------------+-------------- The Grim Reaper ** scythe@u.washington.edu | Dan Shiovitz ** shiov@cs.washington.edu | Aude ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | Sapere _Music of the Spheres_ : Coming Nov '95 | ------------------------------------------------+--------------