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.
label user:
$ user_input = renpy.input(prompt = "Type anything! If you want to leave, say 'Later or later' Or if you want to go places, type 'Lets go somewhere'.", allow="1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ /.,'?!")
$ user_input=user_input.lower().strip()
label unlabeled:
m "Hm? What do you want to talk about?" #This one is normal
m "How about something else?" #I also want this to have a chance to get this dialogue when you typed an unlabeled dialogue.
Is it possible? Thank you.
I am a friendly user, please respect and have a good day.
I can write this out in code a bit later, but you can check the entered text against your values with if/elif/else, then if it isn't already used, randomise a number between values and have each value = a different dialogue. Then, just jump to the referenced number using if/elif /else andddd done.