So, I’m still pretty new to Choicescript. I’ve been trying to fix this problem I’ve had for days, but I can’t find a solution.
This is just a test scene I’ve created, so it won’t appear in the actual game:
Jonah asks if you are a werewolf.
*choice
#Tell him the truth.
*set Jonah %+40
*goto newchoice
#Lie to him even though it's obvious you're a werewolf.
*set Jonah %-40
*goto newchoice
*finish
*label newchoice
Later, you decide you want Jonah to become a werewolf, too.
*choice
#Ask him if he wants to be one.
*if Jonah >50
He says, "Yes!"
*page_break
*goto_scene chaptone
*else
He says, "No."
*page_break
*goto_scene chaptone
So, I can get the first result (in this example, the “He says, ‘Yes!’” line) to work. I’ll choose that option and it does exactly what it’s supposed to do - the text shows up, then I can go to the new scene.
However, when I try the other option, the result either won’t show up at all and just go straight to the next scene or (depending on how I write the code) it will show up, but it’ll be part of the new scene.
I’ve tried many different versions of the code, but nothing works - I just don’t really know what I’m doing wrong.
*choice
#Ask him if he wants to be one.
*if Jonah >50
He says, "Yes!"
*page_break
*goto_scene chaptone
*else
He says, "No."
*page_break
*goto_scene chaptone
*choice
#Ask him if he wants to be one.
*if Jonah >50
He says, "Yes!"
*page_break
*goto_scene chaptone
*else
He says, "No."
*page_break
*goto_scene chaptone
Of course, in that example, I used space. You have to modify it to fit to your own indentation scheme.
??? I haven’t had that problem, and it doesn’t make sense as a property of *label.
If you’re going from a choice to defining the scenes that could be an outcome of that choice, it would be super confusing to write those scenes as a subset of the choice. You might as well just be using *fake_choice, then?
*label acts exactly like a normal text does. There’s no correlation as with how deep/shallow the indentation level is as long as you follow the rule for *if/*elseif/*else indentation.
And yes, you can have indented *finish, which can end a scene earlier depending on the *if or #choicebody containing it.