2024-06-26 19:00:16

This commit is contained in:
actions[bot]
2024-06-26 19:00:16 +08:00
parent 9557e11256
commit 6675f38480
7363 changed files with 675507 additions and 0 deletions

View File

@@ -0,0 +1,855 @@
##狗屎DLC傻逼代码##
on_actions = {
on_weekly_VEN = {
effect = {
for_each_scope_loop = {
array = global.ven_blockade_countries
if = {
limit = {
ships_in_area = {
area = 53
type = capital_ship
size < 3
}
}
for_each_scope_loop = {
array = ven_countries_that_are_under_embargo
VEN = {
break_embargo = PREV
remove_opinion_modifier = {
target = PREV
modifier = VEN_embargoed
}
remove_opinion_modifier = {
target = PREV
modifier = VEN_embargoed_2
}
}
}
remove_from_array = {
array = global.ven_blockade_countries
value = THIS
}
clear_array = ven_countries_that_are_under_embargo
}
}
#if theres still at least 1 blockading country, keep up the blockade
if = {
limit = {
check_variable = { global.ven_blockade_countries^num > 0 }
VEN = {
NOT = {
has_idea = idea_VEN_blockade_active
}
}
}
VEN = {
swap_ideas = {
remove_idea = idea_VEN_blockade_inactive
add_idea = idea_VEN_blockade_active
}
}
}
else_if = { #If not remove blockade
limit = {
check_variable = { global.ven_blockade_countries^num < 1 }
VEN = {
NOT = {
has_idea = idea_VEN_blockade_inactive
}
}
}
VEN = {
swap_ideas = {
remove_idea = idea_VEN_blockade_active
add_idea = idea_VEN_blockade_inactive
}
}
}
}
}
on_ruling_party_change = {
effect = {
if = {
limit = {
has_dlc = "Trial of Allegiance"
OR = {
original_tag = URG
original_tag = PAR
}
}
if = {
limit = {
has_completed_focus = GUAY_the_permanent_leader
NOT = { has_country_leader_with_trait = JUNO_the_permanent_leader }
}
add_country_leader_trait = JUNO_the_permanent_leader
}
if = {
limit = {
has_completed_focus = GUAY_cult_of_personality
NOT = { has_country_leader_with_trait = JUNO_cult_of_personality }
}
add_country_leader_trait = JUNO_cult_of_personality
}
}
}
effect = {
IF = {
limit = {
NOT = { has_dlc = "Trial of Allegiance" }
original_tag = URG
has_cosmetic_tag = URG_is_unaligned_URG_but_has_normal_URG_flag
}
drop_cosmetic_tag = yes
}
}
effect = {
if = {
limit = {
has_dlc = "Trial of Allegiance"
NOT = {
USA = {
has_government = communism
}
}
capital_scope = {
is_core_of = ROOT
OR = {
is_on_continent = north_america
is_on_continent = south_america
}
}
has_government = communism
date > 1936.05.1
}
USA = {
country_event = {
id = south_american_events.30
days = 7
}
}
}
}
effect = {
if = {
limit = {
has_dlc = "Trial of Allegiance"
BRA = {
has_completed_focus = BRA_expand_fordlandia
NOT = {
OR = {
has_government = communism
has_country_flag = BRA_ford_event_has_happened
}
}
}
USA = {
has_government = communism
}
}
BRA = {
country_event = {
id = JUNO_brazil_events.180
days = 14
}
}
}
}
}
on_startup = {
effect = {
if = {
limit = {
has_dlc = "Trial of Allegiance"
}
every_country = {
limit = {
OR = {
original_tag = URG
original_tag = BRA
original_tag = PAR
original_tag = CHL
original_tag = BOL
original_tag = ARG
original_tag = PRU
original_tag = VEN
original_tag = ECU
original_tag = COL
}
}
add_ai_strategy = {
type = alliance
id = JAP
value = -250
}
add_ai_strategy = {
type = alliance
id = CHI
value = -250
}
add_ai_strategy = {
type = alliance
id = PRC
value = -250
}
add_ai_strategy = {
type = alliance
id = USA
value = -15
}
add_ai_strategy = {
type = alliance
id = GER
value = -15
}
add_ai_strategy = {
type = alliance
id = ENG
value = -15
}
add_ai_strategy = {
type = alliance
id = SOV
value = -50
}
}
}
}
effect = {
#Monroe Doctrine
IF = {
limit = { has_dlc = "Trial of Allegiance" }
every_country = {
limit = {
exists = yes
NOT = { tag = USA }
OR = {
capital_scope = { is_on_continent = south_america }
capital_scope = { is_on_continent = north_america }
tag = CUB
tag = DOM
tag = HAI
}
}
#add_ideas = USA_monroe_doctrine_idea
}
}
}
}
on_peaceconference_ended = {
# Make sure that Uruguay get's their cosmetic tag if it applies
effect = {
IF = {
limit = {
URG = {
NOT = {
has_cosmetic_tag = URG_german
}
is_subject = yes
is_subject_of = GER
}
}
URG = {
set_cosmetic_tag = URG_german
}
}
}
# Make sure that Uruguay drops their cosmetic tag if it applies
effect = {
IF = {
limit = {
URG = {
has_cosmetic_tag = URG_german
is_subject = no
}
}
URG = {
drop_cosmetic_tag = yes
}
}
}
# Make sure that Bolivia get's their araucanian cosmetic tag if it applies
effect = {
IF = {
limit = {
BOL = {
NOT = {
has_cosmetic_tag = BOL_orelia
}
is_subject = yes
is_subject_of = CHL
CHL = {
has_completed_focus = CHL_crown_antoine_as_sovereign_king
}
}
}
BOL = {
set_cosmetic_tag = BOL_orelia
}
}
}
# Make sure that Bolivia drops their araucanian cosmetic tag if it applies
effect = {
IF = {
limit = {
BOL = {
has_cosmetic_tag = BOL_orelia
is_subject = no
}
}
BOL = {
drop_cosmetic_tag = yes
}
}
}
}
on_puppet = { #ROOT = nation being puppeted, FROM = overlord
effect = {
IF = {
limit = {
ROOT = {
original_tag = URG
}
FROM = {
original_tag = GER
}
}
ROOT = {
set_cosmetic_tag = URG_german
}
}
}
# Make sure that Bolivia get's their araucanian cosmetic tag if it applies
effect = {
IF = {
limit = {
ROOT = {
original_tag = BOL
}
FROM = {
original_tag = CHL
}
CHL = {
has_completed_focus = CHL_crown_antoine_as_sovereign_king
}
}
ROOT = {
set_cosmetic_tag = BOL_orelia
}
}
}
}
on_release_as_puppet = { # ROOT is the nation being released, FROM is the overlord.
effect = {
IF = {
limit = {
ROOT = {
original_tag = BOL
}
FROM = {
original_tag = CHL
}
CHL = {
has_completed_focus = CHL_crown_antoine_as_sovereign_king
}
}
ROOT = {
set_cosmetic_tag = BOL_orelia
}
}
}
effect = {
IF = {
limit = {
ROOT = {
original_tag = URG
}
FROM = {
original_tag = GER
}
}
ROOT = {
set_cosmetic_tag = URG_german
}
}
}
effect = {
IF = {
limit = {
ROOT = {
tag = WLA
}
}
WLA = {
load_oob = "WLA_1936"
}
}
}
}
#ROOT is subject FROM is previous overlord
on_subject_free = {
effect = {
IF = {
limit = {
ROOT = {
original_tag = URG
}
FROM = {
original_tag = GER
}
}
ROOT = {
drop_cosmetic_tag = yes
}
}
}
effect = {
IF = {
limit = {
ROOT = {
original_tag = BOL
}
FROM = {
original_tag = CHL
}
}
ROOT = {
drop_cosmetic_tag = yes
}
}
}
effect = {
USA_add_monroe_doctrine_to_target = yes
}
}
# called when a country send volunteers to another
# ROOT is sender, FROM is receiver
on_send_volunteers = { #sets flag for whether Argentina has sent volunteers to Nationalist Spain
effect = {
if = { #Checks that sender is ARG and reciever is SPA
limit = {
original_tag = ARG
FROM = {
tag = SPA
}
}
ROOT = { set_country_flag = ARG_argentinian_volunteers_in_spain }
}
}
effect = {
if = {
limit = {
ROOT = {
is_ai = no
OR = {
tag = CHL
tag = BOL
tag = PRU
tag = ECU
tag = VEN
tag = COL
}
}
FROM = {
tag = GER
}
}
set_global_flag = true_condor_legion_flag
}
}
}
#FROM is war target
#ROOT is country declaring war
on_declare_war = {
effect = {
IF = {
limit = {
ROOT = {
tag = ARG
}
FROM = { tag = URG }
}
BRA = {
country_event = {
id = ARG_political_events.110
hours = 5
}
}
}
}
effect = {
IF = {
limit = {
ROOT = {
tag = BRA
}
FROM = { tag = URG }
}
ARG = {
country_event = {
id = ARG_political_events.110
hours = 5
}
}
}
}
effect = {
IF = {
limit = {
ROOT = {
NOT = { has_idea = SMB_organization_of_american_states_member }
}
FROM = { has_idea = SMB_organization_of_american_states_member }
}
set_variable = {
var = global.org_american_unity_attacked_country
value = FROM
}
every_other_country = {
limit = {
has_idea = SMB_organization_of_american_states_member
NOT = { has_war_with = FROM }
NOT = { tag = FROM }
}
country_event = {
id = JUNO_brazil_events.130
hours = 1
}
}
}
}
effect = {
IF = {
limit = {
ROOT = {
has_idea = SMB_organization_of_american_states_member
}
FROM = { has_idea = SMB_organization_of_american_states_member }
}
ROOT = {
country_event = {
id = JUNO_brazil_events.133
hours = 1
}
}
set_variable = {
var = global.org_american_unity_attacked_country
value = FROM
}
every_other_country = {
limit = {
has_idea = SMB_organization_of_american_states_member
NOT = { has_war_with = FROM }
NOT = { tag = FROM }
}
country_event = {
id = JUNO_brazil_events.130
hours = 2
}
}
}
}
effect = {
IF = {
limit = {
ROOT = {
tag = PAR
}
FROM = {
NOT = {
has_country_flag = PAR_revenge_flag
}
OR = {
tag = BRA
tag = ARG
tag = URG
}
}
}
hidden_effect = {
FROM = {
set_country_flag = PAR_revenge_flag
country_event = {
id = south_american_events.56
days = 31
}
}
}
}
}
}
#ROOT = attacking side
#FROM = defending side
on_declare_war = {
effect = {
IF = {
limit = {
OR = {
FROM = {
has_government = communism
capital_scope = {
is_core_of = PREV
OR = {
is_on_continent = north_america
is_on_continent = south_america
}
}
has_civil_war = yes
original_tag = ROOT
NOT = {
has_government = ROOT
}
}
ROOT = {
has_government = communism
capital_scope = {
is_core_of = PREV
OR = {
is_on_continent = north_america
is_on_continent = south_america
}
}
has_civil_war = yes
original_tag = FROM
NOT = {
has_government = FROM
}
}
}
}
IF = {
limit = {
ROOT = {
has_government = communism
}
}
FROM = {
USA = {
country_event = {
id = south_american_events.32
days = 7
random_days = 5
}
}
}
}
ELSE_IF = {
limit = {
FROM = {
has_government = communism
}
}
ROOT = {
USA = {
country_event = {
id = south_american_events.32
days = 7
random_days = 5
}
}
}
}
}
}
effect = {
IF = {
limit = {
NOT = {
OR = {
ROOT = {
tag = USA
}
FROM = {
tag = USA
}
}
}
USA = {
exists = yes
has_idea = USA_monroe_doctrine_enforcer
NOT = {
OR = {
has_war_with = FROM
has_war_with = ROOT
is_in_faction_with = ROOT
is_in_faction_with = FROM
}
}
}
FROM = {
has_idea = USA_monroe_doctrine_idea
is_in_faction = no
}
}
# Both countries are in Americas
IF = {
limit = {
ROOT = {
has_idea = USA_monroe_doctrine_idea
}
}
# Do Nothing for now, may add more content here in future!
}
# Only defender is in Americas
ELSE = {
FROM = {
USA = {
set_variable = { monroe_defender = PREV }
country_event = {
id = south_american_events.50
days = 1
}
}
}
}
}
}
}
#ROOT is the nation being released, FROM is the overlord
on_release_as_free = {
effect = {
USA_add_monroe_doctrine_to_target = yes
}
effect = {
IF = {
limit = {
ROOT = {
tag = WLA
}
}
WLA = {
load_oob = "WLA_1936"
}
}
}
}
on_liberate = {
effect = {
USA_add_monroe_doctrine_to_target = yes
}
}
on_weekly_ECU = {
effect = {
IF = {
limit = {
AND = {
649 = {
is_owned_and_controlled_by = ROOT
}
305 = {
NOT = {
is_owned_and_controlled_by = ROOT
}
}
490 = {
NOT = {
is_owned_and_controlled_by = ROOT
}
}
}
ROOT = {
NOT = {
has_cosmetic_tag = ECU_galapagos_regime
}
}
}
ROOT = {
set_cosmetic_tag = ECU_galapagos_regime
}
}
}
effect = {
IF = {
limit = {
305 = {
is_owned_and_controlled_by = ROOT
}
ROOT = {
has_cosmetic_tag = ECU_galapagos_regime
}
}
ROOT = {
drop_cosmetic_tag = yes
}
}
}
}
# ROOT is capitulated country, FROM is winner
on_capitulation = {
effect = {
IF = {
limit = {
has_dlc = "Trial of Allegiance"
ROOT = {
original_tag = GER
has_government = fascism
has_country_leader = {
character = GER_adolf_hitler
ruling_only = yes
}
}
ARG = {
has_government = fascism
}
}
ARG = {
country_event = {
id = ARG_political_events.120
days = 14
}
}
}
}
}
}

View File

@@ -0,0 +1,79 @@
on_actions = {
on_startup = {
effect = {
every_state = {
add_to_array = {
global.ah_formables_states_array = THIS.id
}
}
every_state = {
limit = {
or = {
is_core_of = AUS
is_core_of = TIX
state = 912
state = 99
state = 911
state = 37
state = 8
state = 28
state = 69
state = 9
state = 74
state = 75
state = 72
state = 762
state = 85
state = 807
state = 86
state = 87
state = 98
state = 97
state = 39
state = 850
state = 102
state = 853
state = 736
state = 852
}
}
set_state_flag = Great_Germany_Area
}
XGE = {
}
AUS = {
if = {
limit = {
has_game_rule = {
rule = meme_start
option = yes
}
}
country_event = {
id = XGE.001
days = 2
}
}
}
}
}
on_annex = {
effect = {
if = {
limit = {
ROOT = {
tag = XGE
}
FROM = {
tag = AUS
}
}
XGE = {
news_event = {
id = XGE_News.004
}
}
}
}
}
}

View File

@@ -0,0 +1,13 @@
on_actions = {
on_startup = {
effect = {
every_country = {
limit = {
is_ai = yes
}
add_ideas = xingzhenggongzuo
add_political_power = -300
}
}
}
}

View File

@@ -0,0 +1,27 @@
on_actions = {
on_startup = {
effect = {
#招魂术/彩蛋限定
TAN = {
#限定
recruit_character = alpt_hpym
recruit_character = alpt_sjyy
recruit_character = alpt_build
recruit_character = alpt_decade
recruit_character = alpt_ln
recruit_character = alpt_sd
recruit_character = alpt_qybl
recruit_character = alpt_yybl
recruit_character = alpt_xiaomeiyan
recruit_character = alpt_kaluo
}
}
}
on_monthly = {
effect = {
}
}
}

View File

@@ -0,0 +1,141 @@
on_actions = {
on_startup = {
effect = {
# 597 = {
# set_state_flag = DOH_guocehejueyikaifa
# }
DOH = {
set_variable = {
var = DOH_touzi
value = 0
tooltip = "投资"
}
set_variable = {
var = DOH_touzi_effect
value = 0
tooltip = "投资影响"
}
set_variable = {
var = DOH_keyanjinfei
value = 0
tooltip = "额外科研经费"
}
set_variable = {
var = DOH_keyanjinfei_effect
value = 0
tooltip = "额外科研经费影响"
}
set_variable = {
var = DOH_junshijinfei
value = 0
tooltip = "额外生产经费"
}
set_variable = {
var = DOH_junshijinfei_effect
value = 0
tooltip = "额外生产经费影响"
}
set_variable = {
var = DOH_gonggongkaizhi
value = 0
tooltip = "公共开支"
}
set_variable = {
var = DOH_gonggongkaizhi_effect
value = 0
tooltip = "公共开支影响"
}
set_variable = {
var = DOH_shichang
value = 0
tooltip = "市场开放程度"
}
set_variable = {
var = DOH_shichang_effect
value = 0
tooltip = "市场开放程度影响"
}
set_variable = {
var = DOH_guimoxiaoyin
value = 0
tooltip = "规模效应"
}
set_variable = {
var = DOH_guimoxiaoyin_effect
value = 0
tooltip = "规模效应影响"
}
set_variable = {
var = DOH_zongjikaizhi
value = 0
tooltip = "总计开支"
}
set_variable = {
var = DOH_xiaofeipingyinxiang
value = 0
tooltip = "对消费品系数影响"
}
set_variable = {
var = DOH_xiaofeipingyinxiang_factor
value = 0.08
tooltip = "对消费品系数影响系数"
}
set_variable = {
var = DOH_zhichiduchengfa
value = -1
tooltip = "异议(原始)"
}
set_variable = {
var = extra_xiaofeiping
value = 0
tooltip = "额外消费品系数修正"
}
set_variable = {
var = DOH_gexinshengchanli
value = 0
tooltip = "革新生产力"
}
}
}
}
on_weekly = {
effect = {
DOH_mofifier_effect = yes
if = {
limit = {
DOH = {
has_country_flag = DOH_shuchu_civ_doing_flag
}
}
if = {
limit = {
DOH = {
has_country_flag = DOH_auto_shuchu_civ
}
}
d_DOH_auto_shuchu_effect = yes
}
DOH_duiwaishuchu_effect = yes
}
if = {
limit = {
DOH = {
has_completed_focus = DOH_donghuangkexueyuan
}
}
doh_kexueyuan_effect = yes
}
}
}
on_monthly = {
effect = {
if = {
limit = {
has_country_flag = DH1_kaishiguojimaoyi
tag = DH1
}
add_cic = 2000
}
}
}
}

View File

@@ -0,0 +1,34 @@
on_actions = {
on_startup = {
effect = {
every_country = {
limit = {
tag = CHY
}
country_event = CHY_new1_shijian.1
}
}
effect = {
every_country = {
limit = {
has_game_rule = {
rule = AZ_chy_guocexuanze_rule
option = AZ_chy_guocexuanze_rule_off
}
}
CHY = { load_focus_tree = chongying_focus}
}
}
effect = {
every_country = {
limit = {
has_game_rule = {
rule = AZ_chy_guocexuanze_rule
option = AZ_chy_guocexuanze_rule_on
}
}
CHY = { load_focus_tree = chongying_new_focus }
}
}
}
}

View File

@@ -0,0 +1,788 @@
on_actions = {
on_startup = {
effect = {
#开局音效
CHY = {
scoped_sound_effect = CHY_start_sound
}
DOH = {
scoped_sound_effect = DOH_start_sound
}
BLI = {
scoped_sound_effect = BLI_start_sound
}
BFL = {
scoped_sound_effect = BFL_start_sound
}
YUW = {
scoped_sound_effect = YUW_start_sound
}
SAD = {
scoped_sound_effect = SAD_start_sound
}
TIX = {
scoped_sound_effect = TIX_start_sound
}
HUJ = {
scoped_sound_effect = HUJ_start_sound
}
BYG = {
scoped_sound_effect = BYG_start_sound
}
#塞壬名字
SIR = {
if = {
limit = {
is_ai = NO
}
country_event = SIR_event.101
SIR_sairenjiaojisi = {
set_character_name = SIR_sairenjiaojisi2
set_portraits = {
army = {
large="gfx/leaders/SIR/youlingsha2.png"
small="gfx/interface/ideas/idea_youlingsha2.png"
}
}
}
}
}
#招魂术
TAN = {
#META
recruit_character = meta_huangjiafangzhou
recruit_character = meta_feilong
recruit_character = meta_canglong
recruit_character = meta_hailunna
recruit_character = meta_feiying
recruit_character = meta_fusang
recruit_character = meta_genaisennao
#指挥官
recruit_character = zhg_gudelian
recruit_character = zhg_maikease
recruit_character = zhg_menggemali
recruit_character = zhg_nimici
recruit_character = zhg_longmeier
recruit_character = zhg_dengnici
recruit_character = zhg_dongpingxiangbalang
#学院
recruit_character = kaqiusha
recruit_character = nongna
recruit_character = kaiyi
recruit_character = xijuandai
recruit_character = futian
recruit_character = dajiling
recruit_character = mali
recruit_character = yatian
recruit_character = anteng
recruit_character = xizhuzhensui
recruit_character = meisui
#东煌国策
recruit_character = DOH_79shi
recruit_character = DH1_79shi
recruit_character = DOH_97shi
recruit_character = DOH_JS9
recruit_character = DOH_NZ75
recruit_character = DOH_QBU88
#recruit_character = DOH_naerxun
recruit_character = DOH_xifeng
recruit_character = DOH_beifeng
recruit_character = DOH_chy_advisor
#魔王
recruit_character = ailier
recruit_character = biexibu
recruit_character = dajiaxi
recruit_character = xiaojiaxi
recruit_character = maou
recruit_character = peikela
recruit_character = sataniya
recruit_character = xieshenjiang
#灰烬战线
recruit_character = hushi
recruit_character = diyumao
recruit_character = ju
recruit_character = kv
#萝莉
recruit_character = xiaotiancheng
recruit_character = xiaoshengwang
recruit_character = xiaoqiye
recruit_character = xiaoqibolin
recruit_character = xiaokelifulan
recruit_character = xiaohailunna
recruit_character = xiaoguanghui
recruit_character = xiaobirui
recruit_character = xiaobeifa
recruit_character = xiaoshengdiyage
#其他
recruit_character = dingzhen
}
#科研经费侧重
every_country = {
add_ideas = keyancezhong_none
}
#工作制度
every_country = {
add_ideas = gongzuozhidu_3
}
#魔方挖矿基础工厂数量
every_country = {
set_variable = {
az_kaicaimofangkuang_modifier_var = 10
}
}
every_country = {
#舰娘筛选条件
set_country_flag = leader_shaixuan_lujunjiangling
set_country_flag = leader_shaixuan_haijunjiangling
set_country_flag = leader_shaixuan_zhanlie
set_country_flag = leader_shaixuan_hangmu
set_country_flag = leader_shaixuan_xunyang
set_country_flag = leader_shaixuan_quzhu
set_country_flag = leader_shaixuan_qianting
#资源转化动态变量
add_dynamic_modifier = {
modifier = az_ziyuanzhuanhua_amount
}
#舰娘休假
add_dynamic_modifier = {
modifier = az_jianniangxiujia_modifier
}
if = {
limit = {
is_ai = NO
}
#开始界面窗口
set_country_flag = az_startwindow_open
set_country_flag = az_start_gengxinshuoming_window_open
}
if = {
limit = {
shijianniangguojia_trigger = yes
}
#舰娘国海军加速
add_ideas = TY_haijunkeyan
#初始舰娘角色标记
every_character = {
set_character_flag = chushijianniang
}
#物资大会
country_event = {
id = azevent.102
days = 60
}
#特殊编制科技
set_technology = {
penal_infantry = 1
camelry = 1
bicycle_infantry = 1
popup = no
}
}
#禁止合作政府
#if = {
# limit = {
# OR = {
# shijianniangguojia_trigger = yes
# shisairen_trigger = yes
# }
# }
# set_rule = {
# can_create_collaboration_government = no
# }
#}
}
}
}
on_monthly = {
effect = {
if = {
limit = {
shijianniangguojia_trigger = yes
has_global_flag = BLI_bulijianzaomofangkuangjing
controls_state = 270
}
add_to_variable = {
var = xzmf_sl
value = 1
}
}
}
}
on_capitulation = {
effect = {
if = {
limit = {
AND = {
ROOT = {
shijianniangguojia_trigger = yes
NOT = { has_country_flag = jianniangyibeifuhuo }
}
FROM = {
shijianniangguojia_trigger = yes
}
}
}
FROM = {
country_event = { id = getzhg_event.11 hours = 16 }
}
}
}
}
on_puppet = {
effect = {
if = {
limit = {
AND = {
ROOT = {
shijianniangguojia_trigger = yes
NOT = { has_country_flag = jianniangyibeifuhuo }
}
FROM = {
shijianniangguojia_trigger = yes
}
}
}
FROM = {
country_event = getzhg_event.11
}
}
}
}
on_annex = {
effect = {
if = {
limit = {
AND = {
FROM = {
shijianniangguojia_trigger = yes
NOT = { has_country_flag = jianniangyibeifuhuo }
}
ROOT = {
shijianniangguojia_trigger = yes
}
}
}
ROOT = {
country_event = getzhg_event.1101
}
}
}
}
on_capitulation = {
effect = {
if = {
limit = {
has_global_flag = modoption_fengkuangai_on
AND = {
ROOT = {
NOT = { has_country_flag = beilueduo }
shijianniangguojia_trigger = yes
}
FROM = {
is_ai = no
}
}
}
ROOT = {
set_country_flag = beilueduo
}
FROM = {
country_event = { id = azevent.78 hours = 2 }
}
}
}
}
on_annex = {
effect = {
if = {
limit = {
has_global_flag = modoption_fengkuangai_on
AND = {
FROM = {
NOT = { has_country_flag = beilueduo }
shijianniangguojia_trigger = yes
}
ROOT = {
is_ai = no
}
}
}
ROOT = {
country_event = { id = azevent.78 hours = 2 }
}
}
}
}
on_puppet = {
effect = {
if = {
limit = {
has_global_flag = modoption_fengkuangai_on
ROOT = {
NOT = { has_country_flag = beilueduo }
shijianniangguojia_trigger = yes
}
FROM = {
is_ai = no
}
}
ROOT = {
set_country_flag = beilueduo
}
FROM = {
country_event = { id = azevent.78 hours = 2 }
}
}
}
}
on_capitulation = {
effect = {
if = {
limit = {
AND = {
has_global_flag = MOD_azurlane_sairenzhizai
has_game_rule = {
rule = AZ_generic_toudisairen
option = AZ_generic_toudisairen_on
}
ROOT = {
shijianniangguojia_trigger = yes
NOT = { has_country_flag = toudisairen_get }
}
FROM = {
shisairen_trigger = yes
}
}
}
ROOT = {
news_event = aznews.41
set_country_flag = toudisairen_get
add_Ideas = SIR_srkzg
if = {
limit = {
tag = BYG
}
create_country_leader = {
name = "企业"
picture = "gfx/leaders/zhihuiguan/siren_qiye.jpg"
expire = "1965.1.1"
ideology = siren_ideology
traits = {
# bsrkz
}
}
}
if = {
limit = {
tag = BFL
}
create_country_leader = {
name = "罗西亚"
picture = "gfx/leaders/zhihuiguan/siren_luoxiya.jpg"
expire = "1965.1.1"
ideology = siren_ideology
traits = {
# bsrkz
}
}
}
if = {
limit = {
tag = CHY
}
create_country_leader = {
name = "赤城"
picture = "gfx/leaders/zhihuiguan/siren_chicheng.jpg"
expire = "1965.1.1"
ideology = siren_ideology
traits = {
# bsrkz
}
}
}
if = {
limit = {
tag = DOH
}
create_country_leader = {
name = "逸仙"
picture = "gfx/leaders/zhihuiguan/siren_yixian.jpg"
expire = "1965.1.1"
ideology = siren_ideology
traits = {
# bsrkz
}
}
}
if = {
limit = {
tag = HUJ
}
create_country_leader = {
name = "胡德"
picture = "gfx/leaders/zhihuiguan/siren_hude.jpg"
expire = "1965.1.1"
ideology = siren_ideology
traits = {
# bsrkz
}
}
}
if = {
limit = {
tag = SAD
}
create_country_leader = {
name = "维内托"
picture = "gfx/leaders/zhihuiguan/siren_weineituo.jpg"
expire = "1965.1.1"
ideology = siren_ideology
traits = {
# bsrkz
}
}
}
if = {
limit = {
tag = TIX
}
create_country_leader = {
name = "俾斯麦"
picture = "gfx/leaders/zhihuiguan/siren_bisimai.jpg"
expire = "1965.1.1"
ideology = siren_ideology
traits = {
# bsrkz
}
}
}
if = {
limit = {
tag = YUW
}
create_country_leader = {
name = "让·巴尔"
picture = "gfx/leaders/zhihuiguan/siren_rangbaer.jpg"
expire = "1965.1.1"
ideology = siren_ideology
traits = {
# bsrkz
}
}
}
}
FROM = {
white_peace = ROOT
puppet = ROOT
}
}
}
}
on_puppet = {
effect = {
if = {
limit = {
AND = {
has_global_flag = MOD_azurlane_sairenzhizai
ROOT = {
shijianniangguojia_trigger = yes
NOT = { has_country_flag = toudisairen_get }
}
FROM = {
shisairen_trigger = yes
}
}
}
ROOT = {
news_event = aznews.41
set_country_flag = toudisairen_get
add_Ideas = SIR_srkzg
if = {
limit = {
tag = BYG
}
create_country_leader = {
name = "企业"
picture = "gfx/leaders/zhihuiguan/siren_qiye.jpg"
expire = "1965.1.1"
ideology = siren_ideology
traits = {
# bsrkz
}
}
}
if = {
limit = {
tag = BFL
}
create_country_leader = {
name = "罗西亚"
picture = "gfx/leaders/zhihuiguan/siren_luoxiya.jpg"
expire = "1965.1.1"
ideology = siren_ideology
traits = {
# bsrkz
}
}
}
if = {
limit = {
tag = CHY
}
create_country_leader = {
name = "赤城"
picture = "gfx/leaders/zhihuiguan/siren_chicheng.jpg"
expire = "1965.1.1"
ideology = siren_ideology
traits = {
# bsrkz
}
}
}
if = {
limit = {
tag = DOH
}
create_country_leader = {
name = "逸仙"
picture = "gfx/leaders/zhihuiguan/siren_yixian.jpg"
expire = "1965.1.1"
ideology = siren_ideology
traits = {
# bsrkz
}
}
}
if = {
limit = {
tag = HUJ
}
create_country_leader = {
name = "胡德"
picture = "gfx/leaders/zhihuiguan/siren_hude.jpg"
expire = "1965.1.1"
ideology = siren_ideology
traits = {
# bsrkz
}
}
}
if = {
limit = {
tag = SAD
}
create_country_leader = {
name = "维内托"
picture = "gfx/leaders/zhihuiguan/siren_weineituo.jpg"
expire = "1965.1.1"
ideology = siren_ideology
traits = {
# bsrkz
}
}
}
if = {
limit = {
tag = TIX
}
create_country_leader = {
name = "俾斯麦"
picture = "gfx/leaders/zhihuiguan/siren_bisimai.jpg"
expire = "1965.1.1"
ideology = siren_ideology
traits = {
# bsrkz
}
}
}
if = {
limit = {
tag = YUW
}
create_country_leader = {
name = "让·巴尔"
picture = "gfx/leaders/zhihuiguan/siren_rangbaer.jpg"
expire = "1965.1.1"
ideology = siren_ideology
traits = {
# bsrkz
}
}
}
}
}
}
}
on_unit_leader_level_up = {
effect = {
#驱逐
if = {
limit = {
skill > 5
OR = {
has_trait = quzhu_army
has_trait = quzhu_navy
}
NOT = { has_character_flag = level_6_count_get }
}
unit_leader_event = getzhg_event.20
set_character_flag = level_6_count_get
}
if = {
limit = {
skill > 7
OR = {
has_trait = quzhu_army
has_trait = quzhu_navy
}
NOT = { has_character_flag = level_8_count_get }
}
unit_leader_event = getzhg_event.2001
set_character_flag = level_8_count_get
}
#巡洋
if = {
limit = {
skill > 5
OR = {
has_trait = xunyang_army
has_trait = xunyang_navy
}
NOT = { has_character_flag = level_6_count_get }
}
unit_leader_event = getzhg_event.21
set_character_flag = level_6_count_get
}
if = {
limit = {
skill > 7
OR = {
has_trait = xunyang_army
has_trait = xunyang_navy
}
NOT = { has_character_flag = level_8_count_get }
}
unit_leader_event = getzhg_event.2101
set_character_flag = level_8_count_get
}
#巡洋
if = {
limit = {
skill > 5
OR = {
has_trait = zhanlie_army
has_trait = zhanlie_navy
}
NOT = { has_character_flag = level_6_count_get }
}
unit_leader_event = getzhg_event.22
set_character_flag = level_6_count_get
}
if = {
limit = {
skill > 7
OR = {
has_trait = zhanlie_army
has_trait = zhanlie_navy
}
NOT = { has_character_flag = level_8_count_get }
}
unit_leader_event = getzhg_event.2201
set_character_flag = level_8_count_get
}
#航母
if = {
limit = {
skill > 5
OR = {
has_trait = hangmu_army
has_trait = hangmu_navy
}
NOT = { has_character_flag = level_6_count_get }
}
unit_leader_event = getzhg_event.23
set_character_flag = level_6_count_get
}
if = {
limit = {
skill > 7
OR = {
has_trait = hangmu_army
has_trait = hangmu_navy
}
NOT = { has_character_flag = level_8_count_get }
}
unit_leader_event = getzhg_event.2301
set_character_flag = level_8_count_get
}
}
}
#舰娘升级改造事件
on_unit_leader_level_up = {
effect = {
#约克城
if = {
limit = {
is_character = BYG_yuekecheng
skill > 4
skill < 6
}
set_portraits = {
army = { large ="gfx/leaders/BYG/yuekecheng2.png"}
civilian = { large ="gfx/leaders/BYG/yuekecheng2.png" }
}
unit_leader_event = getzhg_event.2701
}
#哈曼
if = {
limit = {
is_character = BYG_haman
skill > 4
skill < 6
}
set_portraits = {
army = { large ="gfx/leaders/BYG/haman2.png"}
civilian = { large ="gfx/leaders/BYG/haman2.png" }
}
unit_leader_event = getzhg_event.2702
}
}
}
}

View File

@@ -0,0 +1,534 @@
on_actions = {
on_startup = {
effect = {
set_global_flag = MOD_azurlane_sairenzhizai
}
}
on_startup = {
effect = {
every_country = {
limit = {
AND = {
is_ai = yes
shijianniangguojia_trigger = yes
}
}
add_timed_idea = {
idea = TY_sir_AI_buff
days = 800
}
}
HUJ = {
add_manpower = 300000
capital_scope = {
add_manpower = 2000000
set_state_category = city
add_building_construction = {
type = industrial_complex
level = 5
instant_build = yes
}
add_building_construction = {
type = arms_factory
level = 5
instant_build = yes
}
add_resource = {
type = steel
amount = 40
}
add_resource = {
type = oil
amount = 1
}
add_resource = {
type = tungsten
amount = 0
}
add_resource = {
type = chromium
amount = 0
}
add_resource = {
type = aluminium
amount = 20
}
add_resource = {
type = rubber
amount = 0
}
}
}
TIX = {
add_manpower = 300000
capital_scope = {
add_manpower = 2000000
set_state_category = large_city
add_building_construction = {
type = industrial_complex
level = 2
instant_build = yes
}
add_building_construction = {
type = arms_factory
level = 8
instant_build = yes
}
add_resource = {
type = steel
amount = 50
}
add_resource = {
type = oil
amount = 0
}
add_resource = {
type = tungsten
amount = 0
}
add_resource = {
type = chromium
amount = 0
}
add_resource = {
type = aluminium
amount = 5
}
add_resource = {
type = rubber
amount = 0
}
}
}
YUW = {
add_manpower = 300000
capital_scope = {
add_manpower = 2000000
set_state_category = megalopolis
add_building_construction = {
type = industrial_complex
level = 7
instant_build = yes
}
add_building_construction = {
type = arms_factory
level = 1
instant_build = yes
}
add_resource = {
type = steel
amount = 10
}
add_resource = {
type = oil
amount = 15
}
add_resource = {
type = tungsten
amount = 0
}
add_resource = {
type = chromium
amount = 0
}
add_resource = {
type = aluminium
amount = 0
}
add_resource = {
type = rubber
amount = 65
}
}
}
SAD = {
add_manpower = 300000
capital_scope = {
add_manpower = 2000000
set_state_category = megalopolis
add_building_construction = {
type = industrial_complex
level = 6
instant_build = yes
}
add_building_construction = {
type = arms_factory
level = 3
instant_build = yes
}
add_resource = {
type = steel
amount = 15
}
add_resource = {
type = oil
amount = 2
}
add_resource = {
type = tungsten
amount = 3
}
add_resource = {
type = chromium
amount = 4
}
add_resource = {
type = aluminium
amount = 2
}
add_resource = {
type = rubber
amount = 0
}
}
}
BFL = {
add_manpower = 300000
capital_scope = {
add_manpower = 2000000
set_state_category = city
add_building_construction = {
type = industrial_complex
level = 8
instant_build = yes
}
add_building_construction = {
type = arms_factory
level = 2
instant_build = yes
}
add_resource = {
type = steel
amount = 88
}
add_resource = {
type = oil
amount = 6
}
add_resource = {
type = tungsten
amount = 7
}
add_resource = {
type = chromium
amount = 8
}
add_resource = {
type = aluminium
amount = 0
}
add_resource = {
type = rubber
amount = 0
}
}
}
DOH = {
add_manpower = 300000
capital_scope = {
add_manpower = 2000000
set_state_category = city
add_building_construction = {
type = industrial_complex
level = 5
instant_build = yes
}
add_building_construction = {
type = arms_factory
level = 1
instant_build = yes
}
add_resource = {
type = steel
amount = 5
}
add_resource = {
type = oil
amount = 15
}
add_resource = {
type = tungsten
amount = 0
}
add_resource = {
type = chromium
amount = 6
}
add_resource = {
type = aluminium
amount = 2
}
add_resource = {
type = rubber
amount = 8
}
}
}
CHY = {
add_manpower = 300000
capital_scope = {
add_manpower = 2000000
set_state_category = megalopolis
add_building_construction = {
type = industrial_complex
level = 2
instant_build = yes
}
add_building_construction = {
type = arms_factory
level = 7
instant_build = yes
}
add_resource = {
type = steel
amount = 10
}
add_resource = {
type = oil
amount = 25
}
add_resource = {
type = tungsten
amount = 3
}
add_resource = {
type = chromium
amount = 40
}
add_resource = {
type = aluminium
amount = 3
}
add_resource = {
type = rubber
amount = 0
}
}
}
BYG = {
add_manpower = 300000
capital_scope = {
add_manpower = 2000000
set_state_category = megalopolis
add_building_construction = {
type = industrial_complex
level = 10
instant_build = yes
}
add_building_construction = {
type = arms_factory
level = 1
instant_build = yes
}
add_resource = {
type = steel
amount = 20
}
add_resource = {
type = oil
amount = 105
}
add_resource = {
type = tungsten
amount = 0
}
add_resource = {
type = chromium
amount = 60
}
add_resource = {
type = aluminium
amount = 0
}
add_resource = {
type = rubber
amount = 30
}
}
}
}
}
on_startup = {
effect = {
every_country = {
limit = {
shijianniangguojia_trigger = yes
}
mark_focus_tree_layout_dirty = yes
}
every_country = {
limit = {
shijianniangguojia_trigger = yes
}
add_opinion_modifier = {
target = SIR
modifier = soren_embargo
}
add_opinion_modifier = {
target = SR1
modifier = soren_embargo
}
add_opinion_modifier = {
target = SR2
modifier = soren_embargo
}
add_opinion_modifier = {
target = SR3
modifier = soren_embargo
}
add_opinion_modifier = {
target = SR4
modifier = soren_embargo
}
add_opinion_modifier = {
target = SIR
modifier = siren_opinion
}
add_opinion_modifier = {
target = SR1
modifier = siren_opinion
}
add_opinion_modifier = {
target = SR2
modifier = siren_opinion
}
add_opinion_modifier = {
target = SR3
modifier = siren_opinion
}
add_opinion_modifier = {
target = SR4
modifier = siren_opinion
}
}
}
}
on_startup = {
effect = {
every_country = {
if = {
limit = {
shisairen_trigger = yes
}
set_technology = { keyantech_siren = 1 }
add_equipment_to_stockpile = {
type = siren_equipment_1
amount = 4000
producer = SIR
}
load_focus_tree = sir_sirenmod_focus
add_opinion_modifier = {
target = BYG
modifier = siren_jianniang_opinion
}
add_opinion_modifier = {
target = HUJ
modifier = siren_jianniang_opinion
}
add_opinion_modifier = {
target = TIX
modifier = siren_jianniang_opinion
}
add_opinion_modifier = {
target = YUW
modifier = siren_jianniang_opinion
}
add_opinion_modifier = {
target = SAD
modifier = siren_jianniang_opinion
}
add_opinion_modifier = {
target = BFL
modifier = siren_jianniang_opinion
}
add_opinion_modifier = {
target = DOH
modifier = siren_jianniang_opinion
}
add_opinion_modifier = {
target = CHY
modifier = siren_jianniang_opinion
}
}
}
}
}
on_declare_war = {
effect = {
if = {
limit = {
FROM = {
shisairen_trigger = yes
}
}
FROM = {
add_to_variable = {
var = canzhanguo_sl
value = 1
}
army_experience = 10
}
}
}
}
on_declare_war = {
effect = {
if = {
limit = {
FROM = {
shisairen_trigger = yes
}
ROOT = {
TAG = DOH
is_ai = yes
NOT = { has_country_flag = sirenmod_ai_baobing_get }
}
}
ROOT = {
set_country_flag = sirenmod_ai_baobing_get
division_template = {
name = "东煌解放军"
regiments = {
infantry = { x = 0 y = 0 }
infantry = { x = 0 y = 1 }
infantry = { x = 0 y = 2 }
infantry = { x = 0 y = 3 }
infantry = { x = 0 y = 4 }
infantry = { x = 1 y = 0 }
infantry = { x = 1 y = 1 }
infantry = { x = 1 y = 2 }
infantry = { x = 1 y = 3 }
}
support = {
engineer = { x = 0 y = 0 }
artillery = { x = 0 y = 1 }
}
}
for_loop_effect = {
start = 0
end = 36
add = 1
capital_scope = {
create_unit = {
division = "name = \"东煌解放军\" division_template = \"东煌解放军\" start_experience_factor = 0.3 start_equipment_factor = 1"
owner = ROOT
}
}
}
}
}
}
}
}

View File

@@ -0,0 +1,25 @@
on_actions = {
on_capitulation = {
effect = {
if = {
limit = {
FROM = {
shijianniangguojia_trigger = yes
NOT = { has_country_flag = toudisairen_get }
}
ROOT = {
has_country_flag = toudisairen_get
}
}
FROM = {
white_peace = ROOT
puppet = ROOT
}
ROOT = {
clr_country_flag = toudisairen_get
remove_Ideas = SIR_srkzg
}
}
}
}
}