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_sco.1404 邓巴城堡陷落

时间范围
无明确 fromto 日期限制,事件在满足触发条件后可能发生。无 monthly_chance 字段,因此无固定月度概率。

触发条件

  • 目标地点(scope:target)必须为 邓巴(dunbar
  • 该地点需满足以下任一条件:
    • 拥有地点修正 sco_dunbar_castle
    • 拥有变量 sco_dunbar_castle_taken

关键效果

  • 选项名称flavor_sco.1404.a
  • 效果
    • 获得 少量威望加成add_prestige = prestige_mild_bonus)。
    • 若当前国家为 SBL
      • 若拥有国家修正 sco_hostile_dunbar_castle,则移除该修正。
      • 触发 SCO 国家的事件 flavor_sco.1402(延迟 90 至 120 天)。

背景介绍
该事件模拟了邓巴城堡在特定历史或游戏进程中的陷落。邓巴城堡是苏格兰历史上的重要军事要塞,其控制权的变化常与英格兰和苏格兰之间的冲突相关。事件反映了城堡易手后对相关国家威望和政治局势的影响,尤其是当控制方为 SBL(可能代表某一特定势力或历史政权)时,会进一步引发苏格兰(SCO)的连锁反应。

完整事件代码

flavor_sco.1404 = { #The Fall of Dunbar Castle
	type = country_event
	title = flavor_sco.1404.title
	desc = {
		first_valid = {
			triggered_desc = {
				trigger = { NOT = { tag = SCO } }
				desc = flavor_sco.1404.desc.SBL
			}
			triggered_desc = {
				trigger = { always = yes }
				desc = flavor_sco.1404.desc
			}
		}
	}

	trigger = {
		scope:target = {
			location_key = dunbar
			OR = {
				has_location_modifier = sco_dunbar_castle
				has_variable = sco_dunbar_castle_taken
			}
		}
	}

	illustration_tags = {
        10 = happy
        10 = exterior
    }

	immediate = {
		event_illustration_estate_effect = { foreground = estate_type:nobles_estate background = estate_type:nobles_estate }
		location:dunbar = {
			save_scope_as = target_location
			if = {
				limit = { has_variable = sco_dunbar_castle_taken }
				remove_variable = sco_dunbar_castle_taken
			}
			if = {
				limit = { has_location_modifier = sco_dunbar_castle }
				remove_location_modifier = sco_dunbar_castle
				set_variable = { name = sco_dunbar_castle_taken value = yes years = 20 }
			}
		}
	}

	option = {
		name = flavor_sco.1404.a
		add_prestige = prestige_mild_bonus
		if = {
			limit = { tag = SBL }
			if = {
				limit = { has_country_modifier = sco_hostile_dunbar_castle }
				remove_country_modifier = sco_hostile_dunbar_castle
			}
			c:SCO = {
				trigger_event_silently = { id = flavor_sco.1402 days = { 90 120 } }
			}
		}
	}
}