Hey y’all , I’m having trouble with getting some of my choices to show up or not cause errors despite the coding looking identical to other choices that show up and don’t cause errors. I’m using the choicescript IDE browser mobile version and I don’t know if it’s just the way I input my text (I typically make a fake choice, the first choice, enter, then back tab until I have the correct indentation) that’s causing these errors or what but visually to me the code is right. I’m not seeing the issue here
Here’s what the code looks like, two ways. The 3rd and last choice don’t even show up for whatever reason, while the 2nd and 5th cause errors.
*fake_choice
#Don't even notice it because you are strictly only attracted to women.
*set likewomen true
#Feel your body heat raise. You are strictly only attracted to men and his comment leaves you a little hot under the collar. <3
*set likemen true
#Feel your body heat raise. You are attracted to both men and women, and his comment leaves you a little hot under the collar. <3
*set likewomen true
*set likemen true
*set bi true
#Resist the urge to roll your eyes. You are strictly only attracted to men, but you can't say you're particularly attracted to [i]this[/i] man...
*set likemen true
#Resist the urge to roll your eyes. You are attracted to both men and women, but [i]this[/i] man? Meh.
*set likemen true
*set likewomen true
*set bi true
#Ignore the comment and move on. You are not romantically or sexually attracted to anyone of any gender.
*set aroace true
I didn’t really closely study all screenshots but, dont you think the indentation was a bit too much, i mean, try starting the choices from “a” and not the “e” of the *fake_choice, i dont think CS is registering itat all.
thats just what i think, i dont use fake choices much myself. try that out and lmk if it works
Oh ok, in that case also double check your spaces. Tabs are far better. It’s very easy to get a space wrong somewhere and it messes the entire thing up.
I’m on mobile and I don’t think I can tab, but I could turn on the indentation setting that shows the spaces on the IDE to make sure. I don’t think that’s the issue but I’ll let y’all know if so!
It’s so weird, the spaces were there, I could take my cursor and individually go through each space, but the indentation wasn’t properly registering.
I think to avoid this in the future, when I start a new # option I’ll make sure to backspace to the beginning of the line and make fresh spaces/indentation.
This still looks like a mix of tabs and spaces; not sure what the dashes represent.
Aside from that, I don’t really get why people do these enormous indents that send the text rocketing off to the side. Makes it way more likely to overlook mistakes. I just use two spaces.
Yeah I don’t know why there’s so much free space before the visible indentations but unless the IDE turns my spaces into tabs its only spaces. I think the reason I chose to use 4 was because the tutorial said 8 is the most common and 2 is the minimum, so I split it down the middle lol. Maybe if I was only using 2 spaces I wouldn’t have as much trouble
Thank you, I just don’t know how to achieve this using the browser IDE. When I go in the code it takes four backspaces to get to the start of the line (which turned the #choice into normal text), and then 4 spaces to put it back where it’s supposed to go. I don’t know where the extra spaces are coming from, and each choice is working now too. Wouldnt there be an error if they were spaced differently?
Also, the dashes are the visible indentation setting. Even it’s a little confusing because there are 4 long dashed as 2 little mini ones on the edges not to mention it doesn’t start from the beginning of the line for some reason
Honestly it seems like smart indentation may be screwing me over, seems like it’s adding an extra space or 2 than necessary after I press enter even though it’s set to use 4 spaces as well. Because whether it’s 4 or 6 spaces for the first indentation, the second one seems longer. This is confusing I think when I get my hands on a desktop I’ll tackle converting everything to less spaces.