Issues with labels

I’m having trouble with my labels bleeding into each other. It doesn’t pull up an error, but when I playtest it, the content of the labels both show no matter which choice I pick.

My code looks like this:

*choice
	#Accept it
		*set passive %+5
		*set noa %+5
		*goto accepted_debt
	#Try to barter less
		*set passive %-5
		*set noa %+2
		*goto bartered_debt
		
*label accepted_debt
label content
*page_break
*label bartered_debt
label content
*page_break
1 Like

if I choose accept it (the first choice), it will definitely shows the both results from accepted debt to bartered debt. The problem is the ‘page_break’ command. You should put ending command or goto/goto_scene and etc. Page break will def turn the next page. i don’t know if my words are worthy and helpful somehow hahaha. I hope I am right, otherwise… some might help you. :slight_smile:

When using two labels right after another it’s best to end them both on a *goto or *goto_scene if you want to open a new scene file.

Otherwise Choicescript will simply continue to read what’s next, in this case the next label

It could for example look like this

*choice
	#Accept it
		*set passive %+5
		*set noa %+5
		*goto accepted_debt
	#Try to barter less
		*set passive %-5
		*set noa %+2
		*goto bartered_debt
		
*label accepted_debt
label content 1
*page_break
*goto continue
*label bartered_debt
label content 3
*page_break
*goto continue

*label continue
content

So, yeah @S_O_V_R_A_T_O is right :slight_smile:

You can use a *page_break, but coding-wise it does nothing for what you want to achieve

5 Likes

@tiranka have more details, and she’s def right, precisely. Hope it will help you @kattenprinsen :slight_smile:

1 Like

thank you both so much! that worked well :slight_smile:

2 Likes

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.