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.
if (month == 1) or (month == 3) or (month == 5) or (month == 7) or (month == 8) or (month == 10) or (month == 12):
...but that's really long. Is there a shorter way to write it? Why does the variable name (month) have to be repeated for every "or" (is there a way to state it just once?)
Last edited by rinrin on Mon Dec 14, 2009 11:15 pm, edited 1 time in total.