Asakusa spirit(讨论 | 贡献) 无编辑摘要 |
(14:55, 9 July 2020 82.18.131.229) |
||
(未显示2个用户的2个中间版本) | |||
第1行: | 第1行: | ||
{{version|3.0}} | {{version|3.0}} | ||
[[ | [[ 血脉]]是可以通过角色继承得来的[[ 修 正]]。 | ||
==Definition== | ==Definition== | ||
第14行: | 第14行: | ||
!Example | !Example | ||
|- | |- | ||
|inheritance | | inheritance | ||
|all_descendants/matrilineal/patrilineal/no_inheritance | | all_descendants/matrilineal/patrilineal/no_inheritance | ||
|Optional. Sets the inheritance rules for the bloodline type. Defaults to all_descendants. | | Optional. Sets the inheritance rules for the bloodline type. Defaults to all_descendants. | ||
|<code>inheritance = all_descendants</code> | | <code>inheritance = all_descendants</code> | ||
|- | |- | ||
|matrilineal_override | | matrilineal_override | ||
|bool | | 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. | | 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. | ||
|<code>matrilineal_override = yes</code> | | <code>matrilineal_override = yes</code> | ||
|- | |- | ||
|allow_bastards | | allow_bastards | ||
|bool | | bool | ||
|Optional. Sets the bastard rules for the bloodline type. Defaults to no. | | Optional. Sets the bastard rules for the bloodline type. Defaults to no. | ||
|<code>allow_bastards = no</code> | | <code>allow_bastards = no</code> | ||
|- | |- | ||
|flags | | flags | ||
|List | | List | ||
|Optional. Sets default flags for bloodlines created of this type. | | Optional. Sets default flags for bloodlines created of this type. | ||
| | | | ||
|- | |- | ||
|command_modifier | | command_modifier | ||
|List<[[Modifiers#Command modifiers|Command modifier]]> | | List<[[Modifiers#Command modifiers|Command modifier]]> | ||
|Optional. Defines command modifiers that should affect all members of the bloodline. | | Optional. Defines command modifiers that should affect all members of the bloodline. | ||
| | | | ||
|- | |- | ||
|<modifiers> | | <modifiers> | ||
|[[Modifiers]] | | [[Modifiers]] | ||
|Optional. Defines character modifiers that should affect all members of the bloodline. | | Optional. Defines character modifiers that should affect all members of the bloodline. | ||
| | | | ||
|- | |- | ||
|picture | | picture | ||
|gfx | | gfx | ||
|Optional. What picture to use for the bloodline in the bloodline window. If not defined, <code>GFX_bloodlines_placeholder_symbol</code> will be used. | | Optional. What picture to use for the bloodline in the bloodline window. If not defined, <code>GFX_bloodlines_placeholder_symbol</code> will be used. | ||
|<code>gfx = GFX_something_or_other</code> | |<code>gfx = GFX_something_or_other</code> | ||
|- | |- | ||
|active | | active | ||
|[[Conditions]] | | [[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. | | 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. | ||
|- | |- | ||
|} | |} | ||
第69行: | 第68行: | ||
To be cascaded correctly, bloodlines require history of dynasties to be flawless: | To be cascaded correctly, bloodlines require history of dynasties to be flawless: | ||
* To inherit an <code>inheritance = patrilineal</code> through the mother, marriage has to be set as matrilineal in character history, if applicable. | |||
*To inherit an <code>inheritance = patrilineal</code> through the mother, marriage has to be set as | |||
==Bloodline features== | ==Bloodline features== | ||
第76行: | 第74行: | ||
Special features can be scripted for a given bloodline type: | 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 <code>bloodline_effect_always_viking = 1</code> with localization <code>bloodline_effect_always_viking;Raiding can give the §GViking Traits§!;</code> | * Add a [[custom modifier]] to associate a localization key to describe the feature. For instance <code>bloodline_effect_always_viking = 1</code> with localization <code>bloodline_effect_always_viking;Raiding can give the §GViking Traits§!;</code> | ||
*Add a bloodline flag that corresponds to the feature: <code>flags = { bloodline_viking }</code> | * Add a bloodline flag that corresponds to the feature: <code>flags = { bloodline_viking }</code> | ||
*Check the flag in event trigger or effects, to achieve the desired feature: | * Check the flag in event trigger or effects, to achieve the desired feature: | ||
<code>any_owned_bloodline = { has_bloodline_flag = bloodline_viking }</code> | <code>any_owned_bloodline = { has_bloodline_flag = bloodline_viking }</code> | ||
== | == 参考资料== | ||
<references /> | <references/> | ||
[[Category:模组制作]] | [[Category:模组制作]] | ||
{{ModdingNavbox}} | {{ModdingNavbox}} | ||
[[en:Bloodline modding]] |
2020年12月25日 (五) 20:40的最新版本
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 localizationbloodline_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 }
参考资料
模组制作
历史 | 角色 • 家族 • 省份 • 头衔 • 剧本 |
脚本 | 指令 • 条件 • 作用域 • 修正 • 事件 • 决议 |
常规 | 定义 • 游戏规则 • 另类开局 • 宗教 • 文化 • 政体 • 特质 • 血脉 • 科技 • 法律 • 建筑 • 宣战理由 • 朝贡国 • 单位 • 目标 • 疾病 • 死亡 • 荣誉头衔 • 社团 • 宝物 • 地图外政权 • 内阁成员 • 贸易路线 • 继承 • 奇观 • 称号 |
图像/音效/本地化 | 地图 • 图形 • 盾徽 • 肖像 • 界面 • 小地图 • 音乐 • 本地化 |
其他 | 故障排除 • 验证器 • 控制台指令 • 编辑游戏存档 • Steam创意工坊 • EU4转档器模组制作 |