Console commands

From Crusader Kings II Wiki
(Redirected from Console command)
Jump to: navigation, search

Console commands are instructions to the game that players can use to cheat, experiment, or work around bugs.

Opening the console[edit]

You can open the console by typing any of the following:

  • ` grave accent or backtick
    • On US keyboards, located to the left of 1
  • § section sign
    • On German/Nordic keyboards, this is ⇧Shift + 3
    • On French keyboards, this is ⇧Shift + !
    • On Windows, Alt + NumPad 2 + NumPad 1 enters a §.
    • On OS X, ⌥Option + 6 enters a §.

List of commands[edit]

Below is a list of commands and any parameter they accept (in order, if more than one) with a description of what the command will do.

  • For "Character" scope, if none is given then it will default to the player (Some commands excepted, such as age). Most targeted commands accept character ids as the optional 2nd parameter, notable exceptions are religion/culture which if the character id is added it must be the first parameter ("religion orthodox" or "religion 555 orthodox"). If no parameters are listed then assume that it has a single optional character id parameter.
  • For "None" scope there is only one way to use it, for "Global" scope it will toggle things globally, example: marry_anyone allows ALL characters to marry anyone.
  • Character attributes (diplomacy, intrigue, etc.) normally range from 0-20. For some reason the designers didn't worry about them being over 100, so i'd suggest values well below 50 even when tweaking your own character.
  • <Character ID> can be found by using the Charinfo function and hovering over the person's name.
  • <Province ID> corresponds to the "ID" number found in the chart of Counties.
  • Replace spaces in parameter names with underscore (_).
Scope Command Parameter Parameter Description
Character add_diplomacy <Character ID> <Delta> Modifies the base of a character's diplomacy attribute
Character add_intrigue <Character ID> <Delta> Modifies the base of a character's intrigue attribute
Character add_learning <Character ID> <Delta> Modifies the base of a character's learning attribute
Character add_martial <Character ID> <Delta> Modifies the base of a character's martial attribute
Character add_stewardship <Character ID> <Delta> Modifies the base of a character's stewardship attribute
Character add_trait <Trait Name> <Character ID> Adds a trait to the character. Opposites traits are not checked. Trait names are all lower case. If no character ID is inputted, the trait will be given to the character you are currently playing instead. The same thing also proves true with the remove_trait command.
Character remove_trait <Trait Name> <Character ID> Removes a trait from the character
Character age <Character ID> <Delta> Modifies a character's age
Character banish <Character ID>(banished) Banishes a character
Character capital <Province ID> Moves Capital to province
Character cash <Amount> Adds gold (default 5000)
Character claim <Title Name> <Character ID> Gives a claim to yourself or another character
Character clr_focus <Character ID> Clears the focus of a character
Character culture <Character ID> <Culture> Sets a character's culture
Character decadence <New Decadence> Sets the Decadence of the player's Dynasty
Character infamy <Amount> Sets the infamy of the player
Character de_jure_counties Shows de jure counties map mode
Character enable_ambition <Character ID> Allows a character to pick a new ambition
Character event <Event ID> <Character ID> or <Province ID> Executes an event for yourself or for another character or province.
Debug testevent <Event ID> <Character ID> or <Province ID> Tests an event without triggering it
Character gfx_culture <Character ID> <Culture> Sets a character's gfx culture based on default graphical_culture of a culture. Ex: gfx_culture 10 norse
Character give_birth <Character ID> Forces a pregnant character to instantly give birth.
Character give_title <Title Name> <Character ID> Gives a title to a character
Character imprison <Character ID>(jailed) <Character ID>(jailor) Imprisons a character by another character
Character kill <Character ID> Kills a character
Character move <Character ID>(Mover) <Character ID>(Move To) Moves a character to a character's court
Character neg_opinion <Character ID>(Hater) <Character ID>(Hated) Adds a negative opinion between two characters
Character nickname <Nickname> <Character ID> Gives a character or the player a nickname
Character piety <Amount> Adds piety (default 5000)
Character die die a natural death
Character play <Character ID> Switches to play a character (WARNING: This deletes and resets the chronicle of your current character each time you switch.)
Character prestige <Amount> Adds prestige (default 5000)
Character run <file name> Executes script commands from a text file. The file must be in the Documents/Paradox Interactive/Crusader Kings 2/ folder (as appropriate for your OS). Commands will be executed in the scope of the player's character.
Character score <Amount> Adds score to the player
Character secret_religion <religion> Sets a character's secret religion.
Character techpoints Adds 1000 technology points of each type.
Character max_tech <Province ID> Maxes out tech tree in province
Character recalc_succ <Character ID> Recalculate the succession for a character or the player
Character religion <Character ID> <Religion> Sets a character's religion or player if character not supplied
Character set_government <Government Tag> <Character ID> Changes government to specified type (accepted inputs are merchant_republic_government, nomadic_government, feudal_government, theocracy_government, tribal_government, republic_government, and muslim_government)
Character titleowner <Title Name> <Character ID> Sets the holder of a title
Character validate_laws <Character ID> Validates the laws of a characters primary holding
Character validate_lieges <Title Name> Validates the liege of a title
Character set_char_flag <Flag> <Character ID> Sets a flag for a character
Character clr_char_flag <Flag> <Character ID> Clears a flag from a character
Character vassalize Sets a character as your vassal. (Obsolete)
Global allow_laws Toggles the ability to change laws freely
Global real_fathers Shows the true fathers in the family tree
Global charinfo <Character ID>
  • Adds debugging information to character tooltips
  • Reveals your spouse's other lovers
Global discover_plots Toggles auto plot discovery
Global population <Amount> Adds nomadic population
Global manpower <Amount> Adds nomadic manpower
Global quickbuild Builds everything in one day
Global fow <Province ID> OPTIONAL Turns off fog of war in a province or in general
Global marry_anyone Toggles the ability to marry anyone
Global morehumans humans Adds more humans
Global neg_diplo Toggles the ability to send diplomatic messages that will be refused
Global nextsong Changes the currently playing soundtrack
Global plots_known Toggles all plots to always be known
Global set_flag <Flag> Sets a global flag
Global clr_flag <Flag> Clears a global flag
Global set_prov_flag <Flag> <Province> Sets a flag for a province
Global clr_prov_flag <Flag> <Province> Clears a flag from a province
Global validate_cultural_names Validates cultural title names
Global spawn_disease <disease> <Province> Spawn specified disease in chosen province.
None character_stats Displays various game statistics, such as number of characters, plots, and fertility.
None dynasty_stats Displays various dynasty statistics, including the number of unique dynasties and how many historical dynasties have died off.
None control <Province ID> <Settlement Number> Sets a settlement to controlled by the player
None moveunit <Unit ID> <Province ID> Moves a unit to a province
None murder <Character ID>(Murderer) <Character ID>(Victim) One character attempts to murder another
None pollinate <Character ID>(Mother) <Character ID>(Father) Impregnates a character by another character
None cuckoo <Character ID>(Mother) <Character ID>(Father) Impregnates a character by another character, father unknown
None revolt <Province ID> Starts a Revolt in a province
None succ <Succession Type> Changes the succession type (WARNING: Dangerous). Valid values: feudal_elective, primogeniture, gavelkind, seniority, tanistry, turkish_succession
None add_lover <Character ID> <Character ID> Makes a character the lover of another character
None add_friend <Character ID> Makes the character your friend
None remove_friend <Character ID> Removes the character as your friend
None add_rival <Character ID> Makes a character your rival
None remove_rival <Character ID> Removes the character as your rival
None flip_mapmodes Cycles to the next map mode each day.
None show_all_societies Shows all societies in list of society view.
Debug clear Clears the console
Debug debug_ai <Character ID> recalc (OPTIONAL) Displays AI strategy for a character (empty ID to turn off)
Debug debug_aistrength Prints some AI Strength data
Debug debug_assert Toggles asserts on/off
Debug debug_bloom Toggles Bloom on/off
Debug debug_borders Toggles Borders on/off
Debug debug_citysprawl Toggles Citysprawl on/off
Debug debug_dumpevents Dump Event data to game log
Debug debug_events Start Counting events
Debug debug_hires Toggles Terrain Hires mode on/off
Debug debug_info Toggles Debug info
Debug debug_lines Toggles Debuglines
Debug debug_lockcamera Toggles Camera locked on/off
Debug debug_name Generates names for provinces
Debug debug_nogui Toggles GUI on/off
Debug debug_nomen Toggles Nomen
Debug debug_nomouse Toggles mouse scrollwheel on/off
Debug debug_postfx Toggles PostFX on/off
Debug debug_rivers Toggles Rivers on/off
Debug debug_sky Toggles Sky on/off
Debug debug_smooth Toggle framesmoothing
Debug debug_terrain Toggles Terrain on/off
Debug debug_textures Writes Texture info to application debug log
Debug debug_ti Toggles Terra Incognita on/off
Debug debug_tooltip Toggles Tooltips on/off
Debug debug_trees Toggles Trees on/off
Debug debug_volume <Volume Delta> Modifies music volume
Debug debug_water Toggles Water on/off
Debug debug_wireframe Toggles forced wireframe on/off
Debug debug_yesmen Toggles Yesmen
Debug debug_zoom Zooms in the game
Debug eventinfo Prints the number of running events (adds debug info to character status info)
Debug fullscreen Toggles fullscreen
Debug hello <Character ID or Title Name> Opens the character screen or title screen
Debug help <Command Name> Print out all console commands or a specific command description
Debug helplog log file Print out all console commands to game.log
Debug numcoas Prints the number of used coat of arms
Debug observe Switches to observer mode, by playing no character at all. You will not be interrupted by messages, even narrative events, in this mode.
Debug refresh_portraits Sets all character portraits to be refreshed asap
Debug reload file name Reloads the gui or lua file
Debug reloadfx map/mapname/postfx or * fx filename Reloads the shader
Debug reloadinterface Reloads the entire interface
Debug reloadtexture texture file name Reloads the specified texture
Debug spawnactor <Actorname> <Animation> OPTIONAL <Title Name> OPTIONAL Spawns an actor with an optional animation and tabard title
Debug window open/close gui name Opens or closes the specified window
Debug wipe_achievements Wipe out all CK2 Steam achievements. WARNING: CANNOT BE UNDONE!


  • Character ID: Found using the 'charinfo' command. It is listed on with the usual mouse-over stats.
  • Province ID: See provinces
  • Title Name: For instance e_britannia. It is usually a predictable name with Empires starting with "e", Kingdoms with "k", Duchies with "d", Counties with "c", and baronies/bishoprics/cities with "b". Some exceptions exist, such as Rome is c_roma, the duchy of the isles is d_western_isles, the county of Leon in Brittany is c_french_leon, and the bishopric of Tyddewi in Dyfed is b_st_davids. Refer to common/landed_titles/landed_titles.txt if you get stuck.
  • Nickname: See nicknames, format is nick_the_xxx
  • Trait Name: See traits
  • Settlement Number: [NEEDS EXPLANATION]