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:
(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?
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
}
}
}
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?