User Tools

Site Tools


forcing_the_reader_to_make_a_choice

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
forcing_the_reader_to_make_a_choice [2013/11/13 05:10]
klembot created
forcing_the_reader_to_make_a_choice [2017/10/10 00:39] (current)
Line 1: Line 1:
-===== Forcing The Reader To Make A Choice ===== +#​redirect ​choice
- +
-Many choices a reader makes in a story ought to be exclusive. Consider a passage like this: +
- +
-> R. N. Rupal nods his head and speaks quickly to his assistant in Nepali. Within minutes you have the necessary papers for the expedition, stamped in the proper places with the official seal of the Nepalese government. As you shake hands before leaving, he stops you. "If you are determined to go on your expedition, it could be easier and safer if I come with you."​ +
->  +
-> What should you do? Having a government official along with you might just cause delays and bureaucratic snafus. On the other hand, he could smooth the way. +
->  +
-> If you accept Runal'​s offer to join you, turn to page 24. +
->  +
-> If you decline his offer, turn to page 27. +
- +
-(R. A. Montgomery, //The Abominable Snowman//​) +
- +
-Obviously, the reader shouldn'​t be allowed to both bring along R. N. Rupal and leave him behind in the same session. (Of course, he could easily click the **Rewind to Here** link and try a different path.) The ''<<​choice>>''​ macro allows allows you to lock away paths in your story. A choice looks exactly like a regular link, but as soon as it's clicked, it disables all the other choices in the same passage. Here's what the source code of the passage above might look like: +
- +
-<​code>​ +
-:: Departing +
-R. N. Rupal nods his head and speaks quickly to his assistant in Nepali. Within +
-minutes you have the necessary papers for the expedition, stamped in the proper +
-places with the official seal of the Nepalese government. As you shake hands +
-before leaving, he stops you. "If you are determined to go on your expedition,​ +
-it could be easier and safer if I come with you."​ +
- +
-What should you do? Having a government official along with you might just +
-cause delays and bureaucratic snafus. On the other hand, he could smooth the +
-way. +
-* <<​choice "​Accept his offer">>​ +
-* <<​choice "​Decline politely">>​ +
-</​code>​ +
- +
-The title of the passage the choice links to may be enclosed by either quotation marks (") or single quotes ('), but they must be around the title. When you do this, you identify the title as something called a string. This isn't important yet, but will come into play with more complex code. +
- +
-If you'd like to display a different name for the choice than the passage'​s title, you may add it as a quoted phrase after the passage'​s title. +
- +
-<​code>​ +
-* <<​choice "​Dining with R.N. Rupal" "​Accept">>​ +
-* <<​choice "​Dining alone" "​Decline">>​ +
-</​code>​ +
- +
-Obviously, the ''<<​choice>>''​ macro doesn'​t make sense if you're using the Sugarcane story template. Readers can easily jump backwards in a story with their browsers'​ back buttons. If you try to use this macro in a Sugarcane story, it simply creates a normal link.+
forcing_the_reader_to_make_a_choice.txt · Last modified: 2017/10/10 00:39 (external edit)