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.
"I"
if some_option == True:
extend " **PUNCH**"
play sound "punch.ogg"
extend " AM"
if some_option == True:
extend " **PUNCH**"
play sound "punch.ogg"
and so on...
My problem is I don't know how to register such option in settings. I will appreciate any help.
Last edited by kostek00 on Thu Dec 27, 2018 9:42 am, edited 1 time in total.
"I"
if some_option == True:
extend " **PUNCH**"
play sound "punch.ogg"
extend " AM"
if some_option == True:
extend " **PUNCH**"
play sound "punch.ogg"
and so on...
My problem is I don't know how to register such option in settings. I will appreciate any help.
Set up your variable at the star of the script.rpy file.
default some_option = True
Then go to screen.rpy
find screen preferences():
find
## Additional vboxes of type "radio_pref" or "check_pref" can be
## added here, to add additional creator-defined preferences.
and add