首页所有页面

疾病模组制作


Definitions

Diseases are defined in folder common/diseases/.

Configuration key Type Description Example
rip bool
  • 如果未指定,疾病将在两个版本中均可用(两者数值相同),无需重复设置。
  • If rip=no这将排除疾病进入Reaper's Due疾病数据库,因此疾病可以有两个版本。
rip=no
contagiousness float 疾病传播到邻近省份的概率如何? contagiousness = 0.15
outbreak_chance float Chance that a disease will appear in a province.

Notes:

  • 省份减少,疾病会更多——原版地图的省份数量是平衡的!
outbreak_chance = 0.01
effect modifiers Province modifiers applied during an outbreak.
effect = {

	city_tax_modifier = -0.5

	supply_limit = -4

	max_attrition = 0.05

}

icon int The index of icon frame in GFX_disease_icons icon = 1
tooltip key Localization key for disease description tooltip = TUBERCULOSIS_INFO
months int Duration of an outbreak. months = 30
trait trait Associated epidemic trait when a character gets the disease. trait = has_tuberculosis
always_get_message bool always_get_message = no
color color Color for epidemics mapmode. color = { 84 171 176 }
major bool major = yes
active bool 疾病是在游戏开始时就存在,还是需要通过脚本命令激活 activate_disease. active = no
timeperiod clause Validity range for the disease.
Key Type Description
start_date date Start of timeperiod
end_date date End of timeperiod
one_only bool 疾病是多次发作还是在一段时间内发作一次
outbreak_chance float
can_outbreak conditions Global conditions (total_years_played, global flags, game rules, ...)
months int
max_total_provinces int
spread_through_water bool
min_nb_province int Ignored if 0.
max_nb_province int Ignored if 0.
province_infection_duration int
outbreak_scenario int Detailed scenario of epidemics progression, with starting provinces(start_provinces) and excluded geographical regions (excluded_regions)
timeperiod = {

	start_date = 769.1.1

	end_date = 1452.1.1

	one_only = no

}

timeperiod = {

	start_date = 1100.1.1

	end_date = 1400.1.1

	

	outbreak_chance = 0.01

	can_outbreak = {

		total_years_played = 25

		NOT = { has_global_flag = black_death_happened }

		has_game_rule = {

			name = epidemics

			value = delayed_dynamic

		}

	}

	

	min_nb_province = 1

	max_nb_province = 15

	one_only = yes

	province_infection_duration = 36

	

	outbreak_scenario = { # Classic plague

		chance = 0.30

		start_provinces = {

			1448

		}

		excluded_regions = {

			custom_historical_plague_free_zone

		}

	}

}

yearly_province_pulse commands
character_infection_chances clause
character_infection_chances = {

	months = 3

}

on_character_infection commands 剧情特效用来赋予角色流行病特征。通常使用 random_list to specify a ratio of randomly affected characters.
on_province_infection commands
disease_gfx disease_gfx = disease_gfx_typhoid_fever
max_total_provinces int max_total_provinces = 5
spread_through_water bool spread_through_water = no
min_nb_province int Ignored if the given value is 0. min_nb_province = 1
max_nb_province int Ignored if the given value is 0. max_nb_province = 1

Scripting

事件与流行病相互作用的方式有几种:

  • activate_disease = <disease_name> 会允许默认关闭的疾病随机生成或通过脚本生成。
  • reduce_disease = <double> 将削弱省内现有的流行病。 reduce_disease = 1 应该能在一个省份取消一场流行病。
  • spawn_disease = <disease_name> 将在某省引发流行病。
  • start_outbreak = <disease_name> 将引发流行病,使用疾病时间段条目中定义的信息
相关页面 (57)

CommandsConditionsDiseaseEU4转档器模组制作ModifiersSteam创意工坊事件模组制作作用域修正内阁成员模组制作决议模组制作剧本模组制作单位模组制作历史模组制作另类开局模组制作图形模组制作地图外政权模组制作地图模组制作头衔模组制作奇观模组制作宗教模组制作定义宝物模组制作宣战理由模组制作家族模组制作小地图模组制作建筑模组制作指令控制台指令政体模组制作故障排除文化模组制作朝贡国类型模组制作本地化条件模组制作死亡模组制作法律模组制作游戏规则模组制作特质模组制作界面模组制作目标模组制作盾徽模组制作省份模组制作社团模组制作科技模组制作称号模组制作继承模组制作编辑游戏存档肖像模组制作脚本荣誉头衔模组制作血脉模组制作角色模组制作贸易路线模组制作音乐模组制作验证器