So, I am currently trying to code something to let the players choose their gender, pretty basic stuff. While doing so, the following error appears “line 18: Invalid use of curly smart quote. Use straight quote instead”
My problem is that I am fairly certain that I am already using straight quotes. To the point where I copypasted straight quotes into the script and the error is still popping up. Additionally, line 18 comes after multiple other lines of similiar code so I can only assume the ones above are fine and good, in which case I don’t know how line 18 would have ended up curly in particular.
When I copy and paste the line into other systems, like word doc, the quotes are straight too. So, I am not very certain what I am doing wrong in this case.
Look for the configuration of your keyboard. Spanish uses those quotes you’re using, so try to change the layout to English or find which key combination is the one you should use on your keyboard to get → " " ←
Usually you can set up several layouts and switch with the windows key + space. If you switch often that’s a quick way to do it.
Otherwise, depending on your OS, there should be a quick access button on the bottom right of your navigation bar.
English also generally uses curved quotes in printed text – but not in coding, where having a single character " is preferred to different before/after quote marks.
As you may be noticing, MS Word does a lot of auto-formatting that can mess up your file. Some people make it work, but I’d personally suggest writing even your notes/first drafts in a program meant for code – like CSIDE (meant specifically for Choicescript), or VSCode, or Notepad++.
Or alternatively not copy-pasting, but re-typing everything to the editor used for coding. Granted, it’s more work (but I personally appreciate the extra round of forced proofreading).