Page 1 of 1

expected label name not found .. but the button finds it?

Posted: Mon Oct 12, 2020 10:44 am
by william_dickson
This is the button:

screen devNight():
textbutton _("Dev Night") style "stdButton" xalign 0.5 yalign 0.5 action Jump("toNight")

Works like a charm

Here's a block I jump to as a placeholder, mess around in it, have a button (devMorning) to jump to the next section or want to just return to the start of this one if I don't click it.

label toNight:
scene dream_encounter_01_c01 with dissolve
hide screen devNight
show devNightIntro
$renpy.pause()
scene dream_encounter_01_c02 with dissolve
hide devNightIntro
narrator "Introducing a second layer in the game"
scene dream_encounter_01_c03 with dissolve
narrator "Showing you some renders"
scene dream_encounter_01_c04 with dissolve
show screen devMorning
narrator "But no spoilers"
jump "toNight"
#return

I tried with and without return (after all, I have little idea of what I'm doing, apparently) to no avail.
But I get an 'expected label name not found' while the button finds it. How?

Thanks in advance

(also, I google my ass of thinking somebody else must have encountered this problem without hits. Am I *that* weird?)

Re: expected label name not found .. but the button finds it?

Posted: Mon Oct 12, 2020 10:47 am
by OrsonDeWitt
I think your issue is that you're using quotation marks. It should be

Code: Select all

jump toNight
Also, return can only be used when you're doing

Code: Select all

call toNight

Re: expected label name not found .. but the button finds it?

Posted: Mon Oct 12, 2020 10:53 am
by william_dickson
God I'm such a dork. I took 'm from the button, they need them there :/
And it's seriously not the only two labels I'm jumping to and from (or indeed Call)
/me slaps forhead.

Thanks!