From cebabce278840c2c71916258571f7cf8a4f6434c Mon Sep 17 00:00:00 2001 From: Map Date: Tue, 1 Oct 2024 17:16:36 -0500 Subject: [PATCH] document the few functions in script.rpy --- game/script.rpy | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/game/script.rpy b/game/script.rpy index 138b3bf..e912a17 100644 --- a/game/script.rpy +++ b/game/script.rpy @@ -22,20 +22,22 @@ init -1 python: init python: # extra music channel so we can do crossfade instead of fadeout followed by fadein - # TODO: function for stopping both channels with optional fadeout so we don't have to keep track of which channel is playing renpy.music.register_channel("music1","music",True,tight=True) renpy.music.register_channel("music2","music",True,tight=True) + # allows playing looped ambience alongside music renpy.music.register_channel("ambient","sfx",True,tight=True) renpy.music.register_channel("ambient1","sfx",True,tight=True) renpy.music.register_channel("ambient2","sfx",True,tight=True) renpy.music.register_channel("ambient3","sfx",True,tight=True) + # No idea what this does if persistent.scroll == True: config.keymap['dismiss'].append('mousedown_4') elif persistent.scroll == None: persistent.scroll = False + # Set vars for bonus chapter completion if persistent.bonus_chapters == None: if renpy.seen_image("big ending"): #for returning players persistent.bonus_chapters = 0b111111111 @@ -44,6 +46,7 @@ init python: persistent.bonus_chapters = 0b0 persistent.old_bonus_chapters = 0b0 + # Randomizes the placement of choice boxes when a choice menu appears def randomize_choices(choices): # fine for size of 2 if (renpy.random.randint(0, 1)):