Hi there! I've been looking & playing around with conditional branches & variables. So far I love it! I've been writing this story using these features. And in this story there comes a point where three out of six items must be chosen. Now I ended up doing things the hard way and wrote about 12 individual chapters for choosing specific items. Now I have come to realize there is a way to choose one of these said items, only to then be linked back to the original/previous page & choose the next item, & then the next before the reader can finally move on & progress with the story. Problem is, I am having trouble understanding this & implementing it within my own story to trim down the 12 chapters I had previously mentioned, into only 1 or 2. I have followed the guides, "Conditional Branches Showcase (source code)" & "Finish Character creation and begin story". But I can't seem to get the hang of this unfortunately. But instead of attribute points, I am trying to implement items. And I'm trying to get each item to be selectable only once. So with all of that said, I hope somebody can help me better understand how to do this. I appreciate the assistance! EDIT: So I've made some progress since I posted a few hours ago. But now I'm still having trouble. See, instead of attribute points like the above example/tutorial shows, I am trying to implement items. Now, when I try to do a test run of it all, the items are not available from the start, which they need to be. And only after the reader selects the item should it then become unavailable to choose again. Hopefully this makes sense. And thank you again! P.S. Does the story have to be published for the values of a linked decision to work as intended? Cause if so, that's my problem right there.
It is not necessary to publish the story. Everything works the same way when the story or chapters are only drafts. I suppose, you missed to implement the "Intro Chapter" Unfortunately, this chapter is currently necessary, because we need the variables to check the conditions. If a variable doesn't exist, the condition fails. The problem is, that we also can't define the variables in the "Chapter Choose" because we will loop to this chapter and would override them with the initial values. (It could be done with the planned feature "Formula Parser") Here a quick overview how it should be possible at the moment: Code: Chapter before choosing (depth 0) "This is the chapter before the reader can choose the items" Answers: "Chapter Choose" Changes to the score: NumberOfItems = 0 Item1 "X" Item2 "X" Item3 "X" Item4 "X" Item5 "X" Item6 "X" Code: Chapter Choose (depth 1): "Choose 3 out of 6 items" Answers: "Item 1" "Item 2" "Item 3" "Item 4" "Item 5" "Item 6" "Continue after choosing" Code: Chapter "Item 1" (depth 2) Link chapter to "Chapter Choose" Conditions to view: NumberOfItems < 3 Item1 "X" Changes to the score: Item1 "check" NumberOfItems + 1 Code: Chapter "Item 2" (depth 2) Link chapter to "Chapter Choose" Conditions to view: NumberOfItems < 3 Item2 "X" Changes to the score: Item2 "check" NumberOfItems + 1 Same with item 3 to 6 Code: Chapter "Continue after choosing" (depth 2) Continueation of the story Conditions to view: NumberOfItems > 2 (or NumberOfItems = 3) If you have further questions, feel free to ask EDIT: Added missing "NumberOfItems + 1"
Hey thank you for your help! Everything worked like a charm & it's definitely made things more neat & organized.