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 }
						}
					}
				}
 

Veldmaarschalk

Very old guard
Super Moderator
Moderator
149 Badges
Apr 20, 2003
30.027
1.263
  • Europa Universalis IV
  • 200k Club
  • Battle for Bosporus
  • Europa Universalis 4: Emperor
  • 500k Club
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]						}
					}