ht_huzhu_xiehui/events/ht_jianshe_shengfen.txt

348 lines
12 KiB
Plaintext
Raw Normal View History

2024-11-21 17:26:22 +08:00
namespace = ht_eve_jianshe_shengfen
country_event = {
id = ht_eve_jianshe_shengfen.1
title = ht_jianshe_shengfen_maoyipin_t
desc = ht_jianshe_shengfen_maoyipin_d
picture = ht_shangdian
is_triggered_only = yes
fire_only_once = yes
option = {
name = jianshe_shengfen_zhuanhuan_maoyipin_shi
set_country_flag = jianshe_zhuanhao_maoyipin_shi
}
option = {
name = jianshe_shengfen_zhuanhuan_maoyipin_fou
set_country_flag = jianshe_zhuanhuan_maoyipin_fou
}
}
country_event = {
id = ht_eve_jianshe_shengfen.2
title = ht_jianshe_shengfen_t
desc = ht_jianshe_shengfen_d
picture = ht_shangdian
is_triggered_only = yes
immediate = {
hidden_effect = {
if = {
limit = { has_estate_privilege = ht_ses_tq_xiehui }
random_province = {
limit = { has_ruler_leader_from = root }
save_event_target_as = ht_jianshe_shengfen_mubiao_di
}
}
if = {
limit = { has_estate_privilege = ht_ses_tq_xiehui }
random_province = {
limit = { has_heir_leader_from = root }
save_event_target_as = ht_jianshe_shengfen_mubiao_di
}
}
}
}
goto = ht_jianshe_shengfen_mubiao_di
option = { #<10>cؚ,g0W2<><12>VIr<13>u
name = shengfen_junshi_baolei
trigger = {
event_target:ht_jianshe_shengfen_mubiao_di = {
NOT = {
has_province_modifier = jianshe_junshi_baolei
}
OR = {
has_building = fort_15th
has_building = fort_16th
has_building = fort_17th
has_building = fort_18th
}
}
}
event_target:ht_jianshe_shengfen_mubiao_di = {
add_province_modifier = {
name = jianshe_junshi_baolei
duration = -1
}
}
add_treasury = -300
add_mil_power = -30
}
option = { #<10>yd<>,g0W2<><12>VIr<13>u<10>Ock
name = shengfen_junshi_baolei_chai
trigger = {
event_target:ht_jianshe_shengfen_mubiao_di = {
has_province_modifier = jianshe_junshi_baolei
}
}
event_target:ht_jianshe_shengfen_mubiao_di = {
remove_province_modifier = jianshe_junshi_baolei
}
}
option = { #<10>^<10><>=n<10>S<10>W^
name = shengfen_junshi_gangkou
add_treasury = -300
add_dip_power = -30
trigger = {
event_target:ht_jianshe_shengfen_mubiao_di = {
NOT = {
has_province_modifier = jianshe_junshi_gangkou
}
has_port = yes
province_has_center_of_trade_of_level = 1
}
}
event_target:ht_jianshe_shengfen_mubiao_di = {
add_province_modifier = {
name = jianshe_junshi_gangkou
duration = -1
}
}
if = {
limit = {
has_country_flag = jianshe_zhuanhao_maoyipin_shi
}
event_target:ht_jianshe_shengfen_mubiao_di = {
change_trade_goods = ht_maoyipin_gangkou
}
}
}
option = {
name = shengfen_chanwu_jianshe
add_treasury = -300
add_adm_power = -30
trigger = {
event_target:ht_jianshe_shengfen_mubiao_di = {
OR = {
has_port = no
NOT = {
province_has_center_of_trade_of_level = 1
}
}
NOT = {
has_province_modifier = jianshe_sf_junshi
has_province_modifier = jianshe_sf_caikuang
has_province_modifier = jianshe_sf_gongye
has_province_modifier = jianshe_sf_yinpin
has_province_modifier = jianshe_sf_nongye
has_province_modifier = jianshe_sf_haijun_renyuan
}
}
}
if = { #!h:W
limit = {
event_target:ht_jianshe_shengfen_mubiao_di = {
OR = {
trade_goods = salt #<10>v
trade_goods = fur #<10>k<10>v
}
}
}
event_target:ht_jianshe_shengfen_mubiao_di = {
add_province_modifier = {
name = jianshe_sf_junshi
duration = -1
}
}
if = {
limit = {
has_country_flag = jianshe_zhuanhao_maoyipin_shi
}
event_target:ht_jianshe_shengfen_mubiao_di = {
change_trade_goods = ht_maoyipin_junshi_zhuzha
}
}
}
if = { #<10>QN:S
limit = {
event_target:ht_jianshe_shengfen_mubiao_di = {
OR = {
trade_goods = grain #7<>ir
trade_goods = livestock #rrju
trade_goods = wool #<10><10>k
}
}
}
event_target:ht_jianshe_shengfen_mubiao_di = {
add_province_modifier = {
name = jianshe_sf_nongye
duration = -1
}
}
if = {
limit = {
has_country_flag = jianshe_zhuanhao_maoyipin_shi
}
event_target:ht_jianshe_shengfen_mubiao_di = {
change_trade_goods = ht_maoyipin_nongye
}
}
}
if = { #Ǒ<10>w<10>S
limit = {
event_target:ht_jianshe_shengfen_mubiao_di = {
OR = {
trade_goods = copper #ܔ<10>w
trade_goods = iron #<10><><10>w
}
}
}
event_target:ht_jianshe_shengfen_mubiao_di = {
add_province_modifier = {
name = jianshe_sf_caikuang
duration = -1
}
}
if = {
limit = {
has_country_flag = jianshe_zhuanhao_maoyipin_shi
}
event_target:ht_jianshe_shengfen_mubiao_di = {
change_trade_goods = ht_maoyipin_caikuang
}
}
}
if = { #<12>TN-N<12>V
limit = {
event_target:ht_jianshe_shengfen_mubiao_di = {
OR = {
trade_goods = wine #R<><11>|
trade_goods = cloth #^<10>e
trade_goods = chinaware #<10>thV
trade_goods = spices #<10><><10>e
trade_goods = tobacco #<10>pI<>
trade_goods = sugar #<10>|<11>|
trade_goods = silk #N<12>u
trade_goods = dyes #<10>g<10>e
trade_goods = tropical_wood #<10>p&^(gPg
trade_goods = incense #<10>q<10><>
trade_goods = glass #<10>s<10>t
trade_goods = paper #<12>u.V
trade_goods = gems #<12>R<10>w
trade_goods = cloves #N<10><>
trade_goods = naval_supplies #9<>wQ
}
}
}
event_target:ht_jianshe_shengfen_mubiao_di = {
add_province_modifier = {
name = jianshe_sf_gongye
duration = -1
}
}
if = {
limit = {
has_country_flag = jianshe_zhuanhao_maoyipin_shi
}
event_target:ht_jianshe_shengfen_mubiao_di = {
change_trade_goods = ht_maoyipin_gongye
}
}
}
if = { #n<><10>T<10>S
limit = {
event_target:ht_jianshe_shengfen_mubiao_di = {
OR = {
trade_goods = tea #6<><10>S
trade_goods = coffee #<10>TaU
}
}
}
event_target:ht_jianshe_shengfen_mubiao_di = {
add_province_modifier = {
name = jianshe_sf_yinpin
duration = -1
}
}
if = {
limit = {
has_country_flag = jianshe_zhuanhao_maoyipin_shi
}
event_target:ht_jianshe_shengfen_mubiao_di = {
change_trade_goods = ht_maoyipin_yinpin
}
}
}
if = { #wmXT<10><><12>u:W
limit = {
event_target:ht_jianshe_shengfen_mubiao_di = {
has_port = yes #=f=n<10>S
OR = {
trade_goods = fish #|<7C>
trade_goods = naval_supplies #9<>wQ
}
}
}
event_target:ht_jianshe_shengfen_mubiao_di = {
add_province_modifier = {
name = jianshe_sf_haijun_renyuan
duration = -1
}
}
if = {
limit = {
has_country_flag = jianshe_zhuanhao_maoyipin_shi
}
event_target:ht_jianshe_shengfen_mubiao_di = {
change_trade_goods = ht_maoyipin_haijun_zhuzha
}
}
}
}
option = { #S<><10><>
name = shengfen_daolu_jianshe
add_treasury = -100
trigger = {
event_target:ht_jianshe_shengfen_mubiao_di = {
NOT = {
has_province_modifier = jianshe_sf_daolu
}
}
}
event_target:ht_jianshe_shengfen_mubiao_di = {
add_province_modifier = {
name = jianshe_sf_daolu
duration = -1
}
}
}
option = { #N.<2E>S<><10><>
name = shengfen_daolu_jianshe_yijian
trigger = {
treasury = 1000
hidden_trigger = {
any_owned_province = {
NOT = {
has_province_modifier = jianshe_sf_daolu
}
}
}
}
custom_tooltip = shengfen_daolu_jianshe_yijian_tt
hidden_effect = {
while = {
limit = {
treasury = 300
any_owned_province = {
NOT = {
has_province_modifier = jianshe_sf_daolu
}
}
}
add_treasury = -75
random_owned_province = {
limit = {
NOT = {
has_province_modifier = jianshe_sf_daolu
}
}
add_province_modifier = {
name = jianshe_sf_daolu
duration = -1
}
add_province_modifier = {
name = jianshe_sf_daolu_yijian_houguo
duration = 3650
}
}
}
}
}
option = { name = tuichu }
}