Print out all console commands or a specific command description. Cancels resistance activity for the current state. Targets the root node of the block, or the first entered scope. visible = { } is a trigger block that the character must fulfill in order for the unit leader to be visible and possible to pick. An easter egg making the AI smacktalk in chats. limit_to_coastal = yes Executes contained effects on every country that meets the limit and borders the country this is contained in. This example can be used as an effect in regular code as scripted_effect_name = yes. These can only be used with characters of the country leader type. Affects AI. damage = The amount of damage to inflict.province = The province to target for provincal buildings. Optional, defaults to the current scope. Does not start resistance by itself, only removes the checks forcefully disabling it. Fires the specified news event for the current country. resources = { <> }The resources to which give resource rights to. 2019. Adds the specified amount of experience to the divisional commander. y = The Y position of the entity. The effects here must be used within a state scope. Sets the specified character to also act as a field marshal. Reddit and its partners use cookies and similar technologies to provide you with a better experience. General Information. Toggles the special game rules for the current scope's political party. The participating countries are the owners of the specified states. Optional, 0 by default. Gives bonuses of reducing land doctrine cost to current scope. In custom console commands, the country running the command is FROM, while ROOT is the selected country, state, or character. Toggle debug mode for air vs land combat. States that are owned but not controlled will be transferred to the released country, but won't be controlled by it. Makes the specified trait mutually exclusive with the other trait, making it impossible to pick if that one was selected and drawing the arrows in the menu. By default, these character slots exist in base game: idea_token = my_character is the ID used for the character when treated as an idea within this particular slot. variant_name = The equipment variant to add. name = The new name of the character. allowtraits. After doing so, this character can be given a role within an effect block, such as this completion reward for a focus: Effects on this topic include add_country_leader_role, add_corps_commander_role, add_field_marshal_role, add_naval_commander_role, and add_advisor_role. Modifies the amount of experience gained towards other traits if the unit leader has this trait. tag_color [rgb] Players can use this command to set the tag color of your current country. Modding: How to change leader via focus tree/events, I want to make my current leader disappear and have another leader come about, if anyone can tell both how to do that with focus trees and events then I'd be grateful (even more if you say which one would be more easier or effective), Have a program to edit the focus tree files (I use the trial version of Sublime Text). priority = The priority the template receives in receiving supplies. desc = MY_LEADER_DESCRIPTION is the localisation key that gets used for the leader's description depending on the currently turned on language. These don't serve as effects, but rather as scopes that change for whom the effects are being executed. Saves the current scope as a key. Other Valid ideologies "communism" "democratic" "neutrality", Removes the Danzig modifier from Danzig if that state is selected. 2. Deprecated. Optional, defaults to false. The effects here must be used within a division scope. I made a Republican National Committee event and was wondering what command you need to enter to create a new party leader. and our Makes the current scope drop the current cosmetic tag they are using. Those save files should look the same. Removes the balance of power in entirety. Country scope only. keep_political_party_members = Controls if non-promoted party leaders of the revolting ideology group will be kept by the country or join the revolt, yes resulting in the former. Enables resistance for the scoped state when the occupier is the specified country. Sub-units are defined in /Hearts of Iron IV/common/units/*.txt files. The current scope gains the specified opinion modifier, The current scope loses the specified opinion modifier, The target scope gains the specified opinion modifier, The current scope gains the specified relation modifier, The current scope loses the specified relation modifier for. Optional, defaults to owner of operative.recipient = The recipient of the event. It is preferable to create a new file rather than overwriting base game files. Sets the animation of a specified entity. Make sure to save the file with ANSI encoding format. Can be used to confirm if a crash is AI-related, such as if a naval port is built within a province that doesn't have a valid model definition within. Instead. The news event uses a different interface to the country event. copy_tag = If specified, copies stuff from this tag rather than the original tag. hearts-of-iron-4 man-the-guns Share Improve this question Follow edited Nov 19, 2020 at 8:33 asked Mar 13, 2019 at 21:03 Xenox They are a one-time change to the current condition of the game, without the ability to have a lasting effect. (with the exception of convoy: 'ae 1000 convoy_1') To add ships, consider using instantconstruction(ic) (ic also effects AI). add_autonomy [] [num], Increases resistance in the selected province by set amount, ex: (selects one of the provinces in Berlin) resistance 100, Increases compliance in the selected province in game by set amount, ex: (selects one of the provinces in Danzig) compliance 100, Allows you to run more complex effects from script in the console directly. A description can be added by appending _desc to the end as my_trait_desc: "My description". Information, Frequently Asked Adds the number of days to the specified mission. on_win = The event to fire for the side on a win. requested_factories = The number of factories to assigned initially. A complete, but unsorted, list of effects can be found in /Hearts of Iron IV/documentation/effects_documentation.html or /Hearts of Iron IV/documentation/effects_documentation.md. An option with the weight of 20 is twice as likely to be picked as the option with the chance of 10, for instance. 0.1 would mean that the unit leader gains 10% more experience, not that it gains 10% as much. There is a specific list of effects that can instantly change the game. This item will only be visible in searches to you, your friends, and admins. surname = The surname of the ace.callsign = The callsign of the ace.type = The ace type.is_female = The gender of the ace. In case of overlap, unnested if statements are preferred. end_civil_wars = Whether the target country will peace out in all of its civil wars it's participating in. If the decision is on cooldown, it gets removed, in order to reactivate or remove completely. Generates a character for current country. Optional, defaults to false. A value of 1 sets the technology. Removes the specified scope from the faction led by the current scope. Must be fired from ROOT, the country that should be exiled, or a TAG specification must be used. Will print the data type for all dynamic reference objects. These arguments are within the character itself. Effects that will be executed on the new dynamic country. Each character definition is contained within the characters = { } block, which encompasses the entirety of the file to mark them as characters. Can be used as a scope.Province scopeall_provinces = Affect all provinces. Adds the specified resource in the specified amount to the specified state. If a character is not intended to have one of the roles initially but get it later on, it's best to define them as an initially empty character, such as the following for a country leader: This character should still be recruited with recruit_character = TAG_new_leader Makes this specified trait show up in the combat menu among other bonuses. Toggles debug display of normals/bounding boxes/collision. The Germans having the ability to assassinate Hitler later, and the Soviets allowing Trotsky to come into power. Deprecated. Last one, IF I make a new country, how to make a it look like it continue from the earlier country? Sets the current stability value for the current scope. It is also possible to use modifiers (akin to MTTH blocks) to affect the weight of each possible random effect or to use variables as chances. After that, simply type in the relevant console command code, and slam the enter button. Multiple can be defined. Otherwise, recruiting this character will make every other advisor without an idea token specified disappear from the selection. This can fail to carry over the control, so it's recommended to instead use. If usage as a target is possible, it's marked within the table. The composition of the division. Preferable to use every_army_leader unless necessary to use global_every_army_leader. If the initial limit within if = { } is false, it moves on to the next else_if = { }, checking the limit there. trait = The trait to add. Removes a claim by the specified country on the current scope. Defaults to true. Removes the subject status between the target and the current scope. producer = / Defines who produced the equipment. Removes the specified trait from the current unit leader. Executes contained effects on every division that meets the limit and is owned by the current country. Sets the specified character to also act as an advisor, activating if specified. Defaults to false. defense_skill = Creates an entry within the command history of a decision. logistics_skill = The logistics skill of the leader. bonus = The bonus to research speed. picture = The graphical reference of the picture of the leader. Optional. Optional. debug as a console command will turn on debug mode which can provide information about certain database entries, such as focuses, national spirits (and other ideas such as laws or designers), or technologies when hovering over them, as well as obtaining information when hovering over a province of IDs of the state and the province, as well as the 3-letter country tag of the country it belongs to. For example, when used in. In. HOI4 Console Commands Resign Command HOI4 Resign Command. Enables Border War status for the current state. org_damage = The percentage of damage done to units to organisation in particular. Executes contained effects on every operative that meets the limit and is recruited by the country this is contained in.