1. Doors
2. Windows
* Double-Pane
* Single-Pane
** Side-Opening
** Top-Opening
*** Semi-Openiong
*** Full Opening
[[Windows]]
You are facing ~~two~~ doors.
==>
One is a beautiful, shimmery blue that looks as if it is made out of water.
<==
The other is a dark, dingy door with a spider web clinging to the edge.
==><==
Do you want to open [[//the blue door?//|Blue Door]]
|==|
Or do you want to open [[ the black door?|Black Door]]
<img src="mathOperators.png">
(set: $warning to (text-color: 'red') + (text-style: 'blink'))
The following should be $warning[red and flashing]
If you want to learn variables in Twine, (link-goto: "Go to the Variables", "Story Variable")
You open the blue [''door''] and come face-to-face with a dragon
that devours you in one gulp.
* Black Door
** Beatiful
*** Painted
You open the black door and a hooded //figure// hands you a ''silver'' ring,
buzzing with magic. He says, "You can now make any wish^^2^^.
Welcome to your adventure."
[[File: mathOperators.png]][[hyperlinked words|Passage Name]]
[[hyperlinked words ->Variables]]
[[Double Pane Windows<- hyperlinked words]]
(display: "Double Pane Windows")
(link: "You pull an untitled book off the shelf.")[You stare at the strange symbols that dot the spine of many of the books, and feel a breeze move through the room even though all the windows are closed. The book you have pulled from the bookcase feels heavier than a normal book.]
Now you will learn [[Variables]] This page is about Four Math Operators
*Additition
*Subtraction
*Division
*Multip[libationDouble Pane Windows have two panes which both of them opens.There are two types of variables in Harlowe
Story Variables [[Story Variable]]:
Start with $
Exists from when it is created to when the story is closed in the browser
Temporary Variables:
Start with _
Exist from when it is created to when the passage in which it is created is no longer being shown.
Variables are created using (set:) macro
This sets a variable to some value
(set: $storyValue to "God")
(set: _temporaryValue to "Mortal")
$storyValue assigns a limited life to _temporaryValue in the world and it ends when you close this passage.
$storyValue is alive, unlike _temporaryValue, both in the passage first it is written and in other passages throughout the story.
Let's set another storyValue which is main character and set it to (set: $vladTepes to "Count Drakula") $vladTepes.
Iterations
Set score to 0
(set: $score to 1)
The score is $score
Iterate score in +1 increments
(set: $score to it+1)
<!--you may change number to 0 and 1 consecutively to see which if statement shows-->
The score is increased to $score
If Statements
(if: $score >1) [Show this text]
(else:) [Show that]
Commenting in Twine;
''a. Javascript supports''
// This is a single line Javascript comment.
/* This is a multi-line
Javascript comment */
''b. CSS supports''
/* This is a single line CSS comment. */
/* This is a multi-line
CSS comment. */
''c. In Harlowe Passage'' - See Variables passage for syntax as the explanation is already commented out.
<!-- Singe line comment. Totally removed from generated HTML -->
<!-- Multi-line comment.
Totally removed from generated HTML -->
$vladTepes
Temporary variable _temporaryValue cannot come here from Variables passage.