群星
ParaWikis
最新百科
都市天际线2百科
英雄无敌3百科
维多利亚3百科
奇妙探险队2百科
罪恶帝国百科
英白拉多:罗马百科
热门百科
群星百科
欧陆风云4百科
十字军之王2百科
十字军之王3百科
钢铁雄心4百科
维多利亚2百科
ParaWikis
申请建站
ParaWikis
ParaCommons
最近更改
随机页面
加入QQ群
工具
链入页面
相关更改
特殊页面
页面信息
页面值
阅读
编辑
编辑源代码
查看历史
讨论
编辑“
Ethics modding
”
警告:
您没有登录。如果您做出任意编辑,您的IP地址将会公开可见。如果您
登录
或
创建
一个账户,您的编辑将归属于您的用户名,且将享受其他好处。
反垃圾检查。
不要
加入这个!
高级
特殊字符
帮助
标题
2级
3级
4级
5级
格式
插入
拉丁字母
扩展拉丁字母
国际音标
符号
希腊字母
希腊字母扩展
西里尔字母
阿拉伯字母
扩展阿拉伯字母
希伯来字母
孟加拉语字符集
泰米尔数字和符号
泰卢固语字符集
僧伽罗语字符集
梵文字符集
古吉拉特语字符集
泰语字符集
老挝语
高棉语字母
加拿大原住民音节文字
卢恩
Á
á
À
à
Â
â
Ä
ä
Ã
ã
Ǎ
ǎ
Ā
ā
Ă
ă
Ą
ą
Å
å
Ć
ć
Ĉ
ĉ
Ç
ç
Č
č
Ċ
ċ
Đ
đ
Ď
ď
É
é
È
è
Ê
ê
Ë
ë
Ě
ě
Ē
ē
Ĕ
ĕ
Ė
ė
Ę
ę
Ĝ
ĝ
Ģ
ģ
Ğ
ğ
Ġ
ġ
Ĥ
ĥ
Ħ
ħ
Í
í
Ì
ì
Î
î
Ï
ï
Ĩ
ĩ
Ǐ
ǐ
Ī
ī
Ĭ
ĭ
İ
ı
Į
į
Ĵ
ĵ
Ķ
ķ
Ĺ
ĺ
Ļ
ļ
Ľ
ľ
Ł
ł
Ń
ń
Ñ
ñ
Ņ
ņ
Ň
ň
Ó
ó
Ò
ò
Ô
ô
Ö
ö
Õ
õ
Ǒ
ǒ
Ō
ō
Ŏ
ŏ
Ǫ
ǫ
Ő
ő
Ŕ
ŕ
Ŗ
ŗ
Ř
ř
Ś
ś
Ŝ
ŝ
Ş
ş
Š
š
Ș
ș
Ț
ț
Ť
ť
Ú
ú
Ù
ù
Û
û
Ü
ü
Ũ
ũ
Ů
ů
Ǔ
ǔ
Ū
ū
ǖ
ǘ
ǚ
ǜ
Ŭ
ŭ
Ų
ų
Ű
ű
Ŵ
ŵ
Ý
ý
Ŷ
ŷ
Ÿ
ÿ
Ȳ
ȳ
Ź
ź
Ž
ž
Ż
ż
Æ
æ
Ǣ
ǣ
Ø
ø
Œ
œ
ß
Ð
ð
Þ
þ
Ə
ə
格式
链接
标题
列表
文件
参考
讨论
说明
输入内容
输出结果
斜体
''斜体文字''
斜体文字
粗体
'''粗体文字'''
粗体文字
粗斜体
'''''粗斜体文字'''''
粗斜体文字
{{Version|3.0}} This page is about how to modify existing or add new [[Ethics]] to the game. == Data Structure == Ethics are defined at "common/ethics/xxx.txt". === Ethics === * '''playable''' - A block of [[Modifiers]] that determines should this ethic appear in the empire creation view. {{iconify|Gestalt Consciousness}} is hidden this way. * '''cost = <int>''' - Number of ethic points this ethic cost. * '''category = <ethic category key>''' - Category of this ethic. * '''category_value = <int>''' - Index of this ethic under its category. ** If there is an ethic axis called "A - B", so we have FA, A, B, and FB and their "category_value" will be: 0, 1, 3, 4. ** Vanillas: *** {{icon|Fanatic Authoritarian}}{{icon|Authoritarian}}{{icon|Egalitarian}}{{icon|Fanatic Egalitarian}}: 0, 1, 3, 4 *** {{icon|Fanatic Xenophobe}}{{icon|Xenophobe}}{{icon|Xenophile}}{{icon|Fanatic Xenophile}}: 0, 1, 3, 4 *** {{icon|Fanatic Militarist}}{{icon|Militarist}}{{icon|Pacifist}}{{icon|Fanatic Pacifist}}: 0, 1, 3, 4 *** {{icon|Fanatic Spiritualist}}{{icon|Spiritualist}}{{icon|Materialist}}{{icon|Fanatic Materialist}}: 0, 1, 3, 4 *** {{icon|Gestalt Consciousness}}: '''0''' ''(not 2)'' * '''use_for_pops = <yes/no>''' - Default yes. Should be no if fanatic or gestalt. * '''regular_variant = <ethic key>''' - Fanatic ethics only. Designates the regular variant of this fanatic ethic. * '''fanatic_variant = <ethic key>''' - Regular ethics only. Designates the fanatic variant of this ethic. * '''country_modifier''' - A block of [[Modifiers]] that applies to the empire with this ethic. * '''tags''' - A list of localisation keys for a tooltip of ethic principles. * '''random_weight''' - The higher the weight, the more likely the randomly generated AI will have this ethic. Random empires will choose ethics at very first. ** Vanilla fanatic ethics have 150 and regular ethics have 100, except {{icon|Fanatic Militarist}}{{iconify|Militarist}} have {{green|250/150}} and {{icon|Fanatic Pacifist}}{{iconify|Pacifist}} have {{red|33/66}}. ** {{iconify|Gestalt Consciousness}} has 100 for each of the following DLC installed: {{iconify|Utopia}}, {{Iconify|Synthetic Dawn}} * '''pop_attraction_tag''' - An entry that adds tooltip in the faction view to show the player what factors are affecting ethics attraction. Multiple allowed, '''use_for_pops''' ethics only. ** '''desc = <localisation key>''' - The text. ** '''trigger''' - A block of [[Conditions]] to determine should this attraction tag appear. (Country scope) * '''country_attraction''' - An entry that modifies the empire wide ethic attraction, '''use_for_pops''' ethics only. ** '''value = <number>''' - Default attraction. Vanilla always have 1. ** '''modifier''' - A block of [[Conditions]] with a '''factor = <float>''' entry. Multiple allowed. (Country scope) * '''pop_attraction''' - An entry that modifies the ethic attraction for each pop, '''use_for_pops''' ethics only. ** '''value = <number>''' - Default attraction. Vanilla always have 1. ** '''modifier''' - A block of [[Conditions]] with a '''factor = <float>''' entry. Multiple allowed. (Pop scope) === Ethic Categories === There is only one entry that defines ethic categories. New ethic categories can be added to this. ethic_categories = { col = {} xen = {} mil = {} spi = {} hive = {} } == GUI Modding == Empire creation view is "interface/customize_species_editor.gui". There is a window that contains all buttons for ethic options. New ethics can't be made visible without modding this file. containerWindowType = { name = "ethics" size = { width = 230 height = 230 } position = { x = 20 y = -25 } instantTextBoxType = { name = "ethic_points_left" position = { x = -130 y = 95 } font = "malgun_goth_24" maxWidth = 310 maxHeight = 20 text = "POINTS_LEFT_ETHICS" orientation = center_down format = center #alwaysTransparent = yes } ### NON-FANATIC ETHICS ### buttonType = { name = "ethic_militarist" spriteType = "GFX_ethics_militarist" position = { x = 125 y = 125 } clicksound = interface } ... (repeat once for each regular ethic) ### FANATIC ETHICS ### buttonType = { name = "ethic_fanatic_militarist" spriteType = "GFX_ethics_fanatic_militarist" position = { x = 125 y = 90 } clicksound = interface } ... (repeat once for each fanatic ethic) buttonType = { name = "ethic_gestalt_consciousness" spriteType = "GFX_ethics_gestalt_consciousness" position = { x = 125 y = 170 } clicksound = interface } ### SELECTED ETHICS ### iconType = { name = "ethic_col_selected" spriteType = "GFX_ethic_selected" } ... (repeat once for each ethic category) } {{ModdingNavbox}} [[Category:模组制作]]
摘要:
请注意您对群星百科的所有贡献都被认为是在知识共享署名-非商业性使用-相同方式共享下发布,请查看在
群星百科:版权
的细节。如果您不希望您的文字被任意修改和再散布,请不要提交。
您同时也要向我们保证您所提交的内容是您自己所作,或得自一个不受版权保护或相似自由的来源。
未经许可,请勿提交受版权保护的作品!
为防止机器编辑,请完成下方验证
取消
编辑帮助
(在新窗口中打开)
Template:Clear
(
编辑
)
Template:Color
(
编辑
)
Template:Green
(
编辑
)
Template:Icon
(
编辑
)
Template:Icon/a
(
编辑
)
Template:Icon/e
(
编辑
)
Template:Icon/f
(
编辑
)
Template:Icon/g
(
编辑
)
Template:Icon/m
(
编辑
)
Template:Icon/p
(
编辑
)
Template:Icon/s
(
编辑
)
Template:Icon/u
(
编辑
)
Template:Icon/x
(
编辑
)
Template:Iconify
(
编辑
)
Template:ModdingNavbox
(
编辑
)
Template:Navbox
(
编辑
)
Template:Navboxgroup
(
编辑
)
Template:Planet modifier
(
编辑
)
Template:Red
(
编辑
)
Template:Ruby
(
编辑
)
Template:Version
(
编辑
)
×
登录
密码
记住登录
加入群星百科
忘记密码?
其他方式登录