Jump to content

Creating a new music event


Recommended Posts

In dynamicmusic.lua, there's a table for TRIGGERED_DANGER_MUSIC. This determines what music should play during "special" situations, such as being near the Bee Queen or the Moon Caller event. My mod directly edits dynamicmusic.lua in order to have special music play for my boss; however this is awful for a variety of reasons, such as incompatibility with future updates and other mods that alter dynamicmusic.lua, like the awesome Dusk and Night Music mod.

MY QUESTION IS: Is there some kind of function a la AddRecipe that allows me to add music events without editing dynamicmusic.lua? I assume it cannot be directly accessed from modmain.lua since the table itself is local.

Thank you in advance for any help/clarification!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
  • Create New...