This commit is contained in:
FA507RM-KALOSPA\Kalo 2023-06-03 00:02:37 +08:00
parent 50d913b5d0
commit 1dbd4a00a0
9 changed files with 202 additions and 32 deletions

View File

@ -1,17 +1,20 @@
on_game_start = {
events = {
rg.19
rg_kac_event.4
}
}
on_single_player_save_game_load = {
events = {
rg.19
rg_kac_event.4
}
}
on_custom_diplomacy = {
events = {
graygoo.505
rg_kac_event.1
}
}

View File

@ -82,6 +82,7 @@ rg_create_gray_governor = {
set_country_flag = gray_governor_active
#更新灰风形态
remove_country_flag = gray_warship_active
remove_country_flag = rg_kac_grayfleet_active
remove_country_flag = gray_constship_active
remove_country_flag = gray_army_active
#等级导入,把存储的领袖等级赋予到领袖身上
@ -369,6 +370,16 @@ rg_create_gray_warship = {
}
}
}
last_created_fleet = {
if = {
limit = {
NOT = {
has_country_flag = rg_kac_grayfleet_active
}
}
set_fleet_flag = rg_kac_gray_fleet
}
}
every_owned_army = {
limit = { army_type = gray_army }
@ -396,6 +407,8 @@ rg_create_gray_warship = {
limit = { has_leader_flag = gray_admiral }
set_skill = owner.rg_gray_level
}
set_country_flag = rg_kac_grayfleet_active
}
#创造灰风地面单位
rg_create_gray_army = {
@ -554,6 +567,7 @@ rg_create_gray_army = {
}
remove_country_flag = gray_warship_active
remove_country_flag = rg_kac_grayfleet_active
remove_country_flag = gray_governor_active
remove_country_flag = gray_constship_active
@ -735,6 +749,7 @@ rg_create_gray_const = {
remove_country_flag = gray_army_active
remove_country_flag = gray_warship_active
remove_country_flag = rg_kac_grayfleet_active
remove_country_flag = gray_governor_active
random_owned_leader = {

View File

@ -86,6 +86,7 @@ rg_gray_govener_init = {
rg_set_gray_portrait = yes
}
}
set_global_flag = rg_kac_leader
}
rg_gray_admiral_init = {
@ -170,6 +171,7 @@ rg_gray_admiral_init = {
rg_set_gray_portrait = yes
}
}
set_global_flag = rg_kac_leader
}
rg_gray_general_init = {
@ -243,6 +245,7 @@ rg_gray_general_init = {
which = rg_general_skill_combat_killed_variable
value = 0
}
set_global_flag = rg_kac_leader
}
rg_gray_scientist_init = {
@ -306,4 +309,5 @@ rg_gray_scientist_init = {
rg_set_gray_portrait = yes
}
}
set_global_flag = rg_kac_leader
}

View File

@ -1,4 +1,4 @@
@gray_portrait = Gray
@gray_portrait = Gray02
rg_set_gray_portrait = {
change_leader_portrait = @gray_portrait

View File

@ -0,0 +1,136 @@
#嗯..想删掉也可以嘛。但请不要用其他mod导致的bug来烦我。唔姆
namespace = rg_kac_event
country_event = {
id = rg_kac_event.1
hide_window = yes
is_triggered_only = yes
trigger = {
from = { OR = {
is_country_type = gray
is_same_value = ROOT
}}
is_same_value = event_target:gray_owner
}
immediate = {
if = {
limit = {
NOT = { has_global_flag = rg_kac_499 }
}
country_event = { id = rg_kac_event.2 }
}
if = {
limit = {
exists = event_target:gray_governor
NOT = { has_global_flag = rg_kac_leader }
}
country_event = { id = rg_kac_event.2 }
}
}
}
country_event = {
id = rg_kac_event.2
title = "rg_kac_event.2.title"
is_triggered_only = yes
trigger = {
is_same_value = event_target:gray_owner
}
diplomatic = yes
picture_event_data = {
portrait = root.species
room = "ethic_spaceship_room"
}
show_sound = event_red_alert
desc = {
text = "rg_kac_event.2.desc"
}
option = {
name = rg_kac_event.2.a
hidden_effect = {
#country_event = { id = rg_kac_event.2 }
}
default_hide_option = yes
}
}
country_event = {
id = rg_kac_event.3
title = "rg_kac_event.2.title"
is_triggered_only = yes
trigger = {
is_same_value = event_target:gray_owner
}
diplomatic = yes
picture_event_data = {
portrait = root.species
room = "ethic_spaceship_room"
}
show_sound = event_red_alert
desc = {
text = "rg_kac_event.3.desc"
}
option = {
name = rg_kac_event.3.a
hidden_effect = {
#country_event = { id = rg_kac_event.3 }
}
default_hide_option = yes
}
}
event = {
id = rg_kac_event.4
hide_window = yes
is_triggered_only = yes
trigger = {
}
immediate = {
no_scope = {
remove_global_flag = rg_kac_499
remove_global_flag = rg_kac_leader
}
}
}
country_event = {
id = rg_kac_event.5
title = "rg_kac_event.2.title"
is_triggered_only = yes
trigger = {
is_same_value = event_target:gray_owner
}
diplomatic = yes
picture_event_data = {
portrait = root.species
room = "ethic_spaceship_room"
}
show_sound = event_red_alert
desc = {
text = "rg_kac_event.5.desc"
}
option = {
name = rg_kac_event.5.a
hidden_effect = {
#country_event = { id = rg_kac_event.3 }
}
default_hide_option = yes
}
}

View File

@ -280,7 +280,7 @@ country_event = {
hidden_effect = {
create_message = {
type = MESSAGE_RECRUITED_LEADER
localization = MESSAGE_RECRUITED_LEADER_DESC
localization = MESSAGE_RECRUITED_LEADER_DESC
days = @toast_message_days
target = event_target:gray_governor
variable = {
@ -307,6 +307,7 @@ country_event = {
}
immediate = {
set_global_flag = rg_kac_499
rg_gray_country_after_init = yes
event_target:gray_governor = {
set_owner = event_target:gray_owner

View File

@ -41,7 +41,7 @@ country_event = {
hidden_effect = {
rg_create_gray_species = yes
rg_gray_country_init = yes
rg_gray_country_after_init = rg_gray_country_after_init
country_event = { id = graygoo.499 }
rg_gray_govener_init = yes
create_message = {
type = MESSAGE_RECRUITED_LEADER

View File

@ -210,7 +210,7 @@ country_event = {
option = { # Governor
name = graygoo.500.a
response_text = graygoo.500.a.response
is_dialog_only = yes
trigger = {
NOT = { has_country_flag = gray_governor_active }
}
@ -221,7 +221,7 @@ country_event = {
option = { # Warship
name = graygoo.500.b
response_text = graygoo.500.b.response
is_dialog_only = yes
trigger = {
NOT = { has_country_flag = gray_warship_active }
}
@ -232,7 +232,7 @@ country_event = {
option = { # Army
name = graygoo.500.c
response_text = graygoo.500.c.response
is_dialog_only = yes
trigger = {
NOT = { has_country_flag = gray_army_active }
}
@ -243,7 +243,7 @@ country_event = {
option = { # const
name = rg_const
response_text = rg_const.500.response
is_dialog_only = yes
trigger = {
NOT = { has_country_flag = gray_const_active }
}
@ -347,7 +347,7 @@ country_event = {
option = { # Warship
name = graygoo.500.b
response_text = graygoo.501.b.response
is_dialog_only = yes
allow = {
hidden_trigger = { exists = event_target:gray_governor } # To prevent exploit
}
@ -358,7 +358,7 @@ country_event = {
option = { # const
name = rg_const
response_text = rg_const.501.response
is_dialog_only = yes
allow = {
hidden_trigger = { exists = event_target:gray_governor }
}
@ -369,7 +369,7 @@ country_event = {
option = { # Army
name = graygoo.500.c
response_text = graygoo.501.c.response
is_dialog_only = yes
allow = {
hidden_trigger = { exists = event_target:gray_governor }
}
@ -457,7 +457,7 @@ country_event = {
option = { # Governor
name = graygoo.500.a
response_text = graygoo.502.a.response
is_dialog_only = yes
allow = {
hidden_trigger = { # To prevent exploit
event_target:gray_warship = { num_ships > 0 }
@ -478,7 +478,7 @@ country_event = {
option = { # const
name = rg_const
response_text = rg_const.502.response
is_dialog_only = yes
allow = {
hidden_trigger = {
event_target:gray_warship = { num_ships > 0 }
@ -499,7 +499,7 @@ country_event = {
option = { # Army
name = graygoo.500.c
response_text = graygoo.502.c.response
is_dialog_only = yes
allow = {
hidden_trigger = {
event_target:gray_warship = { num_ships > 0 }
@ -521,7 +521,7 @@ country_event = {
option = { # Juggernaut
name = RG_graygoo.500.d
response_text = RG_graygoo.502.d.response
is_dialog_only = yes
trigger = {
has_country_flag = rg_juggernaut_fired
NOT = { has_country_flag = gray_warship_is_juggernaut }
@ -548,7 +548,7 @@ country_event = {
option = { # Warship
name = RG_graygoo.500.e
response_text = RG_graygoo.502.e.response
is_dialog_only = yes
trigger = {
has_country_flag = rg_juggernaut_fired
has_country_flag = gray_warship_is_juggernaut
@ -574,7 +574,7 @@ country_event = {
option = { #升级-2
name = rg_levelup_2
is_dialog_only = yes
trigger = {
event_target:gray_leader_admiral = { has_skill >= 10 }
NOR = {
@ -617,7 +617,7 @@ country_event = {
option = { #升级-3
name = rg_levelup_3
is_dialog_only = yes
trigger = {
AND = {
event_target:gray_leader_admiral = { has_skill >= 10 }
@ -662,7 +662,7 @@ country_event = {
option = { # 购买主宰
name = rg.4.d
is_dialog_only = yes
trigger = {
NOR = {
has_country_flag = gray_reforming
@ -691,7 +691,7 @@ country_event = {
option = { # 开启隐形
name = rg.4.e
response_text = rg_cloak.a.response
is_dialog_only = yes
trigger = {
any_owned_fleet = {
AND = {
@ -717,7 +717,7 @@ country_event = {
option = { # 关闭隐形
name = rg.4.f
response_text = rg_cloak_off.a.response
is_dialog_only = yes
trigger = {
any_owned_fleet = {
AND = {
@ -818,7 +818,7 @@ country_event = {
option = { # Governor
name = graygoo.500.a
response_text = graygoo.503.a.response
is_dialog_only = yes
allow = {
hidden_trigger = { # To prevent exploit
any_owned_army = {
@ -874,7 +874,7 @@ country_event = {
option = { # Warship
name = graygoo.500.b
response_text = graygoo.503.b.response
is_dialog_only = yes
allow = {
hidden_trigger = {
any_owned_army = {
@ -930,7 +930,7 @@ country_event = {
option = { # const
name = rg_const
response_text = rg_const.503.response
is_dialog_only = yes
allow = {
hidden_trigger = {
any_owned_army = {
@ -987,7 +987,7 @@ country_event = {
option = { # 开启隐形
name = rg.4.e
response_text = rg_cloak.a.response
is_dialog_only = yes
trigger = {
any_owned_fleet = {
AND = {
@ -1013,7 +1013,7 @@ country_event = {
option = { # 关闭隐形
name = rg.4.f
response_text = rg_cloak_off.a.response
is_dialog_only = yes
trigger = {
any_owned_fleet = {
AND = {
@ -1149,7 +1149,7 @@ country_event = {
option = { # Governor
name = graygoo.500.a
response_text = graygoo.505.a.response
is_dialog_only = yes
allow = {
hidden_trigger = { # To prevent exploit
event_target:global_gray_constship = { num_ships > 0 }
@ -1174,7 +1174,7 @@ country_event = {
option = { # Warship
name = graygoo.500.b
response_text = graygoo.505.b.response
is_dialog_only = yes
allow = {
hidden_trigger = { # To prevent exploit
event_target:global_gray_constship = { num_ships > 0 }
@ -1195,7 +1195,7 @@ country_event = {
option = { # Army
name = graygoo.500.c
response_text = graygoo.505.c.response
is_dialog_only = yes
allow = {
hidden_trigger = { # To prevent exploit
event_target:global_gray_constship = { num_ships > 0 }
@ -1286,7 +1286,7 @@ country_event = {
option = { # 购买灰风母舰
name = rg.4.a
is_dialog_only = yes
trigger = {
NOT = { has_country_flag = gray_reforming }
}
@ -1319,7 +1319,7 @@ country_event = {
option = { # 购买工程船
name = rg.4.b
is_dialog_only = yes
trigger = {
NOT = { has_country_flag = gray_reforming }
}
@ -1408,7 +1408,7 @@ country_event = {
option = { # 没钱了,救救
name = rg.5.a
is_dialog_only = yes
hidden_effect = {
set_country_flag = gray_begging
set_timed_country_flag = { flag = gray_alreadybegged days = 3600 }

View File

@ -266,4 +266,15 @@
wg_aft.30000.response:0 "这...是这样吗?\n\n...\n\n谢谢。"
wsg_rings:0 "戒指"
gray_affection:0 "灰风好感度"
gray_affection:0 "灰风好感度"
#kac localisation
rg_kac_event.2.title:0 "§RReal Gray:反作弊无法验证您的游戏会话§!"
rg_kac_event.2.desc:0 "错误代码§R499_Modifed§!\n这条错误将会导致什么bug§R499_Modifed§!灰风初始化事件被修改,小灰事件链和后续功能模块可能无法正常触发。\n§Y为什么会出现这条信息\n§!本mod的部分核心事件被覆盖或未成功触发或标记未能初始化。\nmod完整性验证失败。本mod的部分功能被其他相冲突的mod覆盖从而无法正常执行。\n§H本mod作者将无法对您的本局游戏出现的任何逆天bug作出任何帮助和建议。同时正在极力和你撇清关系。§!\n§Y我能无视这条信息吗\n§!您不能。请自主选择关闭可能的mod来解决冲突。\n§R在问题物理解决前该窗口不会停止弹出。§!"
rg_kac_event.2.a:0 "§G你好烦..§!"
rg_kac_event.3.desc:0 "错误代码§Rgrayleader_Modifed§!\n这条错误将会导致什么bug§Rgrayleader_Modifed§!小灰领袖生成模块被修改你有一个灰风总督但没有正确启用标识旗帜mod内容已经被修改。\n§Y为什么会出现这条信息\n§!本mod的部分核心事件被覆盖或未成功触发或标记未能初始化。\nmod完整性验证失败。本mod的部分功能被其他相冲突的mod覆盖从而无法正常执行。\n§H本mod作者将无法对您的本局游戏出现的任何逆天bug作出任何帮助和建议。同时正在极力和你撇清关系。§!\n§Y我能无视这条信息吗\n§!您不能。请自主选择关闭可能的mod来解决冲突。\n§R在问题物理解决前该窗口不会停止弹出。§!"
rg_kac_event.3.a:0 "§G这作者是不是有病..§!"
rg_kac_event.5.desc:0 "错误代码§Rdupicated_fleet_error§!\n这条错误将会导致什么bug§Rdupicated_fleet_error§!你有不止一支灰风战舰舰队而其中只有一支是合法的mod内容已经被修改。\n§Y为什么会出现这条信息\n§!本mod的部分核心事件被覆盖或未成功触发或标记未能初始化。\nmod完整性验证失败。本mod的部分功能被其他相冲突的mod覆盖从而无法正常执行。\n§H本mod作者将无法对您的本局游戏出现的任何逆天bug作出任何帮助和建议。同时正在极力和你撇清关系。§!\n§Y我能无视这条信息吗\n§!您不能。请自主选择关闭可能的mod来解决冲突。\n§R在问题物理解决前该窗口不会停止弹出。§!"
rg_kac_event.5.a:0 "§G我快要受不了了..§!"