It has been automatically using 4 spaces, 1 tab every time. I haven’t messed with any of those setttings yet.
I was trying to do a conditional question for the last question by doing the: *if (“${gender}” = “non-binary”(yes)) * set *choice. Or can I not do conditional questions that way?
Even with that removed, however, the code still wont get past the 7th line.
For choices that need to check for a variable you can do the following.
*choice
*selectable_if (writer) #I wrote a book.
You wrote a best seller.
*goto next_scene
*if (artist)
#I painted a picture.
You drew a masterpiece.
*goto next_scene
In this example the first choice would be there but unselectable unless the player has the writer boolean. Whereas the second choice only appears if the player has the artist boolean.
[Boolean = a variable that is set true or false]
what does the latest error message say?
It won’t tell me anything past the first error.
“line 7 of character: Ivalid indent? expected #option here, not *set.”
Just noticed something. You use *choice but don’t have the choices *goto anywhere.
Either add some *goto to send the code to the next scene or change *choice to *fake_choice
what is the difference between fake_choice and choice? Was trying to have 2 questions on the same page like I had seen a couple other games have.
Also, I thought it would just change automatically if I had a scene set to come up after this one in scene_list or does that not work when there is a choice?
For *choice you have to add a *goto after the text like this;
*choice
#Option One.
You go into the first house.
*goto house_one
#Option Two.
You go into the second house.
*goto house_two
*fake_choice is more for flavour choices that go to the same scene and you don’t need a *goto
What colour are your eyes?
*fake_choice
#Blue.
Your mom says your eyes are the color of the sky.
#Green.
Your mom says your eyes are as rare as Jade.
Your eyes were the same color as your mother's.
To do a multioption choice you need to do this (taken from my own released game;
*choice gun ammo
#Browning HP; 13 rounds.
#Hollow point.
*set gun "Browning HP"
*set bullets 13
*set ammo "hollow point"
*set stopping_power 2
*goto select
#Silver rounds.
*set ammo "silver"
*set gun "Browning HP"
*set bullets 13
*set stopping_power 2
*goto select
#Bronze rounds.
*set ammo "bronze"
*set gun "Browning HP"
*set bullets 13
*set stopping_power 2
*goto select
*if (beta)
#Bronze/silver prototype hybrid rounds.
*set ammo "bronze/silver hybrid"
*set gun "Browning HP"
*set bullets 13
*set stopping_power 2
*goto select
*if (srtgun)
#.50 caliber rounds.
*set ammo ".50 caliber Magnum Rounds"
*set gun "Desert Eagle"
*set bullets 7
*set stopping_power 3
*goto select
#Colt Anaconda; 6 rounds.
#Hollow point.
*set gun "Colt Anaconda"
*set bullets 6
*set ammo "hollow point"
*set stopping_power 3
*goto select
#Silver rounds.
*set ammo "silver"
*set gun "Colt Anaconda"
*set bullets 6
*set stopping_power 3
*goto select
#Bronze rounds.
*set ammo "bronze"
*set gun "Colt Anaconda"
*set bullets 6
*set stopping_power 3
*goto select
*if (beta)
#Bronze/silver prototype hybrid rounds.
*set ammo "bronze/silver hybrid"
*set gun "Colt Anaconda"
*set bullets 6
*set stopping_power 3
*goto select
*if (srtgun)
#.50 caliber rounds.
*set ammo ".50 caliber Magnum Rounds"
*set gun "Desert Eagle"
*set bullets 7
*set stopping_power 4
*goto select
#SIG P226; 15 rounds.
#Hollow point.
*set gun "SIG P226"
*set bullets 15
*set ammo "hollow point"
*set stopping_power 1
*goto select
#Silver rounds.
*set ammo "silver"
*set gun "SIG P226"
*set bullets 15
*set stopping_power 1
*goto select
#Bronze rounds.
*set ammo "bronze"
*set gun "SIG P226"
*set bullets 15
*set stopping_power 1
*goto select
*if (beta)
#Bronze/silver prototype hybrid rounds.
*set ammo "bronze/silver hybrid"
*set gun "SIG P226"
*set bullets 15
*set stopping_power 1
*goto select
*if (srtgun)
#.50 caliber rounds.
*set ammo ".50 caliber Magnum Rounds"
*set gun "Desert Eagle"
*set bullets 7
*set stopping_power 2
*goto select
*if (srtgun)
#Desert Eagle .50 caliber - 7 shots
#Hollow point.
*set ammo "hollow point"
*set gun "Desert Eagle"
*set bullets 7
*set stopping_power 4
*goto select
#Silver rounds.
*set ammo "silver"
*set gun "Desert Eagle"
*set bullets 7
*set stopping_power 4
*goto select
#Bronze rounds.
*set ammo "bronze"
*set gun "Desert Eagle"
*set bullets 7
*set stopping_power 4
*goto select
*if (beta)
#Bronze/silver prototype hybrid rounds.
*set ammo "bronze/silver hybrid"
*set gun "Desert Eagle"
*set bullets 7
*set stopping_power 4
*goto select
*if (srtgun)
#.50 caliber rounds.
*set ammo ".50 caliber Magnum Rounds"
*set gun "Desert Eagle"
*set bullets 7
*set stopping_power 4
*goto select
it only follows the scene_list when there is no error. The error stops it from continuing.
No, meant how some games seem to allow 2 separate choice boxes, but the multi option of one box was helpful to know as well.
That is the multi-choice one You pick the gun in one box and the ammo in another.
even using *fake_choice and *goto_scene text I still recieve the same error of:
“line 7 of character: Ivalid indent? expected #option here, not *set.”
-
Do you have implicit flow enabled? (it would be enabled in your start-up file)
-
To have imbeded choices, you will need to make sure that the first choice’s options are all indented the same and have all the second choice’s options indented one step inward from the original choice’s indent
Example:
I want to choice A, B, or C and then 1,2, or 3...
*choice
#choice A
*choice
#choice 1
#choice 2
#choice 3
#choice B
*choice
#choice 1
#choice 2
#choice 3
#choice C
*choice
#choice 1
#choice 2
#choice 3
*page_break
Rest of text follows here
Okay. That means that on your seventh line you have got a *set instead of a #choice.
And it looks like its here
*if ("$gender}" = "non-binary(yes))"
*set #choice
*male
*female
*finish
no, its highlighting the line:
*set gender “male”
immediately after the first option of choice one.
What I highlighted would also cause an error.
Try this;
*label character
What is your name?
*input_text name
Nice to meet you ${name}, what is your gender?
*choice
#Male
*set gender "male"
*set pronoun "he"
*set pronoun "him"
*goto next_scene
#Female
*set gender "female"
*set pronoun "she"
*set pronoun "her"
*goto next_scene
#Non-binary
*set gender "non-binary"
*set pronoun "they"
*set pronoun "them"
*goto next_scene
*label next_scene
Would others see you as traditionally ${gender}?
*choice
#Yes
*if (gender = "male")
*set sex "male"
*goto other_scene
*else
*set sex female"
*goto other_scene
#No
*if (gender = "male")
*set sex "female"
*goto other_scene
*else
*set sex "male"
*goto other_scene
*if (gender = "non-binary")
*choice
#Male
*set sex "male"
*goto other_scene
#Female
*set sex "female"
*goto next_scene
*label other_scene
*finish
The only issue this would cause is you overwrite the pronoun so consider having pronoun1 and pronoun2 so you can have both he and him. Otherwise pronoun gets sets as he and then overwritten with him.
Which software are you using?
the error still persists lol
I’m just using it through duckduckgo on my shitty little tablet out of dropbox
The error message you are getting means choicescript is finding
*set when it was expecting a #choice.
Which means the indentation is incorrect somewhere and the *set is in line with your previous #choice.
Repost your latest version of the coding scene
So I copy and pasted your example into my CSide and once I got rid of this part:
*if ("$gender}" = "non-binary(yes))"
*set #choice
*male
*female
*finish
and fixed one of your choice to *choice it (mostly) worked for me. There is also that *if (“${gender}” = “male(yes))” section that is giving errors. That’s an issue for a different day.
The point is I am not getting the error about #s and *set.