Why there is an (extra) waiting time after the first completing of some missions?

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

Lillebror

Captain
51 Badges
Jan 6, 2014
463
88
  • Cities: Skylines
  • Major Wiki Contributor
  • Cities: Skylines - Parklife
  • Europa Universalis IV
  • Age of Wonders III
  • Hearts of Iron IV Sign-up
  • Surviving Mars
  • Stellaris
  • Crusader Kings II
  • Europa Universalis III Complete
Flags are often used in missions to prevent that a country can take a mission several times. Besides such use, one can find the following (example) code in several missions:
Code:
my_mission = {

    type = country
    ...
    allow = {
        ...
        OR = {
            NOT = { has_country_flag = had_my_mission }
            had_country_flag = { flag = had_my_mission days = 7300 }
        }
        NOT = { has_country_modifier = modifier_xy }
    }
    ...
    effect = {
        set_country_flag = had_my_mission
        add_country_modifier = {
            name = "modifier_xy"
            duration = 3650
        }
    }   
}
(Note: The granted modifiers are often used by several missions.)
What does this code do?
The code causes that between the first accomplishment and the second acceptance of this mission are at least 20 years. The waiting time for further missions solely depends on the modifier.

The OR-statement is also in some missions which don't grant a modifier as reward. There is then only a waiting time after the first fulfillment.

Is this what is intended? An extra waiting time after the first fulfillment of the mission?
Why?
 

Viperswhip

Field Marshal
101 Badges
Feb 8, 2009
3.152
610
  • Deus Vult
  • Heir to the Throne
  • King Arthur II
  • Pillars of Eternity
  • The Kings Crusade
  • Divine Wind
  • Europa Universalis III Complete
  • Cities: Skylines Deluxe Edition
  • Victoria: Revolutions
  • Rome Gold
  • Warlock 2: The Exiled
  • Crusader Kings II
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: Together for Victory
  • 500k Club
  • Crusader Kings II: Reapers Due
  • Hearts of Iron IV: Cadet
  • Europa Universalis IV: El Dorado
  • Surviving Mars
  • Mount & Blade: Warband
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Mandate of Heaven
  • Hearts of Iron IV: Colonel
  • Crusader Kings II: Conclave
  • Europa Universalis IV: Rule Britannia
  • Stellaris: Apocalypse
  • Stellaris: Humanoids Species Pack
  • Stellaris: Galaxy Edition
  • Cities: Skylines - Mass Transit
  • BATTLETECH - Backer
  • Cities: Skylines - Green Cities
  • Crusader Kings II: Monks and Mystics
  • Surviving Mars: First Colony Edition
  • Shadowrun Returns
  • Cities: Skylines - Natural Disasters
  • Hearts of Iron IV: Death or Dishonor
  • Stellaris: Digital Anniversary Edition
  • Surviving Mars: Digital Deluxe Edition
  • Europa Universalis IV
  • Cities: Skylines - Parklife
  • Stellaris: Leviathans Story Pack
  • Europa Universalis IV: Rights of Man
  • Europa Universalis IV: Dharma
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Victoria 3 Sign Up
  • Victoria 2
  • Shadowrun: Dragonfall
Or else you can set youself up to shuffle between two missions for endless rewards.

It's called, the DDRJake effect. Many a change has come to the game via, presumably the devs, watching DDRJakes videos. Check out Ryukku #1, from a couple years ago now for endless mission swapping getting him to truly ridiculous levels of tech early game.
 

Lillebror

Captain
51 Badges
Jan 6, 2014
463
88
  • Cities: Skylines
  • Major Wiki Contributor
  • Cities: Skylines - Parklife
  • Europa Universalis IV
  • Age of Wonders III
  • Hearts of Iron IV Sign-up
  • Surviving Mars
  • Stellaris
  • Crusader Kings II
  • Europa Universalis III Complete
I see reasons why a country should not be able to take a mission more than once.
I see reasons why a country should have to wait some time before taking a mission again.

I still see no reason why there is a waiting time, respectively an extended waiting time, only after the first mission accomplish.
 

Trin Tragula

Design Lead - Crusader Kings 3
Paradox Staff
28 Badges
Aug 1, 2003
6.536
13.795
  • Victoria: Revolutions
  • IPO Investor
  • Paradox Order
  • Mount & Blade: Warband
  • Europa Universalis IV: Pre-order
  • Crusader Kings II: Holy Knight (pre-order)
  • 500k Club
  • 200k Club
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Victoria 2
  • Sengoku
  • Semper Fi
  • Rome Gold
  • Arsenal of Democracy
  • Europa Universalis III Complete
  • March of the Eagles
  • Magicka
  • Europa Universalis III Complete
  • Heir to the Throne
  • Hearts of Iron III
  • For the Motherland
  • For The Glory
  • Europa Universalis IV
  • Divine Wind
  • Europa Universalis III Complete
  • Deus Vult
  • Crusader Kings II
Yes its intentional :) some missions can't be taken again until some time has passed and some are once per campaign (most notably the extremely simple tutorial missions for new players such as "get a royal marriage").
Not sure what you mean with an "extra" waiting time though. There is one timer on the mission and an unrelated duration on the reward.
Once your reward has run out you can still get the same modifier from other missions, not just this one.

Edit: and as I missed part of the question the reasons are to preserve variety and to avoid cycling the same missions.
 
  • 3
Reactions:

Lillebror

Captain
51 Badges
Jan 6, 2014
463
88
  • Cities: Skylines
  • Major Wiki Contributor
  • Cities: Skylines - Parklife
  • Europa Universalis IV
  • Age of Wonders III
  • Hearts of Iron IV Sign-up
  • Surviving Mars
  • Stellaris
  • Crusader Kings II
  • Europa Universalis III Complete
Okay. I try again with 2 concrete examples:

1.
Code:
recover_abysmal_prestige = {

    type = country

    category = ADM

    allow = {
        NOT = { prestige = -50 }
        OR = {
            NOT = { has_country_flag = recovered_abysmal_prestige }
            had_country_flag = { flag = recovered_abysmal_prestige days = 3650 }
        }
    }
    abort = {
    }
    success = {
        prestige = 0
    }
    chance = {
        factor = 1000
  
        modifier = {
            factor = 1.05
            is_at_war = yes
            has_idea = naval_glory
        }
        modifier = {
            factor = 1.05
            is_at_war = yes
            has_idea = glorious_arms
        }
        modifier = {
            factor = 1.05
            has_idea = patron_of_art
        }
        modifier = {
            factor = 1.05
            NOT = { stability = 1 }
        }  
        modifier = {
            factor = 1.05
            NOT = { stability = 3 }
        }  
    }
    effect = {
        add_stability = 1
        set_country_flag = recovered_abysmal_prestige
    }

}
If I have completed the mission the first time, I have to wait 3650 days before I could take it again. When I do so and complete the mission a second time, I haven't to wait again, as I have the flag already for at least 3650 days.

2.
I choose a mission which modifier and flag is used only by this mission.
Code:
improve_economical_mismanagement = {

   type = country

   category = ADM

   allow = {
     is_at_war = no
     num_of_loans = 10
     OR = {
       NOT = { has_country_flag = improved_economic_mismanagement }
       had_country_flag = { flag = improved_economic_mismanagement days = 7300 }
     }
     NOT = { has_country_modifier = impressed_financial_sector }
   }
   abort = {
     is_bankrupt = yes
   }
   success = {
     NOT = { num_of_loans = 1 }
   }
   chance = {
     factor = 1000
     modifier = {
       factor = 1.05
       adm = 2
     }
   }
   effect = {
     set_country_flag = improved_economic_mismanagement
     add_country_modifier = {
       name = "impressed_financial_sector"
       duration = 3650
     }
   }
}
If I have completed the mission the first time, I have to wait 7300 days before I could take it again. When I do so and complete the mission a second time, I have to wait 3650 days before I could take it again.

Why there is a waiting time, respectively an extended waiting time, only after the first mission accomplish?

Edit:
...
Edit: and as I missed part of the question the reasons are to preserve variety and to avoid cycling the same missions.

As the first example shows, a fast repeat is prevented only after the first time.
 
Last edited:

Checco

Officially Nipponophile at this point
31 Badges
Feb 27, 2008
2.051
1.061
  • Crusader Kings II: Charlemagne
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Sengoku
  • Europa Universalis: Rome
  • Victoria: Revolutions
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Heir to the Throne
  • Hearts of Iron III
  • Divine Wind
  • Europa Universalis III
  • Deus Vult
  • Crusader Kings II: The Old Gods
  • Crusader Kings II
  • Crusader Kings III
  • Imperator: Rome
  • Europa Universalis IV: Mandate of Heaven
  • Stellaris
  • Crusader Kings II: Conclave
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: El Dorado
  • Crusader Kings II: Holy Knight (pre-order)
  • 500k Club
  • Victoria 2
  • Europa Universalis IV
  • Europa Universalis IV: Pre-order
  • Europa Universalis IV: Res Publica
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
It's called, the DDRJake effect. Many a change has come to the game via, presumably the devs, watching DDRJakes videos. Check out Ryukku #1, from a couple years ago now for endless mission swapping getting him to truly ridiculous levels of tech early game.

Lol that DDRJake guy was one hell of a betatester :rolleyes:
 

Trin Tragula

Design Lead - Crusader Kings 3
Paradox Staff
28 Badges
Aug 1, 2003
6.536
13.795
  • Victoria: Revolutions
  • IPO Investor
  • Paradox Order
  • Mount & Blade: Warband
  • Europa Universalis IV: Pre-order
  • Crusader Kings II: Holy Knight (pre-order)
  • 500k Club
  • 200k Club
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Victoria 2
  • Sengoku
  • Semper Fi
  • Rome Gold
  • Arsenal of Democracy
  • Europa Universalis III Complete
  • March of the Eagles
  • Magicka
  • Europa Universalis III Complete
  • Heir to the Throne
  • Hearts of Iron III
  • For the Motherland
  • For The Glory
  • Europa Universalis IV
  • Divine Wind
  • Europa Universalis III Complete
  • Deus Vult
  • Crusader Kings II
Did you try that? Because seting the flag again if you already have it resets the "has had it for x days" last i checked :)
Can't check now though as I'm not working (parental leave).
 
  • 1
Reactions:

Lillebror

Captain
51 Badges
Jan 6, 2014
463
88
  • Cities: Skylines
  • Major Wiki Contributor
  • Cities: Skylines - Parklife
  • Europa Universalis IV
  • Age of Wonders III
  • Hearts of Iron IV Sign-up
  • Surviving Mars
  • Stellaris
  • Crusader Kings II
  • Europa Universalis III Complete
Did you try that? Because seting the flag again if you already have it resets the "has had it for x days" last i checked :)
Can't check now though as I'm not working (parental leave).
No. Just read the code. Didn't know that.
I will check it by playing.

Edit:
Checked.
It is also in the Wiki:
had_country_flag - Clause - Returns true if country flag X was last set for country at least Y days ago
@Trin Tragula: Thanks for you patience.
 
Last edited:

net.split

Alek Sandria
57 Badges
Jul 23, 2011
1.042
1.818
  • Rome Gold
  • Hearts of Iron III
  • Heir to the Throne
  • The Kings Crusade
  • Magicka
  • Majesty 2
  • Majesty 2 Collection
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Cities in Motion
  • Semper Fi
  • Ship Simulator Extremes
  • Sword of the Stars
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • Rome: Vae Victis
  • Europa Universalis IV: Pre-order
  • Cities: Skylines - After Dark
  • For The Glory
  • Arsenal of Democracy
  • Crusader Kings II
  • 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: Sons of Abraham
  • Crusader Kings II: Sword of Islam
  • Europa Universalis III
  • For the Motherland
  • Europa Universalis IV: Call to arms event
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV
  • Divine Wind
  • Europa Universalis IV: Art of War
  • Darkest Hour
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Third Rome
  • Knights of Honor
  • Cities: Skylines - Mass Transit
  • Stellaris: Leviathans Story Pack
  • Stellaris
  • Europa Universalis IV: Mare Nostrum
  • Europa Universalis IV: Cossacks
  • Europa Universalis IV: Common Sense
  • Pride of Nations
  • Europa Universalis IV: El Dorado
  • Europa Universalis 4: Emperor
  • Cities: Skylines
  • 500k Club
  • 1
Reactions: