Hey there, I’m going to talk about labels and gotos!
A goto leads to a label that it shares the same name with. For example goto friend would lead to label friend. You can have duplicate gotos within an episode that all share the same name but you can’t have duplicate labels in an episode. This can be seen with a customization template; for example, when you’re getting your hair customized and choosing from short hair styles, all the gotos share the same name and will lead you back to one label for short hair styles. In addition, you can name your label and goto anything however label and goto names cannot contain spaces or special characters such as &. If you write label spooky house, you will get an error. You also can’t end an episode on a label.
UPDATE:
Labels can now go inside of if/elif/else statements and they can now go go inside of choices. You can stick with the old way of putting a goto in if/elif/else statements and/or choices that would lead to a label outside of them (and then you can use another goto to merge both pathways, and this that would lead to a label that it shares the same name with) if you’re used to that.
Example
if (BAD) {
goto villainbranch <—if they have chosen being bad before and have the gain/flag BAD (or whatever the gain name is), then this goto will take them to the label it shares the same name with (so goto villainbranch will lead to label villainbranch, which we know is inside the choice “I’m a villain” down below)
} elif (GOOD) {
goto herobranch<—if they have chosen being good before and have the gain/flag GOOD (or whatever the gain name is), then this goto will take them to the label it shares the same name with (so goto herobranch will lead to label herobranch, which we know is inside the choice “I’m a hero!” down below)
} else {
<—Here they may have previously been good or bad or chose another option, since they didn’t gain GOOD or BAD so in this case, they have the option to choose whether to be good or bad in this situation.
}
#else pathway continues (you are asked if you’d like to play through the hero or villain choice) So in other words, it’s your choice. See, it’s fun being neutral : D
WISE SOUL
Hi, are you a hero or a villain for this choice?
choice “I’m a hero!” {
label herobranch (people who had gain/flag GOOD and then reached goto herobranch there were lead here)
YOU
I’m a hero!
#continue
} “I’m a villain” {
label villainbranch (people who had the gain/flag BAD and then reached goto villainbranch there were lead here)
YOU
I’m a villain!
#continue
}
#Back to the main story-line
Also since labels are allowed in choices, it appears that you can include dressing games and CC template inside of choices now. In addition, they work with if/elif/else (labels go inside). When I coded it, it didn’t give me an error
*I highly suggest you go over the example.
Anyways, to continue:
A reminder that if you do get a duplicate label warning because you have two labels (let’s say label makeup) in your episode, you can fix the duplicate label by either adding something to it or re-naming it. For example, I can add a 2 to it so that it becomes label makeup2. However, remember that if you do this, you need to add a 2 to the gotos as well so that they will lead to label makeup2 (so, ONLY for the gotos that would lead to this label). If you forget to do this, then you’ll get an error saying your label doesn’t exist. If you do add a 2 to the gotos so that it becomes goto makeup2 but miss one, then what will happen is that goto makeup in your second makeup game that you labeled makeup2 will lead ALL THE WAY back to label makeup which will just mess up everything up. You don’t want that, you want a smooth flow to your story. So yeah, if you have a dressing game in your episode, and decide to use it again, you will need to change the label for the second one and make sure the gotos of the second dressing game match the new label you use as well.
The duplicate labels rule is only present per episode. If you use label fun in episode 1, you can use it again once in episode 2 and so forth.
P.S I go more into why it’s bad to duplicate labels on my thread: JemU776's Help Thread (link will automatically lead you to the post about it)
Feel free to check it out <3
Here’s a picture:
Let me know if you want me to post anything else and I hope that this helps, now I’m off to listen to MIW and other cool bands/singers xoxo