Chapter 10 - Mountain top
The Mountain top is a room. "The cable car has reached its destination."
After exiting when the cable car is in the mountain top:
say "[We] step out the cable car and see the shrine a short way from the platform. To [our] surprise the Master is sitting cross-legged in front of the shrine.
'Shifu,' [we] greet and bow deep.
'Welcome, apprentice,' she says. 'Have you learned the Pattern?'";
say the questions;
now the command prompt is "? ".
First guess is a truth state that varies. First guess is true.
To say the questions:
say "[line break] 1) Everything has both good and evil in them[line break]
2) Things can be turned into their exact opposites[line break]
3) Reality is an illusion[line break]
4) There is no pattern[line break]
5) I don't know the answer[paragraph break]";
After reading a command when the player is in the Mountain top:
if the player's command matches "1":
say "'It seems to me', [we] say, 'that there's good and evil in everything. Like, there was uh... a tornado in a fish and...'
'That is not the Pattern and you know it,' the Master says.";
say the questions;
now first guess is false;
otherwise if the player's command matches "2":
say "'Well,' [we] say, 'things can be turned into their opposites, you see... a dog is... the opposite of a flute... and uh... a doorknob is pretty much the opposite of an umbrella and... That's not it, is it?'
She shakes her head.";
say the questions;
now first guess is false;
otherwise if the player's command matches "3":
say "She swings her cane faster than [we] can react and hits [us] hard on [our] left shin.
'Did that feel like an illusion? What is the Pattern?'";
say the questions;
now first guess is false;
otherwise if the player's command matches "4":
end the story finally; [1]
if first guess is true:
award the "First Guess" achievement;
say "'I really don't know,' [we] say. 'I turned a dog into a flute, and a fish into a tornado, and a sanitary pad into a monkey wrench, and I just can't see what the pattern is. There's nothing that connects them, it's as if it's all completely random. Anything can be changed into anything and...'
The Master closes her eyes and nods.
Understanding comes to [us]. 'Anything can be changed into anything.'
At that moment [we] [are] enlightened.";
if all the achievements are awarded: [2]
say "[line break][We] raise [our] hands to feel the new power running through [us]. [We] see and understand possibilities everywhere. [We] spot a tree stump and change it into a violin. A butterfly flies by; [we] sparkle it into a soccer ball. A tree branch becomes a briefcase.
'Apprentice,' the Master says. 'Control your power. Without self-control...'
[We] interrupt her by changing her staff into a snake. She throws it out of her hands. 'I am not the apprentice anymore,' [we] spit.
There's a look of fear in her eyes. 'Xia, this is not what I trained you for!'
[We] grin like a Cheshire cat. She starts to sparkle.";
follow the shutdown rules; [3]
otherwise if the player's command matches "5":
say "She closes her eyes. 'You [italic type]do[roman type] know the answer. Try again.'";
say the questions;
now first guess is false;
otherwise:
say "[italic type][bracket]Please answer with a number between 1 and 5[close bracket][roman type][line break]";
reject the player's command.
After listing final achievements when all the achievements are not awarded:
say "Unlock all achievements for a bonus extended ending."
Notes
[1]. "End the story" doesn't do anything immediately. The story ends only at the end of the turn. In this case the phrase must be used here so that it will suppress the "command ACHIEVEMENTS to see your achievements" tip in the achievement printing rule.
[2]. This phrase is provided by the Achievements extension.
[3]. Usually the story ends at the end of the current turn, but because we have "reject the player's command" the turn never ends normally. We have to manually trigger the shutdown rules later.