However, the actions in the add function are never called at all:
From the documentation:
This is supposed to call the associated action when the file is player. It doesn't work. I've also put in joke actions which ought to immediately crash, just to show that the actions aren't being called at all.add(filename, always_unlocked=False, action=None)
Adds the music file filename to this music room. The music room will play unlocked files in the order that they are added to the room.
always_unlocked
If true, the music file will be always unlocked. This allows the file to show up in the music room before it has been played in the game.
action
This is a action or the list of actions. these are called when this file is played.
For example, These actions is used to change a screen or background, description by the playing file.
The files are added to the music room and the music tracks play, but the actions are never called.
Code: Select all
for (track,trackname,composer) in musicList:
#mr.add(track, always_unlocked=True, action=[SetVariable("jukebox_trackname", trackname), SetVariable("jukebox_composer", composer)])
mr.add(track, always_unlocked=True, action="BOOM")