-
-
Save videlais/ef49cf41e796c8c1c85d861bd7839e7e to your computer and use it in GitHub Desktop.
ChoiceScript: Variables
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
You didn't survive the trip! | |
(You made ${choices} choices!) | |
*ending |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
After a short delay, we enter the house. | |
(You made ${choices} choices!) | |
*ending |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*if choices > 1 | |
We've made many choices. | |
Finally, we arrived at the house. | |
Did we knock on the door or try to barge in without warning? | |
*choice | |
#Knock on the door | |
*set choices +1 | |
*goto_scene goodendings | |
#Barge in! | |
We got caught in a trap! | |
*goto_scene badendings | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*title Example | |
*author Dan Cox | |
*scene_list | |
startup | |
house | |
*create choices 0 | |
(You've currently made ${choices} choices.) | |
Where will we visit? | |
*choice | |
#The woods | |
We went into the woods! | |
It was a dark and scary place, but with our lantern, we were able to make our way deeper. | |
Deep in the woods, we came across a river. Did we try to cross it? | |
*set choices +1 | |
*choice | |
#Cross river | |
We did not make it across the river and were swept downstream to our doom! | |
*goto_scene badendings | |
#Did not cross river. | |
We didn't bother with the river and made our way along the path deeper and deeper into the woods. | |
*set choices +1 | |
*finish | |
#The mountains | |
We went into the mountains | |
*set choices +1 | |
*finish | |
#The lake | |
We went to the lake | |
*set choices +1 | |
*finish | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment