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.
I want to put voice to my game, but my base language is Spanish, I just want to add voice in English... So my idea was use Conditional Statements.
If I put "if lang == "english":" and later the voice thing, should only work on english... but I discovered renpy just Completely ignore this statement... my question is... WHY?!!
label start:
if lang == "None":
voice "voices/day01/na_sienteselfuerteagarron.ogg"
n "Here you hear this sound because you had chosen original language."
elif lang == "english":
voice "voices/day01/d_¡corre!¡sigueme!.ogg"
d "These words are chosen because you had english option."
d "¡Corre! ¡Sígueme!"
This code is completely ignored except the label start: and d "¡Corre! ¡Sígueme!"... What am I doing wrong?
Completed: Toire No Hanako, Li'l Red [NaNoRenO 2013], The One in LOVE [NaNoRenO 2014], Running Blade [NaNoRenO 2016], The Other Question, To The Girl With Sunflowers