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_cas.125] 加勒比海盗

时间范围:1550.1.1 - 1836.1.1(每月 5% 概率)

触发条件

  • 国家在 caribbean_region(加勒比地区)拥有存在。
  • caribbean_region(加勒比地区)内至少有一个省份的所有者拥有政府改革 government_reform:pirate_brethren_reform(海盗兄弟会改革)。
  • caribbean_region(加勒比地区)内至少有一个省份满足以下条件:
    • 发展度 count 大于 1。
    • 该省份的所有者 owner 是事件触发国 root 或其附庸国 is_subject_of = root

关键效果

  • 选项 A (flavor_cas.125.a) - 历史选项
    • 如果 target_location(目标省份)没有 castle(城堡)或 bastion(棱堡)建筑,则在该省份建造一个 castle(城堡)。
    • 如果 target_location(目标省份)已有 castle(城堡)建筑,则将其摧毁,并建造一个 bastion(棱堡)。
    • burghers_estate(市民阶层)增加 estate_satisfaction_mild_bonus(阶层满意度小幅增益)。
  • 选项 B (flavor_cas.125.b)
    • 增加 navy_tradition_mild_penalty(海军传统小幅惩罚)。
    • burghers_estate(市民阶层)增加 estate_satisfaction_mild_penalty(阶层满意度小幅惩罚)。

背景介绍: 16至19世纪,加勒比海因其作为欧洲与新世界贸易航线的关键位置,成为了海盗活动的温床。西班牙帝国(CAS/SPA)作为该地区的主要殖民势力,其满载金银的船队不断吸引着海盗的劫掠。为了应对日益猖獗的海盗威胁,保护其至关重要的港口和贸易路线,西班牙当局面临着加强殖民地防御的抉择。

完整事件代码

flavor_cas.125 = { #Pirates of the Caribbean
	type = country_event
	title = flavor_cas.125.title
	desc = flavor_cas.125.desc
	image = "gfx/interface/illustrations/situation/golden_age_of_piracy.dds"
	
	fire_only_once = yes

	historical_info = flavor_cas.125.historical_info

	dynamic_historical_event = {
		tag = CAS
		tag = SPA
		from = 1550.1.1
		to = 1836.1.1
		monthly_chance = 5
	}
		
	immediate = {
		region:caribbean_region = {
			random_location_in_region = {
				limit = {
					owner ?= {
						has_reform = government_reform:pirate_brethren_reform
					}
				}
				owner = {
					save_scope_as = pirate_country
				}
			}
		}
		region:caribbean_region = {
			random_location_in_region = {
				limit = {
					OR = {
						owner ?= root
						owner ?= {
							is_subject_of = root
						}
					}
				}
				save_scope_as = target_location
			}
		}
	}

	trigger = {
		has_presence_in = region:caribbean_region
		region:caribbean_region = {
			any_location_in_region = {
				owner ?= {
					has_reform = government_reform:pirate_brethren_reform
				}
			}
		}
		region:caribbean_region = {
			any_location_in_region = {
				count > 1
				OR = {
					owner ?= root
					owner ?= {
						is_subject_of = root
					}
				}
			}
		}
	}

	option = {
		name = flavor_cas.125.a
		historical_option = yes
		if = {
			limit = {
				scope:target_location = {
					NOR = {
						has_building = building_type:castle
						has_building = building_type:bastion
					}
				}
			}
			scope:target_location = {
				construct_building = {
					building_type = building_type:castle
				}
			}
		}
		else_if = {
			limit = {
				scope:target_location = {
					has_building_with_at_least_one_level = castle
				}
			}
			scope:target_location = {
				destroy_building = "building(building_type:castle|owner)"
				construct_building = {
					building_type = building_type:bastion
				}
			}
		}
		add_estate_satisfaction = { type = estate_type:burghers_estate value = estate_satisfaction_mild_bonus }
	}

	option = {
		name = flavor_cas.125.b
		add_navy_tradition = navy_tradition_mild_penalty
		add_estate_satisfaction = { type = estate_type:burghers_estate value = estate_satisfaction_mild_penalty }
	}
}