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

Griff Lancer

First Lieutenant
52 Badges
Jun 26, 2016
228
166
  • Crusader Kings II
  • Europa Universalis IV: Mare Nostrum
  • Stellaris: Humanoids Species Pack
  • Europa Universalis IV: Rights of Man
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Hearts of Iron IV: Together for Victory
  • Crusader Kings II: Monks and Mystics
  • Stellaris - Path to Destruction bundle
  • Europa Universalis IV: Mandate of Heaven
  • Hearts of Iron IV: Death or Dishonor
  • Stellaris: Synthetic Dawn
  • Stellaris: Nemesis
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: Cadet
  • Stellaris: Apocalypse
  • Stellaris: Distant Stars
  • Europa Universalis IV: Dharma
  • Stellaris: Megacorp
  • Crusader Kings II: Holy Fury
  • Europa Universalis IV: Golden Century
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Ancient Relics
  • Stellaris: Lithoids
  • Stellaris: Federations
  • Europa Universalis 4: Emperor
  • Stellaris: Necroids
  • Stellaris
  • Europa Universalis IV
  • Europa Universalis IV: Res Publica
  • Victoria 2
  • Europa Universalis IV: El Dorado
  • Crusader Kings II: Way of Life
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Conclave
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Reapers Due
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Victoria: Revolutions
  • 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: Sword of Islam
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
I'm trying to mod diseases to do more damage quickly and then fade out, but the yearly pulses is killing me, it makes the whole situation so clunky and slow, does anyone have any ideas?

Is there any way to get this working?
monthly_province_pulse = {
 
You can't create new on_actions. You'll have to fire an event as soon as a disease hits a province and repeat that every 30 days until the disease is gone.
 
I would do it one of two ways

1 - from the first event trigger another event on the province in however many days you like
2 - use the first event to add a major province modifier for an appropriate amount of time, then use the on_province_major_modifier on_action

I'd probably go for #2

Isn't on_province_major_modifier on_action still a yearly pulse?
 
You can always set up a maintenance event to repeat roughly every month that handles everything else. Just fire an initial event for the Pope (since he's always around) when the campaign starts that fires a hidden event in a province (say Roma) that does whatever you want to happen (e.g. lowering Prosperity in every province that's got a disease using any_province with proper limits), with the hidden province event including a repeat_event with days = 30 (or month = 1, I suppose...).
 
I made this prototype event, but its not working, what's wrong with it?

Code:
province_event = {
        id = MOD.101
        hide_window = yes

            trigger = {
            has_disease = yes
            }
            mean_time_to_happen = {
            months = 2
            }
            
        random_list = {       
            10 = {

                modifier = {
                    factor = 1.2
                        hospital_level = 1
                }
                modifier = {
                    factor = 1.2
                        hospital_level = 2
                }
                modifier = {
                    factor = 1.2
                        hospital_level = 3
                }
                modifier = {
                    factor = 1.2
                        hospital_level = 4
                }
                modifier = {
                    factor = 1.2
                        hospital_level = 5
                }
                modifier = {
                    factor = 1.2
                        hospital_level = 6
                }
            }
            90 = {

                increase_depopulation_effect = yes
            }
        }
    }