Re: Inform problem


22 Mar 95 16:46:50 GMT

> : Jason Dyer (jdyer@indirect.com) wrote:
> : : Anyone know why when I take out the box, it works, but when I put
> : : it in, it doesn't?
> : : if (self.time_left==2) {
> : : "You feel somewhat warm as the fire continues to move \
> : : forward.";
> : : box "He thought he could feel skin curling black on that agonized"
> : : "hand, the flesh crisping and dropping away until only charred"
> : : "bones remained."
> : : " -- Frank Herbert, _Dune_";
> : : }
> : : ],
>
>
... apparently produces errors like...
> Error in line 42-- ] not a variable
> Error in line 42-- ] undefined
> Error in line 42-- cryptic message I don't understand
> (add about 10 different other weird errors)
>
> Error in line 32-- box__label not found
>
> And if I take the box out, everything is normal again.
>
> In other words, I think it's a bug.

Ok, ok, I'm on it! I'll fix this bug as soon as possible.
Actually I have a hunch I know how it happens but it's too
embarrassing to explain in public.

I would just mention, though, that actually this isn't really
the right way to do what you're trying to do. The box command
puts the text up now, whereas you really want the text to appear
at the end of the turn (otherwise it will partly scroll away again
and the player will miss it). So what you should really do is to
just set a flag at this point in the code, and react just before
the keyboard input of the next turn by executing the box instruction
then. (Sneaky way to do this - trap the Prompt: action in
LibraryMessages. Gosh, but I'm in an arcane mood today.)

Graham Nelson
Oxford, UK