群星
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群
工具
链入页面
相关更改
特殊页面
页面信息
页面值
阅读
编辑
编辑源代码
查看历史
讨论
编辑“
Army modding
”
警告:
您没有登录。如果您做出任意编辑,您的IP地址将会公开可见。如果您
登录
或
创建
一个账户,您的编辑将归属于您的用户名,且将享受其他好处。
反垃圾检查。
不要
加入这个!
{{Version|3.0}} This page is about modding [[Land_warfare|Armies]]. == Data Structure == Armies are defined at "common/armies/xxx.txt". * '''icon_frame = <int>''' - The icon index this army uses in the shared icon file of all armies (gfx\interface\planetview\army_icon.dds). * '''damage = <float>''' - Multiplies the damage. Final damage is: <code>1.5-3.0 * ''damage''</code> * '''health = <float>''' - Multiplies the health. Final health is: <code>200 * ''health''</code> * '''morale = <float>''' - Multiplies the morale. Final morale is: <code>200 * ''morale''</code> * '''morale_damage = <float>''' - Multiplies the morale damage. Final morale damage is: <code>1.5-3.0 * ''damage'' * ''morale_damage''</code>. * '''has_morale = <yes/no>''' - If no, this army has no morale as well as they are not affected by morale damage. They can still deal morale damage. * '''collateral_damage = <float>''' - During a ground combat, the higher the collateral damage is, the more planetary devastation and the higher the chance of pop kills the army will inflict. * '''war_exhaustion = <float>''' - Multiplies the war exhaustion gained due to having this army killed. Vanilla defense armies always have 0. * '''time = <int>''' - Days it takes to build this army. * '''resources''' - An [[Economy modding#Economy Units|Economy Unit]] that determines the cost and upkeep of this army. * '''has_species = <yes/no>''' - Determines do this army have a species. If yes, this army is counted towards the assault army clause: an empire can't build more assault armies than the number of pops of that species that empire has. If no, this army is never counted towards any clauses, but it will also not benefit from army enhancing species traits like {{iconify|Strong}}. * '''pop_limited = <yes/no>''' - If yes, this army is not counted towards any clauses even if it has <code>has_species = yes</code>. Used for {{iconify|Clone Army}}. * '''defensive = <yes/no>''' - If yes, this army can't be transported. * '''is_pop_spawned = <yes/no>''' - If yes, this army can't be built, instead it's used for defense army spawning jobs such as {{iconify|Soldier}}. * '''occupation = <yes/no>''' - If yes, this army can't be built, instead it's spawned on each captured planet. * '''potential''' & '''allow''' - Blocks of [[Conditions]] to determine if this army is listed / can be built on a planet. If <code>is_pop_spawned = yes</code> or <code>occupation = yes</code>, instead these blocks are determined should a pop spawn this kind of army. (Planet scope; FROM = species if army has species) * '''on_queued''' & '''on_unqueued''' - Blocks of [[Effects]] to be executed under the planet scope when this army is added to / removed from the planetary construction queue. (Planet scope) * '''rebel = <yes/no>''' - Marks this army a rebel army. * '''prerequisites = { tech_xxx }''' - A list of technology keys to determine the technological prerequisites of this army. * '''show_tech_unlock_if''' - A block of [[Conditions]]. If evaluated false, this army is hidden from the tooltips of the prerequisite techs. (Country scope) == Examples == === Example: Assault Army === # Assault Armies assault_army = { damage = 1.00 health = 1.00 morale = 1.00 morale_damage = 1.00 collateral_damage = 1.00 war_exhaustion = 1.00 time = 90 icon_frame = 2 prerequisites = { "tech_assault_armies" } resources = { category = armies cost = { minerals = 100 } upkeep = { energy = 1 } } show_tech_unlock_if = { OR = { NOT = { has_authority = auth_machine_intelligence } has_valid_civic = civic_machine_assimilator } } potential = { from = { NOR = { has_trait = "trait_mechanical" has_trait = "trait_machine_unit" is_sapient = no } } owner = { OR = { NOT = { has_authority = auth_machine_intelligence } has_valid_civic = civic_machine_assimilator } } } } === Example: Job Spawned Defense Army === # Defense Armies defense_army = { defensive = yes is_pop_spawned = yes health = 1.25 damage = 1.50 morale = 1.25 collateral_damage = 0.0 war_exhaustion = 0.0 # No WE from defense armies icon_frame = 1 potential = { from = { NOR = { has_trait = "trait_mechanical" has_trait = "trait_machine_unit" is_sapient = no } } owner = { is_primitive = no OR = { NOT = { has_authority = auth_machine_intelligence } has_valid_civic = civic_machine_assimilator } } } } === Example: Count-Limited Event Army === # Titanic life troops # Can build on planets with titanic life if you get event + special project there # Should be very strong and quite expensive, but cannot get attachments and can be built only in limited numbers # Currently limited to 3. Ideally it would be X * Num of planets you have done the project one, but that is too complex for scripts titanic_assault_army = { damage = 3.0 health = 5.0 morale = 3.0 morale_damage = 2.0 collateral_damage = 3.0 war_exhaustion = 2.0 time = 90 icon_frame = 8 has_species = no resources = { category = armies cost = { minerals = 300 } upkeep = { energy = 1 } } potential = { custom_tooltip = { text = titanic_troop_limit_tooltip planet = { has_planet_flag = titanic_life_can_build } owner = { has_country_flag = titanic_life_soldiers } } } allow = { custom_tooltip = { text = titanic_troop_limit_tooltip planet = { has_planet_flag = titanic_life_can_build } owner = { has_country_flag = titanic_life_soldiers NOT = { check_variable = { which = "titanic_life_soldier_count" value = 3 } } } } } on_queued = { owner = { change_variable = { which = "titanic_life_soldier_count" value = 1 } } } on_unqueued = { owner = { change_variable = { which = "titanic_life_soldier_count" value = -1 } } } } === Example: NPC Only Army === # Rampaging Tree Armies tree_army = { defensive = yes damage = 1.0 morale_damage = 1.0 health = 1.0 has_morale = no icon_frame = 8 has_species = no potential = { always = no } } {{ModdingNavbox}} [[Category:模组制作]]
摘要:
请注意您对群星百科的所有贡献都被认为是在知识共享署名-非商业性使用-相同方式共享下发布,请查看在
群星百科:版权
的细节。如果您不希望您的文字被任意修改和再散布,请不要提交。
您同时也要向我们保证您所提交的内容是您自己所作,或得自一个不受版权保护或相似自由的来源。
未经许可,请勿提交受版权保护的作品!
为防止机器编辑,请完成下方验证
取消
编辑帮助
(在新窗口中打开)
本页使用的模板:
Template:Clear
(
编辑
)
Template:Icon
(
编辑
)
Template:Icon/c
(
编辑
)
Template:Icon/s
(
编辑
)
Template:Iconify
(
编辑
)
Template:ModdingNavbox
(
编辑
)
Template:Navbox
(
编辑
)
Template:Navboxgroup
(
编辑
)
Template:Planet modifier
(
编辑
)
Template:Ruby
(
编辑
)
Template:Version
(
编辑
)
×
登录
密码
记住登录
加入群星百科
忘记密码?
其他方式登录