编辑“Effects

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

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

最后版本 您的文本
第1行: 第1行:
{{Version|1.7}}
{{Version|1.7}}
效果(Effects),也称为命令(commands),在脚本中用于更改通过范围和条件选择的目标。他们还能够遍历列表。
'''Effects''', also known as '''commands''', are used in [[scripting]] to alter the target that was selected via [[scope]]s and [[condition]]s. They are also able to iterate through lists.


They appear in:
They appear in:
第9行: 第9行:
Available effects depend on the current scope.
Available effects depend on the current scope.


== 效果条件式 ==
== Control effects ==
These are the most important effects that are used to control the execution of other effects.
These are the most important effects that are used to control the execution of other effects.
{| class="wikitable sortable" width="100%"
{| class="wikitable sortable" width="100%"
! width="15%" | 名称
! width="15%" | Name
! width="15%" | 描述
! width="15%" | Description
! width="45%" | 样例
! width="45%" | Usage
! width="10%" | Supported scopes
! width="10%" | Supported scopes
! width="10%" | Supported targets
! width="10%" | Supported targets
|-
|-
|if
|if
| 如果满足if条件内容<triggers>,则会执行if描述的效果<effects>
|Executes enclosed effects if limit criteria are met
|<pre>if = { limit = { <triggers> } <effects> }</pre>
|<pre>if = { limit = { <triggers> } <effects> }</pre>
|none
|none
第25行: 第25行:
|-
|-
|else_if
|else_if
| 如果满足if条件内容<triggers>,则会执行if描述的效果<effects> ,否则如果如果满足else_if条件内容<triggers>,则会执行else_if描述的效果<effects>
|Executes enclosed effects if limit criteria of preceding 'if' or 'else_if' is not met, and its own limit is met
|<pre>if = { limit = { <triggers> } <effects> }
|<pre>if = { limit = { <triggers> } <effects> }
else_if = { limit = { <triggers> } <effects> }</pre>
else_if = { limit = { <triggers> } <effects> }</pre>
第32行: 第32行:
|-
|-
|else
|else
| 如果满足if条件内容<triggers>,则会执行if描述的效果<effects> ,否则执行else描述的效果<effects>(该段括号内容为译者所加,鉴于ck3官网原文有些模糊,这里引用一下钢4wiki对效果条件式的描述:首先,limit是一个AND的触发器,也就是其中的所有条件都需要满足,如果limit中的内容没有满足,就开始检测else_if,直到else最后这个触发器(除非你没有写)。这其中的每一个触发器只要有一个触发器中的内容全部满足就会触发)
|Executes enclosed effects if limit criteria of preceding 'if' or 'else_if' is not met
|<pre>if = { limit = { <triggers> } <effects> }
|<pre>if = { limit = { <triggers> } <effects> }
else = { <effects> }</pre>
else = { <effects> }</pre>
请注意您对十字军之王3百科的所有贡献都被认为是在知识共享署名-非商业性使用-相同方式共享下发布,请查看在十字军之王3百科:版权的细节。如果您不希望您的文字被任意修改和再散布,请不要提交。
您同时也要向我们保证您所提交的内容是您自己所作,或得自一个不受版权保护或相似自由的来源。 未经许可,请勿提交受版权保护的作品!

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

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