Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

[flavor_maj.26] 阿迪亚瓦尔曼的远征

时间范围

1338.1.1 - 1350.1.1,每月有 10% 的概率触发。

触发条件

  • 角色 jmb_adityawarman 必须存活。
  • 该角色的所有者必须满足以下条件之一:
    • 该所有者就是触发事件的国家(ROOT),并且国家 JMB 由AI控制。
    • 该所有者是触发事件的国家(ROOT)的附属国或更低级附属,并且由AI控制。
  • 国家 c:SGT 必须存在,并且由AI控制。
  • 触发事件的国家(ROOT)的国库黄金必须大于或等于其年收入(yearly_gold)。

关键效果

选项 A (AI选择权重 80%)

  • 支付一笔费用,金额等于本国的年收入(yearly_gold)。
  • 使角色 jmb_adityawarman 成为 target_country(根据触发条件,可能是 JMB 或其附属国)的新统治者。
  • 为角色 jmb_adityawarman 增加 10 到 15 点军事能力。
  • 在 182 至 365 天后,强制触发事件 flavor_maj.27 给国家 c:SGT
  • 所有首都位于“北苏门答腊地区”或“南苏门答腊地区”的附属国,其独立倾向将大幅降低(liberty_desire_severe_minus)。

选项 B (AI选择权重 20%)

  • 国家声望受到轻微惩罚(prestige_mild_penalty)。

背景介绍

此事件模拟了14世纪中叶,满者伯夷王国(Majapahit)可能支持其王室成员或盟友阿迪亚瓦尔曼(Adityawarman)向苏门答腊地区进行扩张的历史进程。阿迪亚瓦尔曼是满者伯夷与米南加保王室联姻的后代,后来在苏门答腊中部建立了自己的政权。该事件代表了满者伯夷帝国通过资助军事远征,在苏门答腊地区施加影响力并安置代理统治者的战略选择。

完整事件代码

flavor_maj.26 = {
	hide_portraits = yes
	type = country_event
	title = flavor_maj.26.title
	desc = flavor_maj.26.desc

	fire_only_once = yes
	dynamic_historical_event = {
		tag = MAJ
		from = 1338.1.1
		to = 1350.1.1
		monthly_chance = 10
	}

	trigger = {
		character:jmb_adityawarman = {
			is_alive = yes
			owner ?= {
				OR = {
					AND = {
						this = ROOT
						c:JMB ?= {
							is_ai = yes
						}
					}
					AND = {
						is_subject_or_below_of = ROOT
						is_ai = yes
					}
				}
			}
		}
		country_exists = c:SGT
		c:SGT = {
			is_ai = yes
		}

		gold >= yearly_gold
	}

	immediate = {
		save_scope_as = from
		character:jmb_adityawarman = {
			save_scope_as = target_character
		}
		if = {
			limit = {
				scope:target_character.owner = {
					is_subject_or_below_of = ROOT
					is_ai = yes
				}
			}
			scope:target_character.owner = {
				save_scope_as = target_country
			}
		}
		else = {
			c:JMB = {
				save_scope_as = target_country
			}
		}

		c:SGT = {
			save_scope_as = target_country2
		}

		set_local_variable = {
			name = expedition_cost
			value = yearly_gold
		}
	}

	option = {
		name = flavor_maj.26.a

		ai_chance = {
			factor = 0.8
		}

		add_gold = {
			value = local_var:expedition_cost
			multiply = -1
		}

		scope:target_country = {
			set_new_ruler = scope:target_character
		}

		scope:target_character = {
			add_mil = { 10 15 }
		}

		scope:target_country2 = {
			trigger_event_non_silently = {
				id = flavor_maj.27
				days = { 182 365 }
			}
		}
		custom_tooltip = maj_fire_will_event_if_target_character_lives

		every_subject = {
			limit = {
				exists = capital
				capital = {
					OR = {
						area = area:north_sumatra_area
						area = area:south_sumatra_area
					}
				}
			}
			add_liberty_desire = liberty_desire_severe_minus
		}
	}

	option = {
		name = flavor_maj.26.b

		ai_chance = {
			factor = 0.2
		}

		add_prestige = prestige_mild_penalty
	}
}