Merge branch 'RG_AG_TEST'

# Conflicts:
#	common/inline_scripts/events/rg_test_gray_skill_varible.txt
#	common/scripted_triggers/RG_scripted_triggers.txt
This commit is contained in:
ProjectKoi-Kalo\Kalo 2024-09-25 13:01:53 +08:00
commit 8e248545f1
5 changed files with 100 additions and 6 deletions

View File

@ -0,0 +1,30 @@
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
}
}
any_country = {
has_civic = origin_rg_gray
}
has_global_flag = has_rg_mod
}
force_remove_civic = civic_AG_gray_master
}
else = {
country_event = { id = graygoo.499 }
}
}

View File

@ -8,6 +8,7 @@ set_variable = {
#Country event_target:gray_owner #Country event_target:gray_owner
#存储当前领袖等级 #存储当前领袖等级
rg_save_gray_leader_level_effect = { rg_save_gray_leader_level_effect = {
<<<<<<< HEAD
every_owned_leader = { every_owned_leader = {
if = { if = {
###等级检测 ###等级检测
@ -33,6 +34,31 @@ rg_save_gray_leader_level_effect = {
} }
} }
} }
=======
random_owned_leader = {
#是小灰领袖
limit = {
has_leader_flag = rg_gray_leader
}
export_trigger_value_to_variable = {
trigger = has_skill
variable = rg_gray_level_temp
}
owner = {
set_variable = {
which = rg_gray_level
value = prev.rg_gray_level_temp
}
}
}
}
#country scope
#用的时候就
check_variable = {
which = rg_gray_level
value >= 10
}
>>>>>>> RG_AG_TEST
#Country event_target:gray_owner #Country event_target:gray_owner
#等级导入,把存储的领袖等级赋予到领袖身上 #等级导入,把存储的领袖等级赋予到领袖身上

View File

@ -48,10 +48,13 @@ rg_event_effect_event1_cluster = {
rg_event_effect_event1_cluster_galaxy = { rg_event_effect_event1_cluster_galaxy = {
if = { if = {
limit = { limit = {
OR = {
rg_has_ag_origin_trigger = yes
NOT = { NOT = {
has_global_flag = origin_rg_gray_1st_global has_global_flag = origin_rg_gray_1st_global
} }
} }
}
rg_event_effect_event1_gray_galaxy = yes rg_event_effect_event1_gray_galaxy = yes
} }
else = { else = {
@ -91,8 +94,15 @@ rg_event_effect_event1_gray_galaxy = {
set_country_flag = rg_gray_level_1 set_country_flag = rg_gray_level_1
rg_event_effect_event1_to_event2_effect = yes rg_event_effect_event1_to_event2_effect = yes
save_global_event_target_as = origin_rg_gray_country save_global_event_target_as = origin_rg_gray_country
if = {
limit = {
rg_has_ag_origin_trigger = yes
}
}
else = {
rg_lcluster_spawn_effect = yes rg_lcluster_spawn_effect = yes
} }
}
rg_event_effect_event1_to_event2_effect = { rg_event_effect_event1_to_event2_effect = {
country_event = { country_event = {
@ -138,7 +148,9 @@ rg_event_effect_lcluster_open = {
has_global_flag = rg_origin_l_cluster # 遥远约定 has_global_flag = rg_origin_l_cluster # 遥远约定
has_global_flag = gray_origin_activate # 远星之歌 has_global_flag = gray_origin_activate # 远星之歌
has_global_flag = rg_origin_scion_l_cluster # 未来追迹 has_global_flag = rg_origin_scion_l_cluster # 未来追迹
rg_has_ag_origin_trigger = yes # 遥远的故事
} }
} }
country_event = { country_event = {
id = rg_cluster.2 id = rg_cluster.2

View File

@ -1,3 +1,23 @@
rg_all_cluster_mod_check = {
OR = {
has_global_flag = l_cluster_origin # l-cluster plus
has_global_flag = rg_origin_l_cluster # 遥远约定
has_global_flag = gray_origin_activate # 远星之歌
has_global_flag = rg_origin_scion_l_cluster # 未来追迹
rg_has_ag_origin_trigger = yes # 遥远的故事
}
}
rg_all_cluster_mod_check_for_scion = {
OR = {
has_global_flag = l_cluster_origin # l-cluster plus
# has_global_flag = rg_origin_l_cluster # 遥远约定
has_global_flag = gray_origin_activate # 远星之歌
# has_global_flag = rg_origin_scion_l_cluster # 未来追迹
rg_has_ag_origin_trigger = yes # 遥远的故事
}
}
RG_planet_can_auto_build = { RG_planet_can_auto_build = {
OR = { OR = {
AND = { AND = {
@ -50,9 +70,15 @@ rg_is_main_species_with_maid_trait_trigger = {
} }
} }
<<<<<<< HEAD
RG_tradition5_or_gray_owner_trigger = { RG_tradition5_or_gray_owner_trigger = {
OR = { OR = {
RG_gray_harbitat_active_trigger = yes RG_gray_harbitat_active_trigger = yes
has_active_tradition = tr_rg_nanotech_5 has_active_tradition = tr_rg_nanotech_5
=======
rg_has_ag_origin_trigger = {
any_country = {
has_origin = origin_Asgray
>>>>>>> RG_AG_TEST
} }
} }

View File

@ -43,10 +43,10 @@ country_event = {
set_country_flag = rg_scion_needs_fe set_country_flag = rg_scion_needs_fe
if = { if = {
limit ={ limit ={
OR = {
rg_all_cluster_mod_check_for_scion = yes
any_playable_country = { any_playable_country = {
AND = {
has_origin = origin_rg_gray has_origin = origin_rg_gray
# NOT = { has_global_flag = rg_origin_l_cluster }
} }
} }
} }