群星
ParaWikis
Notice
: Undefined index: HTTP_ACCEPT_LANGUAGE in
/data/wwwroot/www.parawikis.com/skins/Liberty/LibertyTemplate.php
on line
185
最新百科
都市天际线2百科
英雄无敌3百科
维多利亚3百科
奇妙探险队2百科
罪恶帝国百科
英白拉多:罗马百科
热门百科
群星百科
欧陆风云4百科
十字军之王2百科
十字军之王3百科
钢铁雄心4百科
维多利亚2百科
ParaWikis
申请建站
ParaWikis
ParaCommons
最近更改
随机页面
加入QQ群
工具
链入页面
相关更改
特殊页面
页面信息
页面值
阅读
编辑
编辑源代码
查看历史
讨论
编辑“
Ethics modding
”
警告:
您没有登录。如果您做出任意编辑,您的IP地址将会公开可见。如果您
登录
或
创建
一个账户,您的编辑将归属于您的用户名,且将享受其他好处。
该编辑可以被撤销。 请检查下面的对比以核实您想要撤销的内容,然后发布下面的更改以完成撤销。
最后版本
您的文本
第110行:
第110行:
{{ModdingNavbox}}
{{ModdingNavbox}}
[[Category:
模组制作
]]
[[Category:
Modding
]]
反垃圾检查。
不要
加入这个!
{{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:Modding]]
摘要:
请注意您对群星百科的所有贡献都被认为是在知识共享署名-非商业性使用-相同方式共享下发布,请查看在
群星百科:版权
的细节。如果您不希望您的文字被任意修改和再散布,请不要提交。
您同时也要向我们保证您所提交的内容是您自己所作,或得自一个不受版权保护或相似自由的来源。
未经许可,请勿提交受版权保护的作品!
为防止机器编辑,请完成下方验证
取消
编辑帮助
(在新窗口中打开)
本页使用的模板:
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
(
编辑
)
×
登录
密码
记住登录
加入群星百科
忘记密码?
其他方式登录