The Replicator (inform)


26 Nov 1995 16:39:26 -0600

I'm stuck... :)
I have been compliling examples from the designers' manual and working
them into a little personal game. However I cannot get the replicator to
work. [Exercise 28]

Here's how the code looks in the manual...

Object replicator "replicator"
with name "replicator",
grammar [; return 'rc,'; ],
orders
[; Give:
print_ret "The replicator serves up a cup of ",
(name) noun, " which you drink eagerly.";
default: "The replicator is unable to oblige.";
],
life
[; Ask, Answer, Tell: "The replicator has no conversation skill.";
],
has talkable;
Nearby earl_grey "Earl Grey tea" with name "earl" "grey" "tea";
Nearby brandy "Aldebaran brandy" with name "aldebaran" "brandy";
Nearby water "distilled water" with name "distilled" "water";
...
Verb "rc," * held -> Give;

When I tried this, inform gave me an error. It said "Error: Unknown
directive: "."

So I removed the "..." from the code, and it compiled with no errors.
However then it wouldn't take any commands (in the game) when I tried to
get it to give me water or anything.

How do I get it to work?

kidd

-- 
kidd@bitstream.net http://www2.bitstream.net/~kidd/