该编辑可以被撤销。 请检查下面的对比以核实您想要撤销的内容,然后发布下面的更改以完成撤销。
最后版本 | 您的文本 | ||
第4行: | 第4行: | ||
== 用法 == | == 用法 == | ||
Scopes always have a bracketed block on the right side: | |||
<pre> | <pre> | ||
<scope_name> = { | <scope_name> = { | ||
第11行: | 第11行: | ||
</pre> | </pre> | ||
But not all bracketed blocks are scopes: some are function blocks (<code>option</code>, <code>trigger</code>,...), operators (<code>AND</code>), flow control statements (<code>if</code>, <code>limit</code>), or clause for complex [[conditions]] or [[commands]] (<code>create_character</code>, ...). | |||
There are several types of scopes accessible from script. These include, but are not limited to: character, title/holding, province, war, unit, religion, faith, culture. | |||
Scopes can be nested, and are usually relative to the scope from which there are called, except for the ones that are global and can be called from "Any" scope. | Scopes can be nested, and are usually relative to the scope from which there are called, except for the ones that are global and can be called from "Any" scope. | ||
第46行: | 第46行: | ||
Note that the condition tooltips within <code>any_</code> scopes are misleading and only show whether the conditions are satisfied for one specific, seemingly randomly-chosen thing contained within the scope, and thus may show that some conditions are false even when the scope itself evaluates to true. These are best overridden with a <code>custom_tooltip</code>. | Note that the condition tooltips within <code>any_</code> scopes are misleading and only show whether the conditions are satisfied for one specific, seemingly randomly-chosen thing contained within the scope, and thus may show that some conditions are false even when the scope itself evaluates to true. These are best overridden with a <code>custom_tooltip</code>. | ||
== | == List of scopes == | ||
=== | === Culture === | ||
{| class="mildtable sortable" | {| class="mildtable sortable" | ||
|- | |- |