flavor_ayu.1 阿瑜陀耶的建立
时间范围:1337.1.1 - 1400.1.1,每月 5% 概率触发
触发条件:
- 本国拥有统治者。
- 阿约提亚(ayodhya)地区的所有者拥有统治者,且该统治者与本国统治者是同一人。
- 满足以下条件之一:
- 素攀武里(SPN)国家不存在。
- 本国统治者是人物
adh_ramathibodi。 - 本国对素攀武里(SPN)国家的好感度 ≥ 50。
- 满足以下条件之一:
- 本国是拉瓦(LAV),且阿瑜陀耶(ADH)国家存在、由AI控制,并且本国统治者与阿瑜陀耶(ADH)的统治者是同一人。
- 本国是阿瑜陀耶(ADH),且拉瓦(LAV)国家存在、由AI控制,并且本国统治者与拉瓦(LAV)的统治者是同一人。
- 本国完全拥有阿瑜陀耶省(ayutthaya_province)和素攀武里省(suphanburi_province)。
关键效果:
- 选项 A:建立阿瑜陀耶(历史选项)
- 将阿约提亚(ayodhya)地区重命名为阿瑜陀耶(ayutthaya),如果其不是城市等级,则提升为城市。
- 将阿约提亚湾(bight_ayodhya)地区重命名为阿瑜陀耶湾(bight_ayutthaya)。
- 如果统治者是
adh_ramathibodi,则为其建立乌通(uthong)王朝,并设置其名为“拉玛提波底”,同时设置一个临时变量。 - 根据本国是拉瓦(LAV)还是阿瑜陀耶(ADH),吞并另一个国家。
- 如果素攀武里(SPN)国家存在且由AI控制,则吞并该国。
- 如果阿约提亚地区的所有者不是本国,则吞并该所有者。
- 如果阿约提亚地区不是本国首都,则迁都至此。
- 成立国家“阿瑜陀耶”(AYU_f)。
- 如果之前设置了临时变量,则移除该变量,并确保
adh_ramathibodi成为统治者。
- 选项 B:建城,不建国
- 将阿约提亚(ayodhya)地区重命名为阿瑜陀耶(ayutthaya),如果其不是城市等级,则提升为城市。
- 将阿约提亚湾(bight_ayodhya)地区重命名为阿瑜陀耶湾(bight_ayutthaya)。
- 获得大量威望和正统性。
- 选项 C:将资金挪作他用
- 获得大量金钱。
背景介绍: 该事件模拟了14世纪中叶暹罗地区阿瑜陀耶王国的建立过程。历史上,乌通王朝的拉玛提波底一世(Ramathibodi I)通过联合或征服周边政权(如拉瓦、素攀武里),在昭披耶河下游的阿瑜陀耶地区建立了新的政治中心,标志着阿瑜陀耶王朝的开端,并成为该地区未来数百年的重要强国。
完整事件代码:
flavor_ayu.1 = { #Formation of Ayutthaya
type = country_event
title = flavor_ayu.1.title
desc = flavor_ayu.1.desc
fire_only_once = yes
illustration_tags = {
10 = regular
10 = exterior
}
dynamic_historical_event = {
tag = LAV
tag = ADH
from = 1337.1.1
to = 1400.1.1
monthly_chance = 5
}
trigger = {
has_ruler = yes
location:ayodhya.owner = {
has_ruler = yes
ruler = root.ruler
}
OR = {
NOT = { country_exists = c:SPN }
ruler = character:adh_ramathibodi
opinion = { target = c:SPN value >= 50 }
}
OR = {
AND = {
tag = LAV
country_exists = c:ADH
c:ADH = {
has_ruler = yes
is_ai = yes
}
ruler = c:ADH.ruler
}
AND = {
tag = ADH
country_exists = c:LAV
c:LAV = {
has_ruler = yes
is_ai = yes
}
ruler = c:LAV.ruler
}
AND = {
own_entire_province = province_definition:ayutthaya_province
own_entire_province = province_definition:suphanburi_province
}
}
}
immediate = {
event_illustration_estate_effect = { foreground = estate_type:nobles_estate background = estate_type:nobles_estate }
location:ayodhya = { save_scope_as = target_location }
ruler = { save_scope_as = target_ruler }
}
option = { #Form Ayutthaya
name = flavor_ayu.1.a
historical_option = yes
scope:target_location = {
rename_location = ayutthaya
if = {
limit = {
NOT = { location_rank = location_rank:city }
}
change_location_rank = location_rank:city
}
}
location:bight_ayodhya = { rename_location = bight_ayutthaya }
if = {
limit = {
ruler = character:adh_ramathibodi
}
ruler = {
found_dynasty = uthong_dynasty
set_first_name = name_ramathibodi
}
set_variable = uthong_ruler
}
if = {
limit = {
tag = LAV
}
annex_country = { country = c:ADH }
}
else = {
annex_country = { country = c:LAV }
}
if = {
limit = {
country_exists = c:SPN
c:SPN = { is_ai = yes }
}
annex_country = { country = c:SPN }
}
if = {
limit = {
scope:target_location.owner != root
}
annex_country = { country = scope:target_location.owner }
}
if = {
limit = {
NOT = { capital = scope:target_location }
}
set_capital = scope:target_location
}
form_country = formable_country:AYU_f
if = { #To avoid him not being ruler afterwards due to shenanigans with unions dissolving
limit = { has_variable = uthong_ruler }
hidden_effect = {
remove_variable = uthong_ruler
set_new_ruler = character:adh_ramathibodi
}
}
}
option = { #City yes, country no
name = flavor_ayu.1.b
scope:target_location = {
rename_location = ayutthaya
if = {
limit = {
NOT = { location_rank = location_rank:city }
}
change_location_rank = location_rank:city
}
}
location:bight_ayodhya = { rename_location = bight_ayutthaya }
add_prestige = prestige_ultimate_bonus
add_legitimacy = legitimacy_ultimate_bonus
}
option = { #Divert the funds elsewhere
name = flavor_ayu.1.c
change_gold_effect = { scale = 100 }
}
}