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

unmerged(6509)

Dominique de Villepin
Nov 25, 2001
215
1
www.total.net
1 - If I give, through events, a royal marriage + vassalization between 2 countries not of the same religious group (one is hindu the other pagan), will I be able to diploannex them at a later date?

2 - Is it possible to add a trigger to check if relations between 2 countries are BELOW, not ABOVE, a certain value?
 

Third Angel

Mad Medievalist
48 Badges
Feb 8, 2005
2.372
53
  • Europa Universalis IV: Call to arms event
  • Europa Universalis IV: Pre-order
  • For The Glory
  • Crusader Kings III: Royal Edition
  • Crusader Kings II: Holy Knight (pre-order)
  • Deus Vult
Zoupa said:
1 - If I give, through events, a royal marriage + vassalization between 2 countries not of the same religious group (one is hindu the other pagan), will I be able to diploannex them at a later date?
I don't think so, never tried it though.


2 - Is it possible to add a trigger to check if relations between 2 countries are BELOW, not ABOVE, a certain value?
Yes, though you can only check relations between the country receiving the event and another one.
Code:
relation = { country = AAA data = x }
This will be true if relations with AAA is above or equal to x. Just use NOT to know if they are below.
Code:
NOT = { relation = { country = AAA data = x } }
 

unmerged(6509)

Dominique de Villepin
Nov 25, 2001
215
1
www.total.net
Code:
relation = { country = AAA data = x }
This will be true if relations with AAA is above or equal to x. Just use NOT to know if they are below.
Code:
NOT = { relation = { country = AAA data = x } }

Actually, that is incorrect. After figuring it out the correct code to check if relations are below x is

Code:
 trigger = { NOT = { NOT = { relation = { country = AAA data = x } } } }

This event will NOT fire if relations are too poor between 2 countries.
 

Ayeshteni

Jehanne's Slave
111 Badges
Jul 31, 2002
6.280
106
  • 500k Club
  • Europa Universalis III Complete
  • March of the Eagles
  • Europa Universalis III Complete
  • Penumbra - Black Plague
  • Europa Universalis IV: Res Publica
  • Europa Universalis: Rome
  • Semper Fi
  • Sengoku
  • Victoria 2
  • Victoria 2: A House Divided
  • Rome: Vae Victis
  • 200k Club
  • Heir to the Throne
  • Cities: Skylines
  • Crusader Kings II: Holy Knight (pre-order)
  • Europa Universalis III: Collection
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV: Pre-order
  • Pride of Nations
  • Rise of Prussia
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Cities: Skylines - After Dark
  • Hearts of Iron IV: No Step Back
  • Europa Universalis III
  • Hearts of Iron II: Armageddon
  • Crusader Kings II
  • 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
  • Darkest Hour
  • Deus Vult
  • A Game of Dwarves
  • Divine Wind
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Call to arms event
  • For The Glory
  • For the Motherland
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
Zoupa said:
Actually, that is incorrect. After figuring it out the correct code to check if relations are below x is

Code:
 trigger = { NOT = { NOT = { relation = { country = AAA data = x } } } }

This event will NOT fire if relations are too poor between 2 countries.

this is incorrect. You are using to much logic here. :p

Code:
relation = { country AAA data = 100 }

This translates into 'relation with AAA 100 or more'

Code:
[COLOR=Lime]NOT = { relation = { country = AAA data = 100 }} [/COLOR]

This translates into 'NOT relation with AAA 100 or more' Which is what you want. Yours,

Code:
[COLOR=Red]trigger = { NOT = { NOT = { relation = { country = AAA data = x } } } } [/COLOR]

Translates as NOT not having relation with AAA of 100 or more. (two negatives make a positive, so not not having a relation of 100 or moe, means having a relation of 100 or more.

Ayeshteni
 

Rotten Venetic

Field Marshal
6 Badges
Jun 10, 2006
4.289
10
  • Darkest Hour
  • Europa Universalis III: Chronicles
  • Europa Universalis IV
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III Collection
  • 500k Club
I'm not sure but doesn't the double negative give the game engine a headache and is thus refused?
 

unmerged(6509)

Dominique de Villepin
Nov 25, 2001
215
1
www.total.net
Ayeshteni said:
<snip>

Ayeshteni

Ok Im thoroughly confused. :D

Here's what I want: I want the event to check, in the triggers, if relations are above 100. If relations are below 100, I don't want the event to fire.

IIRC I tested with just one NOT, and it didn't work.
 

Ayeshteni

Jehanne's Slave
111 Badges
Jul 31, 2002
6.280
106
  • 500k Club
  • Europa Universalis III Complete
  • March of the Eagles
  • Europa Universalis III Complete
  • Penumbra - Black Plague
  • Europa Universalis IV: Res Publica
  • Europa Universalis: Rome
  • Semper Fi
  • Sengoku
  • Victoria 2
  • Victoria 2: A House Divided
  • Rome: Vae Victis
  • 200k Club
  • Heir to the Throne
  • Cities: Skylines
  • Crusader Kings II: Holy Knight (pre-order)
  • Europa Universalis III: Collection
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV: Pre-order
  • Pride of Nations
  • Rise of Prussia
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Cities: Skylines - After Dark
  • Hearts of Iron IV: No Step Back
  • Europa Universalis III
  • Hearts of Iron II: Armageddon
  • Crusader Kings II
  • 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
  • Darkest Hour
  • Deus Vult
  • A Game of Dwarves
  • Divine Wind
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Call to arms event
  • For The Glory
  • For the Motherland
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
Zoupa said:
Ok Im thoroughly confused. :D

Here's what I want: I want the event to check, in the triggers, if relations are above 100. If relations are below 100, I don't want the event to fire.

IIRC I tested with just one NOT, and it didn't work.

Zoupa said:
2 - Is it possible to add a trigger to check if relations between 2 countries are BELOW, not ABOVE, a certain value?

You stated this in your first post, so the single NOT event I gave (in green) will work for this.

But if you want the event to trigger with relations ABOVE 100

then this is what you want..

trigger = {
relation = { country AAA data = 100 }
}

Ayeshteni
 

unmerged(6509)

Dominique de Villepin
Nov 25, 2001
215
1
www.total.net
trigger = {
relation = { country AAA data = 100 }
}

Ayeshteni

Oh my God, I'm such a f****** idiot :eek:o

I don't even need NOT.

lol thanks dude