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

Magdaki

Just Another Friendless Blorg
80 Badges
Sep 13, 2011
597
733
  • Victoria 2: A House Divided
  • Sword of the Stars II
  • Sengoku
  • Semper Fi
  • Cities: Skylines - Snowfall
  • 500k Club
  • Crusader Kings II: Holy Knight (pre-order)
  • Crusader Kings II: Way of Life
  • Pillars of Eternity
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Cities: Skylines - After Dark
  • Crusader Kings II: Jade Dragon
  • Crusader Kings II: Conclave
  • Surviving Mars
  • Stellaris
  • Stellaris Sign-up
  • Hearts of Iron IV: Cadet
  • Crusader Kings II: Reapers Due
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Hearts of Iron IV: Together for Victory
  • Crusader Kings II: Monks and Mystics
  • Cities: Skylines - Mass Transit
  • Crusader Kings Complete
  • BATTLETECH
  • Prison Architect
  • Hearts of Iron IV: Expansion Pass
  • Shadowrun Returns
  • Cities: Skylines - Campus
  • Hearts of Iron IV: Death or Dishonor
  • Surviving Mars: First Colony Edition
  • Age of Wonders III
  • Cities: Skylines - Green Cities
  • Crusader Kings II: Holy Fury
  • Cities: Skylines Industries
  • Surviving Mars: First Colony Edition
  • Shadowrun: Dragonfall
  • Europa Universalis IV
  • Victoria 2
  • Stellaris: Humanoids Species Pack
  • Cities: Skylines - Parklife
  • Stellaris: Distant Stars
  • Cities: Skylines - Parklife Pre-Order
  • Stellaris: Apocalypse
  • Europa Universalis III Complete
  • Stellaris: Ancient Relics
  • Age of Wonders: Planetfall Sign Up
  • Crusader Kings III
  • Europa Universalis III Complete
I'm working on a new plot that would allow you to kill a vassal that hates you. The objective is to give higher lords more plots to work with.

It kind of sort of works, but not really. If I monkey around with it (removing some conditions or making slight alterations), it will sometimes show up for some lieges but then not others. I can never make it work quite the way I think it should be working. I'm kind of perplexed.

Any thoughts?

Code:
	# Target character scope
	allow = {
		AND = {
			AND = {
				# They dislike me
				NOT = { opinion = { who = FROM value = -75 } }

				# I dislike them
				OR = {
                                                                          ai = no # human
					NOT = { opinion = { who = ROOT value = -75 } }
				}
			}

		               # They are my vassal
			FROM = {
				overlord_of = ROOT
			}
		}	
}
 
Ideally, I'd like to have it show up on a vassal with a revolt risk greater than zero, but I'm not sure how to do that so this was the next best thing.

If I can get this to work, then my next goal will be to try to give a vassal a "rebel" trait when they rebel for X years and the allow you to plot against a former rebel.

The -75 on boths sides is for the AI only. He hates me and I hate him. The player should be able to plot against any vassal that hates him.

It will be a bit gamey and open to abuse by the human player but I add a lot to role-playing when I play which keeps me in check. So for me this is a role-playing tool "Oh would somebody rid me of that troublesome Archbishop?" :)

Code:
plot_kill_disloyal_vassal = {
	type = realm_characters
	plot = yes
	intrigue_plot = yes
	
	# Plotter scope
	potential = {
		prisoner = no
		age = 16
		independent = no
		is_ruler = yes
		is_landed = yes
		primary_title = { higher_tier_than = BARON }
	}
	
	# Target character scope
	allow = {
		AND = {
			AND = {
				# They dislike me
				NOT = { opinion = { who = FROM value = -75 } }

				OR = {
					ai = no #human
					NOT = { opinion = { who = ROOT value = -75 } }
				}
			}

			# They are my vassal
			FROM = {
				overlord_of = ROOT
			}
		}
	}


	chance = {
		factor = 1000 #original value 1, raised to see if this is causing it to not show up
		
		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 = -90 } }
#		}
		modifier = {
			factor = 2.0
			NOT = { their_opinion = { who = FROM value = -100 } }
		}
		modifier = {
			factor = 2.0
			FROM = { trait = deceitful }
		}
		modifier = {
			factor = 3.0
			FROM = { trait = ambitious }
		}
		modifier = {
			factor = 2.0
			FROM = { trait = paranoid }
		}
	}
	
	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
			}
		}
	}
}
 
Last edited:
Into the objectives.txt file in the common subdirectory (or really into your own mod).

BUT... it doesn't work. I don't know why but it just fires very irregularly and sometimes doesn't even honor the criteria. I.e. a vassal with a positive opinion will show up as a possible target.

If I can get it working I'll release it and the other things I'm working on as a mod.