Re: After Actions in Inform


21 Apr 1995 21:54:28 GMT

bidwell@cs.buffalo.edu (Franklin H. Bidwell) wrote:
>I had a question about after actions in Inform. Is it better to have them
>return true or false in trivial situations?
>
>I was reading the designers guide and the example about the cone defines
>this:
>
[Code deleted]

> 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.";
> ],

>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 cone you also eat it.
>
>Which is the correct or standard way to define such things?

I would say that in the above case the way it works in the original example is
bad; your example avoids the problem, and is probably the better way to do
things. It also depends how the verb is actually coded.

>Frank Bidwell

Stephen