叛军修改

文件格式

叛军类型位于/Europa Universalis IV/common/rebel_types/*.txt

# 所有叛军均处于省份作用域
# 对于 siege_won_trigger、siege_won_effect
# FROM = 拥有者
# ROOT = 省份
# 对于其他项
# FROM = 拥有者
# ROOT = 本国
<rebel_type> = {

	color = { R G B }

	area = <nation/nation_rebel_tag/nation_religion>
	government = <government type>	# 期望的政体。monarchy/republic/theocracy/anti/any
	religion = <religion>
	defection = <culture/culture_group/religion/any/none>	# 不会倒戈。
	defect_delay = <float>			# 被占领的省份将在 18 个月后自动倒戈,无论是否接受/强制执行要求。
	independence = <culture/culture_group/religion/any/none>	#哪些会获得独立(注意:若未设为 'none',AI 似乎不会遇到这些叛军)
	unit_transfer = <bool>			#yes/no | 强制执行要求后,部队转换效忠对象。
	gfx_type = <culture_province/culture_owner>
	will_relocate = <bool>			#yes/no | 如果叛军已围攻完附近所有省份且必须渡海转移,部队会重新部署。

	resilient = <bool>			#yes/no | 撤退时解散
	reinforcing = <bool>			#yes/no | 叛军是否会自行补充兵力
	general = <bool>			#yes/no | 是否拥有将领
	smart = <bool>			        #yes/no | 是否会强攻要塞、战术性撤退等。
        disband_on_leader_death = <bool>        #yes/no

	artillery = <float> 	#占军队构成的小数比例
	infantry = <float>
	cavalry = <float>

	morale = <float>

	# 可用的处理方式
	handle_action_negotiate = <bool>			#yes/no
	handle_action_stability = <bool>			#yes/no
	handle_action_build_core = <bool>			#yes/no
	handle_action_send_missionary = <bool>			#yes/no

	# 对该省份而言修正最高的叛军类型会被选中
	spawn_chance = {
		factor = 1
		modifier = {
			factor = 0.5
			<triggers>
		}
	}

 	# 行动区域内的每个省份都会检查此项
	movement_evaluation = {
		factor = 1
		modifier = {
			factor = 0.5
			<triggers>
		}
	}

 	# 省份作用域
 	siege_won_trigger = {
		<trigger>
 	}
	siege_won_effect = {
		<effects>
	}

	# 国家作用域
	can_negotiate_trigger = {	#玩家是否可以进行谈判
		<triggers>
	}

	# 国家作用域
	can_enforce_trigger = {         #除非该触发条件为真,否则任何 'demands_enforced_effect' 效果都不会执行
		<trigger>
	}

	# 其要求的本地化
	demands_description = "<localisation>"

	# 国家作用域
	demands_enforced_effect = {
		<effects>
	}
}

本地化

新的叛军类型需要定义以下本地化键:

<rebel_type>_name: "<叛军名称>"
<rebel_type>_army: "<叛军名称>军队"
<demands_description>: "<对其要求的极简短描述,如“提高特权”>"
<demands_description>_desc: "<对其要求的详细描述>"
文档 效果 • 触发条件 • 修正列表 • 作用域 • 变量 • 本地化 • 可自定义本地化 • 运行文件 • 事件图片列表
脚本 脚本函数 • 顾问 • 时代 • 开局设定 • 建筑 • 宣战理由 • 殖民区域 • 国家创建 • 文化 • 决议 • Defines • 外交行动 • 灾难 • 中华帝国 • 阶层 • 事件 • 派系 • 政府 • 政府互动 • 伟大工程 • 历史 • 神圣罗马帝国 • 理念组 • 思潮 • 佣兵 • 任务树 • 修正 • On Actions • 议会 • 和约 • 君主性格 • 政策 • 叛军类型 • 宗教 • 附属国类型 • 科技 • 贸易公司 • 商品 • 单位
地图 地图 • 地图修改速查 • 随机新世界 • 贸易节点
图形 3D模型 • 界面 • 贴图库 • 字体 • 单位模型
音频 音乐 • 音效
其他 控制台命令 • 校验和 • 模组结构 • 故障排查 • 运行文件
工具 克劳塞维茨开局编辑器 • EU4模组编辑工具 • JoroDox模组制作工具 • The Validator
指南 省份 • 地图修改速查 • 存档编辑 • 脚本教程