Getting two responses after asking

Why am I getting two responses from this?

After asking Slyss about "the/-- vial":
     if the player carries the vial:
          if the blue crystals are in the vial:
               say "The Fruppan's eyes widen, 'Why, yes!  This vial contains colodite!'";
          otherwise:
               say "Slyss looks perplexed, 'It is only a glass vial.'";
     if the vial is in the parcel:
          say "The strange man looks curious, 'Vial?  What vial?'";
     otherwise:
           say "The weird little man sighs, 'I have heard murmurs of such a vial.  Alas, they are only vague rumors and innuendos.  I could say nothing conclusive without more evidence to go on.'".

YIELDS:

The Fruppan's eyes widen, "Why, yes!  This vial contains colodite!"
The weird little man sighs, "I have heard murmurs of such a vial.  Alas, they are only vague rumors and innuendos.  I could say nothing conclusive without more evidence to go on."

The player is carrying the vial and thus shouldn’t be getting the latter response.

Otherwise cues off of the immediately preceding condition; since the vial isn’t in the parcel if the player carries it, in that case you’ll get both the first and third conditions in this rule satisfied.

The easy fix is to use “otherwise if”, which lets Inform know that it should stop after one of the conditions is satisfied - like, rewrite the above rule so it says “otherwise if the vial is in the parcel:”. That should be all you need to do.

3 Likes