• 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.
Jun 20, 2003
719
0
Visit site
Hi... I would like to know; can you combine the AND trigger and the OR trigger

For instance:

Code:
trigger = {
   AND = {
   OR = { 
             war = { country = GER country = ENG }
             war = { country = GER country = FRA }
           }
   OR = {
             war = { country = GER country = SWE }
             war = { country = GER country = DAN }
           }
}

This would work so if Germany is at war with both ENG and SWE on the same time, it would trigger. Or if Germany is at war with ENG and DAN, or FRA and SWE, or FRA and DAN...

Is this possible...?
 

unmerged(1624)

First Lieutenant
Mar 7, 2001
275
0
www.civgaming.net
Yeah, although you don't need this line

Code:
   AND = {

AND is only need when used inside an OR or NOT command; when used outside AND is already assumed.

Plus you're missing a close bracket at the end anyway...

To answer your question you can use AND, OR and NOT inside the others like thus

Code:
trigger = {
             OR = {
                          AND = { 
                                       war = { country = GER country = DAN }
                                       war = { country = GER country = SWE }
                          }
                          war = { country = GER country = ENG }
             }
}

In this case Germany has to be at war with BOTH Denmark and Sweden, OR just the United Kingdom.

Hope that helps. :)
 
Jun 20, 2003
719
0
Visit site
Thank you...

So you can also say:

Code:
trigger = { 
      
        OR = { 
                 war = { country = GER country = DAN }
                 war = { country = GER country = SWE }

        OR = {
                 war = { country = GER country = ENG }
                 war = { country = GER country = FRA }
        }
        }
}

or shall it be:

Code:
trigger = { 
      
        OR = { 
                 war = { country = GER country = DAN }
                 war = { country = GER country = SWE }
                }
        OR = {
                 war = { country = GER country = ENG }
                 war = { country = GER country = FRA }
       }
}

The difference is the end brackets...
 

pimparel

Wargamer Fanatic
46 Badges
Feb 12, 2003
1.934
13
  • Stellaris: Apocalypse
  • Crusader Kings II: Conclave
  • Europa Universalis IV: Mare Nostrum
  • Stellaris
  • Hearts of Iron IV: Cadet
  • Europa Universalis IV: Rights of Man
  • Stellaris: Leviathans Story Pack
  • Stellaris - Path to Destruction bundle
  • Europa Universalis IV: Mandate of Heaven
  • Europa Universalis IV: Third Rome
  • Stellaris: Synthetic Dawn
  • Europa Universalis IV: Cradle of Civilization
  • Europa Universalis IV: Cossacks
  • Europa Universalis IV: Rule Britannia
  • Stellaris: Distant Stars
  • Europa Universalis IV: Dharma
  • Shadowrun Returns
  • Shadowrun: Dragonfall
  • Shadowrun: Hong Kong
  • Stellaris: Megacorp
  • Europa Universalis IV: Golden Century
  • Prison Architect
  • Europa Universalis 4: Emperor
  • Europa Universalis IV: Conquest of Paradise
  • Crusader Kings II: Charlemagne
  • 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
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Europa Universalis III
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • Crusader Kings II
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Europa Universalis IV: Res Publica
  • Europa Universalis: Rome
  • 500k Club
  • Europa Universalis IV: El Dorado
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
DK_FROGGY said:
or shall it be:

Code:
trigger = { 
      
        OR = { 
                 war = { country = GER country = DAN }
                 war = { country = GER country = SWE }
                }
        OR = {
                 war = { country = GER country = ENG }
                 war = { country = GER country = FRA }
       }
}

And the winner is........ 2nd option!!!
 
Jun 20, 2003
719
0
Visit site
Ok... Thank you very much.. Off to make some more VIP events... :)