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.23 马六甲建国

时间范围:无明确起止日期(事件由特定条件触发,非定期事件)

触发条件:此事件为特定剧本或前置事件(如 flavor_maj.22)的直接后续,通常由游戏系统在满足特定剧本条件后自动触发。事件本身不包含 trigger 字段,其执行依赖于前置逻辑。

关键效果

  • 选项 A (AI 100% 选择)

    • 在目标地点(target_location2)创建马六甲(Malacca)国家标签。
  • 选项 B (AI 0% 选择,玩家专用)

    • 触发条件scope:player_to_switch 不存在(即当前玩家尚未被标记为要切换)。
    • 在目标地点创建马六甲国家标签。
    • 显示自定义提示“我们将扮演马六甲”,并将当前国家(ROOT)保存为 player_to_switch(为后续切换玩家控制权做准备)。
  • 选项 C (AI 0% 选择)

    • 对目标地点施加“极端惩罚”级别的控制度变化。
    • 为国家(ROOT)添加“严重惩罚”级别的稳定度损失。

事件后续效果 (after)

  1. 如果 player_to_switchmalacca_tag 都存在,则将 player_to_switch(原玩家控制的国家)的控制权切换给新创建的马六甲(malacca_tag)。
  2. 如果马六甲国家被成功创建,则立即非静默地触发事件 flavor_maj.24

背景介绍: 此事件模拟了马六甲苏丹国建立的关键历史时刻。马六甲原为暹罗的属国或一个重要的贸易据点,约在15世纪初,拜里米苏拉(Parameswara)在此建立政权并逐渐摆脱外部控制,最终发展成为一个强大的海洋贸易帝国和伊斯兰文化中心。该事件允许游戏再现这一政权的诞生,并给予玩家选择是否亲自引领这个新兴国家崛起的权力。

完整事件代码

flavor_maj.23 = {
	type = country_event
	title = flavor_maj.23.title
	desc = flavor_maj.23.desc

	immediate = {
		save_scope_as = previous_owner
	}

	option = {
		name = flavor_maj.23.a

		ai_chance = {
			factor = 1
		}

		scope:target_location2 = {
			create_malacca_tag_here = yes
		}
	}

	option = {
		name = flavor_maj.23.b

		ai_chance = {
			factor = 0
		}

		trigger = {
			NOT = { exists = scope:player_to_switch }
		}

		scope:target_location2 = {
			create_malacca_tag_here = yes
		}

		custom_tooltip = {
			text = MAJ_we_will_play_as_malacca
			ROOT = {
				save_scope_as = player_to_switch
			}
		}
	}

	option = {
		name = flavor_maj.23.c

		ai_chance = {
			factor = 0
		}

		scope:target_location2 = {
			change_control = control_extreme_penalty
		}
		add_stability = stability_severe_penalty
	}

	after = {
		if = {
			limit = {
				exists = scope:player_to_switch
				exists = scope:malacca_tag
			}
			scope:player_to_switch = {
				change_player = scope:malacca_tag
			}
		}

		if = {
			limit = {
				exists = scope:malacca_tag
			}
			scope:malacca_tag = {
				trigger_event_non_silently = {
					id = flavor_maj.24
				}
			}
		}
	}
}