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_eng.137 弗朗西斯·德雷克的劫掠

时间范围: 无明确 fromto 日期限制,事件在满足触发条件后,通过游戏机制判定发生。

触发条件:

  • 人物要求: 角色 eng_francis_drake(弗朗西斯·德雷克)必须:
    • 被当前国家拥有。
    • 存活。
    • 拥有特质 treasure_hunter(宝藏猎人)。
  • 探索舰队: 必须有一支由 eng_francis_drake 领导的、来自本国的探索舰队位于以下任一海域区域:
    • area:west_caribbean_sea_area(西加勒比海区域)
    • area:east_caribbean_sea_area(东加勒比海区域)
    • area:gulf_of_mexico_area(墨西哥湾区域)
    • area:guayana_sea_zones_area(圭亚那海域区域)
  • 可劫掠目标: 在上述任一海域区域内,必须存在至少一个沿海地点,该地点满足:
    • 其所有者是当前国家的敌人,或是某个殖民领。
    • 没有 building_type:coastal_fort(海岸堡垒)建筑。
    • 没有 drake_recent_raid 变量(表示近期未被德雷克劫掠过)。
  • 状态检查: 当前国家没有 drake_ongoing_raid 变量(表示德雷克没有正在进行的劫掠行动)。

关键效果:

  • 选项 A (历史选项):
    • 名称: flavor_eng.137.a
    • 效果:
      • 移除 drake_ongoing_raid 变量。
      • 显示自定义提示文本 flavor_eng.137.a.customflavor_eng.137.tt1flavor_eng.137.tt3
  • 选项 B:
    • 名称: flavor_eng.137.b
    • 效果:
      • 显示自定义提示文本 flavor_eng.137.tt2flavor_eng.137.tt3

背景介绍: 该事件模拟了历史上著名的英国私掠船长、探险家弗朗西斯·德雷克爵士在加勒比海及周边海域对西班牙殖民地和航运线发动的劫掠行动。德雷克以其大胆的袭击和丰厚的战利品闻名,他的活动极大地打击了西班牙帝国的财富和威望,并为英格兰带来了巨额收益,是英西海上争霸的重要组成部分。

完整事件代码:

flavor_eng.137 = {
	hide_portraits = yes
	type = country_event

	title = flavor_eng.137.title
	desc = flavor_eng.137.desc

	trigger = {

		character:eng_francis_drake ?= {
			owner ?= root
			is_alive = yes
			has_trait = treasure_hunter
		}

		any_exploration_from_country = {
			OR = {
				area = area:west_caribbean_sea_area
				area = area:east_caribbean_sea_area
				area = area:gulf_of_mexico_area
				area = area:guayana_sea_zones_area
			}
			leader ?= character:eng_francis_drake
		}

		OR = {
			area:west_caribbean_sea_area = {
				any_location_in_area = {
					any_neighbor_location = {
						is_coastal = yes
						owner ?= {
							OR = {
								is_subject_type = colonial_nation
								is_enemy_of = root
							}
						}
						NOT = { has_building = building_type:coastal_fort }
						NOT = { has_variable = drake_recent_raid }
					}
				}
			}
			area:east_caribbean_sea_area = {
				any_location_in_area = {
					any_neighbor_location = {
						is_coastal = yes
						owner ?= {
							OR = {
								is_subject_type = colonial_nation
								is_enemy_of = root
							}
						}
						NOT = { has_building = building_type:coastal_fort }
						NOT = { has_variable = drake_recent_raid }
					}
				}
			}
			area:guayana_sea_zones_area = {
				any_location_in_area = {
					any_neighbor_location = {
						is_coastal = yes
						owner ?= {
							OR = {
								is_subject_type = colonial_nation
								is_enemy_of = root
							}
						}
						NOT = { has_building = building_type:coastal_fort }
						NOT = { has_variable = drake_recent_raid }
					}
				}
			}
			area:gulf_of_mexico_area = {
				any_location_in_area = {
					any_neighbor_location = {
						is_coastal = yes
						owner ?= {
							OR = {
								is_subject_type = colonial_nation
								is_enemy_of = root
							}
						}
						NOT = { has_building = building_type:coastal_fort }
						NOT = { has_variable = drake_recent_raid }
					}
				}
			}
		}

		NOT = { has_variable = drake_ongoing_raid }

	}
	illustration_tags = {
		10 = regular
		10 = exterior
	}
	immediate = {
		event_illustration_estate_effect = { foreground = estate_type:nobles_estate background = estate_type:nobles_estate }
		random_location_in_the_world ?= {
			limit = {
				has_variable = drake_recent_raid
			}
			remove_variable = drake_recent_raid
		}

		character:eng_francis_drake ?= { save_scope_as = francis_drake }

		random_area = {
			limit = {
				any_location_in_area = {
					is_coastal = yes
					owner = {
						OR = {
							is_subject_type = colonial_nation
							is_enemy_of = root
						}
					}
					NOT = { has_building = building_type:coastal_fort }
					NOT = { has_variable = drake_recent_raid }
					any_neighbor_location = {
						OR = {
							area = area:west_caribbean_sea_area
							area = area:east_caribbean_sea_area
							area = area:gulf_of_mexico_area
							area = area:guayana_sea_zones_area
						}
					}
				}
			}
			save_scope_as = target_area
		}


		scope:target_area = {
			random_location_in_area = {
				limit = {
					owner = {
						OR = {
							is_subject_type = colonial_nation
							is_enemy_of = root
						}
					}
					NOT = { has_building = building_type:coastal_fort }
					NOT = { has_variable = drake_recent_raid }
				}
				change_development = development_weak_penalty
				every_pop = {
					limit = {
						pop_type = pop_type:slaves
					}
					add_pop_size = {
						value = pop_size
						multiply = -1
					}
				}
				save_scope_as = target_location
				set_variable = { name = drake_recent_raid value = 1 }
				owner = {
					if = {
						limit = {
							is_subject_type = colonial_nation
						}
						overlord = {
							save_scope_as = target_root_country
							hidden_effect = { trigger_event_silently = flavor_eng.138 }
						}
					}
					else = {
						save_scope_as = target_root_country
						hidden_effect = { trigger_event_silently = flavor_eng.138 }
					}
				}
			}
		}

		change_variable = {
			name = drake_loot
			add = {
			value = scope:target_location.location_tax_base
			multiply = 5
			}
		}

		set_variable = { name = drake_ongoing_raid value = 1 }


		root = { save_scope_as = target_root_country }

	}

	option = {
		name = flavor_eng.137.a
		historical_option = yes

		custom_tooltip = {
			text = flavor_eng.137.a.custom
		}

		remove_variable = drake