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

Lambert Simnel

Voter Colonel
66 Badges
Nov 24, 2001
1.606
718
  • Europa Universalis IV: Mandate of Heaven
  • Europa Universalis IV: Rule Britannia
  • Stellaris: Apocalypse
  • Stellaris: Humanoids Species Pack
  • Crusader Kings II: Jade Dragon
  • Europa Universalis IV: Cradle of Civilization
  • Stellaris: Synthetic Dawn
  • BATTLETECH
  • Europa Universalis IV: Third Rome
  • Crusader Kings II: Holy Fury Pre-order
  • Stellaris - Path to Destruction bundle
  • Crusader Kings II: Monks and Mystics
  • Stellaris: Leviathans Story Pack
  • Stellaris: Digital Anniversary Edition
  • Europa Universalis IV: Rights of Man
  • Crusader Kings II: Reapers Due
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Stellaris: Distant Stars
  • Europa Universalis IV: Dharma
  • BATTLETECH: Flashpoint
  • Stellaris: Megacorp
  • Crusader Kings II: Holy Fury
  • Europa Universalis IV: Golden Century
  • Stellaris: Ancient Relics
  • BATTLETECH: Season pass
  • Stellaris: Lithoids
  • BATTLETECH: Heavy Metal
  • Stellaris: Federations
  • Crusader Kings III
  • Europa Universalis 4: Emperor
  • Stellaris: Necroids
  • Stellaris: Nemesis
  • Crusader Kings II: Sword of Islam
  • Heir to the Throne
  • Europa Universalis IV: Call to arms event
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Art of War
  • Europa Universalis IV
  • Europa Universalis III
  • Deus Vult
  • Europa Universalis III Complete
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: The Republic
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: Charlemagne
I'm in the process of modifying the plot_kill_character plot so that a player is given a more reasonable choice of murder victims instead of just getting three random names from his realm on your hit list.

It appears the cause of this behaviour is that the bit of code that controls who is an eligible target includes a section titled "Go nuts" that allows a lunatic character or a player's character to target anyone. (The other unproblematic sections target your spouse's lover or anyone that is the first heir to a title that you/your spouse/your kid is a pretender to). The problem with this is that instead of letting a player plot against anyone it just picks three of the valid targets to offer you, and when the valid targets are anyone in your realm the chance of getting the right victim offered to you are pretty low.

The first change I made was to stop the Go nuts option from applying to the player. With this change the Duke of Bohemia's hit list just has the nephew who would inherit the county of Brno ahead of the Duke; and the rubbish Byzantine heir can target his two kid brothers who will share the emperors demesne under gavelkind.

Next I added the ability to target your liege and made it so that the block that allowed mothers to plot against those who would inherit ahead of their kids to also allow fathers to plot if not AI.

Code:
# Get a character killed
plot_kill_character = {
	type = realm_characters
	plot = yes
	intrigue_plot = yes
	
	# Plotter scope
	potential = {
		prisoner = no
		age = 16
		independent = no
		NOT = { trait = incapable }
		NOT = {
			AND = {
				ai = yes
				trait = honest
			}
		}
		NOT = {
			AND = {
				ai = yes
				trait = kind
			}
		}
		
		OR = {
			ai = no # Human
			
			# Pretender to a title
			any_pretender_title = {
				always = yes
			}
			
			# Female character's child is pretender to a title
			AND = {
				is_female = yes
				any_child = { 
					any_pretender_title = {
						always = yes
					}
				}
			}
			
			# Spouse is pretender to a title
			spouse = {
				any_pretender_title = {
					always = yes
				}
			}

			# Is nuts...
			trait = lunatic
		}
	}
	
	# Target character scope
	allow = {
OR = {
#allow the player to kill his liege
AND = {
overlord_of = FROM
ai = no # Human
}
		FROM = {
			OR = {
				# Get rid of the current heir
				any_pretender_title = {
					current_heir = { character = ROOT }
					FROM = {
						OR = {
							NOT = { any_child = { character = ROOT } }
							AND = {
								any_child = { character = ROOT }
								OR = {
									AND = {
										OR = {
											trait = cruel
											trait = ambitious
										}
										FROM = { NOT = { opinion = { who = ROOT value = 0 } } }
									}
									AND = {
										OR = {
											trait = arbitrary
											trait = cynical
										}
										FROM = { NOT = { opinion = { who = ROOT value = -25 } } }
									}
									FROM = { NOT = { opinion = { who = ROOT value = -75 } } }
								}
							}
						}
					}
				}
				
				# Female character gets rid of the current heir to a title her child is pretender to
				AND = {
		OR = {
					is_female = yes
			ai = no # Human fathers can also get rid of current heir
		}
					any_child = {
						any_pretender_title = {
							current_heir = { character = ROOT }
						}
					}
					NOT = { ROOT = { is_close_relative = FROM } }
					FROM = { NOT = { opinion = { who = ROOT value = 0 } } }
				}
				
				# Get rid of the current heir to a title the character's spouse is a pretender to
				AND = {
					spouse = {	
						any_pretender_title = {
							current_heir = { character = ROOT }
						}
					}
					NOT = { ROOT = { is_close_relative = FROM } }
					FROM = { NOT = { opinion = { who = ROOT value = 0 } } }
				}

				# A lover of spouse...
				spouse = {
					has_lover = yes
					lover = {
						character = ROOT
					}
					FROM = { NOT = { opinion = { who = ROOT value = 0 } } }
				}
				
				# Go nuts...
				AND = {
					same_liege = ROOT
					OR = {
						trait = lunatic
						trait = possessed
	#ai = no # Human
					}
				}
			}
		}
	}
}
	
	chance = {
		factor = 1
		
		modifier = {
			factor = 0.01
			FROM = { trait = content }
			any_pretender_title = {
				current_heir = { character = ROOT }
			}
		}
		modifier = {
			factor = 2.0
			FROM = { trait = envious }
			any_pretender_title = {
				current_heir = { character = ROOT }
			}
		}
		modifier = {
			factor = 0.5
			their_opinion = { who = FROM value = 50 }
		}
		modifier = {
			factor = 0
			their_opinion = { who = FROM value = 80 }
		}
		modifier = {
			factor = 1.5
			NOT = { their_opinion = { who = FROM value = -25 } }
		}
		modifier = {
			factor = 1.5
			NOT = { their_opinion = { who = FROM value = -50 } }
		}
		modifier = {
			factor = 2.0
			NOT = { their_opinion = { who = FROM value = -75 } }
		}
		modifier = {
			factor = 2.0
			FROM = { trait = deceitful }
		}
		modifier = {
			factor = 3.0
			FROM = { trait = ambitious }
		}
	}
	
	success = {
		tooltip = { is_alive = no }
		FROM = { has_character_flag = plot_murderer }
		has_character_flag = was_murdered_by_plot
	}
	abort = {
		is_alive = no
	}
	abort_effect = {
		FROM = {
			# Clear flags
			hidden_tooltip = {
				clr_character_flag = plot_kill_character_decision_50_taken
				clr_character_flag = plot_kill_character_decision_75_taken
				clr_character_flag = plot_kill_character_decision_100_taken
				clr_character_flag = event7040
			}
		}
	}
	effect = {
		hidden_tooltip = {
			death = yes
		}
		FROM = {
			change_intrigue = 1
			# Clear flags
			hidden_tooltip = {
				clr_character_flag = plot_murderer
				clr_character_flag = plot_kill_character_decision_50_taken
				clr_character_flag = plot_kill_character_decision_75_taken
				clr_character_flag = plot_kill_character_decision_100_taken
				clr_character_flag = event7040
			}
		}
	}
}
If you want to see the lines I have changed, they are the ones that have too little indentation.

TO DO:
plot to murder title holders that you or your wife/children are heir to.
split this plot into one plot for each cause to make it more manageable
allow the ai to use these new plots without breaking Europe.
 
The scope change commands are befuddling me. After half a dozen attempts I got some code that I was sure would let me plot to kill someone if I was his heir and instead it lets me plot to kill my own heir.

Oh well, back to the drawing board.
 
I've now split the event into three. Here's the Doux of Adrianople's list of potential victims.
victims.jpg

Having one event for "Murder my liege" means that that is always an option. The Murder [name] plotsare to kill people that you will inherit from. In this case, two of your vassals with no relatives and your mother, who has a county of her own. (Daddy isn't on this list because he can be plotted against via "Murder my liege") The Kill [name] plots are to get rid of legitimate claiments to titles that you, your wife or your kids will inherit. (In this case killing your younger brothers to increase your gavelkind share) Finally See [name] dead remains the wife-murdering plot.

TO DO: find a better way of posting images.
 
Last edited:
can you also have a plot to murder someone who is about to inherit something out of your realm?

example: as the duke of flanders your 2nd son who is count of zeeland will inherit yperen away from your realm
 
I support this mod
 
I think the murder-plotting system would be so much better if you had the option of 'plot to murder' from the target characters diplomacy page.
 
I think the murder-plotting system would be so much better if you had the option of 'plot to murder' from the target characters diplomacy page.


But you already have the option of assassination -- plotting should be reserved for things that directly and immediately benefit your character or his direct family.
 
But a lot of times you cant choose a person that effects you because there isn't that option to plot.
 
So just assassinate them normally.


It's an option, and with a good spymaster establishing spyring, you can get pretty good odds.
 
So just assassinate them normally.


It's an option, and with a good spymaster establishing spyring, you can get pretty good odds.

there is a vast difference between plotting and just sending an assassin.

this is the equivalent of saying "who needs plots to lower crown authority, just declare an independence war on your liege"

the idea is to use their enemies against them, as opposed to throwing away some gold and rolling a dice until they die.
 
I'd love plots to be able to include foreigners. Sort of like - Duke of Brabant plots to kill Duke of Gelre, with the aid of the HRE's spymaster. That sort of intricate, international effort.
 
Plotting should include all the powerful people in your liege's or your demense (vassals, courtiers with a certain prestige/gold amount, members of council) it may end up with too complex a list for the current interface though.

My understanding is that this mechanic is for assasinations that would be of use to more than one person. So rather than "plot to kill my wife", where really only you and maybe someone with a nice eligible daughter that wants a marriage with you would be interested, plots should really be aimed at taking out people who are, in some way, too powerful for a simple assasination.
 
I'd love plots to be able to include foreigners. Sort of like - Duke of Brabant plots to kill Duke of Gelre, with the aid of the HRE's spymaster. That sort of intricate, international effort.

I believe the whole mechanism behind allowing you to plot to kill people is that you're recruiting those who are close to the target; i.e. they'll be able to slip poison into their food, or at least make an assassin's work easier. It's not immediately obvious to me how having the support of Count X, the HRE's spymaster, will make it easier to kill the Duke of Gelre.
 
I've finally gotten round to adapting it from the demo to the real game (1.03b).

The release version of the murder plot removed the player from the problematic Go Wild section, but instead gave him (supposedly) free rein to murder characters who didn't like him. Unfortunately that meant that in a realm suffering from even a low level of heresy your only targets became a trio of insignificant heretics.

I've therefore restricted that option to (hopefully) include only counts and above.

The other changes are the same as before (allow murder of lieges, and people with ttles I am heir to) and again the AI's choice of plots is for the moment unchanged.

I've fired the mod up and murdered my first liege, so here's the mod.

>>> View attachment lamberts_plots.zip <<<

At first glance it seems that this may make it too easy to murder your way through successive lieges until you get the throne, so it probably needs some work for balancing. I don't want this to be the Kind Hearts and Coronets mod. Also, I am going to ponder on when the ai should be allowed to use these new plots.
 
I had lots of problems controlling when the AI could pick these plots, which is why I haven't posted sooner.

At first the plots vanished seemingly at random from the player's list of choices. It turned out that the weighting factor, which I had expected to just affect the AI's chance of picking the plot, could cause it to become unselectable by the player if the chance went too low.

After that I thought I had it working until my loving son tried to murder me, causing me to realise that I had messed up the NOTs in the relationship factors.

I'm about to give it another playtest. Hopefully this version will be in a fit state to show to the world.