首页所有页面

血脉模组制作


血脉是可以通过角色继承得来的修正

Definition

Bloodline types are defined in folder common/bloodlines:

Name Type Description Example
inheritance all_descendants/matrilineal/patrilineal/no_inheritance Optional. Sets the inheritance rules for the bloodline type. Defaults to all_descendants. inheritance = all_descendants
matrilineal_override bool Optional. If set, in matrilineal marriages or when there's no known father, the mother will be able to pass on the bloodline even if it is patrilineal, and the father will be able to pass on the bloodline even if it is matrilineal. Defaults to "yes"; set to "no" to disable. matrilineal_override = yes
allow_bastards bool Optional. Sets the bastard rules for the bloodline type. Defaults to no. allow_bastards = no
flags List Optional. Sets default flags for bloodlines created of this type.
command_modifier List<Command modifier> Optional. Defines command modifiers that should affect all members of the bloodline.
<modifiers> Modifiers Optional. Defines character modifiers that should affect all members of the bloodline.
picture gfx Optional. What picture to use for the bloodline in the bloodline window. If not defined, GFX_bloodlines_placeholder_symbol will be used. gfx = GFX_something_or_other
active Conditions What's required of the bloodline holder in order to get the effect. If not defined, they'll always get the effect. ROOT is the holder. FROM is the bloodline.

Bloodline founder

Bloodlines are attached via history command create_bloodline on the founder of the bloodline:

<date> ={ 
	create_bloodline = {
		type = <bloodline_type>
	}
}

To be cascaded correctly, bloodlines require history of dynasties to be flawless:

  • To inherit an inheritance = patrilineal through the mother, marriage has to be set as matrilineal in character history, if applicable.

Bloodline features

Special features can be scripted for a given bloodline type:

  • Add a custom modifier to associate a localization key to describe the feature. For instance bloodline_effect_always_viking = 1 with localization bloodline_effect_always_viking;Raiding can give the §GViking Traits§!;
  • Add a bloodline flag that corresponds to the feature: flags = { bloodline_viking }
  • Check the flag in event trigger or effects, to achieve the desired feature:

any_owned_bloodline = { has_bloodline_flag = bloodline_viking }

参考资料

相关页面 (57)

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