QUICKTEST FAILED Error: part9north line 255: Invalid expression at char 1, expected NUMBER, STRING, VAR or PARENTHETICAL, was: INEQUALITY [!]- Solved

Sorry guys another error. I made a file to keep the other error happy but have been getting others that I wasn’t getting before. (Hope the zip file download from drop box hasn’t damaged it. Was typing on another computer last week and had to send it back to this one).

So this one is saying there’s an error at line 255 but I can’t find it.
Error: part9north line 255: Invalid expression at char 1, expected NUMBER, STRING, VAR or PARENTHETICAL, was: INEQUALITY [!]

Line 255 is the first line of text after a choice (the one that starts with "You…):

	#"We just have to wait until it's all made official. For now we're better keeping a low profile."
		*set strategic +5
		
		"You think that we can simply keep a low profile after a whole.......

Hmm really odd. I’ve tried taking out the set command. Deleting and re-entering spaces since it seems to be upset with char1, putting a different word at the start of the sentence, nothing seems to help. Weirdly enough the #choice option just above it is set out in exactly the same way but isn’t causing a problem.

Edit: Fixed, the problem wasn’t at character 1 which is what was throwing me. (I’d coded one of the variables incorrectly later in the sentence).

1 Like

ChoiceScript often throw out some weird error report which doesn’t make sense at all.
Especially around *choice parts and indentation.

2 Likes

Can you 1) show what the problem was. 2) say what OS/browser you’re using? (For the sake of improving error reports in the future.)

1 Like

Sure @RETowers. It was just a typo on my part but if it’ll help more than happy to give more details in case anyone hits the same error.

  1. At Char 94 I had accidently put the ! inside the variable brackets like this: ${!princesss}.
  2. Browser was firefox (on windows).
1 Like