群星
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群
工具
链入页面
相关更改
特殊页面
页面信息
页面值
阅读
编辑
编辑源代码
查看历史
讨论
编辑“
Planet Generation modding
”
警告:
您没有登录。如果您做出任意编辑,您的IP地址将会公开可见。如果您
登录
或
创建
一个账户,您的编辑将归属于您的用户名,且将享受其他好处。
反垃圾检查。
不要
加入这个!
{{Version|2.7}} This page is about modding [[Planetary_features|Deposits]] and Planet Modifiers. == Deposits == Deposits are objects on Planets that can have its own resource production and upkeep and [[Modifiers]] to the planet. There are two types of Deposits, one being the planetary features for the colonizable planets that can be inspected by the player, and another being the orbital deposits for the uncolonizable planets that usually can't be inspected by the player. There are two types of planetary features, one being normally pure-benifitial and unremovable and another being normally pure-harmful and can be removed by spending resources, called blockers. Some blockers spawn with an additional planetary feature behind it, but the seemingly "blocked" planetary feature isn't actually added to the planet before the blocker to be cleared. Although vanilla unused, a blocker can also block a blocker behind it. They are defined at "common/deposits/xxx.txt". === Data Structure === {| class="wikitable mw-collapsible" |- ! width="20%" | Property ! width="27%" | Planetary Features ! width="27%" | Planetary Blockers ! width="26%" | Orbital Deposits |- | '''is_for_colonizable = <yes/no>''' | colspan=2 | For habitable planets, <code>is_for_colonizable = yes</code>. Default is <code> = no</code>. | For mining station or research station collection, <code>is_for_colonizable = no</code>. |- | '''station''' | colspan=2 style="text-align: center;" | {{icon|no}} | Determines the type of orbital station required to mine this deposit. One of the following is allowed. * <code>shipclass_mining_station</code> * <code>shipclass_research_station</code> |- | '''icon = <deposit key>''' | colspan=2 | This deposit will use the icon of another deposit instead. The default icon path is <code>gfx/interface/icons/deposits/<deposit key>.dds</code>. | Since orbital deposits can't be normally inspected, this property will normally not be useful. |- | '''use_for_min_max_adjustments = <yes/no>''' | colspan=2 | If yes, this deposit is used to refresh the maximum districts on planet view. Vanilla have this toggled yes for each deposit that increases maximum number of a certain type of district. | rowspan=2 style="text-align: center;" | {{icon|no}} |- | '''category = <deposit category>''' | For obvious reason the deposit category must NOT specify <code>blocker = yes</code>. Vanilla use one of the following. * <code>deposit_cat_food</code> * <code>deposit_cat_energy</code> * <code>deposit_cat_minerals</code> * <code>deposit_cat_rare</code> | For obvious reason the deposit category must specify <code>blocker = yes</code>. Vanilla use one of the folliwing. * <code>deposit_cat_blockers</code> * <code>deposit_cat_rare_blocker</code> |- | '''planet_modifier'''<br>'''triggered_planet_modifier''' | colspan=2 | Blocks of [[Modifiers]] to be applied to the Planet. Modifiers that add maximum number of buildings / disctricts of a certain type go here. If this deposit is blocked behind a blocker, none of these effects apply. | Modifiers that affect {{iconify|Trade Value}} go here. The Trade Value can be collected without building any stations on the Planet. Other Modifiers don't apply. |- | '''country_modifier''' | colspan=2 | A block of [[Modifiers]] to be applied to the Empire that owns this Planet. | rowspan=4 style="text-align: center;" | {{icon|no}} |- | '''blocked_modifier''' | colspan=2 | Vanilla unused but mentioned it in the comments. Presumably [[Modifiers]] to be applied to the Planet for as long as this deposit remains blocked behind a blocker. |- | '''should_swap_deposit_on_terraforming = <yes/no>'''<br>'''terraforming_swap_types = { _key_of_deposit_ ...}'''<br>'''all_terraforming_swap_types = <yes/no>'''<br>'''use_weights_for_terraforming_swap_types = <yes/no>''' | Some vanilla planetary features will swap into another of exactly same effect after terraforming. This is implemented through these properties. If this deposit should swap on terraforming and it no longer mets its <code>potential</code> after a terraforming, it will swap to a random one from the list that meets its <code>potential</code>. If "all terraforming swap types" is allowed, then ALL non-blocker deposits that meet their <code>potential</code> on this planet can be chosen. If "use weights for terraforming swap types", the swap is furtherly weighted by their <code>drop_weight</code>. | style="text-align: center;" | {{icon|no}} |- | '''blocker_swap_types = { _key_of_deposit_ ... }'''<br>'''all_blocker_swap_types = <yes/no>'''<br>'''use_weights_for_blocker_swap_types = <yes/no>''' | style="text-align: center;" | {{icon|no}} | When this blocker is placed on a Planet, if it has any blocker swap type, a random deposit that meets its <code>potential</code> on this planet is chosen to be visibly "blocked" behind this blocker. Before this blocker to be cleared, the deposit isn't actually added to the planet and none of its effects will apply. if "all blocker swap types" is allowed, then ALL non-blocker deposits that meet their <code>potential</code> on this planet can be chosen. If "use weights for blocker swap types", the swap is furtherly weighted by their <code>drop_weight</code>. |- | rowspan=2 | '''resources''' | colspan=3 | An [[Economy_modding#Economy_Units|Economy Unit]] of this deposit to determine its resource production, upkeep and blocker removal cost. |- | Vanilla use <code>planet_deposits</code> for the economy category, although it's quite rare for a normal deposit to directly produce resources itself. | Vanilla use <code>deposit_blockers</code> for the economy category. | Vanilla use <code>orbital_mining_deposits</code> and <code>orbital_research_deposits</code> for the economy category. |- | '''can_be_cleared''' | rowspan=4 style="text-align: center;" | {{icon|no}} | A block of [[Conditions]] to check can this blocker be cleared. (Planet scope) | rowspan=4 style="text-align: center;" | {{icon|no}} |- | '''on_cleared''' | A block of [[Effects]] to be executed after this blocker is cleared. (Planet scope) |- | '''time = <int>''' | Days it takes to clear this blocker. |- | '''prerequisites = { <tech key> ...} | A list of Technologies to be researched before this blocker can be cleared. |- | '''potential''' | colspan=3 | A block of [[Conditions]] to check can this deposit be spawned on a Planet. This block is neglected if the deposit is added via script. (Planet scope) |- | '''drop_weight''' | colspan=3 | Determines how likely this deposit is spawned on a Planet. If drop weight is multiplied by 0 this deposit can't be spawned on this Planet. (Planet scope) |} === Deposit Categories === {{Collapse list | type=Planetary features are grouped by Deposit Categories defined at "common/deposit_categories/xxx.txt". They are so simple that they have only two properties. This is used to diverse planetary features to make the planet have relatively less "extreme" maximum district distribution. | body= <pre> deposit_cat_food = { } deposit_cat_energy = {} deposit_cat_minerals = {} deposit_cat_blockers = { blocker = yes # Counts as blockers } deposit_cat_rare = { important = yes # Shows up as rare deposits in planetview } deposit_cat_rare_blocker = { blocker = yes # Counts as blockers important = yes # Shows up as rare deposits in planetview } </pre> }} === The Null Orbital Deposit === {{Collapse list | type=There is a null orbital deposit present. It generates no resources and doesn't support any kind of orbital stations, functioanlly play as a placeholder for the uncolonizable planets devoid of deposits. An uncolonizable planet that doesn't meet the <code>potential</code> of the null deposit will always have an orbital deposit. | body= <pre> d_null_deposit = { is_null = yes potential = { is_primary_star = no NOR = { is_planet_class = pc_ringworld_habitable_damaged is_planet_class = pc_ringworld_tech_damaged } } drop_weight = { weight = 100 } } </pre> }} === Examples === {{Collapse list | type='''Planetary Feature: Hot Springs (+1 Max Generator Districts)''' | body= <pre> d_hot_springs = { is_for_colonizeable = yes use_for_min_max_adjustments = yes category = deposit_cat_energy use_weights_for_terraforming_swap_types = yes should_swap_deposit_on_terraforming = yes terraforming_swap_types = { d_arid_highlands d_buzzing_plains # gaia } planet_modifier = { district_generator_max = 1 } potential = { OR = { is_cold = yes is_wet = yes is_planet_class = pc_nuked } } drop_weight = { weight = @high modifier = { factor = @planet_type_bonus is_dry = yes } } } </pre> }} {{Collapse list | type='''Blocker: Dangerous Wildlife''' | body= <pre> d_dangerous_wildlife_blocker = { time = 270 is_for_colonizeable = yes category = deposit_cat_blockers resources = { category = deposit_blockers cost = { energy = 500 } } potential = { planet_size >= 10 } planet_modifier = { planet_max_districts_add = -2 } on_cleared = { hidden_effect = { if = { limit = { exists = owner owner = { has_civic = civic_hive_devouring_swarm } } owner = { add_resource = { food = 200 } } } } } drop_weight = { weight = @blocker_low modifier = { factor = 0.5 planet_size < 15 } modifier = { factor = 0 num_free_districts = { type = district_city value < 2 } } } prerequisites = { "tech_dangerous_wildlife" } } </pre> }} {{Collapse list | type='''Orbital Deposit: 1 Society Research''' | body= <pre> d_society_1 = { resources = { category = orbital_research_deposits produces = { society_research = 1 } } station = shipclass_research_station is_for_colonizeable = no potential = { is_planet_class = pc_toxic } drop_weight = { weight = 0 } } </pre> }} == Planet Modifiers == Planet Modifiers are additional modifiers given to planets upon planet generation. They are linked to [[Modifiers#Static_Modifiers|Static Modifiers]] but not equivalent to them. They are defined at "common/planet_modifiers/xxx.txt". === Data Structure === {| class="wikitable mw-collapsible" |- ! width="20%" | Property ! width="80%" | Description |- | '''modifier = <static modifier>''' | Relative Static Modifier to be added to the planet. |- | '''spawn_chance''' * '''modifier''' ** '''add = <int>''' ** '''factor = <float>''' ** [[Conditions]] (Planet Scope) | Modifies the weights of this Planet Modifier to spawn. |} === The Null Planet Modifier === {{Collapse list | type=Similarly, there is a null planet modifier present that has no linked Static Modifier just serve as a placeholder. | body= <pre> pm_null = { is_null = yes spawn_chance = { value = 275 modifier = { factor = 3 num_modifiers > 2 } modifier = { factor = 3 num_modifiers > 1 } modifier = { factor = 3 num_modifiers > 0 } } } </pre> }} {{ModdingNavbox}} [[Category:模组制作]]
摘要:
请注意您对群星百科的所有贡献都被认为是在知识共享署名-非商业性使用-相同方式共享下发布,请查看在
群星百科:版权
的细节。如果您不希望您的文字被任意修改和再散布,请不要提交。
您同时也要向我们保证您所提交的内容是您自己所作,或得自一个不受版权保护或相似自由的来源。
未经许可,请勿提交受版权保护的作品!
为防止机器编辑,请完成下方验证
取消
编辑帮助
(在新窗口中打开)
本页使用的模板:
Template:0
(
编辑
)
Template:Clear
(
编辑
)
Template:Collapse list
(
编辑
)
Template:Icon
(
编辑
)
Template:Icon/n
(
编辑
)
Template:Icon/t
(
编辑
)
Template:Iconify
(
编辑
)
Template:ModdingNavbox
(
编辑
)
Template:Navbox
(
编辑
)
Template:Navboxgroup
(
编辑
)
Template:Planet modifier
(
编辑
)
Template:Version
(
编辑
)
×
登录
密码
记住登录
加入群星百科
忘记密码?
其他方式登录