Once upon a time there were three little [[pigs]]
the first pig built an incredibly [[flimsy|straw]] house
the second pig built a more [[sturdy|wood]] house
the third pig was most successful with the [[house they built|brick]]
You built your house of straw.
Remind me, what's your name?
<<textbox "$name" "" "s1">>
A house of wood is the right choice for those who are adventurous.
[[Back to Start|start]]A house of brick is the best bet for feeling safe.
[[Back to Start|start]]$name! Of course, how could I forget?
What color would you prefer for your house?
[[beige]] or [[fuschia]]
Well, that's a safe choice!
<<set $style to "cautious">>
[[Continue|Results]]
Wow! That will brighten up the place!
<<set $style to "adventurous">>
[[Continue|Results]]
<<if $style is "cautious">>
Thanks for sharing your opinion, $name.
I've concluded you have a $style style and should invest in a house of [[brick]]
<<else>>
With that $style spirit, you might enjoy a house of [[wood]]
<<endif>>
Here are a few more macros:
The first is a type macro. It simulates typing out of words. Adjust the speed by changing number next to the word type. Currently it is in milliseconds (ms)
<<type 60ms>>Dear Diary, I was wondering if I, a Wolf, really ought to leave those three pigs alone<</type>>
----
The second is a timed macro used to delay arrival of text. Adjust number to adjust tempo. Currently it is in seconds (s)
<<timed 8s>> what an astonishing house of brick!
<<next 1s>> welcoming and stylish!!
<<next 2s>> wolf-proof, for sure?
<</timed>>
--
<<cycle "$answer" autoselect>>
<<option "This final twine trick is called a cycle">>
<<option "Every time">>
<<option "You">>
<<option "click">>
<<option "it advances to"
<<option "another word">>
<<option "in the end">>
<<it cycles back to first word>>
<<unless you insert a link to another passage>>
<</cycle>>In the [[bonus macros to try!]] passage you'll find three more twine tricks. These ones provide ways designing with time.
In automated and user-controlled ways, these macros provide ways of building suspense and pacing out how and when things show up on the screen.
In the spirit of shared knowledge and collaborative learning, any Twine story (by default) can be imported into twinery.org where you can see the coding behind the scenes.
Copy and paste these example into your own Twine. Tinker with it, experiment, remix -- this is the way to build your understanding with Twine.
“Start copying what you love. Copy copy copy copy. At the end of the copy you will find yourself.” ― Yohji Yamamoto