# Label being ignored?

**URL:** <https://forum.choiceofgames.com/t/label-being-ignored/161961>\
**Category:** ChoiceScript Help\
**Created:** [November 24, 2024, 11:26pm UTC](https://forum.choiceofgames.com/t/label-being-ignored/161961 "2024-11-24T23:26:28Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![McRabid](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/mcrabid/32/122405_2.png) [@McRabid](https://forum.choiceofgames.com/u/McRabid)\
**Post date:** [November 24, 2024, 11:26pm UTC](https://forum.choiceofgames.com/t/label-being-ignored/161961/1 "2024-11-24T23:26:28Z")

</div>

I’m having trouble with labels… I think. I’m not actually _getting_ an error but for some reason my code isn’t picking up a label about 200 lines later. I don’t know if I should share my code since it’s over 200 lines of code that again isn’t getting any errors.

My code looks like this basically like this

```choicescript
*line_break
We of course, as always, leave the choice up to you, young spark.
*choice
    #Be born to Noble parents
        We are sure you will be a wonderful child.
        *set upbringing "Nobility"
        *set Charisma +10
        *set Performance +10
        *goto BirthCyranon
    #Be born to Servant parents
        We are sure you will be a wonderful child.
        *set upbringing "Servants"
        *set Stealth +10
        *set Charisma +10
        *goto BirthCyranon
    #Be born to Merchant parents
        We are sure you will be a wonderful child.
        *set upbringing "Merchants"
        *set History +10
        *set Charisma +10
        *goto BirthCyranon
    #Be born to Performer parents
        We are sure you will be a wonderful child.
        *set upbringing "Performers"
        *set Performance +10
        *set History +10
        *goto BirthCyranon
    #Be born to Military parents
        We are sure you will be a wonderful child.
        *set upbringing "Military"
        *set Melee +10
        *set Ranged +10
        *goto BirthCyranon  

```

then roughly 200 lines later i have

```choicescript
*label BirthCyranon
    *if (upbringing = "Noble") and (race = "Human")
        You come into this world a bloody, screaming mess. 
        *line_break

```

I don’t know how to better describe it, but what I can say is that after any of the “be born” scenes and the line says “We are sure you will be a wonderful child” it goes to “Next Chapter” and just ends. If I move the BirthCyranon label closer it still ignores the label and then reads another label called UpbringingRakashan instead. Any help would be appreciated, even if I need to share the full code let me know, I was hesitant to do so because it’s over 200 lines and I didn’t want to just post a huge swath of code to the forum.

---

<div class="post-metadata">

**Author:** ![Loudbeat](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/loudbeat/32/115975_2.png) [@Loudbeat](https://forum.choiceofgames.com/u/Loudbeat)\
**Post date:** [November 24, 2024, 11:34pm UTC](https://forum.choiceofgames.com/t/label-being-ignored/161961/2 "2024-11-24T23:34:35Z")

</div>

1. I don’t think 200 lines would do anything to the forum.
2. So essentially every choice goes to `*label BirthCyranon` and then goes to the next chapter?

For what I see, the part you showed doesn’t show any page\_break or choice.

If the IF condition checks, there’s just a line of text and a line\_break  
If it doesn’t, there’s no `else` or anything. so it’s impossible to determine what’s going on there.

The problem though seems to be happening at or after the `*label BirthCyranon` all the choices leading there shouldn’t be needed to see the problem.

---

<div class="post-metadata">

**Author:** ![McRabid](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/mcrabid/32/122405_2.png) [@McRabid](https://forum.choiceofgames.com/u/McRabid)\
**Post date:** [November 24, 2024, 11:37pm UTC](https://forum.choiceofgames.com/t/label-being-ignored/161961/3 "2024-11-24T23:37:43Z")

</div>

It’s never reaching \*label BirthCyranon is the issue, it seems to not be able to read that it’s anywhere in the code and even if i moved it closer it just seems to ignore it all together and just goes to “next chapter” which hasn’t even been written yet.

Edit: I did see one error I made and I’ll fix that real quick and see if that fixes it.

Edit again: Lol I solved it, I had it searching for \*if (upbringing = “Noble”) instead of \*if (upbringing = “Nobility”). Once i fixed that it found what it was looking for!

---

<div class="post-metadata">

**Author:** ![Loudbeat](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/loudbeat/32/115975_2.png) [@Loudbeat](https://forum.choiceofgames.com/u/Loudbeat)\
**Post date:** [November 24, 2024, 11:40pm UTC](https://forum.choiceofgames.com/t/label-being-ignored/161961/4 "2024-11-24T23:40:07Z")

</div>

```choicescript
*label BirthCyranon
    This text should be shown after you pick any choice
    *if (upbringing = "Noble") and (race = "Human")
        You come into this world a bloody, screaming mess. 
        *line_break

```

What happens when you put something in that label?  
What else has that label? Beside one `if` and no `else`?

---

<div class="post-metadata">

**Author:** ![Hazel](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/hazel/32/77796_2.png) [@Hazel](https://forum.choiceofgames.com/u/Hazel)\
**Post date:** [November 25, 2024, 5:29am UTC](https://forum.choiceofgames.com/t/label-being-ignored/161961/5 "2024-11-25T05:29:17Z")

</div>

> [@McRabid](#):
>
> Edit again: Lol I solved it, I had it searching for \*if (upbringing = “Noble”) instead of \*if (upbringing = “Nobility”). Once i fixed that it found what it was looking for!

Consider using number variables for this, (1 = noble, 2 = merchants etc.) because you will have this problem over and over.

---

<div class="post-metadata">

**Author:** ![Petra](https://avatars.discourse-cdn.com/v4/letter/p/94ad74/32.png) [@Petra](https://forum.choiceofgames.com/u/Petra)\
**Post date:** [November 26, 2024, 6:29am UTC](https://forum.choiceofgames.com/t/label-being-ignored/161961/6 "2024-11-26T06:29:19Z")

</div>

Booleans are also a good idea, like `is_merchant`, `is_noble` and such.
