realgray-stellaris-mod/common/scripted_effects/RG_special_effects.txt

232 lines
4.7 KiB
Plaintext
Raw Normal View History

rg_storyline_trigger = {
# 初始化故事事件触发
2023-05-29 21:45:53 +08:00
random_list = {
50 = {
country_event = { id = rg_story.2 days = 3600 random = 12800 }
}
50 = {
country_event = { id = rg_story.8 days = 3600 random = 12800 }
}
}
2023-05-29 21:45:53 +08:00
if = {
2023-06-01 16:48:38 +08:00
limit = {
2023-05-29 21:45:53 +08:00
exists = event_target:guardian_dragon_country
2023-06-08 12:22:22 +08:00
NOT = {
has_global_flag = has_origin_gray_dragon
}
2023-05-29 21:45:53 +08:00
}
country_event = { id = rg_story.11 days = 3600 random = 12800 }
}
}
rg_create_gray_planetkiller_testship_1 = {
create_fleet = {
name = "NAME_RG_TESTSHIP"
settings = {
can_disband = yes
can_upgrade = no
can_change_composition = no
can_change_leader = no
uses_naval_capacity = no
spawn_debris = no
}
effect = {
set_owner = root
create_ship = {
name = "NAME_RG_TESTSHIP"
design = "RG_COLOSSUS_interdictor_SP"
prefix = no
upgradable = no
effect = {
save_global_event_target_as = rg_test_ship_global_event_target
}
}
set_location = {
target = root.capital_scope
distance = 0
angle = random
}
set_fleet_flag = rg_test_ship_fleet
}
}
}
rg_create_gray_paperwork_testship_1 = {
create_fleet = {
name = "NAME_RG_TESTSHIP"
settings = {
can_disband = yes
can_upgrade = no
can_change_composition = no
can_change_leader = no
uses_naval_capacity = no
spawn_debris = no
}
effect = {
set_owner = root
create_ship = {
name = "NAME_RG_TESTSHIP"
design = "RG_Buff_interdictor_SP"
prefix = no
upgradable = no
}
set_location = {
target = root.capital_scope
distance = 0
angle = random
}
set_fleet_flag = rg_test_ship_fleet
}
}
}
2023-05-24 17:26:07 +08:00
rg_create_fake_dragon_species = {
create_species = {
name = RG_SIMULATION_DRAGON_SPECIES
plural = RG_SIMULATION_DRAGON_SPECIES
class = ART
portrait = art13
namelist = ART1
effect = {
save_global_event_target_as = RG_sim_dragon_species
}
}
2023-05-24 17:26:07 +08:00
}
rg_create_fake_dragon = {
rg_create_fake_dragon_species = yes
if = {
limit = {
NOT = {
has_country_flag = rg_fake_dragon_reborn_country
}
}
2023-05-24 17:26:07 +08:00
create_leader = {
class = admiral
2023-06-08 12:22:22 +08:00
species = root
2023-05-24 17:26:07 +08:00
name = "Name_rg_fake_dragon"
event_leader = yes
gender = female
custom_description = rg_fake_dragon_desc
skill = 1
set_age = 0
traits = {
trait = RG_leader_trait_admiral_fake_dragon
trait = RG_leader_trait_admiral_timed_life
}
effect = {
2023-06-08 12:22:22 +08:00
if = {
limit = {
has_global_flag = has_wsg_mod
}
change_leader_portrait = wg_dragon
}
else = {
change_leader_portrait = species
}
2023-05-24 17:26:07 +08:00
set_leader_flag = has_gained_level_trait
set_leader_flag = has_gained_trait
set_leader_flag = legendary_leader
set_leader_flag = rg_fake_dragon
save_global_event_target_as = rg_fake_dragon_admiral
}
}
2023-05-24 17:26:07 +08:00
set_variable = {
which = rg_fake_dragon_timedlife_counter
value = 0
}
2023-06-08 12:22:22 +08:00
set_country_flag = rg_fake_dragon_owner
2023-05-25 19:18:28 +08:00
save_global_event_target_as = rg_fake_dragon_owner
2023-05-24 17:26:07 +08:00
create_fleet = {
name = "NAME_RG_Nanite_Dragon"
settings = {
can_disband = yes
can_upgrade = no
can_change_composition = no
can_change_leader = no
uses_naval_capacity = no
spawn_debris = no
}
2023-05-24 17:26:07 +08:00
effect = {
set_owner = root
create_ship = {
name = "NAME_RG_Nanite_Dragon"
design = "NAME_RG_FAKE_Dragon"
prefix = no
upgradable = no
}
set_location = {
target = root.capital_scope
distance = 0
angle = random
}
set_fleet_flag = rg_fake_dragon_fleet
assign_leader = last_created_leader
2023-05-25 19:18:28 +08:00
save_global_event_target_as = rg_fake_dragon_fleet
}
}
}
2023-06-03 14:49:10 +08:00
}
rg_create_gray_constship_1 = {
create_fleet = {
name = "NAME_Gray"
settings = {
can_disband = yes
can_upgrade = yes
can_change_composition = yes
can_change_leader = yes
uses_naval_capacity = yes
spawn_debris = yes
}
effect = {
set_owner = root
create_ship = {
name = "NAME_Gray"
design = "NAME_RG_GRAY_constructor"
prefix = no
upgradable = yes
}
set_location = {
2023-06-03 17:46:32 +08:00
target = event_target:global_gray_location
distance = 0
angle = random
}
}
}
}
rg_create_gray_colony_1 = {
create_ship_design = {
design = "NAME_RG_armed_colony_ship"
}
add_ship_design = last_created_design
create_fleet = {
name = "NAME_Gray"
settings = {
can_disband = yes
can_upgrade = yes
can_change_composition = yes
can_change_leader = yes
uses_naval_capacity = yes
spawn_debris = yes
}
effect = {
set_owner = root
create_ship = {
name = "NAME_Gray"
design = "NAME_RG_armed_colony_ship"
prefix = no
upgradable = yes
}
set_location = {
target = event_target:global_gray_location
2023-06-03 14:49:10 +08:00
distance = 0
angle = random
}
}
}
2023-06-03 17:46:32 +08:00
remove_ship_design = last_created_design
}