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.
Not sure if this is supposed to be obvious, but is it possible to group conditions in an if statement? For an example with pseudo-code, say I wanted a menu option to be available if you were Joan's friend, or if you were Bill's friend but not Kate's friend. Would it work like this:
Pet peeve: do not compare boolean variables to True and False. It is useless, tautological and against PEP8 (Python style guide). Your code is identical to:
Ocelot wrote: ↑Mon Dec 11, 2017 2:02 pm
Pet peeve: do not compare boolean variables to True and False. It is useless, tautological and against PEP8 (Python style guide). Your code is identical to:
Woops, guess I need to go fix... a LOT of code, heh.
Releases:
Current projects: In the Ashes of Dawn
Split Psyche
Savestate Gambit
Make a backup first, then use edit > search and replace (or find or similar)
In the to be replaced text, type:
= True
And leave the replaced text blank.
This can potentially screw up other stuff though, so check your game (in full) after doing this
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.