• We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.

jr8825

Sergeant
95 Badges
Apr 17, 2014
76
311
  • Hearts of Iron 4: Arms Against Tyranny
  • Hearts of Iron IV: No Step Back
  • Hearts of Iron IV: By Blood Alone
  • Age of Wonders III
  • Divine Wind
  • Heir to the Throne
  • Europa Universalis III
  • Europa Universalis III Complete
  • Europa Universalis III: Chronicles
  • Victoria 2
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • Cities in Motion
  • Cities in Motion 2
  • Imperator: Rome Deluxe Edition
  • Imperator: Rome - Magna Graecia
  • Europa Universalis IV: Call to arms event
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Res Publica
  • Europa Universalis IV: Rights of Man
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Rule Britannia
  • Europa Universalis IV: Third Rome
  • Europa Universalis 4: Emperor
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
  • Darkest Hour
  • Hearts of Iron IV Sign-up
  • Hearts of Iron IV: Field Marshal
  • Crusader Kings II
  • Crusader Kings II: Holy Fury
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: Monks and Mystics
  • Crusader Kings II: Way of Life
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: The Republic
  • Crusader Kings II: Horse Lords
  • Crusader Kings II: Sword of Islam
  • Stellaris Sign-up
  • Stellaris: Galaxy Edition
  • Stellaris: Humanoids Species Pack
  • Stellaris: Megacorp
  • Stellaris - Path to Destruction bundle
  • Cities: Skylines
  • Cities: Skylines - After Dark
  • Cities: Skylines - Natural Disasters
  • Prison Architect
  • March of the Eagles
  • Surviving Mars
Hello, there's an "is_valid" trigger in music text files. Does anyone know what, if any, options are currently implemented for making music play in specific conditions?

For example, is there an "at_war" scope? Would tag=GBR limit songs to playing as GB?

Thanks!
 
elgar_war_tr_3 = { music = "file:/music/war/GBR_Bogey.ogg" pause_factor = 25 mood = yes can_be_interrupted = yes is_valid = { OR = { has_game_rule = elgar_and_victoria_rule has_game_rule = elgar_only_rule } OR = { AND = { exists = c:GBR c:GBR = ROOT is_at_war = yes } AND = { exists = c:GBR has_war_with = c:GBR } } } #Note: #The "Colonel Bogey March" by Kenneth Alford, played by the US Coast Guard Band for the album "The Coast Guard Remembers World War II". Kenneth Alford #https://commons.wikimedia.org/wiki/File:ColonelBogey.ogg }

Something like this should work. :)