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

jordarkelf

01_TITLE_STRING
164 Badges
Jul 13, 2005
8.040
648
erbkaiser.nl
  • Impire
  • 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
  • Galactic Assault
  • Gettysburg
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
  • Heir to the Throne
  • Divine Wind
  • Europa Universalis III Complete
  • Iron Cross
  • King Arthur II
  • Knights of Pen and Paper +1 Edition
  • Lead and Gold
  • Legio
  • Leviathan: Warships
  • The Kings Crusade
  • Lost Empire - Immortals
  • Magicka
  • Majesty 2
  • Victoria 3 Sign Up
  • Crusader Kings II: Sons of Abraham
  • Ancient Space
  • Hearts of Iron Anthology
  • Arsenal of Democracy
  • Hearts of Iron II: Armageddon
  • Cities in Motion
  • Cities in Motion 2
  • 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
  • A Game of Dwarves
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Commander: Conquest of the Americas
  • Darkest Hour
  • Deus Vult
  • Diplomacy
  • Dungeonland
  • East India Company
  • East India Company Collection
  • Europa Universalis III
Will be in the next DVIP update as well.

This one makes your ally your friend if your relation is also 100
Code:
character_event = { # You have become friends with one of your allies
	id = 23270

	picture = "event_intrigue"

	trigger = {
		condition = { type = ruler }
		condition = { type = not value = { type = num_friends value = 5 } }
		condition = { type = any_allied_ruler
			condition = { type = not value = { type = num_friends value = 5 } }
			condition = { type = relation value = 100 }
			condition = { type = not value = { type = is_friend } }
			condition = { type = not value = { type = is_rival } }
			condition = { type = not value = { type = is_receiver } }
			condition = { type = save_target }
		}
		condition = { type = has_target }
	}

	mean_time_to_happen = {
		months = 120

		modifier = {
			condition = { type = trait value = gregarious }
			factor = 0.8
		}
		modifier = {
			condition = { type = trait value = amiable }
			factor = 0.8
		}
		modifier = {
			condition = { type = trait value = energetic }
			factor = 0.8
		}
		modifier = {
			condition = { type = trait value = reckless }
			factor = 0.8
		}
		modifier = {
			condition = { type = trait value = shy }
			factor = 1.25
		}
		modifier = {
			condition = { type = trait value = hostile }
			factor = 1.25
		}
		modifier = {
			condition = { type = trait value = lazy }
			factor = 1.25
		}
		modifier = {
			condition = { type = trait value = coward }
			factor = 1.25
		}
		modifier = {
			condition = { type = trait value = illness }
			factor = 1.25
		}
		modifier = {
			condition = { type = trait value = intestinal_worm }
			factor = 1.25
		}
		modifier = {
			condition = { type = trait value = pneumonia }
			factor = 1.5
		}
		modifier = {
			condition = { type = trait value = leper }
			factor = 1.5
		}
		modifier = {
			condition = { type = trait value = plagueinfested }
			factor = 1.5
		}
		modifier = {
			condition = { type = trait value = blind }
			factor = 1.5
		}
		modifier = {
			condition = { type = trait value = stress_symptom }
			factor = 1.25
		}
		modifier = {
			condition = { type = trait value = depression }
			factor = 1.5
		}
		modifier = {
			condition = { type = trait value = schizofrenia }
			factor = 1.5
		}
		modifier = {
			condition = { type = trait value = maniac }
			factor = 1.5
		}
	}

	action_a = { # With a trustworthy friend by my side, all enemies will fall
		ai_chance = 75
		effect = { type = relation for = load_target value = 25 }
		effect = { type = random chance = 75
			effect = { type = make_friend value = load_target }
			effect = { type = trigger for = load_target value = 8098 }
		}
	}
	action_b = { # I pursue my glory alone
		ai_chance = 25
		effect = { type = relation for = load_target value = -25 }
		effect = { type = random_list
			50 = { type = no_effect }
			25 = { type = add_trait value = hostile }
			25 = { type = add_trait value = proud }
		}
	}
}

This one removes your friendship if your relation is less than 20
Code:
character_event = { # One of your friendships is being ruined by your relationship
	id = 23271

	picture = "event_intrigue"

	trigger = {
		condition = { type = ruler }
		condition = { type = num_friends value = 3 }
		condition = { type = any_friend
			condition = { type = not value = { type = relation value = 20 }}
			condition = { type = save_target }
		}
		condition = { type = has_target }
	}

	mean_time_to_happen = {
		months = 150

	}

	action_a = { # These things happen
		ai_chance = 75
		effect = { type = lose_friend value = load_target }
		effect = { type = trigger for = load_target value = 8099 }
	}
	action_b = { # I'll strive to hold on to this despite our differences
		ai_chance = 25
		effect = { type = relation for = load_target value = 25 }
		effect = { type = random chance = 25
			effect = { type = add_trait value = amiable }
		}
	}
}

This one makes the Pope your friend
Code:
character_event = { # You have become friends with the Pope
	id = 23272

	picture = "event_intrigue"

	trigger = {
		condition = { type = ruler }
		condition = { type = religion value = catholic }
		condition = { type = not value = { type = trait value = excommunicated } }
		condition = { type = not value = { type = trait value = heretic } }
		condition = { type = not value = { type = piety value = 0 } }
		condition = { type = not value = { type = num_friends value = 5 } }
		condition = { type = any_same_religion_ruler
			condition = { type = title value = PAPA }
			condition = { type = relation value = 100 }
			condition = { type = not value = { type = is_friend } }
			condition = { type = not value = { type = is_rival } }
			condition = { type = not value = { type = is_receiver } }
			condition = { type = save_target }
		}
		condition = { type = has_target }
	}

	mean_time_to_happen = {
		months = 120

		modifier = {
			condition = { type = trait value = gregarious }
			factor = 0.8
		}
		modifier = {
			condition = { type = trait value = amiable }
			factor = 0.8
		}
		modifier = {
			condition = { type = trait value = energetic }
			factor = 0.8
		}
		modifier = {
			condition = { type = trait value = reckless }
			factor = 0.8
		}
		modifier = {
			condition = { type = trait value = shy }
			factor = 1.25
		}
		modifier = {
			condition = { type = trait value = hostile }
			factor = 1.25
		}
		modifier = {
			condition = { type = trait value = lazy }
			factor = 1.25
		}
		modifier = {
			condition = { type = trait value = coward }
			factor = 1.25
		}
		modifier = {
			condition = { type = trait value = illness }
			factor = 1.25
		}
		modifier = {
			condition = { type = trait value = intestinal_worm }
			factor = 1.25
		}
		modifier = {
			condition = { type = trait value = pneumonia }
			factor = 1.5
		}
		modifier = {
			condition = { type = trait value = leper }
			factor = 1.5
		}
		modifier = {
			condition = { type = trait value = plagueinfested }
			factor = 1.5
		}
		modifier = {
			condition = { type = trait value = blind }
			factor = 1.5
		}
		modifier = {
			condition = { type = trait value = stress_symptom }
			factor = 1.25
		}
		modifier = {
			condition = { type = trait value = depression }
			factor = 1.5
		}
		modifier = {
			condition = { type = trait value = schizofrenia }
			factor = 1.5
		}
		modifier = {
			condition = { type = trait value = maniac }
			factor = 1.5
		}
	}

	action_a = { # The Holy Father and I see eye-to-eye
		ai_chance = 75
		effect = { type = relation for = load_target value = 25 }
		effect = { type = random chance = 75
			effect = { type = make_friend value = load_target }
			effect = { type = trigger for = load_target value = 8098 }
		}
	}
	action_b = { # I don't need him as a friend!
		ai_chance = 25
		effect = { type = relation for = load_target value = -25 }
		effect = { type = random_list
			50 = { type = no_effect }
			25 = { type = add_trait value = hostile }
			25 = { type = add_trait value = proud }
			1 = { type = add_trait value = excommunicated }
		}
	}
}

You need to add Modtext.csv strings:
#DVIP Friends;;;;;;;;;;;X
EVT_23270_NAME;You have become friends with one of your allies;;;;;;;;;;X
ACTIONNAME23270A;With a trustworthy friend by my side, all enemies will fall;;;;;;;;;;;;;X
ACTIONNAME23270B;I pursue my glory alone;;;;;;;;;;;;;X
EVT_23271_NAME;One of your friendships is being ruined by your relationship;;;;;;;;;;X
ACTIONNAME23271A;These things happen;;;;;;;;;;;;;X
ACTIONNAME23271B;I'll strive to hold on to this despite our differences;;;;;;;;;;;;;X
EVT_23272_NAME;You have become friends with the Pope;;;;;;;;;;X
ACTIONNAME23272A;The Holy Father and I see eye-to-eye;;;;;;;;;;;;;X
ACTIONNAME23272B;I don't need him as a friend!;;;;;;;;;;;;;X
 
Last edited: