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

Whyareall

Sergeant
55 Badges
Jun 19, 2017
90
68
  • Europa Universalis IV: Cradle of Civilization
  • Crusader Kings II: Conclave
  • Europa Universalis IV: Mare Nostrum
  • Stellaris
  • Hearts of Iron IV: Cadet
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Rights of Man
  • Hearts of Iron IV: Together for Victory
  • Crusader Kings II: Monks and Mystics
  • Europa Universalis IV: Mandate of Heaven
  • Europa Universalis IV: Third Rome
  • Surviving Mars
  • Hearts of Iron IV: Death or Dishonor
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Jade Dragon
  • Hearts of Iron IV: Expansion Pass
  • Europa Universalis IV: Rule Britannia
  • Europa Universalis IV: Dharma
  • Shadowrun: Hong Kong
  • Crusader Kings II: Holy Fury
  • Europa Universalis IV: Golden Century
  • Hearts of Iron IV: Expansion Pass
  • Prison Architect
  • Imperator: Rome Sign Up
  • Hearts of Iron IV: La Resistance
  • Crusader Kings III
  • Crusader Kings II: Horse Lords
  • Europa Universalis 4: Emperor
  • Battle for Bosporus
  • 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
  • Crusader Kings III: Royal Edition
  • Europa Universalis IV: Res Publica
  • Victoria 2
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • Cities: Skylines
  • Europa Universalis IV: El Dorado
  • Crusader Kings II: Way of Life
  • Pillars of Eternity
  • Europa Universalis IV: Common Sense
  • Hearts of Iron IV: No Step Back
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: The Republic
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Legacy of Rome
Say if I want a character to be executed by the pope, I'd have the line

death = { death_reason = death_execution killer = ???? }​

What would I put in place of ????

The pope would be the owner of k_papal_state
 
It should be part of their death entry. Example:
1306.1.1 = {
death = {
death_reason = death_murder
killer = 58211
}
}

If its a historical pope, his char ID would go in your ????
 
I think he means via dynamic scripting:

Code:
# Assuming you have scoped here to the character to be killed
k_papal_state = {
  holder_scope = {
     PREVPREV = { # Go back 2 scopes up the chain: holder_scope -> k_papal_state ->
       death = { death_reason = death_execution killer = PREV }  # PREV is owner of k_papal_state
     }
  }
}

Here's another example from vanilla cm_misc_zun_events.txt

Code:
host = {
  ROOT = {
    death = {
      killer = PREV  # the host
      death_reason = death_sacrificed
    }
  }
}