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

Whitewatt

Corporal
32 Badges
Apr 29, 2018
29
0
  • Crusader Kings II
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: The Republic
  • Crusader Kings II: Horse Lords
  • Crusader Kings III: Royal Edition
  • Crusader Kings II: Conclave
  • Stellaris
  • Hearts of Iron IV: Cadet
  • Crusader Kings II: Reapers Due
  • Crusader Kings II: Monks and Mystics
  • Surviving Mars
  • Age of Wonders III
  • Crusader Kings II: Jade Dragon
  • Surviving Mars: Digital Deluxe Edition
  • Crusader Kings II: Holy Fury
  • Prison Architect
  • Crusader Kings III
  • Magicka 2
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Pre-order
  • Victoria 2
  • Europa Universalis IV: Res Publica
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Art of War
  • Europa Universalis IV
  • Darkest Hour
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: Legacy of Rome
Hello.

It's the first time I'm delving into event modding and I'm not sure what to do.
I want to create an event that fires on start up for only a few catholics with zealous trait (like 3 tops) to make them a member of a specific bloodline.

How do I go about achieving this?

Thank you for reading.
 
I tried making the event by look at wiki and examples, but the validator gives me an the error:
Invalid node "random" in scope CharEvent (value is: <a complex type>)

I tried searching google for this but there's barely any references to Invalid nodes and none to
"random" or in scope CharEvent, so idk what to do.

This is the event:
Code:
namespace = BOJ

character_event = {
    id = BOJ.1
  
    hide_window = yes
    is_triggered_only = yes
    religion = catholic
  
    trigger = {
        has_dlc = "Holy Fury"
        trait = zealous
    }
  
    random = {
        chance = 5
        add_to_bloodline = bloodlineblab
    }         
}

EDIT:

I put random inside immediate and that error no longer shows. Now I get "bloodlineblab" is not a valid MaybeEventTarget(bloodline).

How do I fix that?

EDIT 2:

Ignore this thread, posted on the quick help thread and got it fixed;

Code:
any_bloodline = {
    limit = { has_bloodline_flag = <flag> }
    ROOT = { add_to_bloodline = PREV }
}
by faiuwle did the trick
 
Last edited: