Now there's still some issues, namely that it will crash if a track or label is not added to the dicts, since it's undefined to the dict. I tried searching but I'm not sure how I could make it simply ignore the outcome if the dict doesn't have the value presented.
I had to manually add a variable into the labels to have the dict even accept working, label_callback acted weirdly.
Code: Select all
screen display_list():
if read_current_alt > 0:
text Labels[read_current_alt] xpos 0.06 ypos 0.84
else:
text "No Scene" xpos 0.06 ypos 0.84
$ playing = renpy.music.get_playing("music")
if playing is not None:
$ playing = Playlist[playing]
text playing xpos 0.06 ypos 0.9
else:
text "No Music Playing" xpos 0.06 ypos 0.9
default Labels = {
1: "Start",
2: "Opening credits",
3: "Locked Door",
4: "Breaking Down",
5: "No Lie"
}
default Playlist = {audio.family_01: "The Beginning",
audio.turnaround: "Awakening",
audio.goodbye_01: "Day By Day",
audio.goodbye_02: "No More Demons"
}
label game:
$ read_current_alt = 1
call S1
$ read_current_alt = 2
call S2
$ read_current_alt = 3
call S3
return
I would greatly appreciate any help/advice regarding the situation. It currently works, but it's unstable and dirty makeshift.