1
0
Fork 0
mirror of https://github.com/Oreolek/gamebookformat.git synced 2024-06-26 03:41:04 +03:00
gamebookformat/expected/counters.json
2014-09-24 22:01:02 +02:00

47 lines
3.4 KiB
JSON

{
"title" : "Counters Example",
"nr_sections" : "9",
"Introduction" : {
"intro" : true,
"text" : ["" ," This example gamebook shows how to use counters."]
},
"sections" : {"IGNORE-debug-json-padding-IGNORE" : "", "start" : {
"nr" : 1,
"text" : ["" ," This is where the gamebook starts. We have counters for ",{"counter" : "life", "name" : "Life Points"}," and for ",{"counter" : "gold", "name" : "Gold"},". You start the adventure with ",{"counter" : "life", "amount" : "10", "action" : "set"}," Life Points and ",{"counter" : "gold", "amount" : "12", "action" : "set"}," Gold. You can never have less than ",{"counter" : "gold", "amount" : "0", "action" : "min"}," Gold. FIXME need to figure out best syntax for death when life points go below 1. Go to ",{"reference" : "9"}," to get more Gold or ",{"reference" : "8"}," to lose some Life Points. Go to ",{"reference" : "3"}," for testing the init value markup. "]
}
, "inittest2" : {
"nr" : 2,
"text" : ["" ," OK, we increase that something counter by ",{"counter" : "something", "amount" : "1", "action" : "inc"}," here, and also increase the other counter by ",{"counter" : "other", "amount" : "1", "action" : "inc"},". You can go back to see the difference between set and init ",{"reference" : "3", "name" : "here"},", stuck in an infinite loop."]
}
, "inittest" : {
"nr" : 3,
"text" : ["" ," The ",{"counter" : "something", "name" : "Something Counter"}," starts at ",{"counter" : "something", "amount" : "5", "action" : "init"},", but when you come back here it will not reset to that, unlike the ",{"counter" : "other", "name" : "Other Counter"}," that will reset to ",{"counter" : "other", "amount" : "5", "action" : "set"}," every time you get here. If we try to init gold to ",{"counter" : "gold", "amount" : "999", "action" : "init"}," nothing will happen because it was already set to something before you came yere. Go on to ",{"reference" : "2"},". "]
}
, "death" : {
"nr" : 4,
"text" : ["" ," Less than 1 Life Point means the adventure ends now. "]
}
, "hurrah" : {
"nr" : 5,
"text" : ["" ," You have at least 16 gold. Go back to get some more at ",{"reference" : "9"},". "]
}
, "rich" : {
"nr" : 6,
"text" : ["" ," You have more than 16 Gold. How nice. Go back to get some more at ",{"reference" : "9"},". "]
}
, "losegold" : {
"nr" : 7,
"text" : ["" ," You drop ",{"counter" : "gold", "amount" : "5", "action" : "dec"}," Gold. It should not be possible to go below 0. Then go on to get gold at ",{"reference" : "9"}," or lose life at ",{"reference" : "8"},". "]
}
, "dangerous" : {
"nr" : 8,
"text" : ["" ," You lose ",{"counter" : "life", "amount" : "1", "action" : "dec"}," Life Points. You can go to ",{"reference" : "9"}," to get some Gold. "]
}
, "getgold" : {
"nr" : 9,
"text" : ["" ," Congratulations, you found ",{"counter" : "gold", "amount" : "2", "action" : "inc"}," Gold. If you have less than ",{"counter" : "life", "amount" : "1", "action" : "lessthan"}," Life Points, turn to ",{"modifier" : "auto"},{"reference" : "4"},". You can go to ",{"reference" : "8"}," to lose some life or to ",{"reference" : "7"}," to drop some gold. If you have at least ",{"counter" : "gold", "amount" : "16", "action" : "atleast"}," Gold you can turn to ",{"reference" : "5"},". If you have even more than ",{"counter" : "gold", "amount" : "16", "action" : "morethan"}," Gold you can turn to ",{"reference" : "6"},". "]
}
}}