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_flo.59] 美第奇银行扩张

时间范围

事件无明确 fromto 日期限制,由脚本动态触发。触发后,有 50% 的概率在 2 到 4 年后再次静默触发同一事件(flavor_flo.59),直至计数器达到 11。

触发条件

此事件为脚本触发的国家事件,无显式 trigger 字段。其触发依赖于游戏内部变量 flo_bank_counter 的状态以及 after 部分中的静默触发逻辑。

关键效果

事件仅有一个选项。

选项:flavor_flo.59.a

  • 根据变量 flo_bank_counter 的当前值,确定一个目标地点(target_location):
    • 1: 威尼斯
    • 2: 那不勒斯
    • 3: 日内瓦
    • 4: 巴塞尔
    • 5: 比萨
    • 6: 布鲁日
    • 7: 阿维尼翁
    • 8: 里昂
    • 9: 米兰
    • 10: 伦敦
  • 对目标地点生效:
    • 如果 该地点没有由 scope:medici_bank_tag 拥有的 banking_office(银行办公室)建筑,则为其建造 1 级该建筑。
    • 否则(即该地点已有该建筑):
      • 该地点的所有者将对事件触发国(ROOT)获得名为 flo_good_business 的正面意见修正。
      • 事件触发国(ROOT)将获得一笔金币,数额为该地点税收基础(location_tax_base)的 12 倍。
  • 如果变量 flo_bank_counter 的值大于等于 11,将显示一个自定义提示(FLO_end_of_events),暗示事件链结束。

事件后续(after):

  • 变量 flo_bank_counter 增加 1。
  • 如果 flo_bank_counter 大于等于 11,则移除该变量。
  • 否则,在 2 到 4 年后,有 50% 的概率再次静默触发本事件(flavor_flo.59)。

背景介绍

此事件模拟了文艺复兴时期美第奇家族银行的扩张历程。美第奇银行通过在欧洲主要商业和金融中心设立分支机构,构建了一个庞大的国际网络,不仅极大地增强了家族的经济实力和政治影响力,也深刻促进了欧洲的金融与贸易发展。本事件以系列动态事件的形式,展现了美第奇银行在威尼斯、伦敦、布鲁日等关键城市建立业务据点的过程。

完整事件代码

flavor_flo.59 = {
	type = country_event
	title = flavor_flo.59.title
	desc = flavor_flo.59.desc

	illustration_tags = {
        10 = regular
        10 = interior
    }

	immediate = {
		event_illustration_estate_effect = { foreground = estate_type:burghers_estate background = estate_type:burghers_estate }
		switch = {
			trigger = var:flo_bank_counter
			1 = { location:venice = { save_scope_as = target_location } }
			2 = { location:naples = { save_scope_as = target_location } }
			3 = { location:geneve = { save_scope_as = target_location } }
			4 = { location:basel = { save_scope_as = target_location } }
			5 = { location:pisa = { save_scope_as = target_location } }
			6 = { location:bruges = { save_scope_as = target_location } }
			7 = { location:avignon = { save_scope_as = target_location } }
			8 = { location:lyon = { save_scope_as = target_location } }
			9 = { location:milano = { save_scope_as = target_location } }
			10 = { location:london = { save_scope_as = target_location } }
		}
	}

	option = {
		name = flavor_flo.59.a

		scope:target_location = {
			if = {
				limit = {
					NOT = {
						location_building_level = {
							building_type = building_type:banking_office
							value > 0
							owner = scope:medici_bank_tag
						}
					}
				}
				change_building_level_in_location = {
					building = building_type:banking_office
					value = 1
					owner = scope:medici_bank_tag
				}
			}
			else = {
				owner = {
					add_opinion = {
						modifier = flo_good_business
						target = ROOT
					}
				}
				ROOT = {
					add_gold = {
						value = PREV.location_tax_base
						multiply = 12
					}
				}
			}
		}
		if = {
			limit = {
				var:flo_bank_counter >= 11
			}
			custom_tooltip = FLO_end_of_events
		}
	}

	after = {
		change_variable = {
			name = flo_bank_counter
			add = 1
		}
		if = {
			limit = {
				var:flo_bank_counter >= 11
			}
			remove_variable = flo_bank_counter
		}
		else = {
			trigger_event_silently = {
				id = flavor_flo.59
				years = { 2 4 }
			}
		}
	}
}