realgray-stellaris-mod/events/RG_planert_killer_events.txt

185 lines
3.4 KiB
Plaintext

namespace = RG_planet_killer
# Destroyed a star.
planet_event = {
id = RG_planet_killer.1
hide_window = yes
is_triggered_only = yes
trigger = {
is_star = yes
}
immediate = {
set_update_modifiers_batch = begin
solar_system = {
RG_destroy_star_system = yes
}
every_country = {
create_message = {
type = "STAR_DESTROYED"
localization = "message_RG_planet_killer_killed_star_desc"
days = 30
target = root
variable = {
type = name
localization = "RG_target_planet"
scope = root
}
variable = {
type = name
localization = "RG_target_system"
scope = root.solar_system
}
variable = {
type = name
localization = "RG_attacker"
scope = from.owner
}
variable = {
type = name
localization = "RG_attacker_ship"
scope = from
}
}
}
set_update_modifiers_batch = end
}
} option = {
trigger = { has_civic = civic_AG_gray_master }
name = AG_dooropen_master.option
if = {
limit = {
any_country = {
has_civic = civic_AG_gray
}
}
#do nothing
}
else_if = {
limit = {
NOT = {
any_country = {
has_civic = civic_AG_gray
}
}
has_global_flag = has_rg_mod
}
force_remove_civic = civic_AG_gray_master
}
else = {
country_event = { id = graygoo.499 }
}
}
# Cracked
planet_event = {
id = RG_planet_killer.2
is_triggered_only = yes
hide_window = yes
trigger = {
is_star = no
}
immediate = {
set_update_modifiers_batch = begin
RG_destroy_planet_effect = yes
every_country = {
create_message = {
type = "PLANET_DESTROYED"
localization = "message_RG_planet_killer_killed_planet_desc"
days = 30
target = root
variable = {
type = name
localization = "RG_target_planet"
scope = root
}
variable = {
type = name
localization = "RG_attacker"
scope = from.owner
}
variable = {
type = name
localization = "RG_attacker_ship"
scope = from
}
}
}
set_update_modifiers_batch = end
}
}
# SP_Cracked
planet_event = {
id = RG_planet_killer.3
is_triggered_only = yes
hide_window = yes
trigger = {
is_star = no
}
immediate = {
set_update_modifiers_batch = begin
RG_destroy_planet_effect = yes
every_country = {
create_message = {
type = "PLANET_DESTROYED"
localization = "message_RG_planet_killer_killed_planet_sp_desc"
days = 30
target = root
variable = {
type = name
localization = "RG_target_planet"
scope = root
}
variable = {
type = name
localization = "RG_attacker"
scope = from.owner
}
variable = {
type = name
localization = "RG_attacker_ship"
scope = from
}
}
}
set_update_modifiers_batch = end
}
}
# SP_Cracked
planet_event = {
id = RG_planet_killer.4
is_triggered_only = yes
hide_window = yes
trigger = {
is_star = no
}
immediate = {
set_update_modifiers_batch = begin
RG_destroy_planet_effect_sp = yes
every_country = {
create_message = {
type = "PLANET_DESTROYED"
localization = "message_RG_planet_killer_killed_planet_NANO_SP_desc"
days = 30
target = root
variable = {
type = name
localization = "RG_target_planet"
scope = root
}
variable = {
type = name
localization = "RG_attacker"
scope = from.owner
}
variable = {
type = name
localization = "RG_attacker_ship"
scope = from
}
}
}
set_update_modifiers_batch = end
}
}