realgray-stellaris-mod/events/RG_planert_killer_events.txt

160 lines
3.0 KiB
Plaintext
Raw Normal View History

namespace = RG_planet_killer
# Destroyed a star.
planet_event = {
id = RG_planet_killer.1
hide_window = yes
is_triggered_only = yes
2023-06-08 13:11:05 +08:00
trigger = {
is_star = yes
}
immediate = {
set_update_modifiers_batch = begin
2023-06-08 13:11:05 +08:00
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
}
}
# Cracked
planet_event = {
id = RG_planet_killer.2
is_triggered_only = yes
hide_window = yes
2023-06-08 13:11:05 +08:00
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
2023-06-08 13:11:05 +08:00
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
}
2023-06-08 13:11:05 +08:00
}
2024-09-21 14:38:29 +08:00
# 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
}
}