该编辑可以被撤销。 请检查下面的对比以核实您想要撤销的内容,然后发布下面的更改以完成撤销。
最后版本 | 您的文本 | ||
第38行: | 第38行: | ||
本地化必须使用这个条目来定义: "<code>casus_belli_xxx:</code>". | 本地化必须使用这个条目来定义: "<code>casus_belli_xxx:</code>". | ||
== | == 战争目标 == | ||
战争目标的定义文件在"common/war_goals/xxx.txt". | 战争目标的定义文件在"common/war_goals/xxx.txt". | ||
第57行: | 第57行: | ||
* '''release_occupied_systems_on_status_quo = <yes/no>''' – 如果是,在维持现状之后,当那个星球上有至少一个非机器人的智慧生命pop存在,被占领的星系将作为一个独立的帝国被释放。 | * '''release_occupied_systems_on_status_quo = <yes/no>''' – 如果是,在维持现状之后,当那个星球上有至少一个非机器人的智慧生命pop存在,被占领的星系将作为一个独立的帝国被释放。 | ||
** 这个战争目标的使用者总是首先放弃完全占领的领土。如果所有殖民地都以这种方式割让,被占领的星系将不会被释放。 | ** 这个战争目标的使用者总是首先放弃完全占领的领土。如果所有殖民地都以这种方式割让,被占领的星系将不会被释放。 | ||
* '''surrender_acceptance = <int>''' – | * '''surrender_acceptance = <int>''' – Determines AI surrender acceptance. | ||
* '''war_exhaustion = <float>''' – | * '''war_exhaustion = <float>''' – War Exhaustion generated during this war is multiplied by this value. | ||
* '''show_claims_in_description = <yes/no>''' – | * '''show_claims_in_description = <yes/no>''' – Determines should claims be displayed in description. | ||
* '''potential''' & '''possible''' – | * '''potential''' & '''possible''' – Trigger block of [[Conditions]] to check if this war goal listed / usable against target empire. <small>([[Scopes]]: <code>ROOT</code>/<code>THIS</code> = war goal country, <code>FROM</code> = war goal target country)</small> | ||
* '''on_accept''' & '''on_status_quo''' – [[Effects| | * '''on_accept''' & '''on_status_quo''' – [[Effects|Effect]] blocks, to be executed after this war goal is accepted (because the opponent surrendered) or when the war is ended in a status quo. | ||
*: <small>([[Scopes]]: <code>ROOT</code>/<code>THIS</code> = war goal country, <code>FROM</code> = war goal target country)</small> | *: <small>([[Scopes]]: <code>ROOT</code>/<code>THIS</code> = war goal country, <code>FROM</code> = war goal target country)</small> | ||
** | ** Use the following conditions to check if any empire was released this way: | ||
exists = last_created_country | exists = last_created_country | ||
last_created_country = { has_country_flag = released_empire } | last_created_country = { has_country_flag = released_empire } | ||
* '''on_wargoal_set''' – | * '''on_wargoal_set''' – Effect block, to be executed when this war goal is accepted. <small>([[Scopes]]: <code>ROOT</code>/<code>THIS</code> = war goal country, <code>FROM</code> = war goal target country)</small> | ||
* '''allowed_peace_offers = { … }''' – | * '''allowed_peace_offers = { … }''' – Determines what kind of peace offer is allowed when using this War Goal. Can consist of any number of the following: status_quo, surrender, demand_surrender. Vanilla Total War War Goals use this to prevent surrenders during Total Wars, making them can only end in a status quo or the total destruction of either side. | ||
* '''ai_weight = <int>/{ … }''' – | * '''ai_weight = <int>/{ … }''' – Either a weight number or a block, containing: modifier_rule fields. <small>([[Scopes]]: <code>ROOT</code>/<code>THIS</code> = the acting country, <code>FROM</code> = the targeted country)</small> | ||
* '''galactic_empire_joins_defender''' – | * '''galactic_empire_joins_defender''' – Optional. Trigger block of [[Conditions]] to check if the members of the [[Galactic Imperium]] join the war. <small>([[Scopes]]: <code>ROOT</code>/<code>THIS</code> = war goal country, <code>FROM</code> = war goal target country)</small> | ||
In addition, an icon (at /interface with "GFX_xxx") and a localisation should be defined (with keys "war_goal_xxx:", "war_goal_xxx_desc:"). | |||
=== | === WG Example === | ||
The Subjugation war goal: | |||
<syntaxhighlight lang="Haskell"> | <syntaxhighlight lang="Haskell"> | ||
wg_subjugation = { | wg_subjugation = { | ||
第190行: | 第190行: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
On victory, the winners will cede all claims and the primary loser will become a vassal of the primary winner. | |||
* | * If winners would cede all colonies of the primary loser, making them nonexistent, this war goal can't be used at the first place. However the attacker can add further claims after they declared the war. | ||
On status quo, Empires of this side will cede all fully occupied claims, then an independent empire is created from all remaining fully occupied enemy systems and it becomes a vassal of the primary winner. | |||
{{ModdingNavbox}} | {{ModdingNavbox}} | ||
[[Category:模组制作]] | [[Category:模组制作]] |