英白拉多:罗马
ParaWikis
最新百科
都市天际线2百科
英雄无敌3百科
维多利亚3百科
奇妙探险队2百科
罪恶帝国百科
英白拉多:罗马百科
热门百科
群星百科
欧陆风云4百科
十字军之王2百科
十字军之王3百科
钢铁雄心4百科
维多利亚2百科
ParaWikis
申请建站
ParaWikis
ParaCommons
最近更改
随机页面
加入QQ群
工具
链入页面
相关更改
特殊页面
页面信息
页面值
帮助
译名手册
字词转换
编辑指南
编辑规范
练手沙盒
资助我们
资助我们
×
欢迎访问英白拉多:罗马百科!
注册一个账号
,一起参与编写吧!这里是
当前的工程
。
全站已采用新UI,任何使用上的问题请点击
这里
。欢迎所有对百科感兴趣的同学加入QQ群:
497888338
。
阅读
查看源代码
查看历史
讨论
查看“人口修改”的源代码
←
人口修改
因为以下原因,您没有权限编辑本页:
您请求的操作仅限属于该用户组的用户执行:
用户
您可以查看和复制此页面的源代码。
{{Version|1.0}} == 位置 == 人口类型位于 <code>game/common/pop_types</code>。 == 结构 == 每一种人口类型被定义在它自己的顶层块。类型名决定该人口的关键字。 <pre> game/common/pop_types/pop.txt [pop] = { [fields] } </pre> === 必要字段 === {| class="wikitable" !关键字 !数值类型 !描述 !例子 |- |demotes_to |人口类型 |What pop this pop demotes to. Can be the same pop type to prevent actual demotion. |<code>demotes_to = tribesmen</code> |- |conquest_demote_chance |整数[0..100] |UNCONFIRMED The chance for this pop to be demoted when the city is conquered. |<code>conquest_demote_chance = 50</code> |- |base_happyness |小数[0.0..1.0] |该人口的基本幸福度。 |<code>base_happyness = 0.2</code> |- |color |颜色 |The colour used for this pop in the pie chart for pops composition. |<code>color = hsv { 0.65 0.7 0.8 }</code> |} === 可选字段 === {| class="wikitable" !关键字 !数值类型 !缺省值 !描述 !例子 |- | province modifier |小数 |N/A |Applies the modifier to the province, multiplied by the pop's current happiness. |<code>tax_income = 0.015</code> |- |can_promote_to |人口 |none |What pop type can this pop promote to via manual promotion in the UI. |<code>can_promote_to = citizen</code> |- |score |布尔值 |no |If yes, this pop counts for scoring. |<code>score = yes</code> |- |block_colonization |布尔值 |no |If yes, this pop can't be used to colonise provinces. |<code>block_colonization = yes</code> |- |ai_max_percentage |整数[0..100] |unknown |UNCONFIRMED How many pops max of this type the AI will aim for in a given province. |<code>ai_max_percentage = 30</code> |} == 动态脚本元素 == === 代价 === {| class="wikitable" !关键字 !描述 !例子 |- |[pop]_promotion |The cost of promoting <i>to</i> the given pop. Only used for pops that can be promoted to. |<code>citizen_promotion = { oratory = 10 }</code> |- |[pop]_move |The cost of forcibly moving the given pop. |<code>slaves_move = { civic = 5 }</code> |} === 修正 === {| class="wikitable" !关键字 !作用域 !描述 !例子 |- |local_[pop]_happyness |省份 |Applied to the happiness of all pops of this type in the province. |<code>local_freemen_happyness = 0.25</code> |- |global_[pop]_happyness |国家 |Applied to the happiness of all pops of this type in the country. |<code>global_freemen_happyness = 0.10</code> |- |local_[pop]_output |省份 |Applied to the output of all pops of this type in the province, after happiness. |<code>local_tribesmen_output = 0.05</code> |- |global_[pop]_output |国家 |Applied to the output of all pops of this type in the country, after happiness. |<code>global_citizen_output = 0.1</code> |} === 触发器 === {| class="wikitable" !关键字 !数值类型 !作用域 !描述 !例子 |- |[pop]_happiness |小数[0.0..1.0] |省份 |Compares with the (average?) happiness for the pops of this type in the province. |<code>slaves_happiness <= 0.40</code> |- |num_of_[pop] |整数[0..int] |省份 |Compares with the amount of pops of this type in the province. |<code>num_of_citizen >= 4</code> |} == 相关信息 == === 效果 === * create_pop * create_state_pop * define_pop * kill_pop * move_pop * set_pop_culture * set_pop_culture_same_as * set_pop_religion * set_pop_religion_same_as * set_pop_type === 触发器 === * pop_culture * pop_culture_group * pop_religion * pop_type * pop_hapiness * country_population * total_population === 列表 === * pops_in_province == 本地化 == {| class="wikitable" !关键字 !描述 !例子 |- |[pop] |The localisation key for the pop. Should be singular. |<code>freemen:0 "Freeman"</code> |- |[pop]_header |UNKNOWN, but probably when saying stuff like "2 Citizens". |<code>citizen_header:0 "#t Citizens#!"</code> |} == 例子 == <pre> citizen = { # 以 "citizen" 关键字定义一个新的人口类型。 research_points = 0.25 # 这个人口类型生产 0.25 研究点/人口,在 100% 幸福度和 +0% 产出修正…… commerce_value = 0.01 # ……并且增加 0.01 商业价值到该省份。 demotes_to = freemen # 当该人口被降级,通常通过征服,它降级到自由民类型的人口。 conquest_demote_chance = 50 # 在征服中,每个公民人口有 50% 的几率被降级。<b>不确定,看起来有点高,需要测试</b> UNCONFIRMED, LOOKS A BIT HIGH, TEST OUT base_happyness = 0.2 # 这个类型的人口的基本形幅度是 20% 。 score = yes # 这个人口用作计分。 color = hsv { 0.65 0.7 0.8 } # 这个人口的颜色在人口饼图中是蓝色。 ai_max_percentage = 30 # <b>未知</b> UNKNOWN } </pre> == 添加一种人口类型 == The game automatically adds a row for new pop types in the file <code>game/common/province_setup.csv</code>, and an entry is then needed on each row for the game to be able to interpret the file correctly. The new row is added alphabetically within the four existing pop type rows. If the new pop-type starts with "M", its new row will be inserted between "Freedmen" and "Slaves". Thus, taking Roma as an example, starting with 1 pop-type "M": <code>1,roman,roman_pantheon,cloth,21,15,<b>1,</b>4,3,40,0,Roma,Latium</code> Note the "1," inserted between the freedmen amount 15 and slave amount 4. Again, this has to be done on each row. {{Modding navbox}} [[Category:模组制作]] [[en:Pops modding]]
本页使用的模板:
Template:Clear
(
查看源代码
)
Template:Modding navbox
(
查看源代码
)
Template:Navbox
(
查看源代码
)
Template:Navboxgroup
(
查看源代码
)
Template:Version
(
查看源代码
)
返回
人口修改
。
×
登录
密码
记住登录
加入英白拉多:罗马百科
忘记密码?
其他方式登录