该编辑可以被撤销。 请检查下面的对比以核实您想要撤销的内容,然后发布下面的更改以完成撤销。
最后版本 | 您的文本 | ||
第1行: | 第1行: | ||
{{Version|1.7}} | {{Version|1.7}} | ||
'''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 | ||
| | |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 | ||
| | |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 | ||
| | |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> |