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.
What I was wondering is, is it possible to make it so that if you have seen a certain quote, something else happens? Say, if you saw "Example quote 3" you get an extra menu choice? sort of like renpy.seen_image
Thanks!
Last edited by Cazad0ra on Wed Jun 09, 2021 6:08 pm, edited 1 time in total.
default seen_quote3 = False
#and under the dialogue
"Talk to Nizara":
show nizara talk
$ quotes=random.choice(nizara_quotes)
niz "[quotes]"
if quotes == "Example quote 3":
$ seen_quote3 = True
jump intro
Cazad0ra wrote: ↑Wed Jun 09, 2021 11:19 am
What I was wondering is, is it possible to make it so that if you have seen a certain quote, something else happens? Say, if you saw "Example quote 3" you get an extra menu choice? sort of like renpy.seen_image
default seen_quotes = set() # set instead of list because sets ignore duplicates
menu:
"What do you want to do?"
"Talk to Nizara":
show nizara talk
$ quote=random.choice(nizara_quotes)
$ seen_quotes.add(quote)
niz "[quote]"
jump intro
"Make fun of Nizara" if "Example quote 3" in seen_quotes:
jump something_else_happens
colin r
➔ if you're an artist and need a bit of help coding your game, feel free to send me a PM