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

luitzen

Colonel
14 Badges
Sep 9, 2009
927
65
  • Crusader Kings II
  • Deus Vult
  • Europa Universalis III Complete
  • Divine Wind
  • Hearts of Iron III
  • Heir to the Throne
  • Rome Gold
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Victoria 2
  • 500k Club
  • Imperator: Rome Sign Up
Code:
condition = { type = owner
	condition = { type = religion value = orthodox }
}
Why is the above twice in the code (same for other religions)? Does it do anything different when mentioned twice?

Code:
condition = { type = and
					condition = { type = to
						condition = { type = religion value = orthodox }
						condition = { type = owner
							condition = { type = religion value = orthodox }
						}
						condition = { type = owner
							condition = { type = religion value = orthodox }
						}
					}
					condition = { type = from
						condition = { type = religion value = orthodox }
						condition = { type = owner
							condition = { type = religion value = orthodox }
						}
					}
				}
 
It has to do with where it's being sent from and where it's being sent to. Both have to be Orthodox Christian, hence being mentioned twice, if I'm reading it correctly.

Correct, the first condition says 'to' and the other says 'from'.

Or if you are talking about this entry, then it indeed looks like a double (so useless) condition.

Code:
condition = { type = to
						condition = { type = religion value = orthodox }
						condition = { type = owner
							condition = { type = religion value = orthodox }
						}
						[COLOR="Lime"]condition = { type = owner
							condition = { type = religion value = orthodox }[/COLOR]						}
					}