Re: Newbie Inform Question : Syntax for ask?


25 Aug 95 10:54:59 GMT

In article <41bve6$qa7@maureen.teleport.com>, Dwight or Dawn McDowell <dmcd@teleport.com> writes:
>
> I have a bartender I want to answer questions.
> However, for some reason the routines fall through to the default answer:
>
> Object Bartender "Bartender" inn
> has animate talkable;
> with life [;
> ask:
> if (noun == 'menu')
> "I have stew, and cheese tonite.";
> if (noun == 'drinks')
> "I have Ale, wine, and mead. \;
> Which would you like?";
> "I'm sorry, but I don't know nuttin' about that.";
> ];
>
> So if I :
>
>>ask bartender about menu
>
>>I'm sorry, but I don't know nuttin about that.
>
>
> Any help would be enthusiatically appreciated :)
>
> -Dwight
>

Yeah, it's the most notorious misprint in the old manual, is what it
is. Try looking at "second" rather than "noun" - "noun" is set to
the bartender, while "second" holds 'stew', etc.

Apologies. The new manual is coming soon.

Graham Nelson