小 (咯咯炀移动页面Council modding至内阁模组制作) |
无编辑摘要 |
||
第1行: | 第1行: | ||
内阁成员在<code>/common/council_positions/</code>文件夹中定义。 | |||
内阁任务在<code>/common/council_tasks/</code>文件夹中定义。 | |||
== | == 内阁职位结构== | ||
新的内阁职位可以通过以下结构添加: | |||
<pre> | <pre> | ||
name_of_the_position = { | name_of_the_position = { | ||
第64行: | 第64行: | ||
} | } | ||
</pre> | </pre> | ||
注意,内阁职位不包括宫廷医师。 | |||
<br> | <br> | ||
{{Modding navbox}} | {{Modding navbox}} | ||
[[Category:模组制作]] | [[Category:模组制作]] | ||
[[en:Council modding]] | [[en:Council modding]] |
2020年12月30日 (三) 12:36的版本
内阁成员在/common/council_positions/
文件夹中定义。
内阁任务在/common/council_tasks/
文件夹中定义。
内阁职位结构
新的内阁职位可以通过以下结构添加:
name_of_the_position = { # Main skill to look into the character list. If none the best sumk of all the skills will be at the top. skill = diplomacy special_council_position = yes # Can be held in addition to regular council positions. E.G., the Spouse council position auto_fill = yes/no/{ <triggers> } # Will automatically be filled, without the player being able to select who takes the position. Trigger scope: council owner character. Default: no. An empty trigger is treated as 'no'. inherit = yes/no/{ <triggers> } # Position will be inherited by the primary heir if that character is valid to hold the position. Trigger scope: council owner character. Default: no. An empty trigger is treated as 'no'. can_fire = yes/no/{ <triggers> } # The councillor can be fired. Trigger scope: council owner character. Default: yes. An empty trigger is treated as 'yes'. can_reassign = yes/no/{ <triggers> } # The councillor can be reassigned. Trigger scope: council owner character. Default: yes. An empty trigger is treated as 'yes'. can_change_once = yes/no/{ <triggers> } # The councillor can be assigned, but not reassigned/fired in their lifetime after the assignment. Trigger scope: council owner character. Default: no. An empty trigger is treated as 'no'. name = loc_key # What name to use. Be aware that when a position is unfilled, name_of_the_position is used instead name = { # Alternatively, you can use triggered loc. SCOPE is the character, event target 'councillor_liege' is the council owner. If no character is provided, we fall back to the key of the position rather than going through triggered loc first_valid = { ... } } # You also need to define the loc key post-fixed with "_possessive" if "special_council_position = yes" is not set (special council positions do not support possessive versions at this time). If you're combining two or more strings using the dynamic description system, only the last key needs "_possessive" defined # Modifier applied to the character in this position. Can take a "scale" parameter to scale by (a script value; see _script_values.info). Up to 5 of these can be defined if more than one scale is necessary modifier = { } # Modifier applied to the liege of the character in this position. Can take a "scale" parameter to scale by (a script value; see _script_values.info). Up to 5 of these can be defined if more than one scale is necessary council_owner_modifier = { } # Is this an available position for this council [SCOPE is the CHARACTER owner of the council] valid_position = { } # Is this a valid position for a character. [SCOPE is the character applying to the position] valid_character = { } # Effect applied when a character gets this position. [SCOPE is the character applying to the position] on_get_position = { } # Effect applied when a character lose the position. [SCOPE is the character in the position] on_lose_position = { } # Effect applied when a character is fired from the position. [SCOPE is the character in the position] on_fired_from_position = { } # Max number of positions for this type. For modders. Default 1. Infinite 0 or negative. max_amount = 2 use_for_scheme_power = yes/no use_for_scheme_resistance = yes/no # Which portrait animation should councillors of this type use in the council window portrait_animation = X }
注意,内阁职位不包括宫廷医师。
模组制作
文档 | Effects • 触发器 • 修正 • 作用域 • 变量 • 数据类型 • 本地化 • 可定制的本地化 |
脚本 | AI • 剧本 • 角色 • 效果指令 • 内阁 • 文化 • 决议 • 宗族 • 事件 • 政体 • 历史 • 地产 • 生活方式 • 军队 • 宗教 • Story cycles • 头衔 • 特质 |
地图 | 地图 • 地形 |
图形 | 3D模型 • Exporters • 界面 • Coat of arms • Graphical assets • Fonts • Particles • Shaders • Unit models |
音频 | Music • Sound |
其他 | 控制台指令 • 校验码 • 模组结构 • Troubleshooting |