无编辑摘要 |
小 (文本替换 - 替换“{{Version|”为“{{版本|”) |
||
(未显示1个用户的3个中间版本) | |||
第1行: | 第1行: | ||
{{ | {{ 版本|1.0.0}}{{Computer generated}} | ||
Effects are actions the game engine executes that produce a certain result, depending on the effect and parameters of the effect choosen. | Effects are actions the game engine executes that produce a certain result, depending on the effect and parameters of the effect choosen. | ||
第5行: | 第5行: | ||
! width="15%" | Name | ! width="15%" | Name | ||
! width="15%" | Description | ! width="15%" | Description | ||
! width="15%" |描述 | |||
! width="40%" | Usage | ! width="40%" | Usage | ||
! width="10%" | Traits | ! width="10%" | Traits | ||
第12行: | 第13行: | ||
| set_subsidized | | set_subsidized | ||
| Sets whether a building is subsidized | | Sets whether a building is subsidized | ||
|设置建筑是否能受补贴。 | |||
| set_subsidized = yes/no | | set_subsidized = yes/no | ||
| | | | ||
第20行: | 第22行: | ||
| add_civil_war_progress | | add_civil_war_progress | ||
| Adds the specified number of percentage points to a civil war progress (range is [0, 1], 0.1 means 10 percentage points) | | Adds the specified number of percentage points to a civil war progress (range is [0, 1], 0.1 means 10 percentage points) | ||
|增加指定百分比的内战进度(范围[0,1],0.1意味着10%) | |||
| add_civil_war_progress = 0.1 / -0.1 | | add_civil_war_progress = 0.1 / -0.1 | ||
| | | | ||
第28行: | 第31行: | ||
| add_war_exhaustion | | add_war_exhaustion | ||
| Adds war exhaustion to the target country in the scoped war. The amount will appear under the 'situations' header in tooltips | | Adds war exhaustion to the target country in the scoped war. The amount will appear under the 'situations' header in tooltips | ||
|为目标国家作用域内战争增加厌战度,这个数值将会显示在“situations”条目中。 | |||
| add_war_exhaustion = { target = country value = value } | | add_war_exhaustion = { target = country value = value } | ||
| | | | ||
第36行: | 第40行: | ||
| add_war_war_support | | add_war_war_support | ||
| Adds war support to the target country in the scoped war. The amount will appear under the 'situations' header in tooltips | | Adds war support to the target country in the scoped war. The amount will appear under the 'situations' header in tooltips | ||
|为目标国家作用域内战争增加战争支持度,这个数值将会显示在“situations”条目中。 | |||
| add_war_war_support = { target = country value = value } | | add_war_war_support = { target = country value = value } | ||
| | | | ||
第44行: | 第49行: | ||
| every_scope_front | | every_scope_front | ||
| Iterate through all Fronts related to the scoped War | | Iterate through all Fronts related to the scoped War | ||
|遍历作用域内战争的所有前线。 | |||
| every_scope_front = { limit = { <triggers> } <effects> } | | every_scope_front = { limit = { <triggers> } <effects> } | ||
| | | | ||
第52行: | 第58行: | ||
| ordered_scope_front | | ordered_scope_front | ||
| Iterate through all Fronts related to the scoped War | | Iterate through all Fronts related to the scoped War | ||
|遍历作用域内战争的所有前线。 | |||
| ordered_scope_front = { | | ordered_scope_front = { | ||
limit = { <triggers> } | limit = { <triggers> } | ||
第67行: | 第74行: | ||
| random_scope_front | | random_scope_front | ||
| Iterate through all Fronts related to the scoped War | | Iterate through all Fronts related to the scoped War | ||
|遍历作用域内战争的所有前线。 | |||
| random_scope_front = { limit = { <triggers> } (optional) weight = { mtth } <effects> } | | random_scope_front = { limit = { <triggers> } (optional) weight = { mtth } <effects> } | ||
| | | | ||
第75行: | 第83行: | ||
| add_cultural_obsession | | add_cultural_obsession | ||
| Adds a new obsession to the culture in scope | | Adds a new obsession to the culture in scope | ||
|为作用域内文化添加“痴迷”。 | |||
| add_cultural_obsession = X | | add_cultural_obsession = X | ||
Where X is a goods | Where X is a goods | ||
第84行: | 第93行: | ||
| remove_cultural_obsession | | remove_cultural_obsession | ||
| Removes a new obsession to the culture in scope | | Removes a new obsession to the culture in scope | ||
|为作用域内文化移除“痴迷”。 | |||
| remove_cultural_obsession = X | | remove_cultural_obsession = X | ||
Where X is a goods | Where X is a goods | ||
第93行: | 第103行: | ||
| every_market_goods | | every_market_goods | ||
| Iterate through all active (market) goods in a market | | Iterate through all active (market) goods in a market | ||
|遍历市场中所有商品。 | |||
| every_market_goods = { limit = { <triggers> } <effects> } | | every_market_goods = { limit = { <triggers> } <effects> } | ||
| | | | ||
第101行: | 第112行: | ||
| every_scope_country | | every_scope_country | ||
| Iterate through all countries with a presence in the supported scope (currently: only market scope) | | Iterate through all countries with a presence in the supported scope (currently: only market scope) | ||
|遍历支持的作用域内所有国家。(仅市场范围) | |||
| every_scope_country = { limit = { <triggers> } <effects> } | | every_scope_country = { limit = { <triggers> } <effects> } | ||
| | | | ||
第109行: | 第121行: | ||
| ordered_market_goods | | ordered_market_goods | ||
| Iterate through all active (market) goods in a market | | Iterate through all active (market) goods in a market | ||
|遍历市场中所有商品。 | |||
| ordered_market_goods = { | | ordered_market_goods = { | ||
limit = { <triggers> } | limit = { <triggers> } | ||
第124行: | 第137行: | ||
| ordered_scope_country | | ordered_scope_country | ||
| Iterate through all countries with a presence in the supported scope (currently: only market scope) | | Iterate through all countries with a presence in the supported scope (currently: only market scope) | ||
|遍历支持的作用域内所有国家。(仅市场范围) | |||
| ordered_scope_country = { | | ordered_scope_country = { | ||
limit = { <triggers> } | limit = { <triggers> } | ||
第139行: | 第153行: | ||
| random_market_goods | | random_market_goods | ||
| Iterate through all active (market) goods in a market | | Iterate through all active (market) goods in a market | ||
|遍历市场中所有商品。 | |||
| random_market_goods = { limit = { <triggers> } (optional) weight = { mtth } <effects> } | | random_market_goods = { limit = { <triggers> } (optional) weight = { mtth } <effects> } | ||
| | | | ||
第147行: | 第162行: | ||
| random_scope_country | | random_scope_country | ||
| Iterate through all countries with a presence in the supported scope (currently: only market scope) | | Iterate through all countries with a presence in the supported scope (currently: only market scope) | ||
|遍历支持的作用域内所有国家。(仅市场范围) | |||
| random_scope_country = { limit = { <triggers> } (optional) weight = { mtth } <effects> } | | random_scope_country = { limit = { <triggers> } (optional) weight = { mtth } <effects> } | ||
| | | | ||
第155行: | 第171行: | ||
| add_character_role | | add_character_role | ||
| Adds a new role to a character | | Adds a new role to a character | ||
|为角色添加一个新职责。 | |||
| add_character_role = general | | add_character_role = general | ||
| | | | ||
第163行: | 第180行: | ||
| add_commander_rank | | add_commander_rank | ||
| Promotes/demotes a character a given amount of military ranks | | Promotes/demotes a character a given amount of military ranks | ||
|为角色提升/降低一定等级的军衔。 | |||
| | | | ||
| | | | ||
第171行: | 第189行: | ||
| add_experience | | add_experience | ||
| Adds an amount of experience to a commander | | Adds an amount of experience to a commander | ||
|为指挥官增加一定的经验。 | |||
| add_experience = 0.2 | | add_experience = 0.2 | ||
| | | | ||
第179行: | 第198行: | ||
| add_random_trait | | add_random_trait | ||
| Adds a random qualifying Trait of the specified category | | Adds a random qualifying Trait of the specified category | ||
|增加特定类别的特质。 | |||
| add_random_trait = personality / skill / condition | | add_random_trait = personality / skill / condition | ||
| | | | ||
第187行: | 第207行: | ||
| add_trait | | add_trait | ||
| Add a trait to a Character | | Add a trait to a Character | ||
|为角色添加特质。 | |||
| add_trait = trait | | add_trait = trait | ||
| | | | ||
第195行: | 第216行: | ||
| change_character_religion | | change_character_religion | ||
| Changes the religion of the scoped character | | Changes the religion of the scoped character | ||
|改变作用域内角色信仰 | |||
| change_character_religion = rel:protestant | | change_character_religion = rel:protestant | ||
| | | | ||
第203行: | 第225行: | ||
| free_character_from_void | | free_character_from_void | ||
| Frees a character from the void, if set to no character is deleted instead | | Frees a character from the void, if set to no character is deleted instead | ||
|从void中释放一个角色,如果为“no”则会删除。 | |||
| free_character_from_void = yes | | free_character_from_void = yes | ||
| | | | ||
第211行: | 第234行: | ||
| kill_character | | kill_character | ||
| Kill a character | | Kill a character | ||
|删除角色。 | |||
| kill_character = bool | | kill_character = bool | ||
| | | | ||
第219行: | 第243行: | ||
| place_character_in_void | | place_character_in_void | ||
| Banishes a character to the void, duration is how long character is kept before being deleted | | Banishes a character to the void, duration is how long character is kept before being deleted | ||
|将一个角色放到void中,持续时间(months)是角色被删除之前的保留时间。 | |||
| place_character_in_void = months | | place_character_in_void = months | ||
| | | | ||
第227行: | 第252行: | ||
| remove_as_interest_group_leader | | remove_as_interest_group_leader | ||
| Removes a character from position as interest group leader | | Removes a character from position as interest group leader | ||
|让角色从利益集团领袖位置下台。 | |||
| remove_as_interest_group_leader = yes | | remove_as_interest_group_leader = yes | ||
| | | | ||
第235行: | 第261行: | ||
| remove_trait | | remove_trait | ||
| Remove a trait from a Character | | Remove a trait from a Character | ||
|移除角色特质。 | |||
| remove_trait = trait | | remove_trait = trait | ||
| | | | ||
第243行: | 第270行: | ||
| set_as_interest_group_leader | | set_as_interest_group_leader | ||
| Sets a character as interest group leader | | Sets a character as interest group leader | ||
|设置角色为利益集团领袖。 | |||
| set_as_interest_group_leader = yes | | set_as_interest_group_leader = yes | ||
| | | | ||
第251行: | 第279行: | ||
| set_character_busy | | set_character_busy | ||
| Mark a character as busy or clear said mark | | Mark a character as busy or clear said mark | ||
|标记角色为“忙碌”或移除这个标记。 | |||
| set_character_busy = bool | | set_character_busy = bool | ||
| | | | ||
第259行: | 第288行: | ||
| set_commander_rank | | set_commander_rank | ||
| Promotes/demotes a character to a given military rank value | | Promotes/demotes a character to a given military rank value | ||
|将角色提升/降低到指定的军衔。 | |||
| set_commander_rank = 3 | | set_commander_rank = 3 | ||
| | | | ||
第267行: | 第297行: | ||
| set_ideology | | set_ideology | ||
| Changes scoped character's ideology | | Changes scoped character's ideology | ||
|改变作用域内角色意识形态。 | |||
| set_ideology = x | | set_ideology = x | ||
| | | | ||
第275行: | 第306行: | ||
| transfer_character | | transfer_character | ||
| Transfers a Character to Country | | Transfers a Character to Country | ||
|将角色转移到其他国家。 | |||
| | | | ||
| | | | ||
第283行: | 第315行: | ||
| add_modifier | | add_modifier | ||
| Adds a timed modifier effect to object in scope | | Adds a timed modifier effect to object in scope | ||
|为作用域中的对象添加定时的“modifier” | |||
| | | | ||
| | | | ||
第291行: | 第324行: | ||
| remove_modifier | | remove_modifier | ||
| Removes a timed modifier effect to object in scope | | Removes a timed modifier effect to object in scope | ||
|为作用域中的对象移除定时的“modifier” | |||
| | | | ||
| | | | ||
第299行: | 第333行: | ||
| every_trade_route | | every_trade_route | ||
| Iterate through all trade routes in a: market, country, marketgoods | | Iterate through all trade routes in a: market, country, marketgoods | ||
|遍历所有的贸易路线在:市场、国家、商品。 | |||
| every_trade_route = { limit = { <triggers> } <effects> } | | every_trade_route = { limit = { <triggers> } <effects> } | ||
| | | | ||
第307行: | 第342行: | ||
| ordered_trade_route | | ordered_trade_route | ||
| Iterate through all trade routes in a: market, country, marketgoods | | Iterate through all trade routes in a: market, country, marketgoods | ||
|遍历所有的贸易路线在:市场、国家、商品。 | |||
| ordered_trade_route = { | | ordered_trade_route = { | ||
limit = { <triggers> } | limit = { <triggers> } | ||
第322行: | 第358行: | ||
| random_trade_route | | random_trade_route | ||
| Iterate through all trade routes in a: market, country, marketgoods | | Iterate through all trade routes in a: market, country, marketgoods | ||
|遍历所有的贸易路线在:市场、国家、商品。 | |||
| random_trade_route = { limit = { <triggers> } (optional) weight = { mtth } <effects> } | | random_trade_route = { limit = { <triggers> } (optional) weight = { mtth } <effects> } | ||
| | | | ||
第330行: | 第367行: | ||
| every_supporting_interest_group | | every_supporting_interest_group | ||
| Iterate through all interest groups supporting a political movement | | Iterate through all interest groups supporting a political movement | ||
|遍历所有支持政治运动的利益集团。 | |||
| every_supporting_interest_group = { limit = { <triggers> } <effects> } | | every_supporting_interest_group = { limit = { <triggers> } <effects> } | ||
| | | | ||
第338行: | 第376行: | ||
| ordered_supporting_interest_group | | ordered_supporting_interest_group | ||
| Iterate through all interest groups supporting a political movement | | Iterate through all interest groups supporting a political movement | ||
|遍历所有支持政治运动的利益集团。 | |||
| ordered_supporting_interest_group = { | | ordered_supporting_interest_group = { | ||
limit = { <triggers> } | limit = { <triggers> } | ||
第353行: | 第392行: | ||
| random_supporting_interest_group | | random_supporting_interest_group | ||
| Iterate through all interest groups supporting a political movement | | Iterate through all interest groups supporting a political movement | ||
|遍历所有支持政治运动的利益集团。 | |||
| random_supporting_interest_group = { limit = { <triggers> } (optional) weight = { mtth } <effects> } | | random_supporting_interest_group = { limit = { <triggers> } (optional) weight = { mtth } <effects> } | ||
| | | | ||
第361行: | 第401行: | ||
| every_primary_culture | | every_primary_culture | ||
| Primary cultures of the scoped country or country definition | | Primary cultures of the scoped country or country definition | ||
|作用域内的国家(或写在definition的国家)的主要文化。 | |||
| every_primary_culture = { limit = { <triggers> } <effects> } | | every_primary_culture = { limit = { <triggers> } <effects> } | ||
| | | | ||
第369行: | 第410行: | ||
| ordered_primary_culture | | ordered_primary_culture | ||
| Primary cultures of the scoped country or country definition | | Primary cultures of the scoped country or country definition | ||
|作用域内的国家(或写在definition的国家)的主要文化。 | |||
| ordered_primary_culture = { | | ordered_primary_culture = { | ||
limit = { <triggers> } | limit = { <triggers> } | ||
第384行: | 第426行: | ||
| random_primary_culture | | random_primary_culture | ||
| Primary cultures of the scoped country or country definition | | Primary cultures of the scoped country or country definition | ||
|作用域内的国家(或写在definition的国家)的主要文化。 | |||
| random_primary_culture = { limit = { <triggers> } (optional) weight = { mtth } <effects> } | | random_primary_culture = { limit = { <triggers> } (optional) weight = { mtth } <effects> } | ||
| | | | ||
第392行: | 第435行: | ||
| abandon_revolution | | abandon_revolution | ||
| Removes interest group from revolution | | Removes interest group from revolution | ||
|从革命中移除利益集团。 | |||
| abandon_revolution = yes/no | | abandon_revolution = yes/no | ||
| | | | ||
第400行: | 第444行: | ||
| add_ideology | | add_ideology | ||
| Adds an ideology to scoped interest group | | Adds an ideology to scoped interest group | ||
|为作用域内的利益集团添加意识形态。 | |||
| add_ideology = x | | add_ideology = x | ||
| | | | ||
第408行: | 第453行: | ||
| add_ruling_interest_group | | add_ruling_interest_group | ||
| Adds interest group to government | | Adds interest group to government | ||
|将利益集团加进政府。 | |||
| add_ruling_interest_group = yes/no | | add_ruling_interest_group = yes/no | ||
| | | | ||
第416行: | 第462行: | ||
| join_revolution | | join_revolution | ||
| Adds interest group to ongoing revolution | | Adds interest group to ongoing revolution | ||
|为正在进行的革命添加利益集团。 | |||
| join_revolution = yes/no | | join_revolution = yes/no | ||
| | | | ||
第424行: | 第471行: | ||
| remove_ideology | | remove_ideology | ||
| Removes an ideology from scoped interest group | | Removes an ideology from scoped interest group | ||
|为作用域内的利益集团移除意识形态。 | |||
| remove_ideology = x | | remove_ideology = x | ||
| | | | ||
第432行: | 第480行: | ||
| remove_ruling_interest_group | | remove_ruling_interest_group | ||
| Removes interest group in scope from government | | Removes interest group in scope from government | ||
|将利益集团移出政府。 | |||
| remove_ruling_interest_group = yes/no | | remove_ruling_interest_group = yes/no | ||
| | | | ||
第440行: | 第489行: | ||
| set_ig_bolstering | | set_ig_bolstering | ||
| Starts/stops bolstering the interest group in scope | | Starts/stops bolstering the interest group in scope | ||
|开始/停止扶植作用域内利益集团。 | |||
| set_ig_bolstering = yes/no | | set_ig_bolstering = yes/no | ||
| | | | ||
第448行: | 第498行: | ||
| set_ig_suppression | | set_ig_suppression | ||
| Starts/stops suppressing the interest group in scope | | Starts/stops suppressing the interest group in scope | ||
|开始/停止打压作用域内利益集团。 | |||
| set_ig_suppression = yes/no | | set_ig_suppression = yes/no | ||
| | | | ||
第456行: | 第507行: | ||
| set_interest_group_name | | set_interest_group_name | ||
| Renames interest group to the specified loc key | | Renames interest group to the specified loc key | ||
|利益集团重命名为特殊的本地翻译键。 | |||
| set_interest_group_name = x | | set_interest_group_name = x | ||
| | | | ||
第464行: | 第516行: | ||
| every_scope_pop | | every_scope_pop | ||
| Iterate through all pops in a: country, state, interest group, culture | | Iterate through all pops in a: country, state, interest group, culture | ||
|遍历所有的pops在:国家、地区、利益集团、文化。 | |||
| every_scope_pop = { limit = { <triggers> } <effects> } | | every_scope_pop = { limit = { <triggers> } <effects> } | ||
| | | | ||
第472行: | 第525行: | ||
| ordered_scope_pop | | ordered_scope_pop | ||
| Iterate through all pops in a: country, state, interest group, culture | | Iterate through all pops in a: country, state, interest group, culture | ||
|遍历所有的pops在:国家、地区、利益集团、文化。 | |||
| ordered_scope_pop = { | | ordered_scope_pop = { | ||
limit = { <triggers> } | limit = { <triggers> } | ||
第487行: | 第541行: | ||
| random_scope_pop | | random_scope_pop | ||
| Iterate through all pops in a: country, state, interest group, culture | | Iterate through all pops in a: country, state, interest group, culture | ||
|遍历所有的pops在:国家、地区、利益集团、文化。 | |||
| random_scope_pop = { limit = { <triggers> } (optional) weight = { mtth } <effects> } | | random_scope_pop = { limit = { <triggers> } (optional) weight = { mtth } <effects> } | ||
| | | | ||
第495行: | 第550行: | ||
| every_combat_units | | every_combat_units | ||
| Iterate through all combat units of input scope | | Iterate through all combat units of input scope | ||
|遍历输入的作用域内所有作战单位。 | |||
| every_combat_units = { limit = { <triggers> } <effects> } | | every_combat_units = { limit = { <triggers> } <effects> } | ||
| | | | ||
第503行: | 第559行: | ||
| ordered_combat_units | | ordered_combat_units | ||
| Iterate through all combat units of input scope | | Iterate through all combat units of input scope | ||
|遍历输入的作用域内所有作战单位。 | |||
| ordered_combat_units = { | | ordered_combat_units = { | ||
limit = { <triggers> } | limit = { <triggers> } | ||
第518行: | 第575行: | ||
| random_combat_units | | random_combat_units | ||
| Iterate through all combat units of input scope | | Iterate through all combat units of input scope | ||
|遍历输入的作用域内所有作战单位。 | |||
| random_combat_units = { limit = { <triggers> } (optional) weight = { mtth } <effects> } | | random_combat_units = { limit = { <triggers> } (optional) weight = { mtth } <effects> } | ||
| | | | ||
第526行: | 第584行: | ||
| lock_trade_route | | lock_trade_route | ||
| Lock a trade route for a set amount of time, preventing it from being cancelled manually | | Lock a trade route for a set amount of time, preventing it from being cancelled manually | ||
|锁定贸易路线一段时间,防止其被手动取消。 | |||
| lock_trade_route = { | | lock_trade_route = { | ||
years = 5 | years = 5 | ||
第535行: | 第594行: | ||
|- | |- | ||
| add_momentum | | add_momentum | ||
| Adds momentum to a Party during a campaign period | | Adds momentum to a Party during a campaign period | ||
|增加党派在竞选期间的“声势” | |||
|add_momentum = value | |||
| | | | ||
| party | | party | ||
第544行: | 第604行: | ||
| every_scope_state | | every_scope_state | ||
| Iterate through all states including provinces from a: country, state_region, theater, or front | | Iterate through all states including provinces from a: country, state_region, theater, or front | ||
|遍历所有state从:国家、地域、战区、前线。 | |||
| every_scope_state = { limit = { <triggers> } <effects> } | | every_scope_state = { limit = { <triggers> } <effects> } | ||
| | | | ||
第552行: | 第613行: | ||
| ordered_scope_state | | ordered_scope_state | ||
| Iterate through all states including provinces from a: country, state_region, theater, or front | | Iterate through all states including provinces from a: country, state_region, theater, or front | ||
|遍历所有state从:国家、地域、战区、前线。 | |||
| ordered_scope_state = { | | ordered_scope_state = { | ||
limit = { <triggers> } | limit = { <triggers> } | ||
第567行: | 第629行: | ||
| random_scope_state | | random_scope_state | ||
| Iterate through all states including provinces from a: country, state_region, theater, or front | | Iterate through all states including provinces from a: country, state_region, theater, or front | ||
|遍历所有state从:国家、地域、战区、前线。 | |||
| random_scope_state = { limit = { <triggers> } (optional) weight = { mtth } <effects> } | | random_scope_state = { limit = { <triggers> } (optional) weight = { mtth } <effects> } | ||
| | | | ||
第575行: | 第638行: | ||
| every_neighbouring_state | | every_neighbouring_state | ||
| Iterate through all states neighbouring a state region | | Iterate through all states neighbouring a state region | ||
|遍历一个相邻地域的所有state。 | |||
| every_neighbouring_state = { limit = { <triggers> } <effects> } | | every_neighbouring_state = { limit = { <triggers> } <effects> } | ||
| | | | ||
第583行: | 第647行: | ||
| ordered_neighbouring_state | | ordered_neighbouring_state | ||
| Iterate through all states neighbouring a state region | | Iterate through all states neighbouring a state region | ||
|遍历一个相邻地域的所有state。 | |||
| ordered_neighbouring_state = { | | ordered_neighbouring_state = { | ||
limit = { <triggers> } | limit = { <triggers> } | ||
第598行: | 第663行: | ||
| random_neighbouring_state | | random_neighbouring_state | ||
| Iterate through all states neighbouring a state region | | Iterate through all states neighbouring a state region | ||
|遍历一个相邻地域的所有state。 | |||
| random_neighbouring_state = { limit = { <triggers> } (optional) weight = { mtth } <effects> } | | random_neighbouring_state = { limit = { <triggers> } (optional) weight = { mtth } <effects> } | ||
| | | | ||
第606行: | 第672行: | ||
| every_scope_interest_marker | | every_scope_interest_marker | ||
| Iterate through all interest markers in a: country, strategic region | | Iterate through all interest markers in a: country, strategic region | ||
|遍历所有的利益集团标记在:国家、战略区域。 | |||
| every_scope_interest_marker = { limit = { <triggers> } <effects> } | | every_scope_interest_marker = { limit = { <triggers> } <effects> } | ||
| | | | ||
第614行: | 第681行: | ||
| ordered_scope_interest_marker | | ordered_scope_interest_marker | ||
| Iterate through all interest markers in a: country, strategic region | | Iterate through all interest markers in a: country, strategic region | ||
|遍历所有的利益集团标记在:国家、战略区域。 | |||
| ordered_scope_interest_marker = { | | ordered_scope_interest_marker = { | ||
limit = { <triggers> } | limit = { <triggers> } | ||
第629行: | 第697行: | ||
| random_scope_interest_marker | | random_scope_interest_marker | ||
| Iterate through all interest markers in a: country, strategic region | | Iterate through all interest markers in a: country, strategic region | ||
|遍历所有的利益集团标记在:国家、战略区域。 | |||
| random_scope_interest_marker = { limit = { <triggers> } (optional) weight = { mtth } <effects> } | | random_scope_interest_marker = { limit = { <triggers> } (optional) weight = { mtth } <effects> } | ||
| | | | ||
第637行: | 第706行: | ||
| add_journal_entry | | add_journal_entry | ||
| Adds a journal entry to a scoped country's journal, with optional saved scope target | | Adds a journal entry to a scoped country's journal, with optional saved scope target | ||
|给作用域内所有国家添加日志条目,并且可选保存target。 | |||
| add_journal_entry = { type = <key> target = <scope> } | | add_journal_entry = { type = <key> target = <scope> } | ||
| | | | ||
第645行: | 第715行: | ||
| add_to_global_variable_list | | add_to_global_variable_list | ||
| Adds the event target to a variable list | | Adds the event target to a variable list | ||
|将事件target添加到变量列表。 | |||
| add_to_variable_list = { name = X target = Y } | | add_to_variable_list = { name = X target = Y } | ||
Where X is the name of the variable | Where X is the name of the variable | ||
第655行: | 第726行: | ||
| add_to_list | | add_to_list | ||
| Adds the current scope to an arbitrarily-named list (or creates the list if not already present) to be referenced later in the (unbroken) event chain | | Adds the current scope to an arbitrarily-named list (or creates the list if not already present) to be referenced later in the (unbroken) event chain | ||
|将当前作用域添加到任意命名的列表中(如果列表不存在,则创建该列表),以便稍后在(未中断的)事件链中引用。 | |||
| add_to_list = <string> NOTE, if adding a permanent target to a temporary list, the whole list becomes permanent | | add_to_list = <string> NOTE, if adding a permanent target to a temporary list, the whole list becomes permanent | ||
| | | | ||
第663行: | 第735行: | ||
| add_to_local_variable_list | | add_to_local_variable_list | ||
| Adds the event target to a variable list | | Adds the event target to a variable list | ||
|将事件target添加到变量列表。 | |||
| add_to_variable_list = { name = X target = Y } | | add_to_variable_list = { name = X target = Y } | ||
Where X is the name of the variable | Where X is the name of the variable | ||
第673行: | 第746行: | ||
| add_to_temporary_list | | add_to_temporary_list | ||
| Adds the current scope to an arbitrarily-named list (or creates the list if not already present) to be referenced later in the same effect | | Adds the current scope to an arbitrarily-named list (or creates the list if not already present) to be referenced later in the same effect | ||
|将当前作用域添加到任意命名的列表中(如果不存在则创建列表),以便稍后引用,效果相同。 | |||
| add_to_temporary_list = <string> NOTE, if adding a temporary target to a permanent list, the list will stay permanent | | add_to_temporary_list = <string> NOTE, if adding a temporary target to a permanent list, the list will stay permanent | ||
| | | | ||
第681行: | 第755行: | ||
| add_to_variable_list | | add_to_variable_list | ||
| Adds the event target to a variable list | | Adds the event target to a variable list | ||
|将事件target添加到变量列表。 | |||
| add_to_variable_list = { name = X target = Y } | | add_to_variable_list = { name = X target = Y } | ||
Where X is the name of the variable | Where X is the name of the variable | ||
第691行: | 第766行: | ||
| assert_if | | assert_if | ||
| Conditionally cause an assert during run time | | Conditionally cause an assert during run time | ||
|在运行时有条件地引起assert。 | |||
| assert_if = { limit = { X } text = Y }, where X is a trigger and Y is an optional string | | assert_if = { limit = { X } text = Y }, where X is a trigger and Y is an optional string | ||
| | | | ||
第699行: | 第775行: | ||
| assert_read | | assert_read | ||
| Conditionally cause an assert during read time | | Conditionally cause an assert during read time | ||
|在读取时有条件地引起assert。 | |||
| assert_read = X, where X is yes or the string to be printed in the assert | | assert_read = X, where X is yes or the string to be printed in the assert | ||
| | | | ||
第707行: | 第784行: | ||
| change_global_variable | | change_global_variable | ||
| Changes the value or a numeric variable | | Changes the value or a numeric variable | ||
|更改值或数值变量。 | |||
| change_variable = { name = X operation = Y } | | change_variable = { name = X operation = Y } | ||
Where X is the name of the numeric variable to modify | Where X is the name of the numeric variable to modify | ||
第718行: | 第796行: | ||
| change_infamy | | change_infamy | ||
| Change infamy of scope country | | Change infamy of scope country | ||
|改变作用域内国家的恶名。 | |||
| change_infamy = amount | | change_infamy = amount | ||
| | | | ||
第726行: | 第805行: | ||
| change_local_variable | | change_local_variable | ||
| Changes the value or a numeric variable | | Changes the value or a numeric variable | ||
|更改值或数值变量。 | |||
| change_variable = { name = X operation = Y } | | change_variable = { name = X operation = Y } | ||
Where X is the name of the numeric variable to modify | Where X is the name of the numeric variable to modify | ||
第737行: | 第817行: | ||
| change_variable | | change_variable | ||
| Changes the value or a numeric variable | | Changes the value or a numeric variable | ||
|更改值或数值变量。 | |||
| change_variable = { name = X operation = Y } | | change_variable = { name = X operation = Y } | ||
Where X is the name of the numeric variable to modify | Where X is the name of the numeric variable to modify | ||
第748行: | 第829行: | ||
| clamp_global_variable | | clamp_global_variable | ||
| Clamps a variable the specified max and min | | Clamps a variable the specified max and min | ||
|将变量固定为指定的最大值和最小值。 | |||
| clamp_variable = { name = X max = Y min = Z } | | clamp_variable = { name = X max = Y min = Z } | ||
Where X is the name of the variable | Where X is the name of the variable | ||
第758行: | 第840行: | ||
| clamp_local_variable | | clamp_local_variable | ||
| Clamps a variable the specified max and min | | Clamps a variable the specified max and min | ||
|将变量固定为指定的最大值和最小值。 | |||
| clamp_variable = { name = X max = Y min = Z } | | clamp_variable = { name = X max = Y min = Z } | ||
Where X is the name of the variable | Where X is the name of the variable | ||
第768行: | 第851行: | ||
| clamp_variable | | clamp_variable | ||
| Clamps a variable the specified max and min | | Clamps a variable the specified max and min | ||
|将变量固定为指定的最大值和最小值。 | |||
| clamp_variable = { name = X max = Y min = Z } | | clamp_variable = { name = X max = Y min = Z } | ||
Where X is the name of the variable | Where X is the name of the variable | ||
第778行: | 第862行: | ||
| clear_global_variable_list | | clear_global_variable_list | ||
| Empties the list | | Empties the list | ||
|清空列表。 | |||
| clear_variable_list = variable_name | | clear_variable_list = variable_name | ||
| | | | ||
第786行: | 第871行: | ||
| clear_local_variable_list | | clear_local_variable_list | ||
| Empties the list | | Empties the list | ||
|清空列表。 | |||
| clear_variable_list = variable_name | | clear_variable_list = variable_name | ||
| | | | ||
第794行: | 第880行: | ||
| clear_saved_scope | | clear_saved_scope | ||
| Clears a saved scope from the top scope | | Clears a saved scope from the top scope | ||
|从顶部作用域中清除已保存的作用域。 | |||
| save_scope_as = cool_scope -> clear_saved_scope = cool_scope | | save_scope_as = cool_scope -> clear_saved_scope = cool_scope | ||
| | | | ||
第802行: | 第889行: | ||
| clear_variable_list | | clear_variable_list | ||
| Empties the list | | Empties the list | ||
|清空列表。 | |||
| clear_variable_list = variable_name | | clear_variable_list = variable_name | ||
| | | | ||
第810行: | 第898行: | ||
| create_country | | create_country | ||
| Creates a new country | | Creates a new country | ||
|创建新国家。 | |||
| create_country = { | | create_country = { | ||
tag = TAG # optional, if not specified origin's tag will be used | tag = TAG # optional, if not specified origin's tag will be used | ||
第826行: | 第915行: | ||
| custom_description | | custom_description | ||
| Wraps effects that get a custom description instead of the auto-generated one | | Wraps effects that get a custom description instead of the auto-generated one | ||
|设置为自定义描述而不是自动生成的描述。 | |||
| custom_description = { | | custom_description = { | ||
text = <effect_localization_key> | text = <effect_localization_key> | ||
第840行: | 第930行: | ||
| custom_description_no_bullet | | custom_description_no_bullet | ||
| Wraps effects that get a custom description instead of the auto-generated one. Also ensures no bullet point appears | | Wraps effects that get a custom description instead of the auto-generated one. Also ensures no bullet point appears | ||
|设置为自定义描述而不是自动生成的描述,并且保证不会出现项目符号。 | |||
| custom_description_no_bullet = { | | custom_description_no_bullet = { | ||
text = <effect_localization_key> | text = <effect_localization_key> | ||
第854行: | 第945行: | ||
| custom_label | | custom_label | ||
| just a tooltip, the scope as object (for grouping, localization). Can also be written as custom_label = { text = key subject = scope (optional) <hidden effects> } | | just a tooltip, the scope as object (for grouping, localization). Can also be written as custom_label = { text = key subject = scope (optional) <hidden effects> } | ||
| | |||
| | | | ||
| | | | ||
第862行: | 第954行: | ||
| custom_tooltip | | custom_tooltip | ||
| just a tooltip, the scope as subject (for grouping, localization). Can also be written as custom_tooltip = { text = key subject = scope (optional) <hidden effects> } | | just a tooltip, the scope as subject (for grouping, localization). Can also be written as custom_tooltip = { text = key subject = scope (optional) <hidden effects> } | ||
| | |||
| | | | ||
| | | | ||
第870行: | 第963行: | ||
| debug_log | | debug_log | ||
| Log a string to the debug log when this effect executes, debug_log = message, the message can be a localization string with ROOT, SCOPE and PREV available | | Log a string to the debug log when this effect executes, debug_log = message, the message can be a localization string with ROOT, SCOPE and PREV available | ||
| | |||
| | | | ||
| | | | ||
第878行: | 第972行: | ||
| debug_log_scopes | | debug_log_scopes | ||
| Log the current scope to the debug log when this effect executes yes = full scope info, no=only current scope | | Log the current scope to the debug log when this effect executes yes = full scope info, no=only current scope | ||
| | |||
| | | | ||
| | | | ||
第886行: | 第981行: | ||
| else | | else | ||
| Executes enclosed effects if limit criteria of preceding 'if' or 'else_if' is not met | | Executes enclosed effects if limit criteria of preceding 'if' or 'else_if' is not met | ||
| | |||
| if = { limit = { <triggers> } <effects> } | | if = { limit = { <triggers> } <effects> } | ||
else = { <effects> } | else = { <effects> } | ||
第895行: | 第991行: | ||
| 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 | | Executes enclosed effects if limit criteria of preceding 'if' or 'else_if' is not met, and its own limit is met | ||
| | |||
| if = { limit = { <triggers> } <effects> } | | if = { limit = { <triggers> } <effects> } | ||
else_if = { limit = { <triggers> } <effects> } | else_if = { limit = { <triggers> } <effects> } | ||
第904行: | 第1,001行: | ||
| every_character | | every_character | ||
| Iterate through all characters globally | | Iterate through all characters globally | ||
| | |||
| every_character = { limit = { <triggers> } <effects> } | | every_character = { limit = { <triggers> } <effects> } | ||
| | | | ||
第912行: | 第1,010行: | ||
| every_character_in_void | | every_character_in_void | ||
| Iterate through characters in the void | | Iterate through characters in the void | ||
| | |||
| every_character_in_void = { limit = { <triggers> } <effects> } | | every_character_in_void = { limit = { <triggers> } <effects> } | ||
| | | | ||
第920行: | 第1,019行: | ||
| every_country | | every_country | ||
| Iterate through all countries globally | | Iterate through all countries globally | ||
| | |||
| every_country = { limit = { <triggers> } <effects> } | | every_country = { limit = { <triggers> } <effects> } | ||
| | | | ||
第928行: | 第1,028行: | ||
| every_diplomatic_play | | every_diplomatic_play | ||
| Iterate through all diplomatic plays globally | | Iterate through all diplomatic plays globally | ||
| | |||
| every_diplomatic_play = { limit = { <triggers> } <effects> } | | every_diplomatic_play = { limit = { <triggers> } <effects> } | ||
| | | | ||
第936行: | 第1,037行: | ||
| every_in_global_list | | every_in_global_list | ||
| Iterate through all items in global list. list = name or variable = name | | Iterate through all items in global list. list = name or variable = name | ||
| | |||
| every_in_global_list = { limit = { <triggers> } <effects> } | | every_in_global_list = { limit = { <triggers> } <effects> } | ||
| | | | ||
第944行: | 第1,046行: | ||
| every_in_list | | every_in_list | ||
| Iterate through all items in list. list = name or variable = name | | Iterate through all items in list. list = name or variable = name | ||
| | |||
| every_in_list = { limit = { <triggers> } <effects> } | | every_in_list = { limit = { <triggers> } <effects> } | ||
| | | | ||
第952行: | 第1,055行: | ||
| every_in_local_list | | every_in_local_list | ||
| Iterate through all items in local list. list = name or variable = name | | Iterate through all items in local list. list = name or variable = name | ||
| | |||
| every_in_local_list = { limit = { <triggers> } <effects> } | | every_in_local_list = { limit = { <triggers> } <effects> } | ||
| | | | ||
第960行: | 第1,064行: | ||
| every_market | | every_market | ||
| Iterate through all markets globally | | Iterate through all markets globally | ||
| | |||
| every_market = { limit = { <triggers> } <effects> } | | every_market = { limit = { <triggers> } <effects> } | ||
| | | | ||
第968行: | 第1,073行: | ||
| every_state | | every_state | ||
| Iterate through all states globally | | Iterate through all states globally | ||
| | |||
| every_state = { limit = { <triggers> } <effects> } | | every_state = { limit = { <triggers> } <effects> } | ||
| | | | ||
第976行: | 第1,082行: | ||
| every_state_region | | every_state_region | ||
| Iterate through all state regions | | Iterate through all state regions | ||
| | |||
| every_state_region = { limit = { <triggers> } <effects> } | | every_state_region = { limit = { <triggers> } <effects> } | ||
| | | | ||
第984行: | 第1,091行: | ||
| hidden_effect | | hidden_effect | ||
| Effect not shown in tooltips | | Effect not shown in tooltips | ||
| | |||
| | | | ||
| | | | ||
第992行: | 第1,100行: | ||
| if | | if | ||
| Executes enclosed effects if limit criteria are met | | Executes enclosed effects if limit criteria are met | ||
| | |||
| if = { limit = { <triggers> } <effects> } | | if = { limit = { <triggers> } <effects> } | ||
| | | | ||
第1,000行: | 第1,109行: | ||
| ordered_character | | ordered_character | ||
| Iterate through all characters globally | | Iterate through all characters globally | ||
| | |||
| ordered_character = { | | ordered_character = { | ||
limit = { <triggers> } | limit = { <triggers> } | ||
第1,015行: | 第1,125行: | ||
| ordered_character_in_void | | ordered_character_in_void | ||
| Iterate through characters in the void | | Iterate through characters in the void | ||
| | |||
| ordered_character_in_void = { | | ordered_character_in_void = { | ||
limit = { <triggers> } | limit = { <triggers> } | ||
第1,030行: | 第1,141行: | ||
| ordered_country | | ordered_country | ||
| Iterate through all countries globally | | Iterate through all countries globally | ||
| | |||
| ordered_country = { | | ordered_country = { | ||
limit = { <triggers> } | limit = { <triggers> } | ||
第1,045行: | 第1,157行: | ||
| ordered_diplomatic_play | | ordered_diplomatic_play | ||
| Iterate through all diplomatic plays globally | | Iterate through all diplomatic plays globally | ||
| | |||
| ordered_diplomatic_play = { | | ordered_diplomatic_play = { | ||
limit = { <triggers> } | limit = { <triggers> } | ||
第1,060行: | 第1,173行: | ||
| ordered_in_global_list | | ordered_in_global_list | ||
| Iterate through all items in global list. list = name or variable = name | | Iterate through all items in global list. list = name or variable = name | ||
| | |||
| ordered_in_global_list = { | | ordered_in_global_list = { | ||
limit = { <triggers> } | limit = { <triggers> } | ||
第1,075行: | 第1,189行: | ||
| ordered_in_list | | ordered_in_list | ||
| Iterate through all items in list. list = name or variable = name | | Iterate through all items in list. list = name or variable = name | ||
| | |||
| ordered_in_list = { | | ordered_in_list = { | ||
limit = { <triggers> } | limit = { <triggers> } | ||
第1,090行: | 第1,205行: | ||
| ordered_in_local_list | | ordered_in_local_list | ||
| Iterate through all items in local list. list = name or variable = name | | Iterate through all items in local list. list = name or variable = name | ||
| | |||
| ordered_in_local_list = { | | ordered_in_local_list = { | ||
limit = { <triggers> } | limit = { <triggers> } | ||
第1,105行: | 第1,221行: | ||
| ordered_market | | ordered_market | ||
| Iterate through all markets globally | | Iterate through all markets globally | ||
| | |||
| ordered_market = { | | ordered_market = { | ||
limit = { <triggers> } | limit = { <triggers> } | ||
第1,120行: | 第1,237行: | ||
| ordered_state | | ordered_state | ||
| Iterate through all states globally | | Iterate through all states globally | ||
| | |||
| ordered_state = { | | ordered_state = { | ||
limit = { <triggers> } | limit = { <triggers> } | ||
第1,135行: | 第1,253行: | ||
| ordered_state_region | | ordered_state_region | ||
| Iterate through all state regions | | Iterate through all state regions | ||
| | |||
| ordered_state_region = { | | ordered_state_region = { | ||
limit = { <triggers> } | limit = { <triggers> } | ||
第1,150行: | 第1,269行: | ||
| post_notification | | post_notification | ||
| Posts notification | | Posts notification | ||
| | |||
| | | | ||
| | | | ||
第1,158行: | 第1,278行: | ||
| post_proposal | | post_proposal | ||
| Posts proposal | | Posts proposal | ||
| | |||
| | | | ||
| | | | ||
第1,166行: | 第1,287行: | ||
| random | | random | ||
| a random effect, random = { chance = X modifier = Y effects... } | | a random effect, random = { chance = X modifier = Y effects... } | ||
| | |||
| where X is a chance of the enclosed effects being fired and can be modified by optional value modifier list (AKA MTTH) Y | | where X is a chance of the enclosed effects being fired and can be modified by optional value modifier list (AKA MTTH) Y | ||
| | | | ||
第1,174行: | 第1,296行: | ||
| random_character | | random_character | ||
| Iterate through all characters globally | | Iterate through all characters globally | ||
| | |||
| random_character = { limit = { <triggers> } (optional) weight = { mtth } <effects> } | | random_character = { limit = { <triggers> } (optional) weight = { mtth } <effects> } | ||
| | | | ||
第1,182行: | 第1,305行: | ||
| random_character_in_void | | random_character_in_void | ||
| Iterate through characters in the void | | Iterate through characters in the void | ||
| | |||
| random_character_in_void = { limit = { <triggers> } (optional) weight = { mtth } <effects> } | | random_character_in_void = { limit = { <triggers> } (optional) weight = { mtth } <effects> } | ||
| | | | ||
第1,190行: | 第1,314行: | ||
| random_country | | random_country | ||
| Iterate through all countries globally | | Iterate through all countries globally | ||
| | |||
| random_country = { limit = { <triggers> } (optional) weight = { mtth } <effects> } | | random_country = { limit = { <triggers> } (optional) weight = { mtth } <effects> } | ||
| | | | ||
第1,198行: | 第1,323行: | ||
| random_diplomatic_play | | random_diplomatic_play | ||
| Iterate through all diplomatic plays globally | | Iterate through all diplomatic plays globally | ||
| | |||
| random_diplomatic_play = { limit = { <triggers> } (optional) weight = { mtth } <effects> } | | random_diplomatic_play = { limit = { <triggers> } (optional) weight = { mtth } <effects> } | ||
| | | | ||
第1,206行: | 第1,332行: | ||
| random_in_global_list | | random_in_global_list | ||
| Iterate through all items in global list. list = name or variable = name | | Iterate through all items in global list. list = name or variable = name | ||
| | |||
| random_in_global_list = { limit = { <triggers> } (optional) weight = { mtth } <effects> } | | random_in_global_list = { limit = { <triggers> } (optional) weight = { mtth } <effects> } | ||
| | | | ||
第1,214行: | 第1,341行: | ||
| random_in_list | | random_in_list | ||
| Iterate through all items in list. list = name or variable = name | | Iterate through all items in list. list = name or variable = name | ||
| | |||
| random_in_list = { limit = { <triggers> } (optional) weight = { mtth } <effects> } | | random_in_list = { limit = { <triggers> } (optional) weight = { mtth } <effects> } | ||
| | | | ||
第1,222行: | 第1,350行: | ||
| random_in_local_list | | random_in_local_list | ||
| Iterate through all items in local list. list = name or variable = name | | Iterate through all items in local list. list = name or variable = name | ||
| | |||
| random_in_local_list = { limit = { <triggers> } (optional) weight = { mtth } <effects> } | | random_in_local_list = { limit = { <triggers> } (optional) weight = { mtth } <effects> } | ||
| | | | ||
第1,230行: | 第1,359行: | ||
| random_list | | random_list | ||
| a random list effect | | a random list effect | ||
| | |||
| random_list = { X1 = { trigger = { enables/disable this effect} modifier = Y1 effect1 } X2 = { trigger = { enables/disable this effect} modifier = Y2 effect2 } ... } | | random_list = { X1 = { trigger = { enables/disable this effect} modifier = Y1 effect1 } X2 = { trigger = { enables/disable this effect} modifier = Y2 effect2 } ... } | ||
Selects one effect from the list and fires it. The effects are weighted by numbers X1, X2... (the higher the number, the higher the chance of the effect being picked). | Selects one effect from the list and fires it. The effects are weighted by numbers X1, X2... (the higher the number, the higher the chance of the effect being picked). | ||
第1,240行: | 第1,370行: | ||
| random_log_scopes | | random_log_scopes | ||
| Log the current scope to the random log when this effect executes. Only use temprorarily for debugging purposes as it can introduce localized strings into the Scopes._Random log. yes = full scope info, no=only current scope | | Log the current scope to the random log when this effect executes. Only use temprorarily for debugging purposes as it can introduce localized strings into the Scopes._Random log. yes = full scope info, no=only current scope | ||
| | |||
| | | | ||
| | | | ||
第1,248行: | 第1,379行: | ||
| random_market | | random_market | ||
| Iterate through all markets globally | | Iterate through all markets globally | ||
| | |||
| random_market = { limit = { <triggers> } (optional) weight = { mtth } <effects> } | | random_market = { limit = { <triggers> } (optional) weight = { mtth } <effects> } | ||
| | | | ||
第1,256行: | 第1,388行: | ||
| random_state | | random_state | ||
| Iterate through all states globally | | Iterate through all states globally | ||
| | |||
| random_state = { limit = { <triggers> } (optional) weight = { mtth } <effects> } | | random_state = { limit = { <triggers> } (optional) weight = { mtth } <effects> } | ||
| | | | ||
第1,264行: | 第1,397行: | ||
| random_state_region | | random_state_region | ||
| Iterate through all state regions | | Iterate through all state regions | ||
| | |||
| random_state_region = { limit = { <triggers> } (optional) weight = { mtth } <effects> } | | random_state_region = { limit = { <triggers> } (optional) weight = { mtth } <effects> } | ||
| | | | ||
第1,272行: | 第1,406行: | ||
| remove_from_list | | remove_from_list | ||
| Removes the current scope from a named list remove_from_list = <string> | | Removes the current scope from a named list remove_from_list = <string> | ||
| | |||
| | | | ||
| | | | ||
第1,280行: | 第1,415行: | ||
| remove_global_variable | | remove_global_variable | ||
| Removes a variable | | Removes a variable | ||
| | |||
| remove_variable = variable_name | | remove_variable = variable_name | ||
| | | | ||
第1,288行: | 第1,424行: | ||
| remove_list_global_variable | | remove_list_global_variable | ||
| Removes the target from a variable list | | Removes the target from a variable list | ||
| | |||
| remove_list_variable = { name = X target = Y } | | remove_list_variable = { name = X target = Y } | ||
Where X is the name of the variable | Where X is the name of the variable | ||
第1,298行: | 第1,435行: | ||
| remove_list_local_variable | | remove_list_local_variable | ||
| Removes the target from a variable list | | Removes the target from a variable list | ||
| | |||
| remove_list_variable = { name = X target = Y } | | remove_list_variable = { name = X target = Y } | ||
Where X is the name of the variable | Where X is the name of the variable | ||
第1,308行: | 第1,446行: | ||
| remove_list_variable | | remove_list_variable | ||
| Removes the target from a variable list | | Removes the target from a variable list | ||
| | |||
| remove_list_variable = { name = X target = Y } | | remove_list_variable = { name = X target = Y } | ||
Where X is the name of the variable | Where X is the name of the variable | ||
第1,318行: | 第1,457行: | ||
| remove_local_variable | | remove_local_variable | ||
| Removes a variable | | Removes a variable | ||
| | |||
| remove_variable = variable_name | | remove_variable = variable_name | ||
| | | | ||
第1,326行: | 第1,466行: | ||
| remove_variable | | remove_variable | ||
| Removes a variable | | Removes a variable | ||
| | |||
| remove_variable = variable_name | | remove_variable = variable_name | ||
| | | | ||
第1,334行: | 第1,475行: | ||
| round_global_variable | | round_global_variable | ||
| Rounds a variable to the nearest specified value | | Rounds a variable to the nearest specified value | ||
| | |||
| clamp_variable = { name = X nearest = Y } | | clamp_variable = { name = X nearest = Y } | ||
Where X is the name of the variable | Where X is the name of the variable | ||
第1,344行: | 第1,486行: | ||
| round_local_variable | | round_local_variable | ||
| Rounds a variable to the nearest specified value | | Rounds a variable to the nearest specified value | ||
| | |||
| clamp_variable = { name = X nearest = Y } | | clamp_variable = { name = X nearest = Y } | ||
Where X is the name of the variable | Where X is the name of the variable | ||
第1,354行: | 第1,497行: | ||
| round_variable | | round_variable | ||
| Rounds a variable to the nearest specified value | | Rounds a variable to the nearest specified value | ||
| | |||
| clamp_variable = { name = X nearest = Y } | | clamp_variable = { name = X nearest = Y } | ||
Where X is the name of the variable | Where X is the name of the variable | ||
第1,364行: | 第1,508行: | ||
| save_scope_as | | save_scope_as | ||
| Saves the current scope as an arbitrarily-named target to be referenced later in the (unbroken) event chain | | Saves the current scope as an arbitrarily-named target to be referenced later in the (unbroken) event chain | ||
| | |||
| save_event_target_as = <string> | | save_event_target_as = <string> | ||
| | | | ||
第1,372行: | 第1,517行: | ||
| save_scope_value_as | | save_scope_value_as | ||
| Saves a numerical or bool value as an arbitrarily-named target to be referenced later in the (unbroken) event chain | | Saves a numerical or bool value as an arbitrarily-named target to be referenced later in the (unbroken) event chain | ||
| | |||
| save_scope_value_as = { name = <string> value = x } | | save_scope_value_as = { name = <string> value = x } | ||
| | | | ||
第1,380行: | 第1,526行: | ||
| save_temporary_scope_as | | save_temporary_scope_as | ||
| Saves the current scope as an arbitrarily-named temporary target to be referenced later in the same effect | | Saves the current scope as an arbitrarily-named temporary target to be referenced later in the same effect | ||
| | |||
| save_temporary_event_target_as = <string> | | save_temporary_event_target_as = <string> | ||
| | | | ||
第1,388行: | 第1,535行: | ||
| save_temporary_scope_value_as | | save_temporary_scope_value_as | ||
| Saves a numerical or bool value as an arbitrarily-named temporary target to be referenced later in the same effect | | Saves a numerical or bool value as an arbitrarily-named temporary target to be referenced later in the same effect | ||
| | |||
| save_temporary_scope_value_as = { name = <string> value = x } | | save_temporary_scope_value_as = { name = <string> value = x } | ||
| | | | ||
第1,396行: | 第1,544行: | ||
| set_global_variable | | set_global_variable | ||
| Sets a variable | | Sets a variable | ||
| | |||
| set_variable = { name = X value = Y days = Z } | | set_variable = { name = X value = Y days = Z } | ||
Where X is the name of the variable used to then access it | Where X is the name of the variable used to then access it | ||
第1,409行: | 第1,558行: | ||
| set_local_variable | | set_local_variable | ||
| Sets a variable | | Sets a variable | ||
| | |||
| set_variable = { name = X value = Y days = Z } | | set_variable = { name = X value = Y days = Z } | ||
Where X is the name of the variable used to then access it | Where X is the name of the variable used to then access it | ||
第1,422行: | 第1,572行: | ||
| set_variable | | set_variable | ||
| Sets a variable | | Sets a variable | ||
| | |||
| set_variable = { name = X value = Y days = Z } | | set_variable = { name = X value = Y days = Z } | ||
Where X is the name of the variable used to then access it | Where X is the name of the variable used to then access it | ||
第1,435行: | 第1,586行: | ||
| show_as_tooltip | | show_as_tooltip | ||
| Effect only shown in tooltips (but not executed) | | Effect only shown in tooltips (but not executed) | ||
| | |||
| | | | ||
| | | | ||
第1,443行: | 第1,595行: | ||
| start_tutorial_lesson | | start_tutorial_lesson | ||
| Starts the tutorial lesson with the given key. Does nothing if the tutorial is not running, the lesson is completed (or already running), or the lesson cannot be triggered (e.g. trigger fails) | | Starts the tutorial lesson with the given key. Does nothing if the tutorial is not running, the lesson is completed (or already running), or the lesson cannot be triggered (e.g. trigger fails) | ||
| | |||
| | | | ||
| | | | ||
第1,451行: | 第1,604行: | ||
| switch | | switch | ||
| Switch on a trigger for the evaluation of another trigger with an optional fallback trigger. | | Switch on a trigger for the evaluation of another trigger with an optional fallback trigger. | ||
| | |||
| switch = { | | switch = { | ||
trigger = simple_assign_trigger | trigger = simple_assign_trigger | ||
第1,464行: | 第1,618行: | ||
| trigger_event | | trigger_event | ||
| Triggers an event for the current scope | | Triggers an event for the current scope | ||
| | |||
| trigger_event = X | | trigger_event = X | ||
trigger_event = { id = X days/weeks/months/years = Y } | trigger_event = { id = X days/weeks/months/years = Y } | ||
第1,474行: | 第1,629行: | ||
| while | | while | ||
| Repeats enclosed effects while limit criteria are met or until set iteration count is reached | | Repeats enclosed effects while limit criteria are met or until set iteration count is reached | ||
| | |||
| while = { limit = { <triggers> } <effects> } | | while = { limit = { <triggers> } <effects> } | ||
while = { count = 3 <effects> } | while = { count = 3 <effects> } | ||
第1,484行: | 第1,640行: | ||
| activate_building | | activate_building | ||
| Activate a building in a state | | Activate a building in a state | ||
| | |||
| activate_building = { building = building_key } | | activate_building = { building = building_key } | ||
| | | | ||
第1,492行: | 第1,649行: | ||
| add_culture_standard_of_living_modifier | | add_culture_standard_of_living_modifier | ||
| Apply a standard of living modifier in the scoped state for the given culture. Other than the required culture argument, this effect has the same syntax as add_modifier. | | Apply a standard of living modifier in the scoped state for the given culture. Other than the required culture argument, this effect has the same syntax as add_modifier. | ||
| | |||
| | | | ||
| | | | ||
第1,500行: | 第1,658行: | ||
| add_religion_standard_of_living_modifier | | add_religion_standard_of_living_modifier | ||
| Apply a standard of living modifier in the scoped state for the given religion. Other than the required religion argument, this effect has the same syntax as add_modifier. | | Apply a standard of living modifier in the scoped state for the given religion. Other than the required religion argument, this effect has the same syntax as add_modifier. | ||
| | |||
| | | | ||
| | | | ||
第1,508行: | 第1,667行: | ||
| convert_population | | convert_population | ||
| Changes X% of the different religion population to the specified religion. | | Changes X% of the different religion population to the specified religion. | ||
| | |||
| convert_population = { target = rel:catholic value = 0.5 } | | convert_population = { target = rel:catholic value = 0.5 } | ||
| | | | ||
第1,516行: | 第1,676行: | ||
| create_building | | create_building | ||
| Creates a building in the scoped state. Supported values are: | | Creates a building in the scoped state. Supported values are: | ||
| | |||
| building = <building> | | building = <building> | ||
activate_production_methods = { <production_methods> } | activate_production_methods = { <production_methods> } | ||
第1,534行: | 第1,695行: | ||
| create_pop | | create_pop | ||
| Creates a pop in the scoped state | | Creates a pop in the scoped state | ||
| | |||
| | | | ||
| | | | ||
第1,542行: | 第1,704行: | ||
| deactivate_building | | deactivate_building | ||
| Deactivate a building in a state | | Deactivate a building in a state | ||
| | |||
| deactivate_building = { building = building_key } | | deactivate_building = { building = building_key } | ||
| | | | ||
第1,550行: | 第1,713行: | ||
| force_resource_depletion | | force_resource_depletion | ||
| Forces a resource depletion in state | | Forces a resource depletion in state | ||
| | |||
| force_resource_depletion = bg_gold_mining | | force_resource_depletion = bg_gold_mining | ||
| | | | ||
第1,558行: | 第1,722行: | ||
| force_resource_discovery | | force_resource_discovery | ||
| Forces a resource discovery in state | | Forces a resource discovery in state | ||
| | |||
| force_resource_discovery = bg_gold_mining | | force_resource_discovery = bg_gold_mining | ||
| | | | ||
第1,566行: | 第1,731行: | ||
| remove_building | | remove_building | ||
| Remove a building in the scope state | | Remove a building in the scope state | ||
| | |||
| remove_building = building_key | | remove_building = building_key | ||
| | | | ||
第1,574行: | 第1,740行: | ||
| set_state_owner | | set_state_owner | ||
| Set State Owner | | Set State Owner | ||
| | |||
| set_state_owner = scope | | set_state_owner = scope | ||
| | | | ||
第1,582行: | 第1,749行: | ||
| set_state_type | | set_state_type | ||
| Sets a state to a certain type (incorporated, unincorporated, treaty_port) | | Sets a state to a certain type (incorporated, unincorporated, treaty_port) | ||
| | |||
| | | | ||
| | | | ||
第1,590行: | 第1,758行: | ||
| start_building_construction | | start_building_construction | ||
| Start constructing a building in a scoped state | | Start constructing a building in a scoped state | ||
| | |||
| start_building_construction = building_barracks | | start_building_construction = building_barracks | ||
| | | | ||
第1,598行: | 第1,767行: | ||
| add_arable_land | | add_arable_land | ||
| Add/remove arable land from a state region | | Add/remove arable land from a state region | ||
| | |||
| | | | ||
| | | | ||
第1,606行: | 第1,776行: | ||
| add_claim | | add_claim | ||
| Adds scoped state region as a claim for target country | | Adds scoped state region as a claim for target country | ||
| | |||
| add_claim = scope/country | | add_claim = scope/country | ||
| | | | ||
第1,614行: | 第1,785行: | ||
| add_devastation | | add_devastation | ||
| Add/remove devastation from a state region | | Add/remove devastation from a state region | ||
| | |||
| | | | ||
| | | | ||
第1,622行: | 第1,794行: | ||
| add_homeland | | add_homeland | ||
| Adds scoped state region as Homeland for target culture | | Adds scoped state region as Homeland for target culture | ||
| | |||
| add_homeland = scope/culture | | add_homeland = scope/culture | ||
| | | | ||
第1,630行: | 第1,803行: | ||
| add_pollution | | add_pollution | ||
| Increase/decrease pollution level in a scoped state region | | Increase/decrease pollution level in a scoped state region | ||
| | |||
| add_pollution = 10 | | add_pollution = 10 | ||
| | | | ||
第1,638行: | 第1,812行: | ||
| create_state | | create_state | ||
| creates a state in a state region | | creates a state in a state region | ||
| | |||
| | | | ||
| | | | ||
第1,646行: | 第1,821行: | ||
| remove_claim | | remove_claim | ||
| Removes scoped state region as a claim for target country | | Removes scoped state region as a claim for target country | ||
| | |||
| add_claim = scope/country | | add_claim = scope/country | ||
| | | | ||
第1,654行: | 第1,830行: | ||
| remove_homeland | | remove_homeland | ||
| Removes scoped state region as Homeland for target culture | | Removes scoped state region as Homeland for target culture | ||
| | |||
| add_homeland = scope/culture | | add_homeland = scope/culture | ||
| | | | ||
第1,662行: | 第1,839行: | ||
| set_devastation | | set_devastation | ||
| Set devastation to a state region | | Set devastation to a state region | ||
| | |||
| | | | ||
| | | | ||
第1,670行: | 第1,848行: | ||
| set_owner_of_provinces | | set_owner_of_provinces | ||
| Gives a set of provinces in a state region to a specific country | | Gives a set of provinces in a state region to a specific country | ||
| | |||
| set_owner_of_provinces = { country = <scope> provinces = {} } | | set_owner_of_provinces = { country = <scope> provinces = {} } | ||
| | | | ||
第1,678行: | 第1,857行: | ||
| set_target_technology | | set_target_technology | ||
| Sets a (new) target technology scope for a journal entry | | Sets a (new) target technology scope for a journal entry | ||
| | |||
| set_target_technology = <scope> | | set_target_technology = <scope> | ||
| | | | ||
第1,686行: | 第1,866行: | ||
| activate_law | | activate_law | ||
| Activates a law for a country | | Activates a law for a country | ||
| | |||
| | | | ||
| | | | ||
第1,694行: | 第1,875行: | ||
| add_banned_goods | | add_banned_goods | ||
| Adds a total ban of a good to a country | | Adds a total ban of a good to a country | ||
| | |||
| add_banned_goods = <goods key/scope> | | add_banned_goods = <goods key/scope> | ||
| | | | ||
第1,702行: | 第1,884行: | ||
| add_change_relations_progress | | add_change_relations_progress | ||
| Add progress towards changing relations between two countries | | Add progress towards changing relations between two countries | ||
| | |||
| add_change_relations_progress = { | | add_change_relations_progress = { | ||
tcountry = country scope/tag | tcountry = country scope/tag | ||
第1,713行: | 第1,896行: | ||
| add_declared_interest | | add_declared_interest | ||
| Will create a declared interest in the target strategic region | | Will create a declared interest in the target strategic region | ||
| | |||
| c:FRA = { add_declared_interest = region_nile_basin } | | c:FRA = { add_declared_interest = region_nile_basin } | ||
| | | | ||
第1,721行: | 第1,905行: | ||
| add_enactment_modifier | | add_enactment_modifier | ||
| Adds an enactment-related timed modifier effect to object in scope | | Adds an enactment-related timed modifier effect to object in scope | ||
| | |||
| | | | ||
| | | | ||
第1,729行: | 第1,914行: | ||
| add_era_researched | | add_era_researched | ||
| Add specified era as researched in a country scope | | Add specified era as researched in a country scope | ||
| | |||
| add_era_researched = era | | add_era_researched = era | ||
| | | | ||
第1,737行: | 第1,923行: | ||
| add_investment_pool | | add_investment_pool | ||
| Directly adds money to the investment pool | | Directly adds money to the investment pool | ||
| | |||
| add_investment_pool = 50 | | add_investment_pool = 50 | ||
| | | | ||
第1,745行: | 第1,932行: | ||
| add_law_progress | | add_law_progress | ||
| Adds x% progress to the current checkpoint of the law being passed (range is [0, 1], 0.1 means 10 percentage points) | | Adds x% progress to the current checkpoint of the law being passed (range is [0, 1], 0.1 means 10 percentage points) | ||
| | |||
| add_law_progress = 0.1 / -0.1 | | add_law_progress = 0.1 / -0.1 | ||
| | | | ||
第1,753行: | 第1,941行: | ||
| add_primary_culture | | add_primary_culture | ||
| Adds a culture to the primary cultures of a country | | Adds a culture to the primary cultures of a country | ||
| | |||
| add_primary_culture = X | | add_primary_culture = X | ||
Where X is a culture scope | Where X is a culture scope | ||
第1,762行: | 第1,951行: | ||
| add_taxed_goods | | add_taxed_goods | ||
| Adds consumption taxes on a good to a country | | Adds consumption taxes on a good to a country | ||
| | |||
| add_taxed_goods = <goods key/scope> | | add_taxed_goods = <goods key/scope> | ||
| | | | ||
第1,770行: | 第1,960行: | ||
| add_technology_progress | | add_technology_progress | ||
| Add technology progress | | Add technology progress | ||
| | |||
| add_technology_progress = { progress = X technology = Y } | | add_technology_progress = { progress = X technology = Y } | ||
Where X is a fixed point and Y is an technology | Where X is a fixed point and Y is an technology | ||
第1,779行: | 第1,970行: | ||
| add_technology_researched | | add_technology_researched | ||
| Research the specified technology in a country scope | | Research the specified technology in a country scope | ||
| | |||
| add_technology_researched = technology | | add_technology_researched = technology | ||
| | | | ||
第1,787行: | 第1,979行: | ||
| add_treasury | | add_treasury | ||
| Add/remove money from a country | | Add/remove money from a country | ||
| | |||
| add_treasury = fixed point | | add_treasury = fixed point | ||
| | | | ||
第1,795行: | 第1,988行: | ||
| annex | | annex | ||
| Annexes a country | | Annexes a country | ||
| | |||
| annex = scope | | annex = scope | ||
| | | | ||
第1,803行: | 第1,997行: | ||
| call_election | | call_election | ||
| Sets the next election date for country in N months | | Sets the next election date for country in N months | ||
| | |||
| call_election = { | | call_election = { | ||
months = 6 | months = 6 | ||
第1,813行: | 第2,008行: | ||
| change_institution_investment_level | | change_institution_investment_level | ||
| Add/remove the investment level for the institution | | Add/remove the investment level for the institution | ||
| | |||
| change_institution_investment_level = { | | change_institution_investment_level = { | ||
institution = institution_police | institution = institution_police | ||
第1,824行: | 第2,020行: | ||
| change_relations | | change_relations | ||
| Change relations between two countries | | Change relations between two countries | ||
| | |||
| change_relations = { | | change_relations = { | ||
tcountry = country scope/tag | tcountry = country scope/tag | ||
第1,835行: | 第2,032行: | ||
| change_subject_type | | change_subject_type | ||
| Will change the subject type of the country that is the current scope. | | Will change the subject type of the country that is the current scope. | ||
| | |||
| change_subject_type = subject_type_dominion | | change_subject_type = subject_type_dominion | ||
| | | | ||
第1,843行: | 第2,041行: | ||
| change_tag | | change_tag | ||
| Change the tag for the scoped country | | Change the tag for the scoped country | ||
| | |||
| c:GBR = { change_tag = FRA } | | c:GBR = { change_tag = FRA } | ||
| | | | ||
第1,851行: | 第2,050行: | ||
| change_tension | | change_tension | ||
| Change tension between two countries | | Change tension between two countries | ||
| | |||
| change_tension = { | | change_tension = { | ||
tcountry = country scope/tag | tcountry = country scope/tag | ||
第1,862行: | 第2,062行: | ||
| clear_debt | | clear_debt | ||
| Clear country loans = bool | | Clear country loans = bool | ||
| | |||
| | | | ||
| | | | ||
第1,870行: | 第2,071行: | ||
| clear_scaled_debt | | clear_scaled_debt | ||
| Clears an amount of debt equal to the defined multiplier on target's max credit | | Clears an amount of debt equal to the defined multiplier on target's max credit | ||
| | |||
| clear_scaled_debt = value | | clear_scaled_debt = value | ||
| | | | ||
第1,878行: | 第2,080行: | ||
| complete_objective_subgoal | | complete_objective_subgoal | ||
| Completes an objective subgoal | | Completes an objective subgoal | ||
| | |||
| complete_objective_subgoal = <key> | | complete_objective_subgoal = <key> | ||
| | | | ||
第1,886行: | 第2,089行: | ||
| create_character | | create_character | ||
| Creates a character, any option can be omitted. | | Creates a character, any option can be omitted. | ||
| | |||
| create_character = { | | create_character = { | ||
name = loc_key or alternatively first_name and last_name separately | name = loc_key or alternatively first_name and last_name separately | ||
第1,907行: | 第2,111行: | ||
| create_diplomatic_pact | | create_diplomatic_pact | ||
| Create a diplomatic pact between two countries, with scope country as initiator | | Create a diplomatic pact between two countries, with scope country as initiator | ||
| | |||
| create_diplomatic_pact = { | | create_diplomatic_pact = { | ||
tcountry = country scope/tag | tcountry = country scope/tag | ||
第1,918行: | 第2,123行: | ||
| create_diplomatic_play | | create_diplomatic_play | ||
| Create a diplomatic play with the scoped object as target | | Create a diplomatic play with the scoped object as target | ||
| | |||
| create_diplomatic_play = { | | create_diplomatic_play = { | ||
name = loc_key | name = loc_key | ||
第1,935行: | 第2,141行: | ||
| create_incident | | create_incident | ||
| Creates a diplomatic incident that generates infamy, with target country as the victim | | Creates a diplomatic incident that generates infamy, with target country as the victim | ||
| | |||
| create_incident = { | | create_incident = { | ||
tcountry = country scope/tag | tcountry = country scope/tag | ||
第1,946行: | 第2,153行: | ||
| create_trade_route | | create_trade_route | ||
| Creates a new Trade Route | | Creates a new Trade Route | ||
| | |||
| trade_route = { | | trade_route = { | ||
goods = x | goods = x | ||
第1,960行: | 第2,168行: | ||
| create_truce | | create_truce | ||
| Create a truce betweeen two countries | | Create a truce betweeen two countries | ||
| | |||
| create_truce = { | | create_truce = { | ||
tcountry = country scope/tag | tcountry = country scope/tag | ||
第1,971行: | 第2,180行: | ||
| deactivate_law | | deactivate_law | ||
| Deactivates a law for a country | | Deactivates a law for a country | ||
| | |||
| | | | ||
| | | | ||
第1,979行: | 第2,189行: | ||
| deactivate_parties | | deactivate_parties | ||
| Deactivates parties in scoped country. | | Deactivates parties in scoped country. | ||
| | |||
| deactivate_parties = yes | | deactivate_parties = yes | ||
| | | | ||
第1,987行: | 第2,198行: | ||
| end_truce | | end_truce | ||
| Ends a truce betweeen two countries | | Ends a truce betweeen two countries | ||
| | |||
| end_truce = { | | end_truce = { | ||
tcountry = country scope/tag | tcountry = country scope/tag | ||
第1,998行: | 第2,210行: | ||
| every_active_party | | every_active_party | ||
| Iterate through all active political parties in a country | | Iterate through all active political parties in a country | ||
| | |||
| every_active_party = { limit = { <triggers> } <effects> } | | every_active_party = { limit = { <triggers> } <effects> } | ||
| | | | ||
第2,006行: | 第2,219行: | ||
| every_civil_war | | every_civil_war | ||
| Iterate through all civil wars related to the scoped country | | Iterate through all civil wars related to the scoped country | ||
| | |||
| every_civil_war = { limit = { <triggers> } <effects> } | | every_civil_war = { limit = { <triggers> } <effects> } | ||
| | | | ||
第2,014行: | 第2,228行: | ||
| every_in_hierarchy | | every_in_hierarchy | ||
| Any country in current hierarchy, including current | | Any country in current hierarchy, including current | ||
| | |||
| every_in_hierarchy = { limit = { <triggers> } <effects> } | | every_in_hierarchy = { limit = { <triggers> } <effects> } | ||
| | | | ||
第2,022行: | 第2,237行: | ||
| every_law | | every_law | ||
| Iterate through all laws in a country | | Iterate through all laws in a country | ||
| | |||
| every_law = { limit = { <triggers> } <effects> } | | every_law = { limit = { <triggers> } <effects> } | ||
| | | | ||
第2,030行: | 第2,246行: | ||
| every_overlord_or_above | | every_overlord_or_above | ||
| Any country above current in hierarchy | | Any country above current in hierarchy | ||
| | |||
| every_overlord_or_above = { limit = { <triggers> } <effects> } | | every_overlord_or_above = { limit = { <triggers> } <effects> } | ||
| | | | ||
第2,038行: | 第2,255行: | ||
| every_political_movement | | every_political_movement | ||
| Iterate through all political movements in a country | | Iterate through all political movements in a country | ||
| | |||
| every_political_movement = { limit = { <triggers> } <effects> } | | every_political_movement = { limit = { <triggers> } <effects> } | ||
| | | | ||
第2,046行: | 第2,264行: | ||
| every_potential_party | | every_potential_party | ||
| Iterate through all potential political parties in a country | | Iterate through all potential political parties in a country | ||
| | |||
| every_potential_party = { limit = { <triggers> } <effects> } | | every_potential_party = { limit = { <triggers> } <effects> } | ||
| | | | ||
第2,054行: | 第2,273行: | ||
| every_rival_country | | every_rival_country | ||
| Any country that is rival to the country in a scope | | Any country that is rival to the country in a scope | ||
| | |||
| every_rival_country = { limit = { <triggers> } <effects> } | | every_rival_country = { limit = { <triggers> } <effects> } | ||
| | | | ||
第2,062行: | 第2,282行: | ||
| every_scope_ally | | every_scope_ally | ||
| Iterate through all allies to a: country | | Iterate through all allies to a: country | ||
| | |||
| every_scope_ally = { limit = { <triggers> } <effects> } | | every_scope_ally = { limit = { <triggers> } <effects> } | ||
| | | | ||
第2,070行: | 第2,291行: | ||
| every_scope_cobelligerent | | every_scope_cobelligerent | ||
| Iterate through all co-belligerents to a: country | | Iterate through all co-belligerents to a: country | ||
| | |||
| every_scope_cobelligerent = { limit = { <triggers> } <effects> } | | every_scope_cobelligerent = { limit = { <triggers> } <effects> } | ||
| | | | ||
第2,078行: | 第2,300行: | ||
| every_scope_theater | | every_scope_theater | ||
| Iterate through all theaters in a: country | | Iterate through all theaters in a: country | ||
| | |||
| every_scope_theater = { limit = { <triggers> } <effects> } | | every_scope_theater = { limit = { <triggers> } <effects> } | ||
| | | | ||
第2,086行: | 第2,309行: | ||
| every_scope_violate_sovereignty_interested_parties | | every_scope_violate_sovereignty_interested_parties | ||
| Iterate through all countries that would be interested if country in scope has their sovereignty violated | | Iterate through all countries that would be interested if country in scope has their sovereignty violated | ||
| | |||
| every_scope_violate_sovereignty_interested_parties = { limit = { <triggers> } <effects> } | | every_scope_violate_sovereignty_interested_parties = { limit = { <triggers> } <effects> } | ||
| | | | ||
第2,094行: | 第2,318行: | ||
| every_scope_violate_sovereignty_wars | | every_scope_violate_sovereignty_wars | ||
| Iterate through all relevant wars if target country had their sovereignty violated by scoped country | | Iterate through all relevant wars if target country had their sovereignty violated by scoped country | ||
| | |||
| every_scope_violate_sovereignty_wars = { limit = { <triggers> } <effects> } | | every_scope_violate_sovereignty_wars = { limit = { <triggers> } <effects> } | ||
| | | | ||
第2,102行: | 第2,327行: | ||
| every_scope_war | | every_scope_war | ||
| Iterate through all wars related to the scope | | Iterate through all wars related to the scope | ||
| | |||
| every_scope_war = { limit = { <triggers> } <effects> } | | every_scope_war = { limit = { <triggers> } <effects> } | ||
| | | | ||
第2,110行: | 第2,336行: | ||
| every_subject_or_below | | every_subject_or_below | ||
| Any country below current in hierarchy | | Any country below current in hierarchy | ||
| | |||
| every_subject_or_below = { limit = { <triggers> } <effects> } | | every_subject_or_below = { limit = { <triggers> } <effects> } | ||
| | | | ||
第2,118行: | 第2,345行: | ||
| make_independent | | make_independent | ||
| Makes a country independent. | | Makes a country independent. | ||
| | |||
| make_independent = bool | | make_independent = bool | ||
| | | | ||
第2,126行: | 第2,354行: | ||
| ordered_active_party | | ordered_active_party | ||
| Iterate through all active political parties in a country | | Iterate through all active political parties in a country | ||
| | |||
| ordered_active_party = { | | ordered_active_party = { | ||
limit = { <triggers> } | limit = { <triggers> } | ||
第2,141行: | 第2,370行: | ||
| ordered_civil_war | | ordered_civil_war | ||
| Iterate through all civil wars related to the scoped country | | Iterate through all civil wars related to the scoped country | ||
| | |||
| ordered_civil_war = { | | ordered_civil_war = { | ||
limit = { <triggers> } | limit = { <triggers> } | ||
第2,156行: | 第2,386行: | ||
| ordered_in_hierarchy | | ordered_in_hierarchy | ||
| Any country in current hierarchy, including current | | Any country in current hierarchy, including current | ||
| | |||
| ordered_in_hierarchy = { | | ordered_in_hierarchy = { | ||
limit = { <triggers> } | limit = { <triggers> } | ||
第2,171行: | 第2,402行: | ||
| ordered_law | | ordered_law | ||
| Iterate through all laws in a country | | Iterate through all laws in a country | ||
| | |||
| ordered_law = { | | ordered_law = { | ||
limit = { <triggers> } | limit = { <triggers> } | ||
第2,186行: | 第2,418行: | ||
| ordered_overlord_or_above | | ordered_overlord_or_above | ||
| Any country above current in hierarchy | | Any country above current in hierarchy | ||
| | |||
| ordered_overlord_or_above = { | | ordered_overlord_or_above = { | ||
limit = { <triggers> } | limit = { <triggers> } | ||
第2,201行: | 第2,434行: | ||
| ordered_political_movement | | ordered_political_movement | ||
| Iterate through all political movements in a country | | Iterate through all political movements in a country | ||
| | |||
| ordered_political_movement = { | | ordered_political_movement = { | ||
limit = { <triggers> } | limit = { <triggers> } | ||
第2,216行: | 第2,450行: | ||
| ordered_potential_party | | ordered_potential_party | ||
| Iterate through all potential political parties in a country | | Iterate through all potential political parties in a country | ||
| | |||
| ordered_potential_party = { | | ordered_potential_party = { | ||
limit = { <triggers> } | limit = { <triggers> } | ||
第2,231行: | 第2,466行: | ||
| ordered_rival_country | | ordered_rival_country | ||
| Any country that is rival to the country in a scope | | Any country that is rival to the country in a scope | ||
| | |||
| ordered_rival_country = { | | ordered_rival_country = { | ||
limit = { <triggers> } | limit = { <triggers> } | ||
第2,246行: | 第2,482行: | ||
| ordered_scope_ally | | ordered_scope_ally | ||
| Iterate through all allies to a: country | | Iterate through all allies to a: country | ||
| | |||
| ordered_scope_ally = { | | ordered_scope_ally = { | ||
limit = { <triggers> } | limit = { <triggers> } | ||
第2,261行: | 第2,498行: | ||
| ordered_scope_cobelligerent | | ordered_scope_cobelligerent | ||
| Iterate through all co-belligerents to a: country | | Iterate through all co-belligerents to a: country | ||
| | |||
| ordered_scope_cobelligerent = { | | ordered_scope_cobelligerent = { | ||
limit = { <triggers> } | limit = { <triggers> } | ||
第2,276行: | 第2,514行: | ||
| ordered_scope_theater | | ordered_scope_theater | ||
| Iterate through all theaters in a: country | | Iterate through all theaters in a: country | ||
| | |||
| ordered_scope_theater = { | | ordered_scope_theater = { | ||
limit = { <triggers> } | limit = { <triggers> } | ||
第2,291行: | 第2,530行: | ||
| ordered_scope_violate_sovereignty_interested_parties | | ordered_scope_violate_sovereignty_interested_parties | ||
| Iterate through all countries that would be interested if country in scope has their sovereignty violated | | Iterate through all countries that would be interested if country in scope has their sovereignty violated | ||
| | |||
| ordered_scope_violate_sovereignty_interested_parties = { | | ordered_scope_violate_sovereignty_interested_parties = { | ||
limit = { <triggers> } | limit = { <triggers> } | ||
第2,306行: | 第2,546行: | ||
| ordered_scope_violate_sovereignty_wars | | ordered_scope_violate_sovereignty_wars | ||
| Iterate through all relevant wars if target country had their sovereignty violated by scoped country | | Iterate through all relevant wars if target country had their sovereignty violated by scoped country | ||
| | |||
| ordered_scope_violate_sovereignty_wars = { | | ordered_scope_violate_sovereignty_wars = { | ||
limit = { <triggers> } | limit = { <triggers> } | ||
第2,321行: | 第2,562行: | ||
| ordered_scope_war | | ordered_scope_war | ||
| Iterate through all wars related to the scope | | Iterate through all wars related to the scope | ||
| | |||
| ordered_scope_war = { | | ordered_scope_war = { | ||
limit = { <triggers> } | limit = { <triggers> } | ||
第2,336行: | 第2,578行: | ||
| ordered_subject_or_below | | ordered_subject_or_below | ||
| Any country below current in hierarchy | | Any country below current in hierarchy | ||
| | |||
| ordered_subject_or_below = { | | ordered_subject_or_below = { | ||
limit = { <triggers> } | limit = { <triggers> } | ||
第2,351行: | 第2,594行: | ||
| play_as | | play_as | ||
| Change which country scoped country's player will play as | | Change which country scoped country's player will play as | ||
| | |||
| play_as = <scope> | | play_as = <scope> | ||
| | | | ||
第2,359行: | 第2,603行: | ||
| random_active_party | | random_active_party | ||
| Iterate through all active political parties in a country | | Iterate through all active political parties in a country | ||
| | |||
| random_active_party = { limit = { <triggers> } (optional) weight = { mtth } <effects> } | | random_active_party = { limit = { <triggers> } (optional) weight = { mtth } <effects> } | ||
| | | | ||
第2,367行: | 第2,612行: | ||
| random_civil_war | | random_civil_war | ||
| Iterate through all civil wars related to the scoped country | | Iterate through all civil wars related to the scoped country | ||
| | |||
| random_civil_war = { limit = { <triggers> } (optional) weight = { mtth } <effects> } | | random_civil_war = { limit = { <triggers> } (optional) weight = { mtth } <effects> } | ||
| | | | ||
第2,375行: | 第2,621行: | ||
| random_in_hierarchy | | random_in_hierarchy | ||
| Any country in current hierarchy, including current | | Any country in current hierarchy, including current | ||
| | |||
| random_in_hierarchy = { limit = { <triggers> } (optional) weight = { mtth } <effects> } | | random_in_hierarchy = { limit = { <triggers> } (optional) weight = { mtth } <effects> } | ||
| | | | ||
第2,383行: | 第2,630行: | ||
| random_law | | random_law | ||
| Iterate through all laws in a country | | Iterate through all laws in a country | ||
| | |||
| random_law = { limit = { <triggers> } (optional) weight = { mtth } <effects> } | | random_law = { limit = { <triggers> } (optional) weight = { mtth } <effects> } | ||
| | | | ||
第2,391行: | 第2,639行: | ||
| random_overlord_or_above | | random_overlord_or_above | ||
| Any country above current in hierarchy | | Any country above current in hierarchy | ||
| | |||
| random_overlord_or_above = { limit = { <triggers> } (optional) weight = { mtth } <effects> } | | random_overlord_or_above = { limit = { <triggers> } (optional) weight = { mtth } <effects> } | ||
| | | | ||
第2,399行: | 第2,648行: | ||
| random_political_movement | | random_political_movement | ||
| Iterate through all political movements in a country | | Iterate through all political movements in a country | ||
| | |||
| random_political_movement = { limit = { <triggers> } (optional) weight = { mtth } <effects> } | | random_political_movement = { limit = { <triggers> } (optional) weight = { mtth } <effects> } | ||
| | | | ||
第2,407行: | 第2,657行: | ||
| random_potential_party | | random_potential_party | ||
| Iterate through all potential political parties in a country | | Iterate through all potential political parties in a country | ||
| | |||
| random_potential_party = { limit = { <triggers> } (optional) weight = { mtth } <effects> } | | random_potential_party = { limit = { <triggers> } (optional) weight = { mtth } <effects> } | ||
| | | | ||
第2,415行: | 第2,666行: | ||
| random_rival_country | | random_rival_country | ||
| Any country that is rival to the country in a scope | | Any country that is rival to the country in a scope | ||
| | |||
| random_rival_country = { limit = { <triggers> } (optional) weight = { mtth } <effects> } | | random_rival_country = { limit = { <triggers> } (optional) weight = { mtth } <effects> } | ||
| | | | ||
第2,423行: | 第2,675行: | ||
| random_scope_ally | | random_scope_ally | ||
| Iterate through all allies to a: country | | Iterate through all allies to a: country | ||
| | |||
| random_scope_ally = { limit = { <triggers> } (optional) weight = { mtth } <effects> } | | random_scope_ally = { limit = { <triggers> } (optional) weight = { mtth } <effects> } | ||
| | | | ||
第2,431行: | 第2,684行: | ||
| random_scope_cobelligerent | | random_scope_cobelligerent | ||
| Iterate through all co-belligerents to a: country | | Iterate through all co-belligerents to a: country | ||
| | |||
| random_scope_cobelligerent = { limit = { <triggers> } (optional) weight = { mtth } <effects> } | | random_scope_cobelligerent = { limit = { <triggers> } (optional) weight = { mtth } <effects> } | ||
| | | | ||
第2,439行: | 第2,693行: | ||
| random_scope_theater | | random_scope_theater | ||
| Iterate through all theaters in a: country | | Iterate through all theaters in a: country | ||
| | |||
| random_scope_theater = { limit = { <triggers> } (optional) weight = { mtth } <effects> } | | random_scope_theater = { limit = { <triggers> } (optional) weight = { mtth } <effects> } | ||
| | | | ||
第2,447行: | 第2,702行: | ||
| random_scope_violate_sovereignty_interested_parties | | random_scope_violate_sovereignty_interested_parties | ||
| Iterate through all countries that would be interested if country in scope has their sovereignty violated | | Iterate through all countries that would be interested if country in scope has their sovereignty violated | ||
| | |||
| random_scope_violate_sovereignty_interested_parties = { limit = { <triggers> } (optional) weight = { mtth } <effects> } | | random_scope_violate_sovereignty_interested_parties = { limit = { <triggers> } (optional) weight = { mtth } <effects> } | ||
| | | | ||
第2,455行: | 第2,711行: | ||
| random_scope_violate_sovereignty_wars | | random_scope_violate_sovereignty_wars | ||
| Iterate through all relevant wars if target country had their sovereignty violated by scoped country | | Iterate through all relevant wars if target country had their sovereignty violated by scoped country | ||
| | |||
| random_scope_violate_sovereignty_wars = { limit = { <triggers> } (optional) weight = { mtth } <effects> } | | random_scope_violate_sovereignty_wars = { limit = { <triggers> } (optional) weight = { mtth } <effects> } | ||
| | | | ||
第2,463行: | 第2,720行: | ||
| random_scope_war | | random_scope_war | ||
| Iterate through all wars related to the scope | | Iterate through all wars related to the scope | ||
| | |||
| random_scope_war = { limit = { <triggers> } (optional) weight = { mtth } <effects> } | | random_scope_war = { limit = { <triggers> } (optional) weight = { mtth } <effects> } | ||
| | | | ||
第2,471行: | 第2,729行: | ||
| random_subject_or_below | | random_subject_or_below | ||
| Any country below current in hierarchy | | Any country below current in hierarchy | ||
| | |||
| random_subject_or_below = { limit = { <triggers> } (optional) weight = { mtth } <effects> } | | random_subject_or_below = { limit = { <triggers> } (optional) weight = { mtth } <effects> } | ||
| | | | ||
第2,479行: | 第2,738行: | ||
| recalculate_pop_ig_support | | recalculate_pop_ig_support | ||
| Recalculates and updates a country's pop IG memberships = bool | | Recalculates and updates a country's pop IG memberships = bool | ||
| | |||
| | | | ||
| | | | ||
第2,487行: | 第2,747行: | ||
| remove_active_objective_subgoal | | remove_active_objective_subgoal | ||
| Removes an active objective subgoal | | Removes an active objective subgoal | ||
| | |||
| remove_active_objective_subgoal = <key> | | remove_active_objective_subgoal = <key> | ||
| | | | ||
第2,495行: | 第2,756行: | ||
| remove_banned_goods | | remove_banned_goods | ||
| Removes a total ban of a good from a country | | Removes a total ban of a good from a country | ||
| | |||
| remove_banned_goods = <goods key/scope> | | remove_banned_goods = <goods key/scope> | ||
| | | | ||
第2,503行: | 第2,765行: | ||
| remove_diplomatic_pact | | remove_diplomatic_pact | ||
| Removes a diplomatic pact between two countries, with scope country as initiator | | Removes a diplomatic pact between two countries, with scope country as initiator | ||
| | |||
| remove_diplomatic_pact = { | | remove_diplomatic_pact = { | ||
country = country scope/tag | country = country scope/tag | ||
第2,514行: | 第2,777行: | ||
| remove_enactment_modifier | | remove_enactment_modifier | ||
| Removes an enactment-related timed modifier effect to object in scope | | Removes an enactment-related timed modifier effect to object in scope | ||
| | |||
| | | | ||
| | | | ||
第2,522行: | 第2,786行: | ||
| remove_primary_culture | | remove_primary_culture | ||
| Removes a culture from the primary cultures of a country | | Removes a culture from the primary cultures of a country | ||
| | |||
| remove_primary_culture = X | | remove_primary_culture = X | ||
Where X is a culture scope | Where X is a culture scope | ||
第2,531行: | 第2,796行: | ||
| remove_taxed_goods | | remove_taxed_goods | ||
| Removes consumption taxes on a good from a country | | Removes consumption taxes on a good from a country | ||
| | |||
| remove_taxed_goods = <goods key/scope> | | remove_taxed_goods = <goods key/scope> | ||
| | | | ||
第2,539行: | 第2,805行: | ||
| set_capital | | set_capital | ||
| Set capital state in a country scope | | Set capital state in a country scope | ||
| | |||
| set_capital = X | | set_capital = X | ||
Where X is a state region | Where X is a state region | ||
第2,548行: | 第2,815行: | ||
| set_country_type | | set_country_type | ||
| Sets the type of country for a country, for history | | Sets the type of country for a country, for history | ||
| | |||
| | | | ||
| | | | ||
第2,556行: | 第2,824行: | ||
| set_diplomats_expelled | | set_diplomats_expelled | ||
| Set diplomats expelled = bool | | Set diplomats expelled = bool | ||
| | |||
| | | | ||
| | | | ||
第2,564行: | 第2,833行: | ||
| set_government_wage_level | | set_government_wage_level | ||
| Sets the government wage level of scoped country | | Sets the government wage level of scoped country | ||
| | |||
| set_government_wage_level = very_low/low/medium/high/very_high | | set_government_wage_level = very_low/low/medium/high/very_high | ||
| | | | ||
第2,572行: | 第2,842行: | ||
| set_institution_investment_level | | set_institution_investment_level | ||
| Sets the investment level for an institution | | Sets the investment level for an institution | ||
| | |||
| set_institution_investment_level = { institution = <key> level = x } | | set_institution_investment_level = { institution = <key> level = x } | ||
| | | | ||
第2,580行: | 第2,851行: | ||
| set_market_capital | | set_market_capital | ||
| Set market capital in a country scope | | Set market capital in a country scope | ||
| | |||
| set_market_capital = X | | set_market_capital = X | ||
Where X is a state region | Where X is a state region | ||
第2,589行: | 第2,861行: | ||
| set_military_wage_level | | set_military_wage_level | ||
| Sets the military wage level of scoped country | | Sets the military wage level of scoped country | ||
| | |||
| set_military_wage_level = very_low/low/medium/high/very_high | | set_military_wage_level = very_low/low/medium/high/very_high | ||
| | | | ||
第2,597行: | 第2,870行: | ||
| set_mutual_secret_goal | | set_mutual_secret_goal | ||
| Set mutual secret AI goal for scope country and target country | | Set mutual secret AI goal for scope country and target country | ||
| | |||
| set_mutual_secret_goal = { | | set_mutual_secret_goal = { | ||
tcountry = country scope/tag | tcountry = country scope/tag | ||
第2,608行: | 第2,882行: | ||
| set_next_election_date | | set_next_election_date | ||
| Set next election date for country | | Set next election date for country | ||
| | |||
| set_next_election_date = year.month.day | | set_next_election_date = year.month.day | ||
| | | | ||
第2,616行: | 第2,891行: | ||
| set_owes_obligation_to | | set_owes_obligation_to | ||
| Set whether a country owes another a obligation | | Set whether a country owes another a obligation | ||
| | |||
| set_owes_obligation = { | | set_owes_obligation = { | ||
country = country scope/tag | country = country scope/tag | ||
第2,627行: | 第2,903行: | ||
| set_relations | | set_relations | ||
| Set relations between two countries | | Set relations between two countries | ||
| | |||
| set_relations = { | | set_relations = { | ||
tcountry = country scope/tag | tcountry = country scope/tag | ||
第2,638行: | 第2,915行: | ||
| set_ruling_interest_groups | | set_ruling_interest_groups | ||
| Creates a government for the country in scope from a set of interest groups | | Creates a government for the country in scope from a set of interest groups | ||
| | |||
| set_ruling_interest_groups = { ig_tag1 ig_tag2 } | | set_ruling_interest_groups = { ig_tag1 ig_tag2 } | ||
| | | | ||
第2,646行: | 第2,924行: | ||
| set_secret_goal | | set_secret_goal | ||
| Set a secret AI goal for scope country towards another country | | Set a secret AI goal for scope country towards another country | ||
| | |||
| set_secret_goal = { | | set_secret_goal = { | ||
tcountry = country scope/tag | tcountry = country scope/tag | ||
第2,657行: | 第2,936行: | ||
| set_state_religion | | set_state_religion | ||
| Changes the state religion of the country to the specified religion | | Changes the state religion of the country to the specified religion | ||
| | |||
| set_state_religion = X | | set_state_religion = X | ||
Where X is a religion scope | Where X is a religion scope | ||
第2,666行: | 第2,946行: | ||
| set_strategy | | set_strategy | ||
| Set AI strategy for scope country | | Set AI strategy for scope country | ||
| | |||
| set_strategy = <key> | | set_strategy = <key> | ||
| | | | ||
第2,674行: | 第2,955行: | ||
| set_tariffs_export_priority | | set_tariffs_export_priority | ||
| Sets Export Prioritized tariffs for a good in scoped country | | Sets Export Prioritized tariffs for a good in scoped country | ||
| | |||
| set_tariffs_export_priority = <scope/key> | | set_tariffs_export_priority = <scope/key> | ||
| | | | ||
第2,682行: | 第2,964行: | ||
| set_tariffs_import_priority | | set_tariffs_import_priority | ||
| Sets Import Prioritized tariffs for a good in scoped country | | Sets Import Prioritized tariffs for a good in scoped country | ||
| | |||
| set_tariffs_import_priority = <scope/key> | | set_tariffs_import_priority = <scope/key> | ||
| | | | ||
第2,690行: | 第2,973行: | ||
| set_tariffs_no_priority | | set_tariffs_no_priority | ||
| Sets tariffs to have no import/export priority for a good in scoped country | | Sets tariffs to have no import/export priority for a good in scoped country | ||
| | |||
| set_tariffs_no_priority = <scope/key> | | set_tariffs_no_priority = <scope/key> | ||
| | | | ||
第2,698行: | 第2,982行: | ||
| set_tax_level | | set_tax_level | ||
| Sets the overall tax level of scoped country | | Sets the overall tax level of scoped country | ||
| | |||
| set_tax_level = very_low/low/medium/high/very_high | | set_tax_level = very_low/low/medium/high/very_high | ||
| | | | ||
第2,706行: | 第2,991行: | ||
| set_tension | | set_tension | ||
| Set tension between two countries | | Set tension between two countries | ||
| | |||
| set_tension = { | | set_tension = { | ||
tcountry = country scope/tag | tcountry = country scope/tag | ||
第2,717行: | 第3,003行: | ||
| start_research_random_technology | | start_research_random_technology | ||
| Scoped country starts research of any random technology they can | | Scoped country starts research of any random technology they can | ||
| | |||
| start_research_random_technology = yes | | start_research_random_technology = yes | ||
| | | | ||
第2,725行: | 第3,012行: | ||
| take_on_scaled_debt | | take_on_scaled_debt | ||
| Transfers an amount of debt equal to the defined multiplier on target's max credit | | Transfers an amount of debt equal to the defined multiplier on target's max credit | ||
| | |||
| take_on_scaled_debt = { | | take_on_scaled_debt = { | ||
who = <country> | who = <country> | ||
第2,736行: | 第3,024行: | ||
| update_party_support | | update_party_support | ||
| Updates party support in scoped country. | | Updates party support in scoped country. | ||
| | |||
| update_party_support = yes | | update_party_support = yes | ||
| | | | ||
第2,744行: | 第3,033行: | ||
| validate_subsidies | | validate_subsidies | ||
| Validates subsidies across a country's buildings. | | Validates subsidies across a country's buildings. | ||
| | |||
| validate_subsidies = bool | | validate_subsidies = bool | ||
| | | | ||
第2,752行: | 第3,042行: | ||
| violate_sovereignty_join | | violate_sovereignty_join | ||
| Target joins scoped war | | Target joins scoped war | ||
| | |||
| violate_sovereignty_accept = <country> | | violate_sovereignty_accept = <country> | ||
| | | | ||
第2,760行: | 第3,051行: | ||
| activate_production_method | | activate_production_method | ||
| Activates the named production method for buildings of a certain type in country/state | | Activates the named production method for buildings of a certain type in country/state | ||
| | |||
| | | | ||
| | | | ||
第2,768行: | 第3,060行: | ||
| add_loyalists | | add_loyalists | ||
| Adds loyalists to pops in state or country, all parameters except value are optional | | Adds loyalists to pops in state or country, all parameters except value are optional | ||
| | |||
| add_loyalists = { value = x pop_type = <key> strata = <key> culture = <scope/cu:key> religion = <scope/rel:key> } | | add_loyalists = { value = x pop_type = <key> strata = <key> culture = <scope/cu:key> religion = <scope/rel:key> } | ||
| | | | ||
第2,776行: | 第3,069行: | ||
| add_radicals | | add_radicals | ||
| Adds radicals to pops in state or country, all parameters except value are optional | | Adds radicals to pops in state or country, all parameters except value are optional | ||
| | |||
| add_radicals = { value = x pop_type = <key> strata = <key> culture = <scope/cu:key> religion = <scope/rel:key> } | | add_radicals = { value = x pop_type = <key> strata = <key> culture = <scope/cu:key> religion = <scope/rel:key> } | ||
| | | | ||
第2,784行: | 第3,078行: | ||
| every_scope_building | | every_scope_building | ||
| Iterate through all buildings in a: state, country | | Iterate through all buildings in a: state, country | ||
| | |||
| every_scope_building = { limit = { <triggers> } <effects> } | | every_scope_building = { limit = { <triggers> } <effects> } | ||
| | | | ||
第2,792行: | 第3,087行: | ||
| every_scope_culture | | every_scope_culture | ||
| Iterate through all cultures in the scope | | Iterate through all cultures in the scope | ||
| | |||
| every_scope_culture = { limit = { <triggers> } <effects> } | | every_scope_culture = { limit = { <triggers> } <effects> } | ||
| | | | ||
第2,800行: | 第3,096行: | ||
| ordered_scope_building | | ordered_scope_building | ||
| Iterate through all buildings in a: state, country | | Iterate through all buildings in a: state, country | ||
| | |||
| ordered_scope_building = { | | ordered_scope_building = { | ||
limit = { <triggers> } | limit = { <triggers> } | ||
第2,815行: | 第3,112行: | ||
| ordered_scope_culture | | ordered_scope_culture | ||
| Iterate through all cultures in the scope | | Iterate through all cultures in the scope | ||
| | |||
| ordered_scope_culture = { | | ordered_scope_culture = { | ||
limit = { <triggers> } | limit = { <triggers> } | ||
第2,830行: | 第3,128行: | ||
| random_scope_building | | random_scope_building | ||
| Iterate through all buildings in a: state, country | | Iterate through all buildings in a: state, country | ||
| | |||
| random_scope_building = { limit = { <triggers> } (optional) weight = { mtth } <effects> } | | random_scope_building = { limit = { <triggers> } (optional) weight = { mtth } <effects> } | ||
| | | | ||
第2,838行: | 第3,137行: | ||
| random_scope_culture | | random_scope_culture | ||
| Iterate through all cultures in the scope | | Iterate through all cultures in the scope | ||
| | |||
| random_scope_culture = { limit = { <triggers> } (optional) weight = { mtth } <effects> } | | random_scope_culture = { limit = { <triggers> } (optional) weight = { mtth } <effects> } | ||
| | | | ||
第2,846行: | 第3,146行: | ||
| add_pop_wealth | | add_pop_wealth | ||
| Adds the wealth of the pop | | Adds the wealth of the pop | ||
| | |||
| add_pop_wealth = { wealth_distribution = {...} update_loyalties = true/false } | | add_pop_wealth = { wealth_distribution = {...} update_loyalties = true/false } | ||
Where the distribution adding to wealth of the pop | Where the distribution adding to wealth of the pop | ||
第2,855行: | 第3,156行: | ||
| change_pop_culture | | change_pop_culture | ||
| Changes the culture of the scoped pop to a specified culture by a specified percentage | | Changes the culture of the scoped pop to a specified culture by a specified percentage | ||
| | |||
| change_pop_culture = { target = cu:spanish value = 0.33 } | | change_pop_culture = { target = cu:spanish value = 0.33 } | ||
| | | | ||
第2,863行: | 第3,165行: | ||
| change_pop_religion | | change_pop_religion | ||
| Changes the religion of the scoped pop to a specified religion by a specified percentage | | Changes the religion of the scoped pop to a specified religion by a specified percentage | ||
| | |||
| change_pop_religion = { target = rel:catholic value = 0.5 } | | change_pop_religion = { target = rel:catholic value = 0.5 } | ||
| | | | ||
第2,871行: | 第3,174行: | ||
| change_poptype | | change_poptype | ||
| Changes the type of the pop to the given type | | Changes the type of the pop to the given type | ||
| | |||
| | | | ||
| | | | ||
第2,879行: | 第3,183行: | ||
| move_pop | | move_pop | ||
| Moves the scoped pop to the specified state (they become unemployed) | | Moves the scoped pop to the specified state (they become unemployed) | ||
| | |||
| move_pop = s:STATE_TUSCANY.region_state:TUS | | move_pop = s:STATE_TUSCANY.region_state:TUS | ||
NOTE: VERY IMPORTANT! This effect _may_ change the pop type of the moved pop. This will happen under the following conditions: | NOTE: VERY IMPORTANT! This effect _may_ change the pop type of the moved pop. This will happen under the following conditions: | ||
第2,890行: | 第3,195行: | ||
| set_pop_literacy | | set_pop_literacy | ||
| Sets the literacy of the pop | | Sets the literacy of the pop | ||
| | |||
| set_pop_literacy = { literacy_rate = {...} } | | set_pop_literacy = { literacy_rate = {...} } | ||
Where the ratio is a script value computing the percentage of (workforce) pops that will be literate | Where the ratio is a script value computing the percentage of (workforce) pops that will be literate | ||
第2,899行: | 第3,205行: | ||
| set_pop_qualifications | | set_pop_qualifications | ||
| Sets the pop qualifications of the pop for the given type | | Sets the pop qualifications of the pop for the given type | ||
| | |||
| set_pop_qualifications = { pop_type = {} qualifications = {...} } | | set_pop_qualifications = { pop_type = {} qualifications = {...} } | ||
Where the qualifications is a script value computing the percentage of (workforce) pops that will have the qualifications | Where the qualifications is a script value computing the percentage of (workforce) pops that will have the qualifications | ||
第2,908行: | 第3,215行: | ||
| set_pop_wealth | | set_pop_wealth | ||
| Sets the wealth of the pop | | Sets the wealth of the pop | ||
| | |||
| set_pop_wealth = { wealth_distribution = {...} update_loyalties = true/false } | | set_pop_wealth = { wealth_distribution = {...} update_loyalties = true/false } | ||
Where wealth is a script values | Where wealth is a script values | ||
第2,917行: | 第3,225行: | ||
| add_diplomatic_play_war_support | | add_diplomatic_play_war_support | ||
| Adds war support to the target country in the scoped diplomatic play. The amount will appear under the 'situations' header in tooltips | | Adds war support to the target country in the scoped diplomatic play. The amount will appear under the 'situations' header in tooltips | ||
| | |||
| add_diplomatic_play_war_support = { target = country value = value } | | add_diplomatic_play_war_support = { target = country value = value } | ||
| | | | ||
第2,925行: | 第3,234行: | ||
| add_escalation | | add_escalation | ||
| Add escalation to a diplomatic play | | Add escalation to a diplomatic play | ||
| | |||
| add_escalation = integer | | add_escalation = integer | ||
| | | | ||
第2,933行: | 第3,243行: | ||
| add_initiator_backers | | add_initiator_backers | ||
| Add a tag/scope country to the initiator side of a diplomatic play | | Add a tag/scope country to the initiator side of a diplomatic play | ||
| | |||
| add_initiator_backers = { list of scopes/tags } | | add_initiator_backers = { list of scopes/tags } | ||
| | | | ||
第2,941行: | 第3,252行: | ||
| add_target_backers | | add_target_backers | ||
| Add a tag/scope country to the target side of a diplomatic play | | Add a tag/scope country to the target side of a diplomatic play | ||
| | |||
| add_target_backers = { list of scopes/tags } | | add_target_backers = { list of scopes/tags } | ||
| | | | ||
第2,949行: | 第3,261行: | ||
| add_war_goal | | add_war_goal | ||
| Adds a war goal to a DP. Same data read in as add_war_goal in create_diplomatic_play | | Adds a war goal to a DP. Same data read in as add_war_goal in create_diplomatic_play | ||
| | |||
| random_diplomatic_play = { add_war_goal = { holder = initiator type = secession } | | random_diplomatic_play = { add_war_goal = { holder = initiator type = secession } | ||
| | | | ||
第2,957行: | 第3,270行: | ||
| end_play | | end_play | ||
| End a diplomatic play | | End a diplomatic play | ||
| | |||
| end_play = bool | | end_play = bool | ||
| | | | ||
第2,965行: | 第3,279行: | ||
| every_scope_initiator_ally | | every_scope_initiator_ally | ||
| Iterate through all allies to an initiator in a: diplomatic play | | Iterate through all allies to an initiator in a: diplomatic play | ||
| | |||
| every_scope_initiator_ally = { limit = { <triggers> } <effects> } | | every_scope_initiator_ally = { limit = { <triggers> } <effects> } | ||
| | | | ||
第2,973行: | 第3,288行: | ||
| every_scope_play_involved | | every_scope_play_involved | ||
| Iterate through all involved in a: diplomatic play | | Iterate through all involved in a: diplomatic play | ||
| | |||
| every_scope_play_involved = { limit = { <triggers> } <effects> } | | every_scope_play_involved = { limit = { <triggers> } <effects> } | ||
| | | | ||
第2,981行: | 第3,297行: | ||
| every_scope_target_ally | | every_scope_target_ally | ||
| Iterate through all allies to a target in a: diplomatic play | | Iterate through all allies to a target in a: diplomatic play | ||
| | |||
| every_scope_target_ally = { limit = { <triggers> } <effects> } | | every_scope_target_ally = { limit = { <triggers> } <effects> } | ||
| | | | ||
第2,989行: | 第3,306行: | ||
| ordered_scope_initiator_ally | | ordered_scope_initiator_ally | ||
| Iterate through all allies to an initiator in a: diplomatic play | | Iterate through all allies to an initiator in a: diplomatic play | ||
| | |||
| ordered_scope_initiator_ally = { | | ordered_scope_initiator_ally = { | ||
limit = { <triggers> } | limit = { <triggers> } | ||
第3,004行: | 第3,322行: | ||
| ordered_scope_play_involved | | ordered_scope_play_involved | ||
| Iterate through all involved in a: diplomatic play | | Iterate through all involved in a: diplomatic play | ||
| | |||
| ordered_scope_play_involved = { | | ordered_scope_play_involved = { | ||
limit = { <triggers> } | limit = { <triggers> } | ||
第3,019行: | 第3,338行: | ||
| ordered_scope_target_ally | | ordered_scope_target_ally | ||
| Iterate through all allies to a target in a: diplomatic play | | Iterate through all allies to a target in a: diplomatic play | ||
| | |||
| ordered_scope_target_ally = { | | ordered_scope_target_ally = { | ||
limit = { <triggers> } | limit = { <triggers> } | ||
第3,034行: | 第3,354行: | ||
| random_scope_initiator_ally | | random_scope_initiator_ally | ||
| Iterate through all allies to an initiator in a: diplomatic play | | Iterate through all allies to an initiator in a: diplomatic play | ||
| | |||
| random_scope_initiator_ally = { limit = { <triggers> } (optional) weight = { mtth } <effects> } | | random_scope_initiator_ally = { limit = { <triggers> } (optional) weight = { mtth } <effects> } | ||
| | | | ||
第3,042行: | 第3,363行: | ||
| random_scope_play_involved | | random_scope_play_involved | ||
| Iterate through all involved in a: diplomatic play | | Iterate through all involved in a: diplomatic play | ||
| | |||
| random_scope_play_involved = { limit = { <triggers> } (optional) weight = { mtth } <effects> } | | random_scope_play_involved = { limit = { <triggers> } (optional) weight = { mtth } <effects> } | ||
| | | | ||
第3,050行: | 第3,372行: | ||
| random_scope_target_ally | | random_scope_target_ally | ||
| Iterate through all allies to a target in a: diplomatic play | | Iterate through all allies to a target in a: diplomatic play | ||
| | |||
| random_scope_target_ally = { limit = { <triggers> } (optional) weight = { mtth } <effects> } | | random_scope_target_ally = { limit = { <triggers> } (optional) weight = { mtth } <effects> } | ||
| | | | ||
第3,058行: | 第3,381行: | ||
| remove_initiator_backers | | remove_initiator_backers | ||
| Remove a tag/scope country from the initiator side of a diplomatic play | | Remove a tag/scope country from the initiator side of a diplomatic play | ||
| | |||
| remove_initiator_backers = { list of scopes/tags } | | remove_initiator_backers = { list of scopes/tags } | ||
| | | | ||
第3,066行: | 第3,390行: | ||
| remove_target_backers | | remove_target_backers | ||
| Remove a tag/scope country to the target side of a diplomatic play | | Remove a tag/scope country to the target side of a diplomatic play | ||
| | |||
| remove_target_backers = { list of scopes/tags } | | remove_target_backers = { list of scopes/tags } | ||
| | | | ||
第3,074行: | 第3,399行: | ||
| remove_war_goal | | remove_war_goal | ||
| Removes a war goal from a DP if there's at least one other war goal present. | | Removes a war goal from a DP if there's at least one other war goal present. | ||
| | |||
| any_diplomatic_play = { limit = { has_war_goal = return_state } remove_war_goal = { who = initiator war_goal = return_state } } | | any_diplomatic_play = { limit = { has_war_goal = return_state } remove_war_goal = { who = initiator war_goal = return_state } } | ||
| | | | ||
第3,082行: | 第3,408行: | ||
| resolve_play_for | | resolve_play_for | ||
| effect end diplo play for one side, with it gaining war goals | | effect end diplo play for one side, with it gaining war goals | ||
| | |||
| resolve_play_for = initiator | | resolve_play_for = initiator | ||
resolve_play_for = scope:custom_scoped_country | resolve_play_for = scope:custom_scoped_country | ||
第3,091行: | 第3,418行: | ||
| set_key | | set_key | ||
| Set name to a diplomatic play | | Set name to a diplomatic play | ||
| | |||
| set_key = loc_key | | set_key = loc_key | ||
| | | | ||
第3,099行: | 第3,427行: | ||
| set_war | | set_war | ||
| Set a diplomatic play to be a war | | Set a diplomatic play to be a war | ||
| | |||
| set_war = bool | | set_war = bool | ||
| | | | ||
第3,107行: | 第3,436行: | ||
| every_interest_group | | every_interest_group | ||
| Iterate through all interest groups in a country | | Iterate through all interest groups in a country | ||
| | |||
| every_interest_group = { limit = { <triggers> } <effects> } | | every_interest_group = { limit = { <triggers> } <effects> } | ||
| | | | ||
第3,115行: | 第3,445行: | ||
| every_member | | every_member | ||
| Iterate through all interest group members of a party | | Iterate through all interest group members of a party | ||
| | |||
| every_member = { limit = { <triggers> } <effects> } | | every_member = { limit = { <triggers> } <effects> } | ||
| | | | ||
第3,123行: | 第3,454行: | ||
| ordered_interest_group | | ordered_interest_group | ||
| Iterate through all interest groups in a country | | Iterate through all interest groups in a country | ||
| | |||
| ordered_interest_group = { | | ordered_interest_group = { | ||
limit = { <triggers> } | limit = { <triggers> } | ||
第3,138行: | 第3,470行: | ||
| ordered_member | | ordered_member | ||
| Iterate through all interest group members of a party | | Iterate through all interest group members of a party | ||
| | |||
| ordered_member = { | | ordered_member = { | ||
limit = { <triggers> } | limit = { <triggers> } | ||
第3,153行: | 第3,486行: | ||
| random_interest_group | | random_interest_group | ||
| Iterate through all interest groups in a country | | Iterate through all interest groups in a country | ||
| | |||
| random_interest_group = { limit = { <triggers> } (optional) weight = { mtth } <effects> } | | random_interest_group = { limit = { <triggers> } (optional) weight = { mtth } <effects> } | ||
| | | | ||
第3,161行: | 第3,495行: | ||
| random_member | | random_member | ||
| Iterate through all interest group members of a party | | Iterate through all interest group members of a party | ||
| | |||
| random_member = { limit = { <triggers> } (optional) weight = { mtth } <effects> } | | random_member = { limit = { <triggers> } (optional) weight = { mtth } <effects> } | ||
| | | | ||
第3,169行: | 第3,504行: | ||
| every_scope_admiral | | every_scope_admiral | ||
| Iterate through all admirals in a: country or interestgroup | | Iterate through all admirals in a: country or interestgroup | ||
| | |||
| every_scope_admiral = { limit = { <triggers> } <effects> } | | every_scope_admiral = { limit = { <triggers> } <effects> } | ||
| | | | ||
第3,177行: | 第3,513行: | ||
| every_scope_character | | every_scope_character | ||
| Iterate through all characters in a: country, interestgroup, or front | | Iterate through all characters in a: country, interestgroup, or front | ||
| | |||
| every_scope_character = { limit = { <triggers> } <effects> } | | every_scope_character = { limit = { <triggers> } <effects> } | ||
| | | | ||
第3,185行: | 第3,522行: | ||
| every_scope_general | | every_scope_general | ||
| Iterate through all generals in a: country, interestgroup, or front | | Iterate through all generals in a: country, interestgroup, or front | ||
| | |||
| every_scope_general = { limit = { <triggers> } <effects> } | | every_scope_general = { limit = { <triggers> } <effects> } | ||
| | | | ||
第3,193行: | 第3,531行: | ||
| every_scope_politician | | every_scope_politician | ||
| Iterate through all politicians in a: country or interestgroup | | Iterate through all politicians in a: country or interestgroup | ||
| | |||
| every_scope_politician = { limit = { <triggers> } <effects> } | | every_scope_politician = { limit = { <triggers> } <effects> } | ||
| | | | ||
第3,201行: | 第3,540行: | ||
| ordered_scope_admiral | | ordered_scope_admiral | ||
| Iterate through all admirals in a: country or interestgroup | | Iterate through all admirals in a: country or interestgroup | ||
| | |||
| ordered_scope_admiral = { | | ordered_scope_admiral = { | ||
limit = { <triggers> } | limit = { <triggers> } | ||
第3,216行: | 第3,556行: | ||
| ordered_scope_character | | ordered_scope_character | ||
| Iterate through all characters in a: country, interestgroup, or front | | Iterate through all characters in a: country, interestgroup, or front | ||
| | |||
| ordered_scope_character = { | | ordered_scope_character = { | ||
limit = { <triggers> } | limit = { <triggers> } | ||
第3,231行: | 第3,572行: | ||
| ordered_scope_general | | ordered_scope_general | ||
| Iterate through all generals in a: country, interestgroup, or front | | Iterate through all generals in a: country, interestgroup, or front | ||
| | |||
| ordered_scope_general = { | | ordered_scope_general = { | ||
limit = { <triggers> } | limit = { <triggers> } | ||
第3,246行: | 第3,588行: | ||
| ordered_scope_politician | | ordered_scope_politician | ||
| Iterate through all politicians in a: country or interestgroup | | Iterate through all politicians in a: country or interestgroup | ||
| | |||
| ordered_scope_politician = { | | ordered_scope_politician = { | ||
limit = { <triggers> } | limit = { <triggers> } | ||
第3,261行: | 第3,604行: | ||
| random_scope_admiral | | random_scope_admiral | ||
| Iterate through all admirals in a: country or interestgroup | | Iterate through all admirals in a: country or interestgroup | ||
| | |||
| random_scope_admiral = { limit = { <triggers> } (optional) weight = { mtth } <effects> } | | random_scope_admiral = { limit = { <triggers> } (optional) weight = { mtth } <effects> } | ||
| | | | ||
第3,269行: | 第3,613行: | ||
| random_scope_character | | random_scope_character | ||
| Iterate through all characters in a: country, interestgroup, or front | | Iterate through all characters in a: country, interestgroup, or front | ||
| | |||
| random_scope_character = { limit = { <triggers> } (optional) weight = { mtth } <effects> } | | random_scope_character = { limit = { <triggers> } (optional) weight = { mtth } <effects> } | ||
| | | | ||
第3,277行: | 第3,622行: | ||
| random_scope_general | | random_scope_general | ||
| Iterate through all generals in a: country, interestgroup, or front | | Iterate through all generals in a: country, interestgroup, or front | ||
| | |||
| random_scope_general = { limit = { <triggers> } (optional) weight = { mtth } <effects> } | | random_scope_general = { limit = { <triggers> } (optional) weight = { mtth } <effects> } | ||
| | | | ||
第3,285行: | 第3,631行: | ||
| random_scope_politician | | random_scope_politician | ||
| Iterate through all politicians in a: country or interestgroup | | Iterate through all politicians in a: country or interestgroup | ||
| | |||
| random_scope_politician = { limit = { <triggers> } (optional) weight = { mtth } <effects> } | | random_scope_politician = { limit = { <triggers> } (optional) weight = { mtth } <effects> } | ||
| | | |
2023年9月5日 (二) 22:00的最新版本
该页面的全部或部分由计算机生成,需要更多的翻译或者格式对齐以完善。 如果你愿意,请 帮助完善该页面 。 |
Effects are actions the game engine executes that produce a certain result, depending on the effect and parameters of the effect choosen.
Name | Description | 描述 | Usage | Traits | Supported Scopes | Supported Targets |
---|---|---|---|---|---|---|
set_subsidized | Sets whether a building is subsidized | 设置建筑是否能受补贴。 | set_subsidized = yes/no | building | ||
add_civil_war_progress | Adds the specified number of percentage points to a civil war progress (range is [0, 1], 0.1 means 10 percentage points) | 增加指定百分比的内战进度(范围[0,1],0.1意味着10%) | add_civil_war_progress = 0.1 / -0.1 | civil_war | ||
add_war_exhaustion | Adds war exhaustion to the target country in the scoped war. The amount will appear under the 'situations' header in tooltips | 为目标国家作用域内战争增加厌战度,这个数值将会显示在“situations”条目中。 | add_war_exhaustion = { target = country value = value } | war | ||
add_war_war_support | Adds war support to the target country in the scoped war. The amount will appear under the 'situations' header in tooltips | 为目标国家作用域内战争增加战争支持度,这个数值将会显示在“situations”条目中。 | add_war_war_support = { target = country value = value } | war | ||
every_scope_front | Iterate through all Fronts related to the scoped War | 遍历作用域内战争的所有前线。 | every_scope_front = { limit = { <triggers> } <effects> } | war | front | |
ordered_scope_front | Iterate through all Fronts related to the scoped War | 遍历作用域内战争的所有前线。 | ordered_scope_front = {
limit = { <triggers> } order_by = script_value position = int min = int max = script_value check_range_bounds = no # If you don't want an error logged if the list is smaller than the min/max <effects> } |
war | front | |
random_scope_front | Iterate through all Fronts related to the scoped War | 遍历作用域内战争的所有前线。 | random_scope_front = { limit = { <triggers> } (optional) weight = { mtth } <effects> } | war | front | |
add_cultural_obsession | Adds a new obsession to the culture in scope | 为作用域内文化添加“痴迷”。 | add_cultural_obsession = X
Where X is a goods |
culture | ||
remove_cultural_obsession | Removes a new obsession to the culture in scope | 为作用域内文化移除“痴迷”。 | remove_cultural_obsession = X
Where X is a goods |
culture | ||
every_market_goods | Iterate through all active (market) goods in a market | 遍历市场中所有商品。 | every_market_goods = { limit = { <triggers> } <effects> } | market | market_goods | |
every_scope_country | Iterate through all countries with a presence in the supported scope (currently: only market scope) | 遍历支持的作用域内所有国家。(仅市场范围) | every_scope_country = { limit = { <triggers> } <effects> } | market | country | |
ordered_market_goods | Iterate through all active (market) goods in a market | 遍历市场中所有商品。 | ordered_market_goods = {
limit = { <triggers> } order_by = script_value position = int min = int max = script_value check_range_bounds = no # If you don't want an error logged if the list is smaller than the min/max <effects> } |
market | market_goods | |
ordered_scope_country | Iterate through all countries with a presence in the supported scope (currently: only market scope) | 遍历支持的作用域内所有国家。(仅市场范围) | ordered_scope_country = {
limit = { <triggers> } order_by = script_value position = int min = int max = script_value check_range_bounds = no # If you don't want an error logged if the list is smaller than the min/max <effects> } |
market | country | |
random_market_goods | Iterate through all active (market) goods in a market | 遍历市场中所有商品。 | random_market_goods = { limit = { <triggers> } (optional) weight = { mtth } <effects> } | market | market_goods | |
random_scope_country | Iterate through all countries with a presence in the supported scope (currently: only market scope) | 遍历支持的作用域内所有国家。(仅市场范围) | random_scope_country = { limit = { <triggers> } (optional) weight = { mtth } <effects> } | market | country | |
add_character_role | Adds a new role to a character | 为角色添加一个新职责。 | add_character_role = general | character | ||
add_commander_rank | Promotes/demotes a character a given amount of military ranks | 为角色提升/降低一定等级的军衔。 | character | |||
add_experience | Adds an amount of experience to a commander | 为指挥官增加一定的经验。 | add_experience = 0.2 | character | ||
add_random_trait | Adds a random qualifying Trait of the specified category | 增加特定类别的特质。 | add_random_trait = personality / skill / condition | character | ||
add_trait | Add a trait to a Character | 为角色添加特质。 | add_trait = trait | character | ||
change_character_religion | Changes the religion of the scoped character | 改变作用域内角色信仰 | change_character_religion = rel:protestant | character | religion | |
free_character_from_void | Frees a character from the void, if set to no character is deleted instead | 从void中释放一个角色,如果为“no”则会删除。 | free_character_from_void = yes | character | ||
kill_character | Kill a character | 删除角色。 | kill_character = bool | character | ||
place_character_in_void | Banishes a character to the void, duration is how long character is kept before being deleted | 将一个角色放到void中,持续时间(months)是角色被删除之前的保留时间。 | place_character_in_void = months | character | ||
remove_as_interest_group_leader | Removes a character from position as interest group leader | 让角色从利益集团领袖位置下台。 | remove_as_interest_group_leader = yes | character | ||
remove_trait | Remove a trait from a Character | 移除角色特质。 | remove_trait = trait | character | ||
set_as_interest_group_leader | Sets a character as interest group leader | 设置角色为利益集团领袖。 | set_as_interest_group_leader = yes | character | ||
set_character_busy | Mark a character as busy or clear said mark | 标记角色为“忙碌”或移除这个标记。 | set_character_busy = bool | character | ||
set_commander_rank | Promotes/demotes a character to a given military rank value | 将角色提升/降低到指定的军衔。 | set_commander_rank = 3 | character | ||
set_ideology | Changes scoped character's ideology | 改变作用域内角色意识形态。 | set_ideology = x | character | ||
transfer_character | Transfers a Character to Country | 将角色转移到其他国家。 | character | country | ||
add_modifier | Adds a timed modifier effect to object in scope | 为作用域中的对象添加定时的“modifier” | country, state, building, interest_group, character, institution, front, political_movement | |||
remove_modifier | Removes a timed modifier effect to object in scope | 为作用域中的对象移除定时的“modifier” | country, state, building, interest_group, character, institution, front, political_movement | |||
every_trade_route | Iterate through all trade routes in a: market, country, marketgoods | 遍历所有的贸易路线在:市场、国家、商品。 | every_trade_route = { limit = { <triggers> } <effects> } | country, market, market_goods | trade_route | |
ordered_trade_route | Iterate through all trade routes in a: market, country, marketgoods | 遍历所有的贸易路线在:市场、国家、商品。 | ordered_trade_route = {
limit = { <triggers> } order_by = script_value position = int min = int max = script_value check_range_bounds = no # If you don't want an error logged if the list is smaller than the min/max <effects> } |
country, market, market_goods | trade_route | |
random_trade_route | Iterate through all trade routes in a: market, country, marketgoods | 遍历所有的贸易路线在:市场、国家、商品。 | random_trade_route = { limit = { <triggers> } (optional) weight = { mtth } <effects> } | country, market, market_goods | trade_route | |
every_supporting_interest_group | Iterate through all interest groups supporting a political movement | 遍历所有支持政治运动的利益集团。 | every_supporting_interest_group = { limit = { <triggers> } <effects> } | political_movement | interest_group | |
ordered_supporting_interest_group | Iterate through all interest groups supporting a political movement | 遍历所有支持政治运动的利益集团。 | ordered_supporting_interest_group = {
limit = { <triggers> } order_by = script_value position = int min = int max = script_value check_range_bounds = no # If you don't want an error logged if the list is smaller than the min/max <effects> } |
political_movement | interest_group | |
random_supporting_interest_group | Iterate through all interest groups supporting a political movement | 遍历所有支持政治运动的利益集团。 | random_supporting_interest_group = { limit = { <triggers> } (optional) weight = { mtth } <effects> } | political_movement | interest_group | |
every_primary_culture | Primary cultures of the scoped country or country definition | 作用域内的国家(或写在definition的国家)的主要文化。 | every_primary_culture = { limit = { <triggers> } <effects> } | country, state, country_definition | culture | |
ordered_primary_culture | Primary cultures of the scoped country or country definition | 作用域内的国家(或写在definition的国家)的主要文化。 | ordered_primary_culture = {
limit = { <triggers> } order_by = script_value position = int min = int max = script_value check_range_bounds = no # If you don't want an error logged if the list is smaller than the min/max <effects> } |
country, state, country_definition | culture | |
random_primary_culture | Primary cultures of the scoped country or country definition | 作用域内的国家(或写在definition的国家)的主要文化。 | random_primary_culture = { limit = { <triggers> } (optional) weight = { mtth } <effects> } | country, state, country_definition | culture | |
abandon_revolution | Removes interest group from revolution | 从革命中移除利益集团。 | abandon_revolution = yes/no | interest_group | ||
add_ideology | Adds an ideology to scoped interest group | 为作用域内的利益集团添加意识形态。 | add_ideology = x | interest_group | ||
add_ruling_interest_group | Adds interest group to government | 将利益集团加进政府。 | add_ruling_interest_group = yes/no | interest_group | ||
join_revolution | Adds interest group to ongoing revolution | 为正在进行的革命添加利益集团。 | join_revolution = yes/no | interest_group | ||
remove_ideology | Removes an ideology from scoped interest group | 为作用域内的利益集团移除意识形态。 | remove_ideology = x | interest_group | ||
remove_ruling_interest_group | Removes interest group in scope from government | 将利益集团移出政府。 | remove_ruling_interest_group = yes/no | interest_group | ||
set_ig_bolstering | Starts/stops bolstering the interest group in scope | 开始/停止扶植作用域内利益集团。 | set_ig_bolstering = yes/no | interest_group | ||
set_ig_suppression | Starts/stops suppressing the interest group in scope | 开始/停止打压作用域内利益集团。 | set_ig_suppression = yes/no | interest_group | ||
set_interest_group_name | Renames interest group to the specified loc key | 利益集团重命名为特殊的本地翻译键。 | set_interest_group_name = x | interest_group | ||
every_scope_pop | Iterate through all pops in a: country, state, interest group, culture | 遍历所有的pops在:国家、地区、利益集团、文化。 | every_scope_pop = { limit = { <triggers> } <effects> } | country, culture, state, interest_group | pop | |
ordered_scope_pop | Iterate through all pops in a: country, state, interest group, culture | 遍历所有的pops在:国家、地区、利益集团、文化。 | ordered_scope_pop = {
limit = { <triggers> } order_by = script_value position = int min = int max = script_value check_range_bounds = no # If you don't want an error logged if the list is smaller than the min/max <effects> } |
country, culture, state, interest_group | pop | |
random_scope_pop | Iterate through all pops in a: country, state, interest group, culture | 遍历所有的pops在:国家、地区、利益集团、文化。 | random_scope_pop = { limit = { <triggers> } (optional) weight = { mtth } <effects> } | country, culture, state, interest_group | pop | |
every_combat_units | Iterate through all combat units of input scope | 遍历输入的作用域内所有作战单位。 | every_combat_units = { limit = { <triggers> } <effects> } | building, character | combat_unit | |
ordered_combat_units | Iterate through all combat units of input scope | 遍历输入的作用域内所有作战单位。 | ordered_combat_units = {
limit = { <triggers> } order_by = script_value position = int min = int max = script_value check_range_bounds = no # If you don't want an error logged if the list is smaller than the min/max <effects> } |
building, character | combat_unit | |
random_combat_units | Iterate through all combat units of input scope | 遍历输入的作用域内所有作战单位。 | random_combat_units = { limit = { <triggers> } (optional) weight = { mtth } <effects> } | building, character | combat_unit | |
lock_trade_route | Lock a trade route for a set amount of time, preventing it from being cancelled manually | 锁定贸易路线一段时间,防止其被手动取消。 | lock_trade_route = {
years = 5 } |
trade_route | ||
add_momentum | Adds momentum to a Party during a campaign period | 增加党派在竞选期间的“声势” | add_momentum = value | party | ||
every_scope_state | Iterate through all states including provinces from a: country, state_region, theater, or front | 遍历所有state从:国家、地域、战区、前线。 | every_scope_state = { limit = { <triggers> } <effects> } | country, strategic_region, state_region, theater, front | state | |
ordered_scope_state | Iterate through all states including provinces from a: country, state_region, theater, or front | 遍历所有state从:国家、地域、战区、前线。 | ordered_scope_state = {
limit = { <triggers> } order_by = script_value position = int min = int max = script_value check_range_bounds = no # If you don't want an error logged if the list is smaller than the min/max <effects> } |
country, strategic_region, state_region, theater, front | state | |
random_scope_state | Iterate through all states including provinces from a: country, state_region, theater, or front | 遍历所有state从:国家、地域、战区、前线。 | random_scope_state = { limit = { <triggers> } (optional) weight = { mtth } <effects> } | country, strategic_region, state_region, theater, front | state | |
every_neighbouring_state | Iterate through all states neighbouring a state region | 遍历一个相邻地域的所有state。 | every_neighbouring_state = { limit = { <triggers> } <effects> } | country, state, strategic_region, state_region | state | |
ordered_neighbouring_state | Iterate through all states neighbouring a state region | 遍历一个相邻地域的所有state。 | ordered_neighbouring_state = {
limit = { <triggers> } order_by = script_value position = int min = int max = script_value check_range_bounds = no # If you don't want an error logged if the list is smaller than the min/max <effects> } |
country, state, strategic_region, state_region | state | |
random_neighbouring_state | Iterate through all states neighbouring a state region | 遍历一个相邻地域的所有state。 | random_neighbouring_state = { limit = { <triggers> } (optional) weight = { mtth } <effects> } | country, state, strategic_region, state_region | state | |
every_scope_interest_marker | Iterate through all interest markers in a: country, strategic region | 遍历所有的利益集团标记在:国家、战略区域。 | every_scope_interest_marker = { limit = { <triggers> } <effects> } | country, strategic_region | interest_marker | |
ordered_scope_interest_marker | Iterate through all interest markers in a: country, strategic region | 遍历所有的利益集团标记在:国家、战略区域。 | ordered_scope_interest_marker = {
limit = { <triggers> } order_by = script_value position = int min = int max = script_value check_range_bounds = no # If you don't want an error logged if the list is smaller than the min/max <effects> } |
country, strategic_region | interest_marker | |
random_scope_interest_marker | Iterate through all interest markers in a: country, strategic region | 遍历所有的利益集团标记在:国家、战略区域。 | random_scope_interest_marker = { limit = { <triggers> } (optional) weight = { mtth } <effects> } | country, strategic_region | interest_marker | |
add_journal_entry | Adds a journal entry to a scoped country's journal, with optional saved scope target | 给作用域内所有国家添加日志条目,并且可选保存target。 | add_journal_entry = { type = <key> target = <scope> } | none | ||
add_to_global_variable_list | Adds the event target to a variable list | 将事件target添加到变量列表。 | add_to_variable_list = { name = X target = Y }
Where X is the name of the variable Where Y is an event target |
none | ||
add_to_list | Adds the current scope to an arbitrarily-named list (or creates the list if not already present) to be referenced later in the (unbroken) event chain | 将当前作用域添加到任意命名的列表中(如果列表不存在,则创建该列表),以便稍后在(未中断的)事件链中引用。 | add_to_list = <string> NOTE, if adding a permanent target to a temporary list, the whole list becomes permanent | none | ||
add_to_local_variable_list | Adds the event target to a variable list | 将事件target添加到变量列表。 | add_to_variable_list = { name = X target = Y }
Where X is the name of the variable Where Y is an event target |
none | ||
add_to_temporary_list | Adds the current scope to an arbitrarily-named list (or creates the list if not already present) to be referenced later in the same effect | 将当前作用域添加到任意命名的列表中(如果不存在则创建列表),以便稍后引用,效果相同。 | add_to_temporary_list = <string> NOTE, if adding a temporary target to a permanent list, the list will stay permanent | none | ||
add_to_variable_list | Adds the event target to a variable list | 将事件target添加到变量列表。 | add_to_variable_list = { name = X target = Y }
Where X is the name of the variable Where Y is an event target |
none | ||
assert_if | Conditionally cause an assert during run time | 在运行时有条件地引起assert。 | assert_if = { limit = { X } text = Y }, where X is a trigger and Y is an optional string | none | ||
assert_read | Conditionally cause an assert during read time | 在读取时有条件地引起assert。 | assert_read = X, where X is yes or the string to be printed in the assert | none | ||
change_global_variable | Changes the value or a numeric variable | 更改值或数值变量。 | change_variable = { name = X operation = Y }
Where X is the name of the numeric variable to modify Where the valid operations are add, subtract, multiply, divide and modulo Where Y is a fixed point value, script value or event target of a value type |
none | ||
change_infamy | Change infamy of scope country | 改变作用域内国家的恶名。 | change_infamy = amount | none | ||
change_local_variable | Changes the value or a numeric variable | 更改值或数值变量。 | change_variable = { name = X operation = Y }
Where X is the name of the numeric variable to modify Where the valid operations are add, subtract, multiply, divide and modulo Where Y is a fixed point value, script value or event target of a value type |
none | ||
change_variable | Changes the value or a numeric variable | 更改值或数值变量。 | change_variable = { name = X operation = Y }
Where X is the name of the numeric variable to modify Where the valid operations are add, subtract, multiply, divide and modulo Where Y is a fixed point value, script value or event target of a value type |
none | ||
clamp_global_variable | Clamps a variable the specified max and min | 将变量固定为指定的最大值和最小值。 | clamp_variable = { name = X max = Y min = Z }
Where X is the name of the variable Where Y and Z are script values |
none | ||
clamp_local_variable | Clamps a variable the specified max and min | 将变量固定为指定的最大值和最小值。 | clamp_variable = { name = X max = Y min = Z }
Where X is the name of the variable Where Y and Z are script values |
none | ||
clamp_variable | Clamps a variable the specified max and min | 将变量固定为指定的最大值和最小值。 | clamp_variable = { name = X max = Y min = Z }
Where X is the name of the variable Where Y and Z are script values |
none | ||
clear_global_variable_list | Empties the list | 清空列表。 | clear_variable_list = variable_name | none | ||
clear_local_variable_list | Empties the list | 清空列表。 | clear_variable_list = variable_name | none | ||
clear_saved_scope | Clears a saved scope from the top scope | 从顶部作用域中清除已保存的作用域。 | save_scope_as = cool_scope -> clear_saved_scope = cool_scope | none | ||
clear_variable_list | Empties the list | 清空列表。 | clear_variable_list = variable_name | none | ||
create_country | Creates a new country | 创建新国家。 | create_country = {
tag = TAG # optional, if not specified origin's tag will be used origin = country # optional, newly created country will inherit certain values from the origin country # at least one of tag or origin must be supplied state = state # can be repeated; at least one state or province must be supplied province = province # can be repeated; at least one state or province must be supplied # both states and provinces can be supplied at the same time on_created = effect # optional effect that will be run with the newly created country in scope } |
none | ||
custom_description | Wraps effects that get a custom description instead of the auto-generated one | 设置为自定义描述而不是自动生成的描述。 | custom_description = {
text = <effect_localization_key> subject = <optional subject scope> #defaults to current scope object = <optional object scope> value = <optional script value> ... effects ... } |
none | ||
custom_description_no_bullet | Wraps effects that get a custom description instead of the auto-generated one. Also ensures no bullet point appears | 设置为自定义描述而不是自动生成的描述,并且保证不会出现项目符号。 | custom_description_no_bullet = {
text = <effect_localization_key> subject = <optional subject scope> #defaults to current scope object = <optional object scope> value = <optional script value> ... effects ... } |
none | ||
custom_label | just a tooltip, the scope as object (for grouping, localization). Can also be written as custom_label = { text = key subject = scope (optional) <hidden effects> } | none | ||||
custom_tooltip | just a tooltip, the scope as subject (for grouping, localization). Can also be written as custom_tooltip = { text = key subject = scope (optional) <hidden effects> } | none | ||||
debug_log | Log a string to the debug log when this effect executes, debug_log = message, the message can be a localization string with ROOT, SCOPE and PREV available | none | ||||
debug_log_scopes | Log the current scope to the debug log when this effect executes yes = full scope info, no=only current scope | none | ||||
else | Executes enclosed effects if limit criteria of preceding 'if' or 'else_if' is not met | if = { limit = { <triggers> } <effects> }
else = { <effects> } |
none | |||
else_if | Executes enclosed effects if limit criteria of preceding 'if' or 'else_if' is not met, and its own limit is met | if = { limit = { <triggers> } <effects> }
else_if = { limit = { <triggers> } <effects> } |
none | |||
every_character | Iterate through all characters globally | every_character = { limit = { <triggers> } <effects> } | none | character | ||
every_character_in_void | Iterate through characters in the void | every_character_in_void = { limit = { <triggers> } <effects> } | none | character | ||
every_country | Iterate through all countries globally | every_country = { limit = { <triggers> } <effects> } | none | country | ||
every_diplomatic_play | Iterate through all diplomatic plays globally | every_diplomatic_play = { limit = { <triggers> } <effects> } | none | diplomatic_play | ||
every_in_global_list | Iterate through all items in global list. list = name or variable = name | every_in_global_list = { limit = { <triggers> } <effects> } | none | |||
every_in_list | Iterate through all items in list. list = name or variable = name | every_in_list = { limit = { <triggers> } <effects> } | none | |||
every_in_local_list | Iterate through all items in local list. list = name or variable = name | every_in_local_list = { limit = { <triggers> } <effects> } | none | |||
every_market | Iterate through all markets globally | every_market = { limit = { <triggers> } <effects> } | none | market | ||
every_state | Iterate through all states globally | every_state = { limit = { <triggers> } <effects> } | none | state | ||
every_state_region | Iterate through all state regions | every_state_region = { limit = { <triggers> } <effects> } | none | state_region | ||
hidden_effect | Effect not shown in tooltips | none | ||||
if | Executes enclosed effects if limit criteria are met | if = { limit = { <triggers> } <effects> } | none | |||
ordered_character | Iterate through all characters globally | ordered_character = {
limit = { <triggers> } order_by = script_value position = int min = int max = script_value check_range_bounds = no # If you don't want an error logged if the list is smaller than the min/max <effects> } |
none | character | ||
ordered_character_in_void | Iterate through characters in the void | ordered_character_in_void = {
limit = { <triggers> } order_by = script_value position = int min = int max = script_value check_range_bounds = no # If you don't want an error logged if the list is smaller than the min/max <effects> } |
none | character | ||
ordered_country | Iterate through all countries globally | ordered_country = {
limit = { <triggers> } order_by = script_value position = int min = int max = script_value check_range_bounds = no # If you don't want an error logged if the list is smaller than the min/max <effects> } |
none | country | ||
ordered_diplomatic_play | Iterate through all diplomatic plays globally | ordered_diplomatic_play = {
limit = { <triggers> } order_by = script_value position = int min = int max = script_value check_range_bounds = no # If you don't want an error logged if the list is smaller than the min/max <effects> } |
none | diplomatic_play | ||
ordered_in_global_list | Iterate through all items in global list. list = name or variable = name | ordered_in_global_list = {
limit = { <triggers> } order_by = script_value position = int min = int max = script_value check_range_bounds = no # If you don't want an error logged if the list is smaller than the min/max <effects> } |
none | |||
ordered_in_list | Iterate through all items in list. list = name or variable = name | ordered_in_list = {
limit = { <triggers> } order_by = script_value position = int min = int max = script_value check_range_bounds = no # If you don't want an error logged if the list is smaller than the min/max <effects> } |
none | |||
ordered_in_local_list | Iterate through all items in local list. list = name or variable = name | ordered_in_local_list = {
limit = { <triggers> } order_by = script_value position = int min = int max = script_value check_range_bounds = no # If you don't want an error logged if the list is smaller than the min/max <effects> } |
none | |||
ordered_market | Iterate through all markets globally | ordered_market = {
limit = { <triggers> } order_by = script_value position = int min = int max = script_value check_range_bounds = no # If you don't want an error logged if the list is smaller than the min/max <effects> } |
none | market | ||
ordered_state | Iterate through all states globally | ordered_state = {
limit = { <triggers> } order_by = script_value position = int min = int max = script_value check_range_bounds = no # If you don't want an error logged if the list is smaller than the min/max <effects> } |
none | state | ||
ordered_state_region | Iterate through all state regions | ordered_state_region = {
limit = { <triggers> } order_by = script_value position = int min = int max = script_value check_range_bounds = no # If you don't want an error logged if the list is smaller than the min/max <effects> } |
none | state_region | ||
post_notification | Posts notification | none | ||||
post_proposal | Posts proposal | none | ||||
random | a random effect, random = { chance = X modifier = Y effects... } | where X is a chance of the enclosed effects being fired and can be modified by optional value modifier list (AKA MTTH) Y | none | |||
random_character | Iterate through all characters globally | random_character = { limit = { <triggers> } (optional) weight = { mtth } <effects> } | none | character | ||
random_character_in_void | Iterate through characters in the void | random_character_in_void = { limit = { <triggers> } (optional) weight = { mtth } <effects> } | none | character | ||
random_country | Iterate through all countries globally | random_country = { limit = { <triggers> } (optional) weight = { mtth } <effects> } | none | country | ||
random_diplomatic_play | Iterate through all diplomatic plays globally | random_diplomatic_play = { limit = { <triggers> } (optional) weight = { mtth } <effects> } | none | diplomatic_play | ||
random_in_global_list | Iterate through all items in global list. list = name or variable = name | random_in_global_list = { limit = { <triggers> } (optional) weight = { mtth } <effects> } | none | |||
random_in_list | Iterate through all items in list. list = name or variable = name | random_in_list = { limit = { <triggers> } (optional) weight = { mtth } <effects> } | none | |||
random_in_local_list | Iterate through all items in local list. list = name or variable = name | random_in_local_list = { limit = { <triggers> } (optional) weight = { mtth } <effects> } | none | |||
random_list | a random list effect | random_list = { X1 = { trigger = { enables/disable this effect} modifier = Y1 effect1 } X2 = { trigger = { enables/disable this effect} modifier = Y2 effect2 } ... }
Selects one effect from the list and fires it. The effects are weighted by numbers X1, X2... (the higher the number, the higher the chance of the effect being picked). The chances can be modified by optional value modifier lists Y1, Y2... (AKA MTTH constructs) |
none | |||
random_log_scopes | Log the current scope to the random log when this effect executes. Only use temprorarily for debugging purposes as it can introduce localized strings into the Scopes._Random log. yes = full scope info, no=only current scope | none | ||||
random_market | Iterate through all markets globally | random_market = { limit = { <triggers> } (optional) weight = { mtth } <effects> } | none | market | ||
random_state | Iterate through all states globally | random_state = { limit = { <triggers> } (optional) weight = { mtth } <effects> } | none | state | ||
random_state_region | Iterate through all state regions | random_state_region = { limit = { <triggers> } (optional) weight = { mtth } <effects> } | none | state_region | ||
remove_from_list | Removes the current scope from a named list remove_from_list = <string> | none | ||||
remove_global_variable | Removes a variable | remove_variable = variable_name | none | |||
remove_list_global_variable | Removes the target from a variable list | remove_list_variable = { name = X target = Y }
Where X is the name of the variable Where Y is an event target |
none | |||
remove_list_local_variable | Removes the target from a variable list | remove_list_variable = { name = X target = Y }
Where X is the name of the variable Where Y is an event target |
none | |||
remove_list_variable | Removes the target from a variable list | remove_list_variable = { name = X target = Y }
Where X is the name of the variable Where Y is an event target |
none | |||
remove_local_variable | Removes a variable | remove_variable = variable_name | none | |||
remove_variable | Removes a variable | remove_variable = variable_name | none | |||
round_global_variable | Rounds a variable to the nearest specified value | clamp_variable = { name = X nearest = Y }
Where X is the name of the variable Where Y is a script value |
none | |||
round_local_variable | Rounds a variable to the nearest specified value | clamp_variable = { name = X nearest = Y }
Where X is the name of the variable Where Y is a script value |
none | |||
round_variable | Rounds a variable to the nearest specified value | clamp_variable = { name = X nearest = Y }
Where X is the name of the variable Where Y is a script value |
none | |||
save_scope_as | Saves the current scope as an arbitrarily-named target to be referenced later in the (unbroken) event chain | save_event_target_as = <string> | none | |||
save_scope_value_as | Saves a numerical or bool value as an arbitrarily-named target to be referenced later in the (unbroken) event chain | save_scope_value_as = { name = <string> value = x } | none | |||
save_temporary_scope_as | Saves the current scope as an arbitrarily-named temporary target to be referenced later in the same effect | save_temporary_event_target_as = <string> | none | |||
save_temporary_scope_value_as | Saves a numerical or bool value as an arbitrarily-named temporary target to be referenced later in the same effect | save_temporary_scope_value_as = { name = <string> value = x } | none | |||
set_global_variable | Sets a variable | set_variable = { name = X value = Y days = Z }
Where X is the name of the variable used to then access it Where Y is any event target, bool, value, script value or flag (flag:W) An optional days where Z is the number of days or script value This variable will be accessible with <type_>var:X. With type being in a scope object or in a top scope Can also be used as set_variable = X (equivalent to set_variable = { name = X value = yes }) |
none | |||
set_local_variable | Sets a variable | set_variable = { name = X value = Y days = Z }
Where X is the name of the variable used to then access it Where Y is any event target, bool, value, script value or flag (flag:W) An optional days where Z is the number of days or script value This variable will be accessible with <type_>var:X. With type being in a scope object or in a top scope Can also be used as set_variable = X (equivalent to set_variable = { name = X value = yes }) |
none | |||
set_variable | Sets a variable | set_variable = { name = X value = Y days = Z }
Where X is the name of the variable used to then access it Where Y is any event target, bool, value, script value or flag (flag:W) An optional days where Z is the number of days or script value This variable will be accessible with <type_>var:X. With type being in a scope object or in a top scope Can also be used as set_variable = X (equivalent to set_variable = { name = X value = yes }) |
none | |||
show_as_tooltip | Effect only shown in tooltips (but not executed) | none | ||||
start_tutorial_lesson | Starts the tutorial lesson with the given key. Does nothing if the tutorial is not running, the lesson is completed (or already running), or the lesson cannot be triggered (e.g. trigger fails) | none | ||||
switch | Switch on a trigger for the evaluation of another trigger with an optional fallback trigger. | switch = {
trigger = simple_assign_trigger case_1 = { <effects> } case_2 = { <effects> } case_n = { <effects> } fallback = { <effects> } |
none | |||
trigger_event | Triggers an event for the current scope | trigger_event = X
trigger_event = { id = X days/weeks/months/years = Y } Where X is an event ID and Y is an integer to delay the event by |
none | |||
while | Repeats enclosed effects while limit criteria are met or until set iteration count is reached | while = { limit = { <triggers> } <effects> }
while = { count = 3 <effects> } Default max of 1000. |
none | |||
activate_building | Activate a building in a state | activate_building = { building = building_key } | state | |||
add_culture_standard_of_living_modifier | Apply a standard of living modifier in the scoped state for the given culture. Other than the required culture argument, this effect has the same syntax as add_modifier. | state | ||||
add_religion_standard_of_living_modifier | Apply a standard of living modifier in the scoped state for the given religion. Other than the required religion argument, this effect has the same syntax as add_modifier. | state | ||||
convert_population | Changes X% of the different religion population to the specified religion. | convert_population = { target = rel:catholic value = 0.5 } | state | |||
create_building | Creates a building in the scoped state. Supported values are: | building = <building>
activate_production_methods = { <production_methods> } subsidized = yes/no reserves = [0..1] (percentage of cash reserves the building should be created with) level = arable_land/integer If level is "arable_land", the building will be of the necessary level to exhaust all available arable land in the state. If level is "urbanization", the building will be of the necessary level to exhaust all available urbanzation in the state. If level is an integer, the building will be of that level Please note: this effect works a little differently if there already is a building of the specified type in the state. If that happens: 1. the level will be the maximum between the scripted level and the level of the existing building 2. the cash reserves will be the maximum between the scripted value and the existing cash reserves |
state | |||
create_pop | Creates a pop in the scoped state | state | ||||
deactivate_building | Deactivate a building in a state | deactivate_building = { building = building_key } | state | |||
force_resource_depletion | Forces a resource depletion in state | force_resource_depletion = bg_gold_mining | state | |||
force_resource_discovery | Forces a resource discovery in state | force_resource_discovery = bg_gold_mining | state | |||
remove_building | Remove a building in the scope state | remove_building = building_key | state | |||
set_state_owner | Set State Owner | set_state_owner = scope | state | country | ||
set_state_type | Sets a state to a certain type (incorporated, unincorporated, treaty_port) | state | ||||
start_building_construction | Start constructing a building in a scoped state | start_building_construction = building_barracks | state | |||
add_arable_land | Add/remove arable land from a state region | state_region | ||||
add_claim | Adds scoped state region as a claim for target country | add_claim = scope/country | state_region | country | ||
add_devastation | Add/remove devastation from a state region | state_region | ||||
add_homeland | Adds scoped state region as Homeland for target culture | add_homeland = scope/culture | state_region | |||
add_pollution | Increase/decrease pollution level in a scoped state region | add_pollution = 10 | state_region | |||
create_state | creates a state in a state region | state_region | ||||
remove_claim | Removes scoped state region as a claim for target country | add_claim = scope/country | state_region | country | ||
remove_homeland | Removes scoped state region as Homeland for target culture | add_homeland = scope/culture | state_region | |||
set_devastation | Set devastation to a state region | state_region | ||||
set_owner_of_provinces | Gives a set of provinces in a state region to a specific country | set_owner_of_provinces = { country = <scope> provinces = {} } | state_region | |||
set_target_technology | Sets a (new) target technology scope for a journal entry | set_target_technology = <scope> | journalentry | |||
activate_law | Activates a law for a country | country | law_type | |||
add_banned_goods | Adds a total ban of a good to a country | add_banned_goods = <goods key/scope> | country | goods | ||
add_change_relations_progress | Add progress towards changing relations between two countries | add_change_relations_progress = {
tcountry = country scope/tag value = amount } |
country | |||
add_declared_interest | Will create a declared interest in the target strategic region | c:FRA = { add_declared_interest = region_nile_basin } | country | |||
add_enactment_modifier | Adds an enactment-related timed modifier effect to object in scope | country | ||||
add_era_researched | Add specified era as researched in a country scope | add_era_researched = era | country | |||
add_investment_pool | Directly adds money to the investment pool | add_investment_pool = 50 | country | |||
add_law_progress | Adds x% progress to the current checkpoint of the law being passed (range is [0, 1], 0.1 means 10 percentage points) | add_law_progress = 0.1 / -0.1 | country | |||
add_primary_culture | Adds a culture to the primary cultures of a country | add_primary_culture = X
Where X is a culture scope |
country | culture | ||
add_taxed_goods | Adds consumption taxes on a good to a country | add_taxed_goods = <goods key/scope> | country | goods | ||
add_technology_progress | Add technology progress | add_technology_progress = { progress = X technology = Y }
Where X is a fixed point and Y is an technology |
country | |||
add_technology_researched | Research the specified technology in a country scope | add_technology_researched = technology | country | |||
add_treasury | Add/remove money from a country | add_treasury = fixed point | country | |||
annex | Annexes a country | annex = scope | country | country | ||
call_election | Sets the next election date for country in N months | call_election = {
months = 6 } |
country | |||
change_institution_investment_level | Add/remove the investment level for the institution | change_institution_investment_level = {
institution = institution_police investment = -1 } |
country | |||
change_relations | Change relations between two countries | change_relations = {
tcountry = country scope/tag value = amount } |
country | |||
change_subject_type | Will change the subject type of the country that is the current scope. | change_subject_type = subject_type_dominion | country | |||
change_tag | Change the tag for the scoped country | c:GBR = { change_tag = FRA } | country | |||
change_tension | Change tension between two countries | change_tension = {
tcountry = country scope/tag value = amount } |
country | |||
clear_debt | Clear country loans = bool | country | ||||
clear_scaled_debt | Clears an amount of debt equal to the defined multiplier on target's max credit | clear_scaled_debt = value | country | |||
complete_objective_subgoal | Completes an objective subgoal | complete_objective_subgoal = <key> | country | |||
create_character | Creates a character, any option can be omitted. | create_character = {
name = loc_key or alternatively first_name and last_name separately culture = culture_tag religion = religion scope (if omitted, it's defined by the character's culture religion) female = bool or character scope (gets the same value from the character) noble = bool or character scope (gets the same value from the character) ruler = bool or character scope (gets the same value from the character) heir = bool age = integer, range, or character scope (gets the age from a character) ideology = ideology key or scope interest_group = interest group key or scope on_created = effect trait_generation = effect role = character scope (gets the role from a character) hq = HQ scope or strategic region scope } |
country | |||
create_diplomatic_pact | Create a diplomatic pact between two countries, with scope country as initiator | create_diplomatic_pact = {
tcountry = country scope/tag type = diplomatic action type } |
country | |||
create_diplomatic_play | Create a diplomatic play with the scoped object as target | create_diplomatic_play = {
name = loc_key escalation = integer between 0 and 100 war = bool initiator = country scope/tag type = diplomatic play type add_initiator_backers = { list of country scopes/tags } add_target_backers = { list of country scopes/tags } add_war_goal = { holder = country scope/tag, type = x, state = <state target>, country = <country target,> region = <region target> } } |
country | |||
create_incident | Creates a diplomatic incident that generates infamy, with target country as the victim | create_incident = {
tcountry = country scope/tag value = infamy amount } |
country | |||
create_trade_route | Creates a new Trade Route | trade_route = {
goods = x level = x import = yes/no origin = state_region target = state_region } |
country | |||
create_truce | Create a truce betweeen two countries | create_truce = {
tcountry = country scope/tag months = integer } |
country | |||
deactivate_law | Deactivates a law for a country | country | law_type | |||
deactivate_parties | Deactivates parties in scoped country. | deactivate_parties = yes | country | |||
end_truce | Ends a truce betweeen two countries | end_truce = {
tcountry = country scope/tag months = integer } |
country | |||
every_active_party | Iterate through all active political parties in a country | every_active_party = { limit = { <triggers> } <effects> } | country | party | ||
every_civil_war | Iterate through all civil wars related to the scoped country | every_civil_war = { limit = { <triggers> } <effects> } | country | civil_war | ||
every_in_hierarchy | Any country in current hierarchy, including current | every_in_hierarchy = { limit = { <triggers> } <effects> } | country | country | ||
every_law | Iterate through all laws in a country | every_law = { limit = { <triggers> } <effects> } | country | law | ||
every_overlord_or_above | Any country above current in hierarchy | every_overlord_or_above = { limit = { <triggers> } <effects> } | country | country | ||
every_political_movement | Iterate through all political movements in a country | every_political_movement = { limit = { <triggers> } <effects> } | country | political_movement | ||
every_potential_party | Iterate through all potential political parties in a country | every_potential_party = { limit = { <triggers> } <effects> } | country | party | ||
every_rival_country | Any country that is rival to the country in a scope | every_rival_country = { limit = { <triggers> } <effects> } | country | country | ||
every_scope_ally | Iterate through all allies to a: country | every_scope_ally = { limit = { <triggers> } <effects> } | country | country | ||
every_scope_cobelligerent | Iterate through all co-belligerents to a: country | every_scope_cobelligerent = { limit = { <triggers> } <effects> } | country | country | ||
every_scope_theater | Iterate through all theaters in a: country | every_scope_theater = { limit = { <triggers> } <effects> } | country | theater | ||
every_scope_violate_sovereignty_interested_parties | Iterate through all countries that would be interested if country in scope has their sovereignty violated | every_scope_violate_sovereignty_interested_parties = { limit = { <triggers> } <effects> } | country | country | ||
every_scope_violate_sovereignty_wars | Iterate through all relevant wars if target country had their sovereignty violated by scoped country | every_scope_violate_sovereignty_wars = { limit = { <triggers> } <effects> } | country | war | ||
every_scope_war | Iterate through all wars related to the scope | every_scope_war = { limit = { <triggers> } <effects> } | country | war | ||
every_subject_or_below | Any country below current in hierarchy | every_subject_or_below = { limit = { <triggers> } <effects> } | country | country | ||
make_independent | Makes a country independent. | make_independent = bool | country | |||
ordered_active_party | Iterate through all active political parties in a country | ordered_active_party = {
limit = { <triggers> } order_by = script_value position = int min = int max = script_value check_range_bounds = no # If you don't want an error logged if the list is smaller than the min/max <effects> } |
country | party | ||
ordered_civil_war | Iterate through all civil wars related to the scoped country | ordered_civil_war = {
limit = { <triggers> } order_by = script_value position = int min = int max = script_value check_range_bounds = no # If you don't want an error logged if the list is smaller than the min/max <effects> } |
country | civil_war | ||
ordered_in_hierarchy | Any country in current hierarchy, including current | ordered_in_hierarchy = {
limit = { <triggers> } order_by = script_value position = int min = int max = script_value check_range_bounds = no # If you don't want an error logged if the list is smaller than the min/max <effects> } |
country | country | ||
ordered_law | Iterate through all laws in a country | ordered_law = {
limit = { <triggers> } order_by = script_value position = int min = int max = script_value check_range_bounds = no # If you don't want an error logged if the list is smaller than the min/max <effects> } |
country | law | ||
ordered_overlord_or_above | Any country above current in hierarchy | ordered_overlord_or_above = {
limit = { <triggers> } order_by = script_value position = int min = int max = script_value check_range_bounds = no # If you don't want an error logged if the list is smaller than the min/max <effects> } |
country | country | ||
ordered_political_movement | Iterate through all political movements in a country | ordered_political_movement = {
limit = { <triggers> } order_by = script_value position = int min = int max = script_value check_range_bounds = no # If you don't want an error logged if the list is smaller than the min/max <effects> } |
country | political_movement | ||
ordered_potential_party | Iterate through all potential political parties in a country | ordered_potential_party = {
limit = { <triggers> } order_by = script_value position = int min = int max = script_value check_range_bounds = no # If you don't want an error logged if the list is smaller than the min/max <effects> } |
country | party | ||
ordered_rival_country | Any country that is rival to the country in a scope | ordered_rival_country = {
limit = { <triggers> } order_by = script_value position = int min = int max = script_value check_range_bounds = no # If you don't want an error logged if the list is smaller than the min/max <effects> } |
country | country | ||
ordered_scope_ally | Iterate through all allies to a: country | ordered_scope_ally = {
limit = { <triggers> } order_by = script_value position = int min = int max = script_value check_range_bounds = no # If you don't want an error logged if the list is smaller than the min/max <effects> } |
country | country | ||
ordered_scope_cobelligerent | Iterate through all co-belligerents to a: country | ordered_scope_cobelligerent = {
limit = { <triggers> } order_by = script_value position = int min = int max = script_value check_range_bounds = no # If you don't want an error logged if the list is smaller than the min/max <effects> } |
country | country | ||
ordered_scope_theater | Iterate through all theaters in a: country | ordered_scope_theater = {
limit = { <triggers> } order_by = script_value position = int min = int max = script_value check_range_bounds = no # If you don't want an error logged if the list is smaller than the min/max <effects> } |
country | theater | ||
ordered_scope_violate_sovereignty_interested_parties | Iterate through all countries that would be interested if country in scope has their sovereignty violated | ordered_scope_violate_sovereignty_interested_parties = {
limit = { <triggers> } order_by = script_value position = int min = int max = script_value check_range_bounds = no # If you don't want an error logged if the list is smaller than the min/max <effects> } |
country | country | ||
ordered_scope_violate_sovereignty_wars | Iterate through all relevant wars if target country had their sovereignty violated by scoped country | ordered_scope_violate_sovereignty_wars = {
limit = { <triggers> } order_by = script_value position = int min = int max = script_value check_range_bounds = no # If you don't want an error logged if the list is smaller than the min/max <effects> } |
country | war | ||
ordered_scope_war | Iterate through all wars related to the scope | ordered_scope_war = {
limit = { <triggers> } order_by = script_value position = int min = int max = script_value check_range_bounds = no # If you don't want an error logged if the list is smaller than the min/max <effects> } |
country | war | ||
ordered_subject_or_below | Any country below current in hierarchy | ordered_subject_or_below = {
limit = { <triggers> } order_by = script_value position = int min = int max = script_value check_range_bounds = no # If you don't want an error logged if the list is smaller than the min/max <effects> } |
country | country | ||
play_as | Change which country scoped country's player will play as | play_as = <scope> | country | country | ||
random_active_party | Iterate through all active political parties in a country | random_active_party = { limit = { <triggers> } (optional) weight = { mtth } <effects> } | country | party | ||
random_civil_war | Iterate through all civil wars related to the scoped country | random_civil_war = { limit = { <triggers> } (optional) weight = { mtth } <effects> } | country | civil_war | ||
random_in_hierarchy | Any country in current hierarchy, including current | random_in_hierarchy = { limit = { <triggers> } (optional) weight = { mtth } <effects> } | country | country | ||
random_law | Iterate through all laws in a country | random_law = { limit = { <triggers> } (optional) weight = { mtth } <effects> } | country | law | ||
random_overlord_or_above | Any country above current in hierarchy | random_overlord_or_above = { limit = { <triggers> } (optional) weight = { mtth } <effects> } | country | country | ||
random_political_movement | Iterate through all political movements in a country | random_political_movement = { limit = { <triggers> } (optional) weight = { mtth } <effects> } | country | political_movement | ||
random_potential_party | Iterate through all potential political parties in a country | random_potential_party = { limit = { <triggers> } (optional) weight = { mtth } <effects> } | country | party | ||
random_rival_country | Any country that is rival to the country in a scope | random_rival_country = { limit = { <triggers> } (optional) weight = { mtth } <effects> } | country | country | ||
random_scope_ally | Iterate through all allies to a: country | random_scope_ally = { limit = { <triggers> } (optional) weight = { mtth } <effects> } | country | country | ||
random_scope_cobelligerent | Iterate through all co-belligerents to a: country | random_scope_cobelligerent = { limit = { <triggers> } (optional) weight = { mtth } <effects> } | country | country | ||
random_scope_theater | Iterate through all theaters in a: country | random_scope_theater = { limit = { <triggers> } (optional) weight = { mtth } <effects> } | country | theater | ||
random_scope_violate_sovereignty_interested_parties | Iterate through all countries that would be interested if country in scope has their sovereignty violated | random_scope_violate_sovereignty_interested_parties = { limit = { <triggers> } (optional) weight = { mtth } <effects> } | country | country | ||
random_scope_violate_sovereignty_wars | Iterate through all relevant wars if target country had their sovereignty violated by scoped country | random_scope_violate_sovereignty_wars = { limit = { <triggers> } (optional) weight = { mtth } <effects> } | country | war | ||
random_scope_war | Iterate through all wars related to the scope | random_scope_war = { limit = { <triggers> } (optional) weight = { mtth } <effects> } | country | war | ||
random_subject_or_below | Any country below current in hierarchy | random_subject_or_below = { limit = { <triggers> } (optional) weight = { mtth } <effects> } | country | country | ||
recalculate_pop_ig_support | Recalculates and updates a country's pop IG memberships = bool | country | ||||
remove_active_objective_subgoal | Removes an active objective subgoal | remove_active_objective_subgoal = <key> | country | |||
remove_banned_goods | Removes a total ban of a good from a country | remove_banned_goods = <goods key/scope> | country | goods | ||
remove_diplomatic_pact | Removes a diplomatic pact between two countries, with scope country as initiator | remove_diplomatic_pact = {
country = country scope/tag type = diplomatic action type } |
country | |||
remove_enactment_modifier | Removes an enactment-related timed modifier effect to object in scope | country | ||||
remove_primary_culture | Removes a culture from the primary cultures of a country | remove_primary_culture = X
Where X is a culture scope |
country | culture | ||
remove_taxed_goods | Removes consumption taxes on a good from a country | remove_taxed_goods = <goods key/scope> | country | goods | ||
set_capital | Set capital state in a country scope | set_capital = X
Where X is a state region |
country | |||
set_country_type | Sets the type of country for a country, for history | country | ||||
set_diplomats_expelled | Set diplomats expelled = bool | country | country | |||
set_government_wage_level | Sets the government wage level of scoped country | set_government_wage_level = very_low/low/medium/high/very_high | country | |||
set_institution_investment_level | Sets the investment level for an institution | set_institution_investment_level = { institution = <key> level = x } | country | |||
set_market_capital | Set market capital in a country scope | set_market_capital = X
Where X is a state region |
country | |||
set_military_wage_level | Sets the military wage level of scoped country | set_military_wage_level = very_low/low/medium/high/very_high | country | |||
set_mutual_secret_goal | Set mutual secret AI goal for scope country and target country | set_mutual_secret_goal = {
tcountry = country scope/tag secret_goal = secret goal type } |
country | |||
set_next_election_date | Set next election date for country | set_next_election_date = year.month.day | country | |||
set_owes_obligation_to | Set whether a country owes another a obligation | set_owes_obligation = {
country = country scope/tag setting = yes/no } |
country | |||
set_relations | Set relations between two countries | set_relations = {
tcountry = country scope/tag value = amount } |
country | |||
set_ruling_interest_groups | Creates a government for the country in scope from a set of interest groups | set_ruling_interest_groups = { ig_tag1 ig_tag2 } | country | |||
set_secret_goal | Set a secret AI goal for scope country towards another country | set_secret_goal = {
tcountry = country scope/tag secret_goal = secret goal type } |
country | |||
set_state_religion | Changes the state religion of the country to the specified religion | set_state_religion = X
Where X is a religion scope |
country | religion | ||
set_strategy | Set AI strategy for scope country | set_strategy = <key> | country | |||
set_tariffs_export_priority | Sets Export Prioritized tariffs for a good in scoped country | set_tariffs_export_priority = <scope/key> | country | goods | ||
set_tariffs_import_priority | Sets Import Prioritized tariffs for a good in scoped country | set_tariffs_import_priority = <scope/key> | country | goods | ||
set_tariffs_no_priority | Sets tariffs to have no import/export priority for a good in scoped country | set_tariffs_no_priority = <scope/key> | country | goods | ||
set_tax_level | Sets the overall tax level of scoped country | set_tax_level = very_low/low/medium/high/very_high | country | |||
set_tension | Set tension between two countries | set_tension = {
tcountry = country scope/tag value = amount } |
country | |||
start_research_random_technology | Scoped country starts research of any random technology they can | start_research_random_technology = yes | country | |||
take_on_scaled_debt | Transfers an amount of debt equal to the defined multiplier on target's max credit | take_on_scaled_debt = {
who = <country> value = decimal value } |
country | |||
update_party_support | Updates party support in scoped country. | update_party_support = yes | country | |||
validate_subsidies | Validates subsidies across a country's buildings. | validate_subsidies = bool | country | |||
violate_sovereignty_join | Target joins scoped war | violate_sovereignty_accept = <country> | country | |||
activate_production_method | Activates the named production method for buildings of a certain type in country/state | country, state | ||||
add_loyalists | Adds loyalists to pops in state or country, all parameters except value are optional | add_loyalists = { value = x pop_type = <key> strata = <key> culture = <scope/cu:key> religion = <scope/rel:key> } | country, state | |||
add_radicals | Adds radicals to pops in state or country, all parameters except value are optional | add_radicals = { value = x pop_type = <key> strata = <key> culture = <scope/cu:key> religion = <scope/rel:key> } | country, state | |||
every_scope_building | Iterate through all buildings in a: state, country | every_scope_building = { limit = { <triggers> } <effects> } | country, state | building | ||
every_scope_culture | Iterate through all cultures in the scope | every_scope_culture = { limit = { <triggers> } <effects> } | country, state | culture | ||
ordered_scope_building | Iterate through all buildings in a: state, country | ordered_scope_building = {
limit = { <triggers> } order_by = script_value position = int min = int max = script_value check_range_bounds = no # If you don't want an error logged if the list is smaller than the min/max <effects> } |
country, state | building | ||
ordered_scope_culture | Iterate through all cultures in the scope | ordered_scope_culture = {
limit = { <triggers> } order_by = script_value position = int min = int max = script_value check_range_bounds = no # If you don't want an error logged if the list is smaller than the min/max <effects> } |
country, state | culture | ||
random_scope_building | Iterate through all buildings in a: state, country | random_scope_building = { limit = { <triggers> } (optional) weight = { mtth } <effects> } | country, state | building | ||
random_scope_culture | Iterate through all cultures in the scope | random_scope_culture = { limit = { <triggers> } (optional) weight = { mtth } <effects> } | country, state | culture | ||
add_pop_wealth | Adds the wealth of the pop | add_pop_wealth = { wealth_distribution = {...} update_loyalties = true/false }
Where the distribution adding to wealth of the pop |
pop | |||
change_pop_culture | Changes the culture of the scoped pop to a specified culture by a specified percentage | change_pop_culture = { target = cu:spanish value = 0.33 } | pop | |||
change_pop_religion | Changes the religion of the scoped pop to a specified religion by a specified percentage | change_pop_religion = { target = rel:catholic value = 0.5 } | pop | |||
change_poptype | Changes the type of the pop to the given type | pop | pop_type | |||
move_pop | Moves the scoped pop to the specified state (they become unemployed) | move_pop = s:STATE_TUSCANY.region_state:TUS
NOTE: VERY IMPORTANT! This effect _may_ change the pop type of the moved pop. This will happen under the following conditions: 1. if the current pop type cannot be unemployed, the new pop type will be the default one 2.if the current pop type is a slave type and the target state does not allow slavery, the new pop type will be the default one |
pop | state | ||
set_pop_literacy | Sets the literacy of the pop | set_pop_literacy = { literacy_rate = {...} }
Where the ratio is a script value computing the percentage of (workforce) pops that will be literate |
pop | |||
set_pop_qualifications | Sets the pop qualifications of the pop for the given type | set_pop_qualifications = { pop_type = {} qualifications = {...} }
Where the qualifications is a script value computing the percentage of (workforce) pops that will have the qualifications |
pop | |||
set_pop_wealth | Sets the wealth of the pop | set_pop_wealth = { wealth_distribution = {...} update_loyalties = true/false }
Where wealth is a script values |
pop | |||
add_diplomatic_play_war_support | Adds war support to the target country in the scoped diplomatic play. The amount will appear under the 'situations' header in tooltips | add_diplomatic_play_war_support = { target = country value = value } | diplomatic_play | |||
add_escalation | Add escalation to a diplomatic play | add_escalation = integer | diplomatic_play | |||
add_initiator_backers | Add a tag/scope country to the initiator side of a diplomatic play | add_initiator_backers = { list of scopes/tags } | diplomatic_play | |||
add_target_backers | Add a tag/scope country to the target side of a diplomatic play | add_target_backers = { list of scopes/tags } | diplomatic_play | |||
add_war_goal | Adds a war goal to a DP. Same data read in as add_war_goal in create_diplomatic_play | random_diplomatic_play = { add_war_goal = { holder = initiator type = secession } | diplomatic_play | |||
end_play | End a diplomatic play | end_play = bool | diplomatic_play | |||
every_scope_initiator_ally | Iterate through all allies to an initiator in a: diplomatic play | every_scope_initiator_ally = { limit = { <triggers> } <effects> } | diplomatic_play | country | ||
every_scope_play_involved | Iterate through all involved in a: diplomatic play | every_scope_play_involved = { limit = { <triggers> } <effects> } | diplomatic_play | country | ||
every_scope_target_ally | Iterate through all allies to a target in a: diplomatic play | every_scope_target_ally = { limit = { <triggers> } <effects> } | diplomatic_play | country | ||
ordered_scope_initiator_ally | Iterate through all allies to an initiator in a: diplomatic play | ordered_scope_initiator_ally = {
limit = { <triggers> } order_by = script_value position = int min = int max = script_value check_range_bounds = no # If you don't want an error logged if the list is smaller than the min/max <effects> } |
diplomatic_play | country | ||
ordered_scope_play_involved | Iterate through all involved in a: diplomatic play | ordered_scope_play_involved = {
limit = { <triggers> } order_by = script_value position = int min = int max = script_value check_range_bounds = no # If you don't want an error logged if the list is smaller than the min/max <effects> } |
diplomatic_play | country | ||
ordered_scope_target_ally | Iterate through all allies to a target in a: diplomatic play | ordered_scope_target_ally = {
limit = { <triggers> } order_by = script_value position = int min = int max = script_value check_range_bounds = no # If you don't want an error logged if the list is smaller than the min/max <effects> } |
diplomatic_play | country | ||
random_scope_initiator_ally | Iterate through all allies to an initiator in a: diplomatic play | random_scope_initiator_ally = { limit = { <triggers> } (optional) weight = { mtth } <effects> } | diplomatic_play | country | ||
random_scope_play_involved | Iterate through all involved in a: diplomatic play | random_scope_play_involved = { limit = { <triggers> } (optional) weight = { mtth } <effects> } | diplomatic_play | country | ||
random_scope_target_ally | Iterate through all allies to a target in a: diplomatic play | random_scope_target_ally = { limit = { <triggers> } (optional) weight = { mtth } <effects> } | diplomatic_play | country | ||
remove_initiator_backers | Remove a tag/scope country from the initiator side of a diplomatic play | remove_initiator_backers = { list of scopes/tags } | diplomatic_play | |||
remove_target_backers | Remove a tag/scope country to the target side of a diplomatic play | remove_target_backers = { list of scopes/tags } | diplomatic_play | |||
remove_war_goal | Removes a war goal from a DP if there's at least one other war goal present. | any_diplomatic_play = { limit = { has_war_goal = return_state } remove_war_goal = { who = initiator war_goal = return_state } } | diplomatic_play | |||
resolve_play_for | effect end diplo play for one side, with it gaining war goals | resolve_play_for = initiator
resolve_play_for = scope:custom_scoped_country |
diplomatic_play | country | ||
set_key | Set name to a diplomatic play | set_key = loc_key | diplomatic_play | |||
set_war | Set a diplomatic play to be a war | set_war = bool | diplomatic_play | |||
every_interest_group | Iterate through all interest groups in a country | every_interest_group = { limit = { <triggers> } <effects> } | country, party | interest_group | ||
every_member | Iterate through all interest group members of a party | every_member = { limit = { <triggers> } <effects> } | country, party | interest_group | ||
ordered_interest_group | Iterate through all interest groups in a country | ordered_interest_group = {
limit = { <triggers> } order_by = script_value position = int min = int max = script_value check_range_bounds = no # If you don't want an error logged if the list is smaller than the min/max <effects> } |
country, party | interest_group | ||
ordered_member | Iterate through all interest group members of a party | ordered_member = {
limit = { <triggers> } order_by = script_value position = int min = int max = script_value check_range_bounds = no # If you don't want an error logged if the list is smaller than the min/max <effects> } |
country, party | interest_group | ||
random_interest_group | Iterate through all interest groups in a country | random_interest_group = { limit = { <triggers> } (optional) weight = { mtth } <effects> } | country, party | interest_group | ||
random_member | Iterate through all interest group members of a party | random_member = { limit = { <triggers> } (optional) weight = { mtth } <effects> } | country, party | interest_group | ||
every_scope_admiral | Iterate through all admirals in a: country or interestgroup | every_scope_admiral = { limit = { <triggers> } <effects> } | country, interest_group, front | character | ||
every_scope_character | Iterate through all characters in a: country, interestgroup, or front | every_scope_character = { limit = { <triggers> } <effects> } | country, interest_group, front | character | ||
every_scope_general | Iterate through all generals in a: country, interestgroup, or front | every_scope_general = { limit = { <triggers> } <effects> } | country, interest_group, front | character | ||
every_scope_politician | Iterate through all politicians in a: country or interestgroup | every_scope_politician = { limit = { <triggers> } <effects> } | country, interest_group, front | character | ||
ordered_scope_admiral | Iterate through all admirals in a: country or interestgroup | ordered_scope_admiral = {
limit = { <triggers> } order_by = script_value position = int min = int max = script_value check_range_bounds = no # If you don't want an error logged if the list is smaller than the min/max <effects> } |
country, interest_group, front | character | ||
ordered_scope_character | Iterate through all characters in a: country, interestgroup, or front | ordered_scope_character = {
limit = { <triggers> } order_by = script_value position = int min = int max = script_value check_range_bounds = no # If you don't want an error logged if the list is smaller than the min/max <effects> } |
country, interest_group, front | character | ||
ordered_scope_general | Iterate through all generals in a: country, interestgroup, or front | ordered_scope_general = {
limit = { <triggers> } order_by = script_value position = int min = int max = script_value check_range_bounds = no # If you don't want an error logged if the list is smaller than the min/max <effects> } |
country, interest_group, front | character | ||
ordered_scope_politician | Iterate through all politicians in a: country or interestgroup | ordered_scope_politician = {
limit = { <triggers> } order_by = script_value position = int min = int max = script_value check_range_bounds = no # If you don't want an error logged if the list is smaller than the min/max <effects> } |
country, interest_group, front | character | ||
random_scope_admiral | Iterate through all admirals in a: country or interestgroup | random_scope_admiral = { limit = { <triggers> } (optional) weight = { mtth } <effects> } | country, interest_group, front | character | ||
random_scope_character | Iterate through all characters in a: country, interestgroup, or front | random_scope_character = { limit = { <triggers> } (optional) weight = { mtth } <effects> } | country, interest_group, front | character | ||
random_scope_general | Iterate through all generals in a: country, interestgroup, or front | random_scope_general = { limit = { <triggers> } (optional) weight = { mtth } <effects> } | country, interest_group, front | character | ||
random_scope_politician | Iterate through all politicians in a: country or interestgroup | random_scope_politician = { limit = { <triggers> } (optional) weight = { mtth } <effects> } | country, interest_group, front | character |
参考文档 | 效果 • 条件 • 事件目标 • 定义域 •增益 • 变量 • Data types • 本地化 • Customizable localization |
脚本 | 脚本化函数 • 国家 • 决议 • 事件 • 日志 • 定义 • 外交 • 附属类型 • 修正 • Objectives • On actions |
游戏内概念 | 建筑 • Pop • 文化 • 宗教 • 利益集团 • 派系 • 科技 • 法律 • 机构 • 法令 • 货物 • 概念 |
地图 | 地图 |
图像 | 3D Models • Interface • Graphical Assets • Fonts • Flags |
音乐 | Music • Sound |
其他 | 控制台指令 • Checksum • 模组结构 • Troubleshooting |
指引 | 自定义国家 • 存档编辑 • 地图数据编辑 |