• 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.

Magnar

Second Lieutenant
79 Badges
Nov 6, 2010
169
195
  • Crusader Kings II: Charlemagne
  • Europa Universalis IV: Mare Nostrum
  • Europa Universalis IV: Pre-order
  • Rome: Vae Victis
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Semper Fi
  • Rome Gold
  • Europa Universalis IV: Res Publica
  • March of the Eagles
  • Heir to the Throne
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III
  • For the Motherland
  • Europa Universalis IV: Wealth of Nations
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Europa Universalis III
  • Europa Universalis III: Chronicles
  • Europa Universalis III Complete
  • Divine Wind
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Art of War
  • Knights of Pen and Paper 2
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Cossacks
  • Stellaris: Leviathans Story Pack
  • Crusader Kings II: Conclave
  • Stellaris
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV: Colonel
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Rights of Man
  • Stellaris: Digital Anniversary Edition
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Way of Life
  • Rise of Prussia
  • Pride of Nations
  • Europa Universalis IV: El Dorado
  • 500k Club
  • War of the Vikings
  • Victoria 2
  • Hearts of Iron IV: No Step Back
  • Europa Universalis III Complete
  • Europa Universalis III Complete
Im trying to lock buildings by trade good. Theoretically a function like this should work
Code:
allow = {
       or = {
       trade_goods  = grain
       is_importing_trade_good = grain
       }
   }
but the allow function only seems to read the first trigger and ignores the 2nd, i also cant add IF functions to it to try get around it.

Is this intentional?
 
would also be nice to do for unit requirements ie a unit requiring multiple trade goods to be recruited or multiple other conditions eg iron + horses for heavy cavalry