Increasing indent not allowed, expected 3 was 4

I’m having trouble with choice about the character.

The error I’m getting is startup line 42: increasing indent not allowed, expected 3 was 4

My code looks like this:

*comment Copyright 2010 by Dan Fabulich.
*comment 
*comment Dan Fabulich licenses this file to you under the
*comment ChoiceScript License, Version 1.0 (the "License"); you may
*comment not use this file except in compliance with the License. 
*comment You may obtain a copy of the License at
*comment 
*comment  http://www.choiceofgames.com/LICENSE-1.0.txt
*comment 
*comment See the License for the specific language governing
*comment permissions and limitations under the License.
*comment 
*comment Unless required by applicable law or agreed to in writing,
*comment software distributed under the License is distributed on an
*comment "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
*comment either express or implied.

*title My First ChoiceScript Game
*author Anonymous
*scene_list
  startup
  animal
  variables
  gosub
  ending
  death

*create leadership 50
*create strength 50

First of all, create your own character, you will have to improve it in the story. But Later !

*page_break

You're submerged under the water, You can't see or hear anything, you can't move either. 
But something is easily notcieable, a voice, but it's not someone, ot's something, in your head.
"What are you, my child ?" The voice is slow, 

*choice gender
  #I'm a boy.
   "And how is your body my dear son ?"
   *choice body1
     #A slim and slender, muscular body.
     #An effeminate body, with beautiful hips and pianist hands.
     #A slightly voluminous but charming body.
     #A strong and trained body with beautiful voluptuous muscles.
     #A big body and a high weight, but nice to look at.
  #I'm a girl.  
   "And how is your body my dear daughter ?"
   *choice body2
   #A slim and slender, muscular body.
   #An effeminate body, with beautiful hips and pianist hands.
   #A slightly voluminous but charming body.
   #A strong and trained body with beautiful voluptuous muscles.
   #A big body and a high weight, but nice to look at.
  #I'm not a girl or a boy, i'm just myself.
   "And how is your body my dear child ?"
   *choice body3
   #A slim and slender, muscular body.
   #An effeminate body, with beautiful hips and pianist hands.
   #A slightly voluminous but charming body.
   #A strong and trained body with beautiful voluptuous muscles.
   #A big body and a high weight, but nice to look at.
"Now, what is your name sweetie ? I have to make sure you know at least a bit about yourself."
*input_text name

Thats an indentation problem (i.e. spacing) btw can you write text in preformatted text so we can see it properly with spacing.
But from looking at it, it seems *choice body is indented too far by one space.

How that preformatted ?

Use the “</>” (“preformatted”) option in your post editor.

I’ve updated your post for you.

Thanks, I’ve never make anything like that before ^^’

Well I made the modification and now I have “startup line 48: Expected choice body”.

Well, it says that because you don’t have a *choice in line 48

Well I put a *choice and it’s not changing anything-

First of all, create your own character, you will have to improve it in the story. But Later !

*page_break

You're submerged under the water, You can't see or hear anything, you can't move either. 
But something is easily notcieable, a voice, but it's not someone, ot's something, in your head.
"What are you, my child ?" The voice is slow, 

*choice gender
	#I'm a boy.
		"And how is your body my dear son ?"
		*choice body1
			#A slim and slender, muscular body.
			#An effeminate body, with beautiful hips and pianist hands.
			#A slightly voluminous but charming body.
			#A strong and trained body with beautiful voluptuous muscles.
			#A big body and a high weight, but nice to look at.
	#I'm a girl.
		"And how is your body my dear daughter ?"
		*choice body2
			#A slim and slender, muscular body.
			#An effeminate body, with beautiful hips and pianist hands.
			#A slightly voluminous but charming body.
			#A strong and trained body with beautiful voluptuous muscles.
			#A big body and a high weight, but nice to look at.
	#I'm not a girl or a boy, i'm just myself.
		"And how is your body my dear child ?"
		*choice body3
			#A slim and slender, muscular body.
			#An effeminate body, with beautiful hips and pianist hands.
			#A slightly voluminous but charming body.
			#A strong and trained body with beautiful voluptuous muscles.
			#A big body and a high weight, but nice to look at.
"Now, what is your name sweetie ? I have to make sure you know at least a bit about yourself."
*input_text name

Try using tabs like this.

1 Like

By the way None of the choices ends with a goto
Have you read the beginner guide, it is really helpful

You could also use the implicit_control_flow variable. It makes things more easy and helps keeping your code more clean, without requiring a *goto at the end of each *if block and *choice

2 Likes

I normally just use fake_choice for flavor choices :grinning:

I used to do that, but for some reason every time I wanted to put a *fake_choice I couldn’t find that goddamned “_” in my keyboard. Which is very ironic, since I can write implicit_control_flow

That and my code looked like… well, VERY messy

1 Like

I read the beginner guide but I didn’t understand how to use a goto

I have this : “startup line 40: Illegal mixing of spaces and tabs; this line has a tab, but there were spaces on line 26”

:neutral_face: I’m blank now.

I’ve just checked line 26 in my text editor and didn’t find any spaces, just tabs…

Which Editor are you using? My recommendation is using CSIDE.

I don’t know I’m just using a “bloc notes”, I don’t know what is the difference.

I have no idea which app that is but my recommendation is using notepad++ or CSIDE, since you are still getting the error.

Yeah, I used notepad++ when rewriting the code and it didn’t threw up any error