Trying to nail down the fix for this elusive bug. Happens maybe once out of 50 identical test runs.
The section that’s failing is a long list of *ifs. It’s a skill list that only shows the skills for the class you picked. Looks like this:
*choice *if (((((((class = "Musician") or (class = "Brawler")) or (class = "Spirit")) or (class = "Faceman")) or (class = "Tester")) or (class = "Dancer")) or (class = "Thief")) #Stealing *stuff happens *if ((((class = "Brawler") or (class = "Spirit")) or (class = "Dancer")) or (class = "Thief")) #Fighting *stuff happens etc.
The error is that there’s no choices available, which means my long list of *ifs failed. I don’t get why this only happens 1 in 50 identical runs.
Anyone know why this happens? Is there a better/more reliable way to write this?
I read somewhere that Java has rare erratic problems when comparing strings. Is that the issue? If so, would changing all the classes to number codes fix it? IE if class = 4, if class = 3, etc.