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

DominusNovus

Field Marshal
86 Badges
Oct 2, 2007
7.983
8.557
  • Stellaris: Galaxy Edition
  • Europa Universalis IV: Res Publica
  • Cities: Skylines Deluxe Edition
  • Europa Universalis IV: Pre-order
  • Cities: Skylines - After Dark
  • Europa Universalis IV: Cossacks
  • Cities: Skylines - Snowfall
  • Europa Universalis IV: Mare Nostrum
  • Stellaris
  • Crusader Kings II: Charlemagne
  • Stellaris: Galaxy Edition
  • Europa Universalis IV: Rights of Man
  • Crusader Kings II: Monks and Mystics
  • Stellaris - Path to Destruction bundle
  • Europa Universalis IV: Third Rome
  • Europa Universalis IV: Cradle of Civilization
  • Crusader Kings II: Jade Dragon
  • Europa Universalis IV: Conquest of Paradise
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Call to arms event
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Necroids
  • Europa Universalis 4: Emperor
  • Cities: Skylines - Mass Transit
  • Europa Universalis IV: Mandate of Heaven
  • Crusader Kings III
  • Imperator: Rome - Magna Graecia
  • Surviving Mars
  • Hearts of Iron IV: Death or Dishonor
  • Cities: Skylines - Green Cities
  • Stellaris: Federations
  • Stellaris: Lithoids
  • Stellaris: Ancient Relics
  • Europa Universalis IV: Golden Century
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Imperator: Rome Sign Up
  • Europa Universalis IV: Rule Britannia
  • Stellaris: Leviathans Story Pack
  • Hearts of Iron IV: Expansion Pass
  • Cities: Skylines - Parklife
  • Stellaris: Distant Stars
I'd like to mod the Religious defense CB so that you can defend heretics against heathens.

For example, the orthodox Byzantines defending monophysite Abyssinia against the shia Caliphate. Or Catholic HRE defending the orthodox Byzantines against the sunni Seljuks. Etc.

Personally, I'm sick of seeing Ethiopia go down without a fight.

So, here, I think, is the relevant code:

Code:
	can_use = {
		FROM = {
			any_war = {
				using_cb = religious
				attacker = {
					character = PREVPREV
				}
				defender = {
					religion = ROOT
				}
			}
		}
		ROOT = {
			OR = {
				NOT = { religion_group = FROM }
				is_heresy_of = FROM
				is_parent_religion = FROM
			}
		}
	}

Now, if I'm reading this right (and I haven't quite gotten the hang of the FROM and ROOT in CK2 files), if I were to edit the defender section like so, it would work the way I want, right?
Code:
defender = {
			OR = {
				religion_group = ROOT
				is_heresy_of = ROOT
				is_parent_religion = ROOT
			}
		}

Religion group woud allow it to apply for catholics defending orthodox, heresy would allow it to apply for orthodox defending bogomilists, and parent religion would allow it to apply for cathars defending catholic. Correct?

Or am I totally lost here?
 
Last edited: