编辑“作用域

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

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

最后版本 您的文本
第4行: 第4行:


== 用法 ==
== 用法 ==
作用域右侧始终有花括号存在:
Scopes always have a bracketed block on the right side:
<pre>
<pre>
<scope_name> = {
<scope_name> = {
第11行: 第11行:
</pre>
</pre>


但是并非所有花括号都是作用域:可能是函数 (<code>option</code>, <code>trigger</code>,...) ,运算符 (<code>AND</code>) ,流控制语句(<code>if</code>, <code>limit</code>) ,或者是复杂条件或者命令的子语句(<code>create_character</code>, ...)
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"
|-
|-
请注意您对十字军之王3百科的所有贡献都被认为是在知识共享署名-非商业性使用-相同方式共享下发布,请查看在十字军之王3百科:版权的细节。如果您不希望您的文字被任意修改和再散布,请不要提交。
您同时也要向我们保证您所提交的内容是您自己所作,或得自一个不受版权保护或相似自由的来源。 未经许可,请勿提交受版权保护的作品!

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

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