I’m working on a ChoiceScript game, which is going quite well. But now I’m stumped by an indentation error I just can’t make heads or tails of. I’ve pared down the game to the following minimal code:
*temp descriptions 0 *label describe_Turandot *fake_choice *hide_reuse #Sad So sad. *hide_reuse #Weary So weary. *set descriptions +1 *if (descriptions < 2) *goto describe_Turandot
This game runs perfectly if you first choose Sad and then Weary; but if you choose the options the other way around, it crashes with the error “temp line 8: increasing indent not allowed, expected 2 was 4”. (I originally had five options, and crashes happening after the third choice with no very evident patterns in which combinations crashed and which didn’t.)
It looks to me as if the indentation is correct, and the fact that it sometimes runs without error seems to confirm this. Any idea what is happening here?
EDIT: It seems the issue disappears when you turn the fake_choice into a choice, but I don’t see how that makes sense.