I’m having trouble with part of a code. The rest of the choices are fine, but for some reason the take and leave photos options keep showing the same error.
The error I’m getting is: startup line 115: increasing indent not allowed, expected 16 was 17
My code looks like this:
<#Go to the desk.
You’ve had this desk for a long time. It has one drawer and faded markings on it you
might be able to make out.
*choice #Open the drawer.
You find handwritten notes and photos from your aunt.
*choice #Look at photos
You and your aunt took loads of pictures together. She had given you an old
polaroid a long time ago. You wonder where it is. You wonder where she is.
*choice #Take the photos
You have been missing your aunt. You find yourself running late. Time to go.
*set diplomat +5
*finish #Leave the photos
The past should stay where it is. Besides, you want to look around more.
*goto get_out_of_bed #Read notes
You were so forgetful when you were younger. You feel like you’ve worked on it
though. The notes are mostly reminders, but there is advice and little 'I love
you’s.
*choice #Take the notes
You don’t quite know why, but you want to take these notes with you. You look
at the clock and see that it’s time to go.
*set memory +5
*finish #leave the notes
It’s best to leave them. You don’t think you’ll have much use for them. Looking
at the clock, you see that you still have some time to look around your room.
*goto get_out_of_bed #Read markings.
They’re from a very long time ago, when your cousin was still here. You two were
inseparable. That’s what you had thought, at least. The markings where your names.
You’ll have to get back in touch with your cousin when you finish school.
*goto get_out_of_bed>
‘’’#Go to the desk.
You’ve had this desk for a long time. It has one drawer and faded markings on it you
might be able to make out.
*choice #Open the drawer.
You find handwritten notes and photos from your aunt.
*choice #Look at photos
You and your aunt took loads of pictures together. She had given you an old
polaroid a long time ago. You wonder where it is. You wonder where she is.
*choice #Take the photos.
You have been missing your aunt. You find yourself running late. Time to go.
*finish #Leave the photos.
The past should stay where it is. Besides, you want to look around more.
*goto get_out_of_bed #Read notes.
You were so forgetful when you were younger. You feel like you’ve worked on it
though. The notes are mostly reminders, but there is advice and little ‘I love
you’s.
*choice #Take the notes.
You don’t quite know why, but you want to take these notes with you. You look
at the clock and see that it’s time to go.
*set memory +5
*finish #Leave the notes.
It’s best to leave them. You don’t think you’ll have much use for them. Looking
at the clock, you see that you still have some time to look around your room.
*goto get_out_of_bed #Read markings.
They’re from a very long time ago, when your cousin was still here. You two were
inseparable. That’s what you had thought, at least. The markings where your names.
You’ll have to get back in touch with your cousin when you finish school.
*goto get_out_of_bed’’’
#Go to the desk.
You've had this desk for a long time. It has one drawer and faded markings on it you
might be able to make out.
*choice
#Open the drawer.
You find handwritten notes and photos from your aunt.
*choice
#Look at photos
You and your aunt took loads of pictures together. She had given you an old
polaroid a long time ago. You wonder where it is. You wonder where she is.
*choice
#Take the photos.
You have been missing your aunt. You find yourself running late. Time to go.
*set diplomat +5
*finish
#Leave the photos.
The past should stay where it is. Besides, you want to look around more.
*goto get_out_of_bed
#Read notes.
You were so forgetful when you were younger. You feel like you've worked on it
though. The notes are mostly reminders, but there is advice and little 'I love
you's.
*choice
#Take the notes.
You don't quite know why, but you want to take these notes with you. You look
at the clock and see that it's time to go.
*set memory +5
*finish
#Leave the notes.
It's best to leave them. You don't think you'll have much use for them. Looking
at the clock, you see that you still have some time to look around your room.
*goto get_out_of_bed
#Read markings.
They're from a very long time ago, when your cousin was still here. You two were
inseparable. That's what you had thought, at least. The markings where your names.
You'll have to get back in touch with your cousin when you finish school.
*goto get_out_of_bed
How about this tell us the error its giving you this time and show (not tell) us which line it’s on that way we can help you fix the issue accordingly.
And it it might help you to shorten your indents if it’s hard to keep up with too many. I personally use 2 and 3 indents as shown
Word used so you can make text?
*choice
#Boom ------>2 spaces
Text -------------->3 spaces
*set boom true ------->3 spaces
*goto get_out_of_jail_free_card
As @anon8836198 pointed out text corresponding with one choice should have the same amount of indents as the commands under the choice.
The error I get when I run it has a few different lines. When I try to take the photos, it shows ‘startup line 111: increasing indent not allowed, expected 16 was 17’.
#Go to the desk.
You've had this desk for a long time. It has one drawer and faded markings on it you
might be able to make out.
*choice
#Open the drawer.
You find handwritten notes and photos from your aunt.
*choice
#Look at photos
You and your aunt took loads of pictures together. She had given you an old
polaroid a long time ago. You wonder where it is. You wonder where she is.
*choice
#Take the photos.
You have been missing your aunt. You find yourself running late. Time to go.
*set diplomat +5
*finish
#Leave the photos.
The past should stay where it is. Besides, you want to look around more.
*goto get_out_of_bed
#Read notes.
You were so forgetful when you were younger. You feel like you've worked on it
though. The notes are mostly reminders, but there is advice and little 'I love
you's.
*choice
#Take the notes.
You don't quite know why, but you want to take these notes with you.
You look at the clock and see that it's time to go.
*set memory +5
*finish
#Leave the notes.
It's best to leave them. You don't think you'll have much use for them. Looking
at the clock, you see that you still have some time to look around your room.
*goto get_out_of_bed
Line 111 is the ‘You don’t quite know why’ under ‘Take Notes’. I’m sorry if this isn’t the way you were wanting me to format.
I use the TextEditor my mac comes with. It’s most likely a lot like Notepad++, but I’ve recently been on a site that ChoiceScript took me to. It may be that?
It’s possible. I used to have this issue before I downloaded the choicescript highlight for notepad. And even then I have got the habit of try to revise my code using the browser version of Choicescript IDE options to better recheck all my scenes.