itch.io is community of indie game creators and players

Devlogs

Update: Simpler Syntax

Choice Kwargs Tutorial For Ren’py
A downloadable asset pack

I’ve simplified the required code!

You can now use sensitive= to disable a choice (grey it out), and condition= to remove a choice entirely when its condition isn’t met. And you no longer need to use strings for this! If you're using the older version, no worries — it still works just fine, it’s just a bit more verbose.

I also made a slight change to the screen code to ensure the text_color for sensitive choices (when requirements aren't met) will use gui.choice_button_text_insensitive_color as intended, even if they have a custom color or hover when clickable. This was a slight Ren'Py pet peeve of mine while developing my own project, so I hope it will be useful for others!

Download Choice Kwargs Tutorial For Ren’py
Read comments (3)