--
It's time to test Tweego and Chapbook!
[[Let's test a simple passage->SimplePassage]]
[[Let's test embedding->EmbedTest]]
[[Let's test an undeclared Variable->UndeclaredVariable]]
[[Let's test Tweego->MeetTheKing]]
This passage is dead simple. Just a few lines of text.
{restart link}
Now, let's try to access an undeclared variable.
[if undeclaredVariable]
This variable has not been declared, yet it's set to true?
[else]
This variable has not been declared. It's reading as false.
[continue]
{restart link}
You are in the room with the King.
> [[Bow to the King->BowToTheKing]]
> [[Kill the King->KillTheKing]]
You give the king a deep bow, deciding to let him live this time.
Note that the variable 'theKingIsDead' has not been set.
[[Leave The Room->MeetTheQueen]]theKingIsDead: true
--
In a heartbeat you withdraw your dagger and plunge it into the king's chest.
The variable 'theKingIsDead' has been set to true.
[[Leave The Room->MeetTheQueen]]embed: true
--
This is a sentence that will appear before the embedded passage.
{embed passage: 'EmbedMe'}
Next we will test a conditional embedding.
[if embed]
{embed passage: 'EmbedMeConditionally'}
[continue]
Embedding test has been completed.
{restart link}
This is the passage called "EmbedMe".
This passage was conditionally Embedded.#This is a passage stub. The real meat of the content is contained within "KingDead" and "KingAlive" sub-passsages
[if theKingIsDead]
{embed passage: 'MeetTheQueen-KingDead'}
[else]
{embed passage: 'MeetTheQueen-KingAlive'}The Queen says "You killed the king, you bastard!".
{restart link}All is well while the king is still alive.
{restart link}