Sparkle — 70 of 108

Juhana Leinonen

Release 3

Section 10 - Umbrella

The umbrella is secondary. The description of the umbrella is "[if the umbrella is attached]The umbrella is sticking out the door[otherwise]The umbrella has bright blue and red colors. It's [end if][if the umbrella is not attached and the umbrella is closed]closed[otherwise if the umbrella is not attached]open[end if]."

The umbrella can be open or closed. The umbrella is closed.

The umbrella can be openable. The umbrella is openable.

Definition: the umbrella is attached if it is part of the dining-hall door.

Check opening the attached umbrella:

say "[We] can't open the umbrella when it's stuck in the door." instead.

To implicitly close the umbrella:

say "(first closing the umbrella)[command clarification break]";

silently try closing the umbrella.

Before entering the unlocked cable car when the umbrella is open:

implicitly close the umbrella.

Before going north from the Garden when the umbrella is open:

implicitly close the umbrella.

Rule for printing inventory details of the open umbrella:

say " (open)";

make no decision. [1]

Instead of taking or pulling the attached umbrella:

say "[We] pull the umbrella out of the hole where the doorknob used to be.";

remove the umbrella.

To remove the umbrella:

say "[line break]The door's lock mechanism has nothing to support it anymore and falls apart. The door should be unlocked now.";

now the player is carrying the umbrella;

now the dining-hall door is unlocked.

Check turning the attached umbrella:

say "It turns out the umbrella doesn't function as a doorknob." instead.

Check pushing the attached umbrella:

say "It doesn't go in any further."

Note

[1]. Saying "make no decision" lets the the rule that prints the "(which equals doorknob)" text run next.