That's the script I'm trying to fix within screensCode: Select all
define persistent.sexualcontent = False define persistent.gore = False screen startgame(): vbox xalign 0.1 yalign 0.1: style_prefix "radio" spacing 10 label _("sexual content") textbutton _("Yes") xalign 0.33 yalign 0.5 action SetPreference := "Stuff to Avoid"(persistent,"sexualcontent", "yes") textbutton _("No") xalign 0.33 yalign 0.5 action SetPreference := "Stuff to Avoid"(persistent,"sexualcontent", "no") vbox xalign 0.5 yalign 0.1: style_prefix "radio" spacing 10 label _("gore") textbutton _("Yes") xalign 0.33 yalign 0.5 action SetPreference(persistent,"gore", "yes") textbutton _("No") xalign 0.33 yalign 0.5 action SetPreference(persistent,"gore", "no") textbutton _("Time to wake up.") xalign 0.5 yalign 0.5 action Return(value=_return)
that I'm trying to make functional and relevant to the variable I originally had set up like this belowThis is the scripting within screens under preferencesCode: Select all
vbox: style_prefix "check" label _("Stuff to avoid") textbutton _("Sexual Content") action Preference(persistent,"sexualcontent", "no") textbutton _("Gore") action Preference(persistent,"gore", "no")
Please let there be someone out there who can help me I really don't want to keep bothering this artist I like or copy them just from what I see in their tutorialsCode: Select all
#enter script anywhere $ sexualcontent = "no" $ gore = "no" call screen startgame #enter code below in screens.rpy screen startgame(): vbox: style_prefix "radio" label _("sexual content") textbutton _("Yes") SetVarible("sexualcontent", "yes") textbutton _("No") SetVariable("sexualcontent", "no") vbox: style_prefix "radio" label _("gore") textbutton _("Yes") SetVarible("gore", "yes") textbutton _("No") SetVariable("gore", "no") textbutton _("Time to wake up.") action Return(value=_return)
I'm trying really hard to get this coding thing down on my own I get basic concepts in my head but executing them seems to be the struggle.