Conditional staements for Image Buttons
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.
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.
Conditional staements for Image Buttons
How would i go about making a screen that will display a certain image button only if a condition has been fulfilled? I'm trying to make an inventory screen where if a certain flag is raised an image will be shown, otherwise it is blank.
- Ocelot
- Lemma-Class Veteran
- Posts: 2404
- Joined: Tue Aug 23, 2016 10:35 am
- Github: MiiNiPaa
- Discord: MiiNiPaa#4384
- Contact:
Re: Conditional staements for Image Buttons
If you need button to appear only if certain condition is satisfied, it is straightforward:
Code: Select all
screen inv():
if certain_condition:
imagemutton <...>
< < insert Rick Cook quote here > >
Re: Conditional staements for Image Buttons
Got it, works perfectly, thank you!Ocelot wrote: ↑Sat Sep 04, 2021 4:52 pm If you need button to appear only if certain condition is satisfied, it is straightforward:Code: Select all
screen inv(): if certain_condition: imagemutton <...>
Who is online
Users browsing this forum: AdsBot [Google], Bing [Bot], Google [Bot], Ocelot, snotwurm