What I want to provide is a menu/list of content topics that are enabled by default and players can click on them to disable them, that way the players can skip past that content in the game without seeing it.
So, for example:
Content Preferences (label)
- Peppers (check button)
- Beaches (check button)
- Dogs (check button)
In screens.rpy, under the preferences screen section, how should I go about coding this? For instance, can I use something like the following:
Code: Select all
textbutton _("Peppers") action Preference("toggle", $ persistent.turnoffpeppers = True)
As for the in-game content in the script, would it be safe to assume that I can then use whatever variable I set for the content preference button in the following fashion?
Code: Select all
charactername1 "What did you buy at the grocery store?"
if persistent.turnoffpeppers == True:
charactername2 "I bought grapes, cheese, and meat."
jump section_conversationcontinued
charactername2 "I bought grapes, cheese, peppers, and meat."
label section_conversationcontinued:
#This is where the characters continue their conversation
Thanks very much!