How do I work the labels? [Solved]

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
Reyes16
Newbie
Posts: 4
Joined: Sat Jan 31, 2015 5:37 pm
Contact:

How do I work the labels? [Solved]

#1 Post by Reyes16 »

Hi again, I had a question. I don't know what I'm doing wrong but for some reason when I try to add an optional define label to the game, it will show up even when the player does not click on the link, and then the game ends automatically.

http://imgur.com/PhlhTwR

I followed this link: https://www.renpy.org/dl/5.6.0/reference.html#Text

and I tried to do everything exactly as it showed but I can't seem to figure out what to do to make it stop.

Please help orz
Last edited by Reyes16 on Tue Apr 25, 2017 7:51 am, edited 1 time in total.

User avatar
Divona
Miko-Class Veteran
Posts: 678
Joined: Sun Jun 05, 2016 8:29 pm
Completed: The Falconers: Moonlight
Organization: Bionic Penguin
itch: bionicpenguin
Contact:

Re: How do I work the labels?

#2 Post by Divona »

Code: Select all

define s = Character("Espana")
define n = Character("Nueva Espana")
define f = Character("Felipinas")
define p = Character("Portugal")
define definition = Character(None, window_yfill=True, window_xmargin=20, window_ymargin=20, window_background=Solid((0,0,0,192)))

label start:
    
    n "{a=define_teicu}Teicu{/a}, I'm going to the store...do you want me to get you anything?"

    f "No...I'm not very hungry."

    n "..."
    n "Alright then."
    n "Protugal?"

    "Protugal" "Wha--?"
    "Protugal" "While I'm happy your choice made at least a little sense."
    "{s}Protugal{/s}" "I'm not Protugal."

    s "I'm Spain."

    return

label define_teicu:

    definition "Teicu:\n\n\a Nahuatl word for younger sister."
    return
Also, best use the new Ren'Py document rather than the old one:
https://www.renpy.org/doc/html/text.html?#text-tag-a
Completed:
Image

Reyes16
Newbie
Posts: 4
Joined: Sat Jan 31, 2015 5:37 pm
Contact:

Re: How do I work the labels?

#3 Post by Reyes16 »

Ahh!! Thank you so much for your help!!

Post Reply

Who is online

Users browsing this forum: Ocelot