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

Caliph

Corporal
26 Badges
Oct 13, 2018
40
0
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • Crusader Kings II: Horse Lords
  • Crusader Kings III: Royal Edition
  • Crusader Kings III
  • Crusader Kings II: Holy Fury
  • Hearts of Iron IV: Expansion Pass
  • Crusader Kings II: Jade Dragon
  • Hearts of Iron IV: Death or Dishonor
  • Surviving Mars
  • Crusader Kings II: Monks and Mystics
  • Hearts of Iron IV: Together for Victory
  • Crusader Kings II: Reapers Due
  • Hearts of Iron IV: Cadet
  • Crusader Kings II: Conclave
  • Crusader Kings II: Way of Life
  • Victoria 2
  • 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
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II
I was wondering why this event kills the player instead of the random courtier?

Code:
character_event = {
    id = 999997
    picture = GFX_evt_dead_body_hf
    desc = AYL_text_3
    border = GFX_event_normal_frame_war
   
    is_triggered_only = yes
   
        immediate = {
        hidden_effect = {
            random_courtier = {
                limit = {
                    age = 12
                    host = { character = ROOT }
                }
                save_event_target_as = human_sacrifice_courtier
            }
        }
    }

        option = {
            name = AYL_name_4

        human_sacrifice_courtier = { death = { death_reason = death_murder_unknown killer = ROOT  } }
       
        character_event { id = 999995 days = 2 }
        }
        option = {
            name = AYL_name_5
       
            add_trait = withdrawal
            remove_trait = juiced      
            piety = 25          

        character_event { id = 999996 days = 40 random = 80 }
    }
}

Also I was wondering if there was a way I could make an event trigger on inheriting or gaining an artifact? and is there a way I can get a certain % outcome like 15% chance courtier is killed 85% courtier survives and modifier 'attempted murderer' is added. Thanks for reading this an advice you may have for me would be great!

EDIT: Also is there any way to have multple events selected for the,

character_event { id = 999996 days = 40 random = 80 }

Part of the event and have an event randomly selected from the pile?
 
Last edited:
replace this:
human_sacrifice_courtier = { death = { death_reason = death_murder_unknown killer = ROOT } }
by this:
event_target:human_sacrifice_courtier = { death = { death_reason = death_murder_unknown killer = ROOT } }