Sparkle — 34 of 108

Juhana Leinonen

Release 3

Part 4 - Memories

[The Table of Memories contains two columns: The text of a memory that meditating triggers, and a rule that is checked to see whether the player is far enough in the story that a new memory can be revealed to them. The check is in place to prevent the player from just typing >MEDITATE repeatedly to get all the memories in one go.]

Table of Memories

memorycheck
"'What do you seek?'

'I seek the truth, shifu.'

She hit me on the fingers with the head of her cane, like many times before.

'You say you seek the truth, but only lies come out your own mouth. What do you seek?'"
the first memory rule
"'What do you seek?'

'I seek power, shifu.'

There is no slap on the fingers this time."
the second memory rule
"'The Universe has shown you some of its secrets,' she says, casually turning a flower into a guitar, as if to underline a point. 'But the key to true enlightenment is to observe the Pattern and to understand it.'"the third memory rule
"'Leave everything you have and journey east. Climb on top of Mount Shanshan where you will find a shrine. By this shrine you shall contemplate about the Pattern and if you have understood it, you shall understand the Universe itself.'"the fourth memory rule

This is the first memory rule:

rule succeeds. [1]

This is the second memory rule:

if the fish is seen or the glove is seen:

rule succeeds.

This is the third memory rule:

if the sanitary napkin is seen:

rule succeeds.

This is the fourth memory rule:

if the sausage is seen:

rule succeeds.

To remember:

if the Table of Memories is not empty:

repeat through the Table of Memories:

follow the check entry;

if rule succeeded:

say "[italic type][memory entry][roman type][paragraph break]";

say "[one of]The memory fades and the mind is silent.[or]The memory fades and [we] [are] ready to learn.[or]Finally [we] push aside the distracting memories.[or]The memory ends and [we] slip deeper into the meditative state.[stopping]";

blank out the whole row;

break. [2]

Notes

[1]. The first memory is triggered during the first time the player meditates so the rule always succeeds.

[2]. We only check for the first non-empty row, so we can break out of the loop immediately after the first iteration.