Digging in the ground in TADS (using WorldClass)


28 May 1995 19:10:30 GMT

Hi,

I'm just sitting here fiddling around looking at WorldClass, and I am
trying to make a room where I can dig in the ground, but things don't
work like I want to.

I get the response (from the code below):

>dig in ground
(with the thin, skinny hands)

>

Whereas I would like to have the response:

"You find a stone"

I don't see why I don't get this. Can anyone explain to me what I do
wrong? (I hope so :-)

Here's the relevant part of the code:
(ldesc, sdesc etc. deleted)

------

I have a room like this:

oldtemple: Outside
sdesc = "An old temple"
<...>
ground = softground
;

With softground being a subclass of Ground:

softground: Ground
verDoDigwith(actor, io) = {}
location = oldtemple
<...>
doDig(actor) =
{
"You 0.000000ind a stone";
pass doDig;
}
;

I have also defined my hands like this:

hands: Part
<...>
partof = Me
isvisible(Me) = true
istouchable(Me) = true
istakeable(Me) = true
verIoDigwith(actor) = {}
;

Jarle.

-- 
---------------------------------------------------------------------
Nuke the Whales !            |      Jarle Brinchmann,   
                             |  Email: Jarle.Brinchmann@astro.uio.no
International Krill Union.   |    or : jarleb@astro.uio.no