维多利亚2
ParaWikis
502 Bad Gateway
502 Bad Gateway
openresty
最近更改
随机页面
加入QQ群
工具
链入页面
相关更改
特殊页面
页面信息
页面值
帮助
译名手册
字词转换
编辑指南
编辑规范
练手沙盒
资助我们
资助我们
×
欢迎访问维多利亚2百科!
注册一个账号
,一起参与编写吧!这里是
当前的工程
。
全站已采用新UI,任何使用上的问题请点击
这里
。欢迎所有对百科感兴趣的同学加入QQ群:
497888338
。
阅读
查看源代码
查看历史
讨论
查看“List of scopes”的源代码
←
List of scopes
因为以下原因,您没有权限编辑本页:
您请求的操作仅限属于该用户组的用户执行:
用户
您可以查看和复制此页面的源代码。
{{version|Timeless}} This is a '''full list of scopes''' for scripting event triggers, decision prerequisites, and limits. Scopes are used to change what an event, decision, or limit is looking at. For example, if you have a provincial event, and wish to look at a population within that province, you use a scope. ==Country Scope: Triggers== ===any_core=== Syntax: <pre>any_core = { triggers... }</pre> Scope:<br> Switches scope to all core provinces of the current country in scope. ===any_greater_power=== Syntax: <pre>any_greater_power = { triggers... }</pre> Scope:<br> Switches scope to any country which is currently a greater power. ===any_neighbor_country=== Syntax: <pre>any_neighbor_country = { triggers… }</pre> Scope:<br> Any country neighboring the current country. ===any_owned_province=== Syntax: <pre>any_owned_province = { triggers… }</pre> Scope:<br> Any owned province. ===any_pop=== Syntax: <pre>any_pop = { triggers… }</pre> Scope:<br> Any pop in the current country. ===capital_scope=== Syntax: <pre>capital_scope = { triggers… }</pre> Scope:<br> Changes the current scope to the country’s capital (thus changing it to province scope). ===[country tag]=== Syntax: <pre>[tag] = { triggers… }</pre> Scope:<br> Changes the current scope to the specified country. ===cultural_union=== Syntax: <pre>cultural_union = { effects… }</pre> Scope:<br> Changes the current scope to the cultural union of the nation in the previous scope. ===overlord=== Syntax: <pre>overlord = { triggers...}</pre> Scope:<br> Changes the scope for a vassal to its overlord country. ===[region name]=== Syntax: <pre>[region name] = { triggers… }</pre> Scope:<br> Changes the current scope to the specified region (the ones listed in map\regions.txt). ===sphere_owner=== Syntax: <pre>sphere_owner = { triggers... }</pre> Scope:<br> Changes the current scope to the sphere owner of the country. ==Province Scope: Triggers== ===any_core=== Syntax: <pre>any_core = { triggers... }</pre> Scope:<br> Switches to the country scope of any cores inside the target province. So if the province has cores for Austria and Bohemia, then both those countries would now be in scope (whether they exist or not). ===any_neighbor_province=== Syntax: <pre>any_neighbor_province = { triggers… }</pre> Scope:<br> Any province neighboring the current province. Note that this does not include empty provinces. ===any_pop=== Syntax: <pre>any_pop = { triggers… }</pre> Scope:<br> Any pop in the current province. ===controller=== Syntax: <pre>controller = { triggers … }</pre> Scope:<br> Changes the current scope to the province controller. ===owner=== Syntax: <pre>owner = { triggers … }</pre> Scope:<br> Changes the current scope to the owner of the province. ===state_scope=== Syntax: <pre>state_scope = { triggers … }</pre> Scope:<br> Changes the current scope to the state which the province is in. ==Pop Scope: Triggers== ===location=== Syntax: <pre>location = { triggers … }</pre> Scope:<br> Changes the current scope to the province which the pop is in. ===country=== Syntax: <pre>country = { effects… }</pre> Scope:<br> Changes the current scope to the country this pop is part of. ===cultural_union=== Syntax: <pre>cultural_union = { effects… }</pre> Scope:<br> Changes the current scope to the cultural union of the nation in the previous scope. ==Country Scope: Effects== ===all_core=== Syntax: <pre>all_core = { effects... }</pre> Scope:<br> Changes the current scope to all provinces that are core to the current country (whether the country exists or not). ===any_country=== Syntax: <pre>any_country = { effects… }</pre> Scope:<br> Changes the current scope to all the currently available countries. NOTE: This scope works differently in decisions and events. In decisions, it automatically refers to any existing countries (in fact, it cannot be used to target non-existing countries) and does not target the current country in scope. In events, it automatically refers to all country tags whether they currently exist or not (and would need a limit to specify otherwise), as well as the current country in scope. ===any_greater_power=== Syntax: <pre>any_greater_power = { effects... }</pre> Scope:<br> Changes the current scope to all countries which are currently greater powers. NOTE: For the tooltip, this handily does not display the text of the scope and its conditions but rather lists every greater power individually which would be affected. So, rather than printing "Any greater power that is... NOT.. etc. etc." it would list "Russia: {effect}", "Austria: {effect}" and so forth, whoever is covered by the scope. If you'd prefer to have the tooltip display all the conditions, you should use any_country instead and just include "is_greater_power = yes" in the triggers. ===any_owned=== Syntax: <pre>any_owned = { effects… }</pre> Scope:<br> Changes the current scope to every owned province. ===any_neighbor_country=== Syntax: <pre>any_neighbor_country = { effects… }</pre> Scope:<br> Changes the current scope to all the neighboring countries. NOTE: For the tooltip, this handily does not display the text of the scope and its conditions but rather lists every country that would be affected. So, rather than printing "Any neighbor country that is... NOT.. etc. etc." it would list "Russia: {effect}", "Austria: {effect}" and so forth, whoever is covered by the scope. If you'd prefer to have the tooltip display all the conditions, you should use any_country instead and just include "neighbour = THIS" in the triggers. ===any_state=== Syntax: <pre>any_state = { effects… }</pre> Scope:<br> Changes the current scope to every owned state. ===capital_scope=== Syntax: <pre>capital_scope = { effects… }</pre> Scope:<br> Changes the current scope to the country’s capital. ===[country tag]=== Syntax: <pre>[tag] = { effects… }</pre> Scope:<br> Changes the current scope to the specified country. ===cultural_union=== Syntax: <pre>cultural_union = { effects… }</pre> Scope:<br> Changes the current scope to the cultural union of the nation in the previous scope. ===from=== Syntax: <pre>from = { effects… }</pre> Scope:<br> Changes the scope to the country that triggered the current event. ===overlord=== Syntax: <pre>overlord = { triggers...}</pre> Scope:<br> Changes the scope for a vassal to its overlord country. ===random_country=== Syntax: <pre>random_country = { effects... }</pre> Scope:<br> Changes the current scope to a random existing country. ===random_owned=== Syntax: <pre>random_owned = { effects… }</pre> Scope:<br> Changes the current scope to a random owned province. ===random_pop=== Syntax: <pre>random_pop = { triggers … }</pre> Scope:<br> Changes the current scope to a random pop in the country. Can be limited by location. ===[region name]=== Syntax: <pre>[region name] = { effects… }</pre> Scope:<br> Changes the current scope to the specified region. ===sphere_owner=== Syntax: <pre>sphere_owner = { triggers... }</pre> Scope:<br> Changes the current scope to the sphere owner of the country. ==Province Scopes: Effects== ===any_neighbor_province=== Syntax: <pre>any_neighbor_province = { effects… }</pre> Scope:<br> Changes the current scope to every neighboring province. ===country=== Syntax: <pre>country = { effects… }</pre> Scope:<br> Changes the current scope to the country to which this province belongs. ===cultural_union=== Syntax: <pre>cultural_union = { effects… }</pre> Scope:<br> Changes the current scope to the cultural union of the nation in the previous scope. ===owner=== Syntax: <pre>owner = { effects… }</pre> Scope:<br> Changes the current scope to the country to which this province belongs. Same as ''country'' scope from a province but more consistent with its corresponding trigger. ===[province ID]=== Syntax: <pre>[province id] = { effects… }</pre> Scope:<br> Changes the current scope to the specified province. ===random_neighbor_province=== Syntax: <pre>random_neighbor_province = { effects… }</pre> Scope:<br> Changes the current scope to a random neighbour province. ===random_empty_neighbor_province=== Syntax: <pre>random_empty_neighbor_province = { effects… }</pre> Scope:<br> Changes the current scope to random, empty neighbour province. ==See also== *[[Modding overview]] *[[Advanced events]] *[[List of conditions]] *[[Full list of effects]] *[[Modifier effects]] [[Category:Modding]] [[Category:Vicky2Wiki imports]]
本页使用的模板:
Template:Version
(
查看源代码
)
返回
List of scopes
。
×
登录
密码
记住登录
加入维多利亚2百科
忘记密码?
其他方式登录