realgray-stellaris-mod/common/scripted_effects/RG_gray_warship_init_effect...

245 lines
5.1 KiB
Plaintext

#普通的母舰
rg_warship_init_mod1 = {
create_fleet = {
name = "NAME_Gray"
settings = {
can_upgrade = no
can_disband = no
can_change_composition = no
can_change_leader = yes
uses_naval_capacity = no
spawn_debris = no
}
effect = {
set_owner = prev
create_ship = {
name = "NAME_Gray"
# design = "NAME_Gray_Warship_rg"
random_existing_design = RG_graygoo_mothership
prefix = no
upgradable = yes
effect = {
PREV = {
set_fleet_flag = gray_fleet_ship
}
save_global_event_target_as = gray_warship_ship
}
}
set_fleet_stance = aggressive
set_location = {
target = event_target:global_gray_location
distance = 0
angle = random
}
set_fleet_flag = gray_fleet
save_global_event_target_as = gray_warship
assign_leader = event_target:gray_leader_admiral
if = {
limit = {
has_global_flag = kdc_event_mod_active
}
add_modifier = {
modifier = remove_fleet_maintenance
}
}
}
}
}
#纳米旗舰
rg_warship_init_mod2 = {
create_fleet = {
name = "NAME_Gray"
settings = {
can_upgrade = no
can_disband = no
can_change_composition = no
can_change_leader = yes
uses_naval_capacity = no
spawn_debris = no
}
effect = {
set_owner = prev
create_ship = {
name = "NAME_Gray"
random_existing_design = RG_graygoo_capitalship
prefix = no
upgradable = yes
effect = {
PREV = {
set_fleet_flag = gray_fleet_ship
}
save_global_event_target_as = gray_warship_ship
}
}
set_fleet_stance = aggressive
set_location = {
target = event_target:global_gray_location
distance = 0
angle = random
}
set_fleet_flag = gray_fleet
save_global_event_target_as = gray_warship
assign_leader = event_target:gray_leader_admiral
if = {
limit = {
has_global_flag = kdc_event_mod_active
}
add_modifier = {
modifier = remove_fleet_maintenance
}
}
}
}
}
#纳米主宰
rg_warship_init_mod3 = {
create_fleet = {
name = "NAME_Gray"
settings = {
can_upgrade = no
can_disband = no
can_change_composition = no
can_change_leader = yes
uses_naval_capacity = no
spawn_debris = no
}
effect = {
set_owner = prev
create_ship = {
name = "NAME_Gray"
# design = "NAME_gray_juggernautship"
random_existing_design = RG_gray_juggernaut
prefix = no
upgradable = yes
effect = {
PREV = {
set_fleet_flag = gray_fleet_ship
}
save_global_event_target_as = gray_warship_ship
}
}
set_fleet_stance = aggressive
set_location = {
target = event_target:global_gray_location
distance = 0
angle = random
}
set_fleet_flag = gray_fleet
save_global_event_target_as = gray_warship
if = {
limit = {
has_global_flag = kdc_event_mod_active
}
add_modifier = {
modifier = remove_fleet_maintenance
}
}
}
}
}
#略有磨损的母舰
rg_warship_init_mod0 = {
create_fleet = {
name = "NAME_Gray"
settings = {
can_upgrade = no
can_disband = no
can_change_composition = no
can_change_leader = yes
uses_naval_capacity = no
spawn_debris = no
}
effect = {
set_owner = prev
create_ship = {
name = "NAME_Gray"
design = "NAME_Gray_Warship_base"
prefix = no
upgradable = yes
effect = {
PREV = {
set_fleet_flag = gray_fleet_ship
}
save_global_event_target_as = gray_warship_ship
}
}
set_fleet_stance = aggressive
set_location = {
target = event_target:global_gray_location
distance = 0
angle = random
}
set_fleet_flag = gray_fleet
save_global_event_target_as = gray_warship
assign_leader = event_target:gray_leader_admiral
if = {
limit = {
has_global_flag = kdc_event_mod_active
}
add_modifier = {
modifier = remove_fleet_maintenance
}
}
}
}
}
rg_army_transport_ship_init = {
create_ship_design = {
design = "NAME_RG_armed_transport_ship"
}
add_ship_design = last_created_design
create_fleet = {
name = "NAME_Gray"
effect = {
set_owner = prev
create_army_transport = {
ship_name = "NAME_Gray"
army_name = "NAME_Gray"
army_type = "gray_army"
}
set_location = {
target = event_target:global_gray_location
distance = 0
angle = random
}
# set_cloaking_active = yes
set_fleet_stance = aggressive
}
}
last_created_army = {
assign_leader = event_target:gray_leader_general
}
remove_ship_design = last_created_design
}
rg_scientist_ship_init = {
create_fleet = {
name = "NAME_Gray"
settings = {
can_upgrade = no
can_disband = no
can_change_composition = no
can_change_leader = yes
uses_naval_capacity = no
spawn_debris = no
}
effect = {
set_owner = prev
create_ship = {
name = "NAME_Gray"
design = "NAME_RG_GRAY_scienceship"
prefix = no
upgradable = yes
}
set_fleet_stance = evasive
set_location = {
target = event_target:global_gray_location
distance = 0
angle = random
}
set_fleet_flag = gray_constship
save_global_event_target_as = global_gray_constship
set_cloaking_active = yes
assign_leader = event_target:gray_leader_scientist
}
}
}