I was reading the designers guide and the example about the cone defines
this:
Object cone "green cone" East_End
with name "green" "cone" "emerald" "marzipan",
describe
[; if (cone has moved)
"^A misshapen cone of green marzipan sits here.";
"^Nearby is an emerald green cone, one foot high.";
],
description "The cone seems to be made of emerald-coloured \
marzipan.",
before
[; Eat: if (random(100) <= 30)
{ deadflag = 1;
"Unfortunately, you seem to be allergic to almonds.";
}
"You nibble at a corner of the cone.";
],
after
[; Take: "Taken. (Your hands are smeared with marzipan.)";
Drop: cone.description = "The cone is a vague green mess.";
"The cone drops to the floor and sags a little.";
],
has edible;
Is this the right way to define take. If it is defined this way, saying eat
cone when you are not holding it, takes the cone but does not eat it.
If you define take as :
[; Take: print "(Your hands are cvered by marzipan.)";
Then when you take the cne you also eat it.
Which is the correct or standard way to define such things?
Thanks,
Frank Bidwell
==============================================================================
Frank Bidwell, fbi@odo.amherst.com Amherst Systems Inc.
Software Engineer 30 Wilson Rd. Buffalo, N.Y