I'm having trouble with labels?

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
ludeshka
Veteran
Posts: 277
Joined: Tue Apr 07, 2009 11:24 am
Completed: Hierofanía / Next Door Taker/Rhyme or Reason /Hierofanía 2
Projects: Hierofanía 3 (I swear it's the last one)
Tumblr: sillyraccoonknight
Deviantart: ludeshka
itch: ludeshka
Contact:

I'm having trouble with labels?

#1 Post by ludeshka »

I'm having trouble with some labels.
Mainly, I declare them, but the game doesn't recognise them?

I'm adding the traceback and some screenshots of my script, so maybe you can help me.

This is probably a very silly mistake, but as of today, I can't seem to fix it on my own!
Please help me, if you can.

Thank you so much!
Attachments
error2.jpg
error labeltrue.jpg
error initblock.jpg
traceback.txt
(1001 Bytes) Downloaded 89 times

User avatar
PyTom
Ren'Py Creator
Posts: 16097
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: I'm having trouble with labels?

#2 Post by PyTom »

Did you start a new game after adding the variable? If you loaded from a save, you might not have executed the code that defines the variable.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
Software > Drama • https://www.patreon.com/renpytom

philat
Eileen-Class Veteran
Posts: 1926
Joined: Wed Dec 04, 2013 12:33 pm
Contact:

Re: I'm having trouble with labels?

#3 Post by philat »

Besides the variable being defined or not, your indentation is all out of whack. Keep the indentation uniform throughout -- i.e. each level of indentation should be the same amount of spaces. By convention, it's usually four.

Post Reply

Who is online

Users browsing this forum: No registered users