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 was wondering... what's the correct syntax to check for several flags to advance to a certain event? Let's say I have this script for a single flag event:
#To set the flag up...
me "You have seen me now."
$ flag_one = True
#And then to check for the flag...
me "now, let me see if you have seen me before..."
if flag_one:
jump next_label
me "Nope, you haven't seen me before... go back and look for me."
jump look_for_me
label next_label:
me "Yep, you've seen me before and now you can continue."
Now... let's say I have this instead... how do I set the if statement to ask for several flags?
#To set the flag up...
me "You have seen me now."
$ flag_one = True
me "You have seen me again."
$ flag_two= True
me "You have seen me yet again (aren't ya lucky?)."
$ flag_three= True
#And then to check for the flag, what do I put in the if statement...?
me "now, let me see if you have seen me three times before..."
if (HOW ON EARTH DO I ASK FOR 3 FLAGS?):
jump next_label
me "Nope, you haven't seen me three times before... go back and look for me."
jump look_for_me
label next_label:
me "Yep, you've seen me three times before and now you can continue."