target | what it means |
---|---|
any_pop | targets all pops |
| the type of pop specified |
| all pops in a certain wealth level |
target | what it means |
---|---|
any_owned | all provinces; can be nested within a state or country target to give all provinces within the state, states, or country selected. |
(a province ID) | the province referenced by the ID |
capital_scope | for a country event, this targets the country's capital province. |
target | what it means |
---|---|
random_state | any one state, randomly chosen |
(a state name, e.g. USA_1) | the state referenced by that name |
state_scope | For a province event, state_scope is the state containing the province |
target | what it means |
---|---|
no target given | For a country event, the default target is the country that fired the event |
(a tag) | the country referenced by the tag |
any_country | all countries (the current country not included) |
any_greater_power | randomly choose one of the eight great powers |
FROM | for a triggered event, FROM is the country that fired the triggering event. |
THIS | the country that fires a country-scope event. |
owner | for a province event, owner is the country that owns the province that fired the event |
sphere_owner | If the country that fired an event is in a sphere, sphere_owner is the nation controlling that sphere |
Name | Target | Syntax | Effect | Notes |
---|---|---|---|---|
| POPs | Changes all the pop cultures in a scope into the primary culture | Only works in the province scope. Changes the all pops in the country to the primary culture. | |
| POPs | Change the CON of the targeted pop or pops by the given value | ||
| POPs | Changes the dominant issue of a portion of the targeted pop to the given issue. It works the same way as upper_house. | ||
| POPs | Change the proportion of the targeted pop that follows the specified ideology. It works the same way as upper_house. | ||
| POPs | Changes the literacy of the targeted pop by the specified amount. | Reduces literacy by 10%. | |
| POPs | Change the MIL of the targeted pop or pops by the given value. Similar in all respects to consciousness, as described above. | ||
| POPs | Changes the target pop's savings by the specified amount. | ||
| POPs | Makes a certain percentage of people supporting issue A, switch to issue B. This effect is used in the adding of CB, where people switch from jingoism to pro military. | ||
| POPs | Moves the targeted pop to the specified province. There have been issues encountered with this effect, such as having the moved pop automatically join up with pops of the same religion even if they're not the same culture. Use with caution | ||
| POPs | Changes the type of the targeted pop. | ||
| POPs | Changes the targeted pop to the given proportion of its current value. Increases POP size if n>0. | ||
| POPs | Changes the consciousness of the targeted pops by the given value multiplied by the proportion of the pop that is of the given ideology or issue. E.g. if a pop has 40% support for pro-military, and n = 0.5, then the CON increase would be 0.4 * 0.5 = 0.2. | ||
| POPs | see scaled_consciousness |
Name | Target | Syntax | Effect | Notes |
---|---|---|---|---|
| Province | Adds a core of the given country to the targeted province | ||
| Province | Adds the specified modifier to the targeted province. n in days. | ||
| Province | Changes the controller (not owner) of the target province. | ||
| Changes the province's name to the one specified. | |||
| State | Changes the region (state) name to the one specified. | Example:Don't include ANY other effects in the same province scope as this one, else the event will cause a crash. | |
| State | Increases the flashpoint tension of the state by n. | HoD only. Example: | |
| Province | Changes the target province's fortification level by n. | ||
| Province | Changes the target province's infrastructure level by n. | ||
| Province | Changes the target province's life rating by n. | ||
| Province | Changes the target province's naval base level by n. | ||
| Province | Removes a core of the given country to the targeted province. | FROM does not work. | |
| Province | Removes the specified modifier from the targeted province. | If the modifier does not currently exist in the province, this command won't appear in the tooltip. | |
| Province | Changes the target province's RGO size by n. | ||
| Province | Transfers the province in scope from the targeted nation to another. | ||
| Province | Changes the good produced by the target province to the one specified. |
Name | Target | Syntax | Effect | Notes |
---|---|---|---|---|
| Country | Adds the specified technology to the country, whether it is the next level or not. | AHD only | |
| Country | Makes the specified culture accepted by the targeted country. | ||
| Country | Removes the specified culture as accepted by the targeted country. | ||
| Country | Adds the specified modifier to the targeted country. n is in days. | Won't replace or extend an already existing modifier. | |
| Country | Involves the country in scope to the current crisis. | HoD only | |
| Increases the temperature of the current crisis by n. | |||
| Country | Change the target country's infamy by n. | ||
| Country | Change the capital of the country to the specified province id. | ||
| Country | Changes the civilized/uncivilized status of the country. | ||
| Kills the specified army/navy leader. | The ID can be found in the save file. Unclear if the ID is always the same for leaders created using define_general. | ||
| Creates a new general with the specified parameters. | name: see kill_leader | ||
| Country | Changes the national value of the current country to the value specified. | value from commonnationalvalues.txt | |
| Country | Change the plurality of the targeted country by n. | ||
| Country | Change the prestige of the targeted country by n. | ||
| Country | Changes the prestige of the targeted country by the current prestige multiplied with n. Change cannot be less than ±1. | ||
| Country | Changes the target country's primary culture. | This may be used on non-existing countries. | |
| Country | Changes the scoped country's state religion to the specified one. State religion is only visible in save files. | ||
| Removes a country modifier. | If the country modifier does not exist, the command won't appear in the tooltip. | ||
| Country | Grants n RPs to the target country's current research project. | ||
| Country | Changes the target country's war exhaustion by n. | ||
| Country | Grants a number of RP that would have been accumulated over n years. | ||
| Country | Turns all factories invested by foreign powers your own. |
Name | Target | Syntax | Effect | Notes |
---|---|---|---|---|
| Country | Adds the specified economic reform to the uncivilized nation. | AHD only | |
| Country | Starts the election process ahead of schedule. | ||
| Globally enables the specified ideology. | |||
| Country | Changes the target country's government to the specified type. | Does not change any of the country's reforms. | |
| State | Sets the slave state / free state status of a state. Appears in a triggered-only event, syntax doesn't fit the normal model. | ||
| Country | Adds the specified military reform to the uncivilized nation. | AHD only | |
| Country | Changes the target country to the specified political reform. | ||
| Country | Changes the current ideology of the country's ruling party. | The exact party is random if there is more than one for that ideology. | |
| Country | Changes the target country to the specified social reform. | ||
| Country | Changes the proportion of the upper house that follows the specified ideology. | The amount gained (U) is calculated by the following formula: U=1-1/(1+N) The other values will be multiplied by 1-U. Example: Upperhouse starts with 10% (0.1) liberals and 90% (0.9) conservatives. U=1-1/(1+N)=1-1/(1+0.25)=1-0.8=0.2 1-U=0.8 liberals = 0.1*0.8+.2 = 0.28 = 28% conservatives = 0.9*0.8 = 0.72 = 72% N = -1-1/(U-1) |
Name | Target | Syntax | Effect | Notes |
---|---|---|---|---|
| Country | Gives the target a casus belli against the country in scope for n months. | ||
| Country | Annexes the targeted country to the country in the current scope. | ||
| Country | Grants the scoped country a casus belli against the target country for n months. | ||
| Country | Creates an alliance between target country and the scoped country. | ||
| Country | Makes the specified country a vassal of the scoped country, even if they are already a vassal. | ||
| Country | Changes the influence that the targeted country has on the specified country by n. | ||
| Country | Ends the military access granted by the specified country to the current country. | ||
| Country | Ends any war between the target country and the specified country. | Does not create a truce, and there are no penalties for the cancelled CBs. Will not cancel the war with allies or vassals. | |
| Country | Adds all provinces of the specified country to the targeted country. | ||
| Country | Remove the current country from an alliance with the specified country. | ||
| Country | Gives the target country military access to the specified country. | ||
| Country | Dissolves all alliances a nation has and set all satellites free. | ||
| Country | Changes the relation between the targeted country and the specified country by n. | ||
| Country | Allows the target country to release the specified country and thereby create a new independent nation. | ||
| Country | If this targets a vassal nation (or substate), the vassal is freed. If this targets a non-existing nation, it is released as a vassal of the current country. | If the capital of the released country is not owned, the country is simply freed outright and not as a vassal (check with is_possible_vassal ). | |
| Country | Starts a war between the country for whom the event fired and the given country. |
Name | Target | Syntax | Effect | Notes |
---|---|---|---|---|
| Country | Used to remove or add money relative to country's income with maximum taxation. | E.g. if n=0.1, 10% of what income would be if all taxes were maxed out is added. | |
| Country | Changes the national stockpile of the resource named by n. | ||
| Country | Change the amount of cash in the treasury by n. |
Name | Target | Syntax | Effect | Example |
---|---|---|---|---|
| Country | Switches the nation in scope to the specified country tag. No cores will change. | change_tag = culture probably changes to the union tag for that culture. | |
| Switches the player nation from the current one to the specified one. | |||
| Increases or decreases the value of an existing variable. | |||
| Province | Removes the specified province flag. | ||
| Country | Removes the specified country flag. | ||
| Global | Removes the specified global flag. | ||
| Fires the specified country event for the targeted country. | Second syntax only with AHD, FROM will not work with that. | ||
| Fires the specified province event for the targeted province. | Event can only fire for the owner of the province, and does not work on empty provinces. It will however work if you secede_province at the same time. | ||
| Specifies the probability n that the effects specified will occur. | |||
| Causes one of two or more possible effects to happen and specifies the probability for each. Probability of any effect Ex occurring is Ex/(E1+E2+..+En). | Due to the game using a random number seed, the output for this effect will be the same every time it's used in the same event. | ||
| Province | Sets the specified flag for the current province. | ||
| Country | Sets the specified flag on the current country. | ||
| Global | Sets the specified flag globally (meaning every tag, existing or not, gets the flag) | ||
| Creates a new variable and assigns it the value n.If the variable exist,it's value will be set by n. |