Scripted Effect
set_ended_disaster_flag_effect
If
Does NOT have Variable:
had_$type$_disasterThenSet variable
- Name:
had_$type$_disaster - Value: 1
Otherwise
Change variable
- Name:
had_$type$_disaster - Add: 1
Exact script
Script that calls it fills these in, as each caller in Connections shows.
$type$
Used by 7
Events
An End to Hostilities between Court and Countrytype = court_and_countryAs soon as it happens
Calmer Timestype = revolutionary_chaosAs soon as it happens
Disasters
Death of Hayam Wuruktype = death_of_hayan_wurukWhen it ends
The Decline of Majapahittype = decline_of_majapahitWhen it ends
French Wars of Religiontype = french_wars_religionWhen it ends
The Hook and Cod Warstype = hook_and_cod_warsWhen it ends
War of the Rosestype = war_of_the_rosesWhen it ends
if = {
limit = {
NOT = {
has_variable = had_$type$_disaster
}
}
set_variable = {
name = had_$type$_disaster
value = 1
}
}
else = {
change_variable = {
name = had_$type$_disaster
add = 1
}
}