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

shigawire

Private
59 Badges
Jul 14, 2004
11
0
  • Cities: Skylines - Natural Disasters
  • Pillars of Eternity
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Cities: Skylines - After Dark
  • Crusader Kings II: Conclave
  • Cities: Skylines - Snowfall
  • Europa Universalis IV: Mare Nostrum
  • Stellaris
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Crusader Kings II: Reapers Due
  • Stellaris: Leviathans Story Pack
  • Crusader Kings II: Way of Life
  • Crusader Kings II: Monks and Mystics
  • Stellaris - Path to Destruction bundle
  • Cities: Skylines - Mass Transit
  • Stellaris: Synthetic Dawn
  • Age of Wonders III
  • Cities: Skylines - Green Cities
  • Crusader Kings II: Jade Dragon
  • Stellaris: Apocalypse
  • Europa Universalis IV: Rule Britannia
  • Cities: Skylines - Parklife Pre-Order
  • Cities: Skylines - Parklife
  • Crusader Kings III
  • Europa Universalis IV: Call to arms event
  • 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
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Crusader Kings II
  • Hearts of Iron III
  • Europa Universalis IV: Res Publica
  • Europa Universalis: Rome
  • Sword of the Stars II
  • Victoria 2
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • Rome: Vae Victis
  • 500k Club
  • Cities: Skylines
Hello,

I'm learning a bit of modding and have some basic questions. As can be seen the mod is very simple and a bit self indulgent.

I have created my own bloodline and an event to attach it to any character. I fire it via console and the bloodline propagates correctly, which is cool. I have these two events below which i have the question about.

Both events work but only one character at a time over approx 12 months but does catch all them eventually. I was expecting the event to fire on all characters at the same time. As a test i put the event GEARY.2 in the 'on_startup' which worked and fired for all characters at once. Is the 'on_yearly_pulse' and 'on_decade_pulse' working as intended or am i missing something in the events?

Code:
#Add Immortal trait to Adult males with Geary Bloodline --> on_yearly_pulse
character_event = {
    id = GEARY.2
    
    hide_window = yes
    is_triggered_only = yes
    
    only_men = yes
    min_age = 16
    
    trigger = {
        any_owned_bloodline = { has_bloodline_flag = geary_blood }
        immortal = no
    }
    
    option = {
        name = OPT_GEARY.2.1
    
        add_trait = immortal
        set_character_flag = immortal
    }
}

Code:
# Stat increase every 'on_decade_pulse' for immortal char's. Life experience.
character_event = {
    id = GEARY.4
    
    hide_window = yes
    is_triggered_only = yes
    
    only_men = yes
    min_age = 26

    trigger = {
        immortal = yes
    }
    
    option = {
        name = OPT_GEARY.4.1   
        
        change_diplomacy = 1
        change_martial = 1
        change_stewardship = 1
        change_intrigue = 1
        change_learning = 1
        
        set_character_flag = immortal_xp
    }
}

Regards
Jaime
 
The on_<time>_pulse on_actions do not fire for everyone at once by design, as that would cause a big lag spike every time the pulse happened. The pulse is randomised for every character, so it is spread out over the year/decade. Things work exactly as you describe.