{
  "gameplayMusicSettings": {
    "tracks": {
      "WarrenTheme": {
        "variants": [
          {
            "url": "https://you.github.io/my-music/warren-1.mp3"
          },
          {
            "url": "https://you.github.io/my-music/warren-2.mp3"
          }
        ]
      },
      "BramTheme": {
        "variants": [
          {
            "url": "https://you.github.io/my-music/bram.mp3"
          }
        ]
      },
      "BeadStatic": {
        "variants": [
          {
            "url": "https://you.github.io/my-music/radio-static.mp3"
          }
        ]
      },
      "TookItGrudge": {
        "variants": [
          {
            "url": "https://you.github.io/my-music/grudge.mp3"
          }
        ]
      },
      "NightStreets": {
        "variants": [
          {
            "url": "https://you.github.io/my-music/night.mp3"
          }
        ]
      },
      "MyBattleTheme": {
        "cues": [
          "combat"
        ],
        "variants": [
          {
            "url": "https://you.github.io/my-music/battle.mp3"
          }
        ]
      },
      "MyStormMood": {
        "matchTags": [
          "storm",
          "ominous"
        ],
        "variants": [
          {
            "url": "https://you.github.io/my-music/storm.mp3"
          }
        ]
      }
    }
  },
  "triggerDefinitions": {
    "music_warren_on": {
      "name": "music_warren_on",
      "recurring": true,
      "conditions": [
        {
          "type": "party-region",
          "operator": "equals",
          "value": "The Warren"
        },
        {
          "type": "read-boolean",
          "key": "music_warren",
          "operator": "equals",
          "value": false
        }
      ],
      "effects": [
        {
          "type": "music-track-set",
          "trackId": "WarrenTheme"
        },
        {
          "type": "write-boolean",
          "key": "music_warren",
          "operator": "set",
          "value": true
        }
      ]
    },
    "music_warren_off": {
      "name": "music_warren_off",
      "recurring": true,
      "conditions": [
        {
          "type": "read-boolean",
          "key": "music_warren",
          "operator": "equals",
          "value": true
        },
        {
          "type": "party-region",
          "operator": "notEquals",
          "value": "The Warren"
        }
      ],
      "effects": [
        {
          "type": "music-track-clear"
        },
        {
          "type": "write-boolean",
          "key": "music_warren",
          "operator": "set",
          "value": false
        }
      ]
    },
    "music_warren_fight": {
      "name": "music_warren_fight",
      "recurring": true,
      "conditions": [
        {
          "type": "read-boolean",
          "key": "music_warren",
          "operator": "equals",
          "value": true
        },
        {
          "type": "npc-in-combat",
          "npc": "anySceneNPC",
          "operator": "equals",
          "value": true
        }
      ],
      "effects": [
        {
          "type": "music-track-clear"
        },
        {
          "type": "write-boolean",
          "key": "music_warren",
          "operator": "set",
          "value": false
        }
      ]
    },
    "music_bram_on": {
      "name": "music_bram_on",
      "recurring": true,
      "conditions": [
        {
          "type": "npc-in-scene",
          "npc": "Bram Tolliver",
          "operator": "equals",
          "value": true
        },
        {
          "type": "read-boolean",
          "key": "music_bram",
          "operator": "equals",
          "value": false
        }
      ],
      "effects": [
        {
          "type": "music-track-set",
          "trackId": "BramTheme"
        },
        {
          "type": "write-boolean",
          "key": "music_bram",
          "operator": "set",
          "value": true
        }
      ]
    },
    "music_bram_off": {
      "name": "music_bram_off",
      "recurring": true,
      "conditions": [
        {
          "type": "read-boolean",
          "key": "music_bram",
          "operator": "equals",
          "value": true
        },
        {
          "type": "npc-in-scene",
          "npc": "Bram Tolliver",
          "operator": "equals",
          "value": false
        }
      ],
      "effects": [
        {
          "type": "music-track-clear"
        },
        {
          "type": "write-boolean",
          "key": "music_bram",
          "operator": "set",
          "value": false
        }
      ]
    },
    "music_bead_on": {
      "name": "music_bead_on",
      "recurring": true,
      "conditions": [
        {
          "type": "player-item",
          "item": "Comm Bead",
          "operator": "greaterThanOrEqual",
          "value": 1
        },
        {
          "type": "read-boolean",
          "key": "music_bead",
          "operator": "equals",
          "value": false
        }
      ],
      "effects": [
        {
          "type": "music-track-set",
          "trackId": "BeadStatic"
        },
        {
          "type": "write-boolean",
          "key": "music_bead",
          "operator": "set",
          "value": true
        }
      ]
    },
    "music_bead_off": {
      "name": "music_bead_off",
      "recurring": true,
      "conditions": [
        {
          "type": "read-boolean",
          "key": "music_bead",
          "operator": "equals",
          "value": true
        },
        {
          "type": "player-item",
          "item": "Comm Bead",
          "operator": "lessThan",
          "value": 1
        }
      ],
      "effects": [
        {
          "type": "music-track-clear"
        },
        {
          "type": "write-boolean",
          "key": "music_bead",
          "operator": "set",
          "value": false
        }
      ]
    },
    "music_tookit_on": {
      "name": "music_tookit_on",
      "recurring": true,
      "conditions": [
        {
          "type": "player-traits",
          "operator": "contains",
          "value": "Took It"
        },
        {
          "type": "read-boolean",
          "key": "music_tookit",
          "operator": "equals",
          "value": false
        }
      ],
      "effects": [
        {
          "type": "music-track-set",
          "trackId": "TookItGrudge"
        },
        {
          "type": "write-boolean",
          "key": "music_tookit",
          "operator": "set",
          "value": true
        }
      ]
    },
    "music_tookit_off": {
      "name": "music_tookit_off",
      "recurring": true,
      "conditions": [
        {
          "type": "read-boolean",
          "key": "music_tookit",
          "operator": "equals",
          "value": true
        },
        {
          "type": "player-traits",
          "operator": "notContains",
          "value": "Took It"
        }
      ],
      "effects": [
        {
          "type": "music-track-clear"
        },
        {
          "type": "write-boolean",
          "key": "music_tookit",
          "operator": "set",
          "value": false
        }
      ]
    },
    "music_night_on": {
      "name": "music_night_on",
      "recurring": true,
      "conditions": [
        {
          "type": "time-of-day",
          "operator": "regex",
          "value": "^(night|midnight)$"
        },
        {
          "type": "read-boolean",
          "key": "music_night",
          "operator": "equals",
          "value": false
        }
      ],
      "effects": [
        {
          "type": "music-track-set",
          "trackId": "NightStreets"
        },
        {
          "type": "write-boolean",
          "key": "music_night",
          "operator": "set",
          "value": true
        }
      ]
    },
    "music_night_off": {
      "name": "music_night_off",
      "recurring": true,
      "conditions": [
        {
          "type": "read-boolean",
          "key": "music_night",
          "operator": "equals",
          "value": true
        },
        {
          "type": "time-of-day",
          "operator": "regex",
          "value": "^(dawn|morning|noon|afternoon|evening)$"
        }
      ],
      "effects": [
        {
          "type": "music-track-clear"
        },
        {
          "type": "write-boolean",
          "key": "music_night",
          "operator": "set",
          "value": false
        }
      ]
    }
  }
}