警告:您没有登录。如果您做出任意编辑,您的IP地址将会公开可见。如果您登录创建一个账户,您的编辑将归属于您的用户名,且将享受其他好处。

该编辑可以被撤销。 请检查下面的对比以核实您想要撤销的内容,然后发布下面的更改以完成撤销。

最后版本 您的文本
第38行: 第38行:
 本地化必须使用这个条目来定义: "<code>casus_belli_xxx:</code>".
 本地化必须使用这个条目来定义: "<code>casus_belli_xxx:</code>".


== War Goals( 战争目标 ==
== 战争目标 ==
 战争目标的定义文件在"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>''' – 决定AI投降的接受程度。
* '''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''' – 触发条件块来检查这个战争目标是否列出/ 可用于对抗目标帝国。 <small>([[Scopes]]: <code>ROOT</code>/<code>THIS</code> = war goal country <code>FROM</code> = war goal target country)</small>
* '''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''' – 效果块,当这个战争目标被接受时执行。 <small>([[Scopes]]: <code>ROOT</code>/<code>THIS</code> = war goal country, <code>FROM</code> = war goal target country)</small>
* '''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 = { … }''' – 决定使用此战争目标时允许什么样的和平提议。可以由以下任意数组成: status_quo, surrender, demand_surrender. “Total War (全面战争)”的战争目标使用这一点来防止在全面战争期间投降,使他们只能以维持现状或完全摧毁任何一方结束。
* '''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>/{ … }''' – 一个权重数或一个块,包含:modifier_rule 字段。 <small>([[Scopes]]: <code>ROOT</code>/<code>THIS</code> = the acting country, <code>FROM</code> = the targeted country)</small>
* '''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''' – 可选,触发[[Conditions|条件块]] 来检查[[Galactic Imperium|银河帝国]] 的成员是否加入战争。 <small>([[Scopes]]: <code>ROOT</code>/<code>THIS</code> = war goal country, <code>FROM</code> = war goal target country)</small>
* '''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>
另外,还有一个图标 (at /interface with "GFX_xxx") 并且应该定义本地化(with keys "war_goal_xxx:", "war_goal_xxx_desc:").
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:模组制作]]
请注意您对群星百科的所有贡献都被认为是在知识共享署名-非商业性使用-相同方式共享下发布,请查看在群星百科:版权的细节。如果您不希望您的文字被任意修改和再散布,请不要提交。
您同时也要向我们保证您所提交的内容是您自己所作,或得自一个不受版权保护或相似自由的来源。 未经许可,请勿提交受版权保护的作品!

为防止机器编辑,请完成下方验证

取消 编辑帮助(在新窗口中打开)