rg_cluster.8

This commit is contained in:
FA507RM-KALOSPA\Kalo 2023-06-08 01:02:26 +08:00
parent 6300548d42
commit c01c270a3b
5 changed files with 274 additions and 215 deletions

View File

@ -40,7 +40,7 @@ on_army_killed_in_combat = {
on_game_start_country = { on_game_start_country = {
events = { events = {
rg_cluster.8 rg_cluster.8
rg.1 # rg.1
} }
} }

View File

@ -14,3 +14,25 @@ create_gray_army = {
create_gray_const = { create_gray_const = {
rg_create_gray_const = yes rg_create_gray_const = yes
} }
start_lcluster_chain = {
if = {
limit = {
NOR = {
is_same_value = origin_rg_gray_country
has_country_flag = origin_rg_gray_1st
}
}
hidden_effect = {
custom_tooltip = begin_lcluster_chain
begin_event_chain = {
event_chain = l_cluster_chain
target = this
}
set_variable = {
which = num_lcluster_clues
value = 0
}
}
}
}

View File

@ -2151,3 +2151,179 @@ RG_const_auto_build_effect_event = {
} }
} }
} }
rg_lcluster_spawn_effect = {
set_global_flag = rg_origin_l_cluster
set_spawn_system_batch = begin
no_scope = {
# makes system positions originate from galactic core
spawn_system = {
min_distance >= 550
max_distance <= 560
min_orientation_angle = 44
max_orientation_angle = 46
initializer = rg_cluster_init_01
hyperlane = no
}
random_system = {
limit = { has_star_flag = lcluster1 }
save_global_event_target_as = lcluster1
spawn_system = {
min_distance >= 29
max_distance <= 31
min_orientation_angle = 24
max_orientation_angle = 66
initializer = rg_cluster_init_02
}
spawn_system = {
min_distance >= 29
max_distance <= 31
min_orientation_angle = 114
max_orientation_angle = 156
initializer = rg_cluster_init_03
}
spawn_system = {
min_distance >= 30
max_distance <= 60
min_orientation_angle = 340
max_orientation_angle = 20
initializer = rg_cluster_init_01b
}
}
random_system = {
limit = { has_star_flag = lcluster2 }
save_global_event_target_as = lcluster2
spawn_system = {
min_distance >= 30
max_distance <= 60
min_orientation_angle = 0
max_orientation_angle = 40
initializer = rg_cluster_init_02b
}
}
random_system = {
limit = { has_star_flag = lcluster3 }
save_global_event_target_as = lcluster3
spawn_system = {
min_distance >= 20
max_distance <= 30
min_orientation_angle = 24
max_orientation_angle = 66
initializer = rg_cluster_init_04
}
spawn_system = {
min_distance >= 10
max_distance <= 50
min_orientation_angle = 250
max_orientation_angle = 290
initializer = rg_cluster_init_03b
}
}
random_system = {
limit = { has_star_flag = lcluster4 }
save_global_event_target_as = lcluster4
spawn_system = {
min_distance >= 5
max_distance <= 10
min_orientation_angle = 250
max_orientation_angle = 290
initializer = rg_cluster_init_05
}
spawn_system = {
min_distance >= 30
max_distance <= 60
min_orientation_angle = 20
max_orientation_angle = 160
initializer = rg_cluster_init_04b
}
}
}
random_system = {
limit = { has_star_flag = lcluster5 }
save_global_event_target_as = lcluster5
}
random_system = {
limit = { has_star_flag = lcluster1b }
save_global_event_target_as = lcluster1b
}
random_system = {
limit = { has_star_flag = lcluster2b }
save_global_event_target_as = lcluster2b
}
random_system = {
limit = { has_star_flag = lcluster3b }
save_global_event_target_as = lcluster3b
}
random_system = {
limit = { has_star_flag = lcluster4b }
save_global_event_target_as = lcluster4b
}
# clear all hyperlanes to and within the cluster
every_system = {
limit = { has_star_flag = lcluster }
isolate_system = yes
}
# add hyperlanes
event_target:lcluster5 = {
add_hyperlane = {
from = event_target:lcluster5
to = event_target:lcluster4
}
}
event_target:lcluster4 = {
add_hyperlane = {
from = event_target:lcluster4
to = event_target:lcluster3
}
add_hyperlane = {
from = event_target:lcluster4
to = event_target:lcluster2
}
add_hyperlane = {
from = event_target:lcluster4
to = event_target:lcluster4b
}
}
event_target:lcluster3 = {
add_hyperlane = {
from = event_target:lcluster3
to = event_target:lcluster1
}
add_hyperlane = {
from = event_target:lcluster3
to = event_target:lcluster3b
}
}
event_target:lcluster2 = {
add_hyperlane = {
from = event_target:lcluster2
to = event_target:lcluster1
}
add_hyperlane = {
from = event_target:lcluster2
to = event_target:lcluster3
}
add_hyperlane = {
from = event_target:lcluster2
to = event_target:lcluster2b
}
}
event_target:lcluster1 = {
add_hyperlane = {
from = event_target:lcluster1
to = event_target:lcluster1b
}
}
event_target:lcluster1b = {
add_hyperlane = {
from = event_target:lcluster1b
to = event_target:lcluster2b
}
}
set_spawn_system_batch = end
country_event = { id = rg_cluster.9 days = -1 }
}

View File

@ -90,186 +90,46 @@ country_event = {
trigger = { trigger = {
AND = { AND = {
has_country_flag = origin_rg_gray_1st has_origin = origin_rg_gray
#has_origin = origin_rg_gray
NOT = { has_global_flag = rg_origin_l_cluster } NOT = { has_global_flag = rg_origin_l_cluster }
} }
} }
immediate = { immediate = {
set_global_flag = rg_origin_l_cluster if = {
set_spawn_system_batch = begin limit = {
no_scope = { NOT = {
# makes system positions originate from galactic core has_global_flag = origin_rg_gray_1st
spawn_system = {
min_distance >= 550
max_distance <= 560
min_orientation_angle = 44
max_orientation_angle = 46
initializer = rg_cluster_init_01
hyperlane = no
}
random_system = {
limit = { has_star_flag = lcluster1 }
save_global_event_target_as = lcluster1
spawn_system = {
min_distance >= 29
max_distance <= 31
min_orientation_angle = 24
max_orientation_angle = 66
initializer = rg_cluster_init_02
}
spawn_system = {
min_distance >= 29
max_distance <= 31
min_orientation_angle = 114
max_orientation_angle = 156
initializer = rg_cluster_init_03
}
spawn_system = {
min_distance >= 30
max_distance <= 60
min_orientation_angle = 340
max_orientation_angle = 20
initializer = rg_cluster_init_01b
} }
} }
random_system = { set_global_flag = origin_rg_gray_1st_global
limit = { has_star_flag = lcluster2 } set_country_flag = origin_rg_gray_1st
save_global_event_target_as = lcluster2 set_country_flag = rg_gray_level_1
spawn_system = { country_event = { id = rg.3 days = 30 }
min_distance >= 30 add_modifier = {
max_distance <= 60 modifier = rg_distant_stars_modifier
min_orientation_angle = 0 }
max_orientation_angle = 40 save_global_event_target_as = origin_rg_gray_country
initializer = rg_cluster_init_02b rg_lcluster_spawn_effect = yes
}
else_if = {
limit = {
has_global_flag = origin_rg_gray_1st_global
}
set_country_flag = origin_gray_dragon_country
rg_create_fake_dragon = yes
start_lcluster_chain = yes
add_event_chain_counter = {
event_chain = l_cluster_chain
counter = clues
amount = 7
}
# increment variable
change_variable = {
which = num_lcluster_clues
value = 7
} }
} }
random_system = {
limit = { has_star_flag = lcluster3 }
save_global_event_target_as = lcluster3
spawn_system = {
min_distance >= 20
max_distance <= 30
min_orientation_angle = 24
max_orientation_angle = 66
initializer = rg_cluster_init_04
}
spawn_system = {
min_distance >= 10
max_distance <= 50
min_orientation_angle = 250
max_orientation_angle = 290
initializer = rg_cluster_init_03b
}
}
random_system = {
limit = { has_star_flag = lcluster4 }
save_global_event_target_as = lcluster4
spawn_system = {
min_distance >= 5
max_distance <= 10
min_orientation_angle = 250
max_orientation_angle = 290
initializer = rg_cluster_init_05
}
spawn_system = {
min_distance >= 30
max_distance <= 60
min_orientation_angle = 20
max_orientation_angle = 160
initializer = rg_cluster_init_04b
}
}
}
random_system = {
limit = { has_star_flag = lcluster5 }
save_global_event_target_as = lcluster5
}
random_system = {
limit = { has_star_flag = lcluster1b }
save_global_event_target_as = lcluster1b
}
random_system = {
limit = { has_star_flag = lcluster2b }
save_global_event_target_as = lcluster2b
}
random_system = {
limit = { has_star_flag = lcluster3b }
save_global_event_target_as = lcluster3b
}
random_system = {
limit = { has_star_flag = lcluster4b }
save_global_event_target_as = lcluster4b
}
# clear all hyperlanes to and within the cluster
every_system = {
limit = { has_star_flag = lcluster }
isolate_system = yes
}
# add hyperlanes
event_target:lcluster5 = {
add_hyperlane = {
from = event_target:lcluster5
to = event_target:lcluster4
}
}
event_target:lcluster4 = {
add_hyperlane = {
from = event_target:lcluster4
to = event_target:lcluster3
}
add_hyperlane = {
from = event_target:lcluster4
to = event_target:lcluster2
}
add_hyperlane = {
from = event_target:lcluster4
to = event_target:lcluster4b
}
}
event_target:lcluster3 = {
add_hyperlane = {
from = event_target:lcluster3
to = event_target:lcluster1
}
add_hyperlane = {
from = event_target:lcluster3
to = event_target:lcluster3b
}
}
event_target:lcluster2 = {
add_hyperlane = {
from = event_target:lcluster2
to = event_target:lcluster1
}
add_hyperlane = {
from = event_target:lcluster2
to = event_target:lcluster3
}
add_hyperlane = {
from = event_target:lcluster2
to = event_target:lcluster2b
}
}
event_target:lcluster1 = {
add_hyperlane = {
from = event_target:lcluster1
to = event_target:lcluster1b
}
}
event_target:lcluster1b = {
add_hyperlane = {
from = event_target:lcluster1b
to = event_target:lcluster2b
}
}
set_spawn_system_batch = end
country_event = { id = rg_cluster.9 days = -1 }
} }
} }

View File

@ -1,50 +1,50 @@
namespace = rg namespace = rg
#灰风起源创建灰风事件 # 灰风起源创建灰风事件
country_event = { # country_event = {
id = rg.1 # id = rg.1
hide_window = yes # hide_window = yes
#
is_triggered_only = yes # is_triggered_only = yes
#
trigger = { # trigger = {
has_country_flag = origin_rg_gray # has_country_flag = origin_rg_gray
} # }
#
immediate = { # immediate = {
if = { # if = {
NOT = { # NOT = {
has_global_flag = origin_rg_gray_1st # has_global_flag = origin_rg_gray_1st
} # }
set_global_flag = origin_rg_gray_1st_global # set_global_flag = origin_rg_gray_1st_global
set_country_flag = origin_rg_gray_1st # set_country_flag = origin_rg_gray_1st
set_country_flag = rg_gray_level_1 # set_country_flag = rg_gray_level_1
country_event = { id = rg.3 days = 30 } # country_event = { id = rg.3 days = 30 }
add_modifier = { # add_modifier = {
modifier = rg_distant_stars_modifier # modifier = rg_distant_stars_modifier
} # }
save_global_event_target_as = origin_rg_gray_country # save_global_event_target_as = origin_rg_gray_country
} # }
else_if = { # else_if = {
limit = { # limit = {
has_global_flag = origin_rg_gray_1st_global # has_global_flag = origin_rg_gray_1st_global
} # }
set_country_flag = origin_gray_dragon_country # set_country_flag = origin_gray_dragon_country
rg_create_fake_dragon = yes # rg_create_fake_dragon = yes
start_lcluster_chain = yes # start_lcluster_chain = yes
add_event_chain_counter = { # add_event_chain_counter = {
event_chain = l_cluster_chain # event_chain = l_cluster_chain
counter = clues # counter = clues
amount = 7 # amount = 7
} # }
# increment variable # # increment variable
change_variable = { # change_variable = {
which = num_lcluster_clues # which = num_lcluster_clues
value = 7 # value = 7
} # }
} # }
} # }
} # }
country_event = { country_event = {
id = rg.2 id = rg.2
@ -914,6 +914,7 @@ country_event = {
is_triggered_only = yes is_triggered_only = yes
trigger = { trigger = {
is_multiplayer = yes
is_same_value = event_target:origin_rg_gray_country is_same_value = event_target:origin_rg_gray_country
has_country_flag = origin_rg_gray has_country_flag = origin_rg_gray
} }