I have a choice as to whether or not my reader wants to customize themselves.
If so I’ll say ok blah blah blah and then let them carry on. But if not, I need to skip the customization and start the story.
I was wondering if I should use “goto” in the script for it to skip ahead but I just want to be sure.
Help plz x
1 Like
So you’d create a label after the C.C and if they chose “No” in that choice you’d put goto (thelabel)
Sorry this my first story and all - what are labels? Sorry about that.
1 Like
So when you make a label you go to a line and put
label Label_name
you usually do that after a scene, so before the scene if your giving a choice and they chose “No I’m fine.” In the choice inside the brackets goto label_name
Ok tysm I think I understand now
Tysm again
1 Like
JemU776
December 26, 2018, 2:23pm
7
Can read this on labels and gotos:
Labels and gotos
A label is when you basically “name” part of the script and mark it out. Then, later on you can use a goto and this will allow you to return to the label you set up earlier, because the Script Writer then recognises that you “named” this part of the script earlier. It’s easier for me to show you what I mean. Let’s say we’re doing a choice scene.
choice
“Go to the park!”{
}”Go to the swimming pool!”{
}
That looks simple enough. But then, how would you be able to let the reader go to the scene of their choice? If it’s only a short scene, you could add the scene into the choice branch. But then, you can’t have labels and dressing games in a choice. So, you could use labels and gotos:
choice
“Go to the park!”{
goto park_play
}”Go to the swimming pool!”{
goto pool_play
}
After using the goto command, you would then underneath the choice have to have this:
label park_play
#your scene and dialogue here, however long you want the scene to be
goto end_play
label pool_play
#your scene and dialogue here, however long you want the scene to be
goto end_play
After using this code, you would then need to create a label end_play then underneath continue writing your story (this is where the two activities would merge to after the scene has been completed). It looks a bit confusing, but then if you follow the labels and gotos you should be able to make sense of what the reader will see if they select option A or option B. It’s a bit tricky to explain, but just try some experimenting!
A label leads to a goto it shares the same name with. You can have multiple gotos leading to a label. However, keep in mind, within your episode, your labels need to have different names, since you want to avoid duplicate labels.
Also, when it comes to giving the reader an option to skip, keep this in mind:
"No labels exist"
If you are getting warning messages saying that NO LABELS EXIST, then that means you put the template inside of a choice or if/elif/else code. Templates have labels and labels cannot be inside of brackets. You will need to place the template outside of the choice, then put a goto inside the choice that leads to the first label of the template. HERE is an example of how to do that.
Here’s an example:
NARR
Would you like to customize yourself?
choice
“Yep”{
goto customize_you
}“Nope”{
goto skip_custom
}
label customize_you
#script for cc goes here.
goto skip_custom
label skip_custom
#storyline goes here
1 Like
system
Closed
January 26, 2019, 12:29am
8
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.