Scripted Effect

set_ended_disaster_flag_effect

If
Does NOT have Variable: had_$type$_disaster
ThenSet 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
Disasters

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
}
}

© 2026 Soft Santa Cruz, S.L.U. All rights reserved. Unofficial fan project, not affiliated with Paradox Interactive. Game content © Paradox Interactive. · About · Privacy · Legal notice