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.
$ name = renpy.input("How are you today master?", length=20) or "Noname"
if ((name != "Good") and (name != "Ok") and (name != "Fine") and (name != "Great") and (name != "k")):
jump bad
hide chihiro happy
show chihiro glad
c "That's good to hear!" # %(name)s is old. you can use brackets to do it.
label bad:
c "Aw, well I hope things get better soon."
However if I write in "Good" it still shows me the text I get if i write "Bad" after it shows me the text I egt for the "good" option.
How can I make it so that the text you get for "bad" only shows up if you type anything else except the listed above? sorry if its difficult to understand what I'm trying to say...
Last edited by Himekuri on Thu Oct 17, 2013 2:09 pm, edited 2 times in total.
$ name = renpy.input("May I please take your name?", length=20) or "Noname"
# I modified the variable to renpy 6.15
if name != "emily": # if name different from "emily"
jump start
c "Nice to see you again [name] ." # %(name)s is old. you can use brackets to do it.
You using an older version of ren'py. The right would be update.
But the
$ name = renpy.input("May I please take your name?", length=20) or "Noname"
# I modified the variable to renpy 6.15
if name != "emily": # if name different from "emily"
jump start
c "Nice to see you again [name] ." # %(name)s is old. you can use brackets to do it.
You using an older version of ren'py. The right would be update.
But the
Completed: Metropolitan Blues, The Loyal Kinsman, Daemonophilia, The Dreaming, The Thirteenth Year, Adrift, Bionic Heart 2, Secrets of the Wolf, The Photographer
Projects: The Pilgrim's Path, Elspeth's Garden, Secret Adventure Game!
This is especially useful if there are too many allowed name that you cannot practically type out each one one-by-one. If there are very few number of allowed name, isn't it better if you just less the player choose one from a list instead of asking them to type? They most likely will get the name wrong and then end up having to retry many many times...
This is especially useful if there are too many allowed name that you cannot practically type out each one one-by-one. If there are very few number of allowed name, isn't it better if you just less the player choose one from a list instead of asking them to type? They most likely will get the name wrong and then end up having to retry many many times...
The thing is, the game I'm creating is quite different. When you open the game you're kind of playing as a character talking to the game therefore the game asks a question and you type back.
That's why I need to have lots of options.
This is especially useful if there are too many allowed name that you cannot practically type out each one one-by-one. If there are very few number of allowed name, isn't it better if you just less the player choose one from a list instead of asking them to type? They most likely will get the name wrong and then end up having to retry many many times...
The thing is, the game I'm creating is quite different. When you open the game you're kind of playing as a character talking to the game therefore the game asks a question and you type back.
That's why I need to have lots of options.
do the same thing, only the latter is better readable and requires less typing. If you need to have a lot of options, checking membership in a container is better.
This is especially useful if there are too many allowed name that you cannot practically type out each one one-by-one. If there are very few number of allowed name, isn't it better if you just less the player choose one from a list instead of asking them to type? They most likely will get the name wrong and then end up having to retry many many times...
The thing is, the game I'm creating is quite different. When you open the game you're kind of playing as a character talking to the game therefore the game asks a question and you type back.
That's why I need to have lots of options.
do the same thing, only the latter is better readable and requires less typing. If you need to have a lot of options, checking membership in a container is better.