The error I’m getting is: RANDOMTEST FAILED: Error: line 2963: No selectable options
My code looks like this:
*label weapon
*choice
#knife
Set weapon as knife?
*choice
#Yes, lock it in.
*set knife true
*set weapon true
*goto next2
#No, I want to pick something different.
*goto weapon
The indenting here is really inconsistent. First you use two spaces, but then you switch to having three spaces and the final “goto” command is not even connected to the option and is instead a tab further than the “choice” command… frankly I’m just surprised randomtest went through 2962 lines without encountering errors.
It’s not an indentation problem, that’s the first thing I checked. This is an example of another code with the same structure where it doesn’t give me the error:
*label name
*choice
#Case
*set name "Case"
Your name is "${name}". Is that correct?
*choice
#Yes, that is correct.
*return
#No, it's something different.
*goto name
In comparison to the code I’m having trouble with:
*label weapon
([i]Click to read more[/i])
*choice
#Knives
[i]Set Knives as your weapon?[/i]
*choice
#Yes, lock it in.
*set knives true
*set weapon true
*goto next2
#No, I want to pick something different.
*goto weapon
The error was happening when all the choices were selected and there was nothing left for the player to see when they were redirected to the weapon label by the goto command (Even though I wasn’t using *hide_reuse). I just put the *allow_reuse command line before each option and it is working fine now.