Console commands
From Europa Universalis 4 Wiki
This page lists the codes which may be inputted into the Console Window, a special debugging window which may be accessed on non-ironman games by pressing Shift+2, ALT+2+1, Shift+3,§, ~, ^, °, ², or ` (key varies based on keyboard layout). Press the up or down arrow keys to traverse through previously executed commands. Many codes can be turned off by repeating the command, but sometimes reloading the save or exiting the game is necessary.
Commonly used[edit]
|
|
This section may contain outdated information that is inaccurate for the current version of the game. The last version it was verified as up to date for was 1.19. |
| Command | Effect |
|---|---|
| cash (Insert Number) [<Country tag> OPTIONAL] | Extra Money |
| manpower (Insert Number) [<Country tag> OPTIONAL] | Extra manpower (in thousands) |
| sailors (Insert Number) [<Country tag> OPTIONAL] | Extra sailors |
| prestige [<AMOUNT> OPTIONAL] [<Country tag> OPTIONAL] | Adds prestige. Gives 5 prestige if no amount is given. |
| legitimacy [<AMOUNT>] [<Country tag> OPTIONAL] | Sets the legitimacy of the current ruler |
| adm [<AMOUNT> OPTIONAL] [<Country tag> OPTIONAL] | Get administrative power points (if not specified, gives 999) |
| dip [<AMOUNT> OPTIONAL] [<Country tag> OPTIONAL] | Get diplomatic power points (if not specified, gives 999) |
| mil [<AMOUNT> OPTIONAL] [<Country tag> OPTIONAL] | Get military power points (if not specified, gives 999) |
| yesman | Toggle AI diplomatic responses (on: always accept; off: normal response) |
| fow | Toggles fog of war on/off |
| ti | Toggles terra incognita on/off |
List of commands[edit]
|
|
This section may contain outdated information that is inaccurate for the current version of the game. The last version it was verified as up to date for was 1.19. |
| DLC | Command | Description |
|---|---|---|
| add_age [<Country tag> OPTIONAL] | Set age of current heir to 15 years. | |
| |
add_backer [<prov id>] | The province becomes a backer of the current issue in the parliament. |
| add_baseunrest [<Province ID>] [<Base Unrest>] | Adds base unrest to a province | |
| add_cardinal | Adds 1 new cardinal to a Catholic nation. | |
| add_cb [<casus belli tag>] [<target country tag>] [<Actor Country tag> OPTIONAL] | Add casus belli against target country | |
| add_claim [<Province ID>] [<Country tag> OPTIONAL] | Adds a claim to the province. | |
| add_colonist [<Country tag>] | Adds a colonist to the country. | |
| |
add_consort [<Target Country Tag> OPTIONAL] [<Origin Country Tag> OPTIONAL] | Adds a consort from a tag |
| add_core [<Province ID>] [<Country tag> OPTIONAL] | Add core | |
| add_devastation [<Province ID>] [<Progress>] | Add devastation to a province | |
| add_diplo [<Country tag> OPTIONAL] | Adds diplomatic enroute | |
| add_faction [<factionname>] | Adds a Faction to your country | |
| add_heir [<Target Country Tag> OPTIONAL] | Adds an heir (The current heir is immediately killed.) | |
| add_idea_group [<Idea group key>] [<Country tag> OPTIONAL] | Adds the specified idea group | |
| add_interest [<Country tag>] | Add specified country tag to your interest | |
| |
add_issue [<issue tag>] | Adds issue to a parliament. |
| add_liberty_desire [<Amount>] [<Target Country tag> OPTIONAL] | Adds liberty desire | |
| add_local_autonomy [<Province ID>] [<Amount>] | Adds local autonomy to a province | |
| |
add_loyalty [<Target Estate>] [<Amount>] | Adds loyalty to target estate The estate have the following identifier:
|
| add_missionary [<Country tag>] | Adds a missionary to a country | |
| add_natives [<ProvinceID>] [<Amount>] | Add natives to given province (100× [<Amount>]) | |
| add_opinion [<Actor Country tag>] [<Target Country tag> OPTIONAL] | Add opinion to/from tag | |
| add_pa [<Country tag>] | Add patriarch authority to tag | |
| add_permanent_claim [<Province ID>] [<Country tag> OPTIONAL] | Add permanent claim | |
| add_pi [<Country tag>] | Add papal influence to tag | |
| add_prosperity [<Province ID>] [<Progress>] | Add progress towards prosperity to a province's state. | |
| add_reformlevel [<Amount>] | Adds imperial reforms to the Holy Roman Empire | |
| add_republican_tradition [<AMOUNT> OPTIONAL] [<Country tag> OPTIONAL] | Get republican tradition | |
| |
add_trait [<personality tag>, <heir> OPTIONAL, <consort> OPTIONAL] | Add ruler personality |
| add_unrest [<CID Type>] [<CID Index>] [<Unrest>] | Adds unrest to a faction | |
| adm [<AMOUNT> OPTIONAL] [<Country tag> OPTIONAL] | Get administrative power (default value: 999) | |
| admiral [<fire>] [<shock>] [<maneuver>] [<siege>] [<Country tag> OPTIONAL] | Create an admiral | |
| ai_minister [<0 = army, 1 = diplomacy, 2 = trade>] | Enables/Disables specific AI ministers | |
| ai(ai) [<Target Country Tag>] | Enables/Disables AI for all nations or a specific tag | |
| aiinvalid | Print invalid AI command counts | |
| aiview | Toggles additional AI info | |
| annex [<Target Country Tag>] [<Actor Country tag> OPTIONAL] | Annexes the specified tag without adding cores | |
| army_tradition [<Amount>] [<Target Country tag> OPTIONAL] | Adds army tradition to the player | |
| |
authority [<AMOUNT>] [<Country tag> OPTIONAL] | Add to a country's authority (Inti religion) |
| autosave | Triggers an autosave. | |
| balance | Balance data dumped to game.log, with regions (development,number of provinces) and countries (tax, manpower, development, number of forts). | |
| bearhaslanded [<Province ID> OPTIONAL] | An unwise command to use Spawns Jan Mayen. | |
| |
canals | Debug canals on map |
| cash [<Amount> OPTIONAL] [<Target Country tag> OPTIONAL] | Adds ducats to the treasury. Default is 5000 ducats. | |
| change_religion [<province ID>] [<religion>] | Change religion of the province The religions have the following identifier:
CK2 Converter Religions:
| |
| |
church_power [<Amount>] [<Target Country tag> OPTIONAL] | Adds church power to the player (Protestant religion) |
| clear | Clears the console | |
| |
clr_consort_flag [<Tag>] [<Flag>] | Clears a global flag |
| clr_flag [<Flag>] | Clears a global flag | |
| clr_prov_flag [<Flag>] [<Province>] | Clears a flag from a province | |
| collision(debug_collision) | Toggles debug display of normals/bounding boxes/collision | |
| colonize [province ID] | Colonizes and cores an unsettled province (and gets some prestige). The province retains its original culture and religion. Note: Works also for settled provinces and keeps any previous owner's core. | |
| combatsound | How often does the combat view give a random sound? 0-50 | |
| control [<Province ID>] [<Country tag> OPTIONAL] | Changes the controller of the province. | |
| corrupt [<AMOUNT>] [<Country tag> OPTIONAL] | Sets the corruption of the country to the given amount. | |
| country_modifier [<country tag>] [<Modifier type>] | Show country modifier values. | |
| create_march [<Target Country Tag>] [<Actor Country tag> OPTIONAL] | The specified tag becomes a march (of the actor country). | |
| culture [<Province ID>] | Changes culture on a province to your primary culture | |
| date [date in format yyyy.mm.dd] | Changes current date | |
| debug_info | Toggles Debug info | |
| debug_mode | Makes some debug features available. Displays province ID, country tag, and border distance when mousing over provinces. | |
| debug_nogui | Toggles GUI on/off | |
| debug_reload_areas | Reload map areas | |
| debug_reload_regions | Reload map regions | |
| declare_war [<attacker tag>] [<defender tag>] [<call willing allies>] | Declares war between two nations (no CB) | |
| delete_wars [<Country tag> OPTIONAL] | Delete wars without removing truces | |
| die(kill) [<Target Country Tag> OPTIONAL] | The ruler (of the specified country) is killed. | |
| dip [<AMOUNT> OPTIONAL] [<Country tag> OPTIONAL] | Get diplomatic power (default value: 999) | |
| diplocount | Prints out global diploaction statistics to game.log | |
| diplomacy_info | Print summary information about currently active diplomatic relations. to console | |
| disaster [disaster_key] | Adds 100 progress to a disaster | |
| discover [<Target Country Tag>] [<Actor Country tag> OPTIONAL] | Discover capital of target tag | |
| |
doom [<AMOUNT>] [<Country tag> OPTIONAL] | Add to a country's doom (Nahuatl religion) |
| economy [] | Prints out global economy statistics to game.log | |
| embrace [<Province ID>] [<institution name> optional] | Embraces all institutions in a province | |
| epicfail [<Target Country Tag> OPTIONAL] | Makes all spies of target country fail | |
| event [event id] [<Target Country Tag> OPTIONAL] [<Option id> OPTIONAL] | Executes an event | |
| exhaust [<Amount>] [<Country tag> OPTIONAL] | Alter your war exhaustion | |
| fast_diplo | Ignore the date check for enroute diplomats | |
| |
favors [<Target Country tag>] [<Amount>] | Adds favors with target country |
| |
fervor [<Amount>] [<Target Country tag> OPTIONAL] | Adds fervor to the player (Reformed religion) |
| form_union [<Country tag>] [<Country tag> OPTIONAL] | Forms Union with target | |
| fow(debug_fow) [<Province ID> OPTIONAL] | Turns off fog of war in a province or in general | |
| frenzy | Force enable Great Power frenzy!!! | |
| frenzy_off | Force disable Great Power frenzy!!! | |
| fullscreen | Toggles fullscreen | |
| gamespeed [speed (0-5)] | Set the current game speed, pausing the game at speed 0. | |
| god | godmode on/off | |
| |
golden_age [<Country tag>] | Starts a golden age in that country. A tag is required. |
| |
harmonization [<AMOUNT [0.0, 1.0]>] [<Country tag> OPTIONAL] | Sets to country's Harmonization progress (Confucian religion) |
| |
harmony [<AMOUNT>] [<Country tag> OPTIONAL] | Adds harmony to the player (Confucian religion) |
| help [command name] | Print out all console commands or a specific command description. | |
| helphelp | Displays “No help for you!” in the command box | |
| helplog | Print out all console commands to game.log file. | |
| |
horde_unity [<AMOUNT>] [<Country tag> OPTIONAL] | Set the unity of a horde |
| ideadump | Dump all countries that have generic national ideas to game.log | |
| imperial_authority [<Amount>] [<Country tag> OPTIONAL] | Increases the imperial authority of the emperor. | |
| infinite_combat | Infinite combat | |
| inflation [<Amount>] [<Country tag> OPTIONAL] | Increase your inflation | |
| integrate [<Target Country Tag>] [<Actor Country tag> OPTIONAL] | Integrates the specified tag into actor's country (adds cores) | |
| |
karma [<Amount>] [<Target Country tag> OPTIONAL] | Adds karma to the player (Buddhist religions) |
| kill_cardinal [<Countrytag> OPTIONAL] | Kills first cardinal in the list | |
| |
kill_consort [<Target Country Tag> OPTIONAL] | Kills your consort |
| kill_heir [<Target Country Tag> OPTIONAL] | Kills the heir of a tag | |
| kill_leader | Kill a random leader with given death cause | |
| leader [<fire>] [<shock>] [<maneuver>] [<siege>] [<Country tag> OPTIONAL] | Creates a general with the given values. | |
| leak | Leaks memory | |
| leak_gpu [Chunk size (bytes)] [Number of Chunks] | Leaks GPU memory | |
| legitimacy [<AMOUNT>] [<Country tag> OPTIONAL] | Set the legitimacy of the ruler | |
| low_memory | Simulates a low memory alert and tries to reduce memory usage | |
| lucky [<Country tag> OPTIONAL] | Toggles lucky nation status. | |
| manpower [<Amount>] [<Target Country tag> OPTIONAL] | Adds manpower to pool (1000× [<Amount>]) (default 5) | |
| map_random [<seed=-1>] [<restore>] [<nosmooth>] [<nosmoothcoasts>] [<topology>] [<terrain>] [<colormap>] [<minimap>] [<rivers>] [<trees>] | Randomize new world part of map (heightmap, terrain, ...) | |
| map_vertextextures | Toggle map rendering with vertex textures | |
| mapmode [Mapmode type (int)] | Change mapmode. | |
| memory | Prints out the used memory | |
| mil [<AMOUNT> OPTIONAL] [<Country tag> OPTIONAL] | Get military power (default value: 999) | |
| morehumans(humans) [num] | Adds more humans | |
| msg | Toggles all messages popup | |
| native_uprising [<ProvinceID>] | Create native uprising in given province | |
| navy_tradition [<Amount>] [<Target Country tag> OPTIONAL] | Adds navy tradition to the specified country | |
| nextsong | Changes the currently playing soundtrack. | |
| nolimit_missions | Removes the limit of number of major missions to choose from | |
| nopausetext | Toggles the pausebanner for nicer screenshots. | |
| nudge | Go to the nudge tool | |
| observe_mode [] | Changes to the observe mode | |
| observe(spectator) | Switches to play no country at all, and no longer shows messages or pauses the game | |
| oos | Make the client go oos | |
| own [<Province ID>] [<Country tag> OPTIONAL] | Changes ownership of a province | |
| own_core [<Province ID>] [<Country tag> OPTIONAL] | Changes ownership of a province and adds core | |
| piety [<AMOUNT> OPTIONAL] [<Country tag> OPTIONAL] | Adds piety. (Muslim religions) (default: +10) | |
| pirate [<Province ID>] | Starts a Pirate in a province | |
| poll | Polls valid Events | |
| population [<ProvinceID>] [<Amount>] | Adds population to a province. (Only for colonies.) | |
| power [<stability/tech_table_key/idea_key>] [<Country tag> OPTIONAL] | Adds the specified idea group | |
| powerpoints [<AMOUNT> OPTIONAL] [<Country tag> OPTIONAL] | Get power in all powers. Maximizes monarch points if no number specified. | |
| powerspend [] | Prints out global powerspend statistics | |
| prestige [<Amount>] [<Country tag> OPTIONAL] | Increases the prestige of the specified country. (default value: 5) | |
| prices | Price Info to game.log | |
| print_flags | Prints global flags | |
| print_prov_flags [<Prov ID>] | Prints province flags | |
| PrintSynchStuff | Prints random count and seed | |
| protectorate [<Target Country Tag>] [<Actor Country tag> OPTIONAL] | Protectorate the specified tag | |
| province_modifier | Show province modifier values. | |
| reform [<Target Province ID>] | Begin reformation in the specified province ID | |
| refreshknowledgecount [] | Refresh knowledge perf couner | |
| reinitchat [] | Posts a CChatSyncAllCommand | |
| reload [file name] | Reloads the gui or lua file | |
| reload_canals | Reload the canal bitmaps | |
| reload_heightmap | Reloads the heightmap | |
| reload_lakes | Reloads the lakes | |
| reload_map | Reloads the map | |
| reload_provincemap | Reloads the provincemap | |
| reload_straits | Update strait vertex buffers | |
| reload_treemap | Reloads the treemap | |
| reloadfx [Arguments: map/mapname/postfx or *.fx filename] | Reloads the shader | |
| reloadinterface | Reloads the entire interface | |
| reloadloc | Reloads the localisation | |
| reloadtexture [texture file name] | Reloads the specified texture | |
| reloadtradewinds | Reloads trade winds | |
| remove_cb [<casus belli tag>] [<target country tag>] [<Actor Country tag> OPTIONAL] | Remove casus belli from target country | |
| remove_claim [<Province ID>] [<Country tag> OPTIONAL] | Remove claim | |
| remove_core [<Province ID>] [<Country tag> OPTIONAL] | Remove core | |
| remove_defender_faith | Removes the defender of the Faith for the players religion | |
| remove_interest [<Country tag>] | Removes specified country tag from your interest | |
| remove_march [<Target Country Tag>] [<Actor Country tag> OPTIONAL] | make a march the specified tag | |
| remove_rival [<Country tag>] | Removes a rival. | |
| |
remove_trait [<personality tag>] | Removes a ruler personality. |
| rendertype | Reports what render backend is used | |
| reset_economy [] | Resets global economy statistics | |
| |
reset_god | Resets personal deity |
| |
reset_migrate | Resets the time you'll have to wait until migration is allowed again. |
| reset_mission_cancel [<Country tag>] | Resets time to new mission after cancelling old one. | |
| reset_powerspend [] | Resets global powerspend statistics | |
| revolt [<Province ID>] | Starts a Revolt in a province | |
| revolution_target [<CountryTag>] | Sets the revolution target. | |
| rgb(rgb) [<Amount>] | Prints desired amount of random color values to game.log | |
| run [] | Runs effects in specified file | |
| sailors [<Amount>] [<Target Country tag> OPTIONAL] | Adds sailors (default value: 5000) | |
| savegame | Creates an savefile. | |
| score | Score data dumped to game.log | |
| selflearningai | Enables/Disables Self-Learning AI | |
| |
set_consort_flag [<Tag>] [<Flag>] | Sets a global flag |
| set_flag [<Flag>] | Sets a global flag | |
| set_leader_trait [<personality>] | Set selected leader's personality trait | |
| set_prov_flag [<Flag>] [<Province>] | Sets a flag for a province | |
| setmissionaryprogress [<ProvinceID>] [<Amount>] | Sets the missionary progress for a province. | |
| SetRandomCount | Sets the randomcount to 0 or arg | |
| show_ideas [<Country tag>] | National ideas of the specified country dumped to game.log | |
| siege [<Province ID>] | Wins the siege in the specified province | |
| smoothframelog | Toggles smooth frame logging | |
| spawn [<Province ID>] [<SubUnit Type>] | Spawns an unit in a province. For example, "spawn 1 western_medieval_infantry" spawns a Latin Medieval Infantry in Stockholm. See the file names in the common/units folder for a complete list of <SubUnit Type>. | |
| spawnactor [<Actorname>] [<Province ID>] [<Animation> OPTIONAL] | Spawns an actor with an optional animation | |
| spectate(spectate) | Goes into Spectator mode | |
| splendor | Gives 1000 Splendor | |
| spritelevel [<Sprite level>] | Sets a forced sprite level. Specify no argument to reset. | |
| spynetwork [<Target Country tag>] [<Amount>] | Adds spy network with target country | |
| stability [<AMOUNT> OPTIONAL] [<Country tag> OPTIONAL] | Changes the stability of the specified country (to maximum without value) | |
| state [<Province ID>] | Toggles State for owner of region of province. | |
| stats | Stats dumped to game.log | |
| surrender | Surrender | |
| tag [<Country tag>] | Switch tag to another country | |
| tech [<AMOUNT>] | Gets levels in all technology types | |
| test_achievement [<achievement>] | tests a specific achievement | |
| testevent [<Event ID>] [<Character ID>] | Tests an event without triggering it | |
| testmission [<Mission Name>] | Tests a mission without triggering it | |
| texture_usage | Prints texture usage | |
| ti(debug_ti) | Toggles Terra Incognita on/off | |
| time | Displays the current time in the command box. | |
| timer | Prints out debug timing info | |
| timer_reset | Resets debug timing | |
| timer_restart | Restarts (resets and starts) debug timing | |
| timer_start | Starts debug timing | |
| timer_stop | Stops debug timing | |
| touch_test | Testing touch | |
| trust [<Target Country tag>] [<Amount>] | Adds trust with target country | |
| update_loc [localization tag] | Updates the localization tag file | |
| validateevents | Validates all events without triggering it | |
| vassalize [<Target Country Tag>] [<Actor Country tag> OPTIONAL] | Vassalize the specified tag | |
| version | Prints the game version | |
| victorycard | Force enables victory cards in singleplayer | |
| window(wnd) [Arguments: open/close] [window gui name] | Opens or closes the specified window | |
| winwars | Gives max war score in all wars for the country | |
| yesman | Toggles AI positive responses (on: always accept; off: normal response) |
Casus belli IDs[edit]
|
|
This section may contain outdated information that is inaccurate for the current version of the game. The last version it was verified as up to date for was 1.19. |
For use with add_cb and remove_cb.
- cb_restore_personal_union – Restoration of Union
- cb_defection – Defected Province
- cb_loan_cancelled – Canceled Loan
- cb_spy_discovered – Discovered Spy
- cb_disloyal_vassal – Disloyal Vassal
- cb_hre_attacked – Imperial Liberation
- cb_insult – Diplomatic Insult
- cb_dishonored_call – Dishonored Call
- cb_vassalize_mission – Subjugation
- cb_fabricated_claims – Obscure Documents
- cb_religious_conformance – Religious Unity
- cb_border_war – Border Friction
- cb_trade_war_triggered – Trade War
- cb_trade_conflict – Trade Conflict
- cb_trade_league_conflict - Trade Conflict
- cb_annex – Annexation War
- cb_change_government – Government Form War
- cb_humiliate – Humiliate
- cb_conquest – Conquest
- cb_core – Reconquest
- cb_independence_war – Independence
- cb_colonial_independance_war – Colonial Independence
- cb_nationalist – Nationalism
- cb_imperial – Imperialism
- cb_daimyo_annex – War for the Emperor
- cb_independent_daimyo_annex – War for the Emperor
- cb_shogun_annex – Annex Daimyo
- cb_sengoku – Sengoku
- cb_revolutionary – Revolutionary War
- cb_colonial – Colonialism
- cb_liberation – Liberation
- cb_crusade – Holy War
- cb_defender_of_the_faith – Defender of the Faith
- cb_heretic – Cleansing of Heresy
- cb_excommunication – Excommunicated Ruler
- cb_trade_war – Trade Dispute
- cb_trade_league_dispute – Trade League Dispute
- cb_imperial_ban – Imperial Ban
- cb_liberate_elector – Liberate Elector
- cb_super_badboy – Coalition
- cb_claim_throne – Claim on Throne
- cb_horde_vs_civ – Tribal Conquest
- cb_tribal_feud – Tribal Feud
- cb_revoke_electorate – Revoke Electorate
- cb_privateers – Trade Protection
- cb_support_rebels – Support Rebels
- cb_crush_the_revolution – Crush the Revolution
- cb_spread_the_revolution – Spread the Revolution
- cb_religious_league – Religious League
- cb_flower_wars – Flower Wars
- cb_maya_expansion – Maya Confederation
- cb_humiliate_rotw – Humiliate Rival
- cb_chinese_unification – Unify China
- cb_take_mandate - Take Mandate of Heaven
- cb_force_migration – Force Migration
- cb_forced_break_alliance – Forced ally to break alliance
List of events[edit]
|
|
This section may contain outdated information that is inaccurate for the current version of the game. The last version it was verified as up to date for was 1.19. |
| Event ID | Name of event | Event's effect |
|---|---|---|
| trade_company_events.3 [<Province ID>] | Resettlement Plan Succeeds | Changes the culture of a specified province to the owner's culture and adds 1 base tax. Example: event trade_company_events.3 162 while playing Hungary will make Zemplen a Hungarian culture province
|
| 5056 | Diplomatic Insult | Get Diplomatic Insult CB on neighbor / +60 opinion to neighbors |
| 2001 | The Protestant Reformation | The capital of the country:
The country and its capital are marked as ‘birthplace of the Reformation’.[1] |
| 5073 [<Province ID>] | New Land Claimed | |
| flavor_jap.15 | The Za | |
| flavor_sco.8 | The Glasgow Chamber of Commerce | |
| colonial.12 [<Province ID>] | The Call of the Hunt | Sets trade good to |
| colonial.13 [<Province ID>] | Fur Trade Dwindles | Sets trade good to |
| colonial.18 [<Province ID>] | New World Coffee | Sets trade good to |
| 9520 [<Province ID>] | Slavery Abolished in $ProvinceName$ | Sets trade good to |
| 9469 | Lux Stella | gives choice between heir with at least a 6 in |
| 5015 | Excellent Minister | Gives choice between 1 stability, 25 prestige and 40 administrative power OR 100 military power and 10 army/navy tradition. |
| ideagroups.606 | Improved Reputation | Increase diplomatic reputation by 1 for 10 years. |
| 700 | Election! | Allows player to gain 1 |
See also[edit]
- List of provinces - Province IDs are used in many commands
- Country tags - Country tags are used in many commands
- Event ids - Event IDs used for event and testevent commands
