• 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(473610)

Recruit
1 Badges
Apr 8, 2012
5
0
  • Crusader Kings II
Hello! I went and mucked up my cb_types file and ended up screwing up the backup too :(

Anyway, it is in crusader kings ii/common/

could you pm me or post the block of code that starts with "other_claim = { name = CB_NAME_CLAIM war_name = WAR_NAME_OTHER_CLAIM sprite = 2..." and goes to just before "claim_on_liege..."

specifically, i am looking for the text where there is mention of 'female=not' and the few lines surrounding it!

The text should start at line 109

Thanks you so much! A novice modders mistake and I hope someone can save me from wrecking my game ;)
 

Agnitio Ex Mach

Never forget the Empire of the Platypus
75 Badges
Sep 17, 2011
943
201
  • Crusader Kings II: Charlemagne
  • Europa Universalis IV: Third Rome
  • Stellaris - Path to Destruction bundle
  • Cities: Skylines - Natural Disasters
  • Stellaris: Galaxy Edition
  • Stellaris
  • Europa Universalis IV: Mare Nostrum
  • Cities: Skylines - Snowfall
  • Europa Universalis IV: Cossacks
  • Cities: Skylines - After Dark
  • Europa Universalis IV: Pre-order
  • Cities: Skylines Deluxe Edition
  • Age of Wonders III
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Europa Universalis IV: Res Publica
  • Crusader Kings II: The Republic
  • Crusader Kings II
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Hearts of Iron III
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Europa Universalis III: Chronicles
  • Europa Universalis IV: Call to arms event
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Hearts of Iron IV: Colonel
  • Victoria 2
  • Europa Universalis IV: Mandate of Heaven
  • Cities: Skylines - Mass Transit
  • Crusader Kings II: Monks and Mystics
  • Hearts of Iron IV: Together for Victory
  • Stellaris: Leviathans Story Pack
  • Stellaris: Digital Anniversary Edition
  • Tyranny: Archon Edition
  • Europa Universalis IV: Rights of Man
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Common Sense
  • Hearts of Iron IV: Cadet
  • Stellaris: Necroids
  • 500k Club
  • Stellaris: Galaxy Edition
  • Europa Universalis IV: El Dorado
  • Crusader Kings II: Conclave
  • Europa Universalis IV
  • Crusader Kings II: Way of Life
Code:
other_claim = {
	name = CB_NAME_CLAIM
	war_name = WAR_NAME_OTHER_CLAIM
	sprite = 2
	truce_days = 3650
	hostile_against_others = yes
	can_ask_to_join_war = no

	press_claim = yes

	can_use_title = {
		OR = {
			ROOT = { is_female = no }
			NOT = { has_law = agnatic_succession }
			AND = {
				lower_tier_than = KING
				is_primary_holder_title = no
			}
		}
		OR = {
			FROM = {
				has_landed_title = PREV
			}
			holder_scope = {
				is_liege_or_above = FROM
			}
		}

		NOT = {
			any_war = { # when used in title scope, checks all wars for that title
				attacker = {
					character = ROOT
				}
			}
		}
	}

	is_valid_title = {
		OR = {
			FROM = {
				has_landed_title = PREV
			}
			holder_scope = {
				is_liege_or_above = FROM
			}
		}
		ROOT = {
			has_claim = PREV
		}
	}

	on_success = {
		ROOT = {
			opinion = {
				modifier = pressed_my_claim 
				who = PREV
			}
		}
		any_attacker = {
			participation_scaled_prestige = 100
		}
		FROM = {
			prestige = -100
		}
	}

	on_success_title = {
		if = {
			limit = {
				controls_religion = yes
				holder_scope = { religion = catholic }
			}
			holder_scope = {
				abdicate_to = ROOT
			}
		}
		if = {
			limit = {
				OR = {
					controls_religion = no
					NOT = { holder_scope = { religion = catholic } }
				}
			}

			usurp_title_plus_barony_if_unlanded = ROOT
			
			hidden_tooltip = {
				# try and vassalize, but only conditionally
				if = {
					limit = {
						OR = {
							de_jure_liege_or_above = FROMFROM
							ROOT = {
								AND = {
									any_dynasty_member = {
										character = FROMFROM
									}
									PREV = {
										NOT = { higher_tier_than = DUKE }
									}
								}
							}
						}
						NOT = { # don't assign liegeship if we are already liege of ROOT...
							ROOT = {
								is_liege_or_above = FROMFROM
							}
						}
					}
					ROOT = {
						set_defacto_liege = FROMFROM
					}
				}

				# check if the previous effect managed to make us part of the same realm
				# if not, we'll break the other realm
				if = {
					limit = {
						FROM = {
							FROM = {
								top_liege = {
									ROOT = {
										top_liege = {
											NOT = {
												character = PREVPREV
											}
										}
									}
								}
							}
						}
					}
					ROOT = {
						set_defacto_liege = ROOT
					}
				}
			}
		}
	}

	on_fail_title = {
		ROOT = {
			prestige = -100
		}
		prestige = -100
		
		any_defender = {
			participation_scaled_prestige = 100
		}
	}

	on_reverse_demand = {
		prestige = -150
		transfer_scaled_wealth = {
			to = FROM
			value = 4.0
		}
		ROOT = {
			prestige = -150
			imprison = FROM
		}
		any_defender = {
			participation_scaled_prestige = 150
		}
	}

	on_reverse_demand_title = {
		ROOT = {
			remove_claim = PREV
		}
	}

	attacker_ai_victory_worth = {
		factor = -1 # always accept
	}
	
	attacker_ai_defeat_worth = {
		factor = 100
	}

	defender_ai_victory_worth = {
		factor = -1 # always accept
	}
	
	defender_ai_defeat_worth = {
		factor = 100
	}
}
That should be all of it.