Console commands

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

The development console can be opened by pressing a special key or key combination. A textbox overlay will pop up similar to Half-Life 2, Elder Scrolls etc.

You can open it by typing a section sign § or grave accent ` (on US keyboards, with ~, to the left of 1).

If your keyboard does not have either of these keys, you can use your operating system's alternate input methods to "type" one of these characters. On Windows, Alt+21 using the NumPad enters a §. On Mac, ⌥ Opt+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.
  • Replace spaces in parameter names with underscore (_).
Scope Command Parameter Parameter Description
Character add_diplomacy <Character ID> <Delta> Modifies a character's diplomacy attribute
Character add_intrigue <Character ID> <Delta> Modifies a character's intrigue attribute
Character add_learning <Character ID> <Delta> Modifies a character's learning attribute
Character add_martial <Character ID> <Delta> Modifies a character's martial attribute
Character add_stewardship <Character ID> <Delta> Modifies 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.
Character remove_trait <Trait Name> <Character ID> Removes a trait to the character
Character age <Character ID> <Delta> Modifies a character's age
Character banish <Character ID>(banished) Banishes a character
Character cash <Amount> Adds gold (default 5000)
Character claim <Claim Name> <Character ID> Gives a claim to yourself or a character
Character culture <Character ID> <Culture> Sets a character's culture
Character decadence <New Decadence> Sets the Decadence of the players Dynasty
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> Executes an event to yourself or to a another character.
Character gfx_culture <Character ID> <Gfx Culture> Sets a character's gfx culture
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 play <Character ID> Switches to play a character
Character prestige <Amount> Adds prestige (default 5000)
Character score <Amount> Adds score to the player
Character techpoints Adds 1000 technology points of each type.
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 titleowner <Title Name> <Character ID> Sets the holder of a title
Character usurp <Title Name> Sets a title to be owned by the player
Character validate_laws <Character ID> Validates the laws of a characters primary holding
Character validate_lieges <Title Name> Validates the liege of a title
Global validate_cultural_names Validates cultural title names
Character vassalize Sets a character as your vassal
Global allow_laws Toggles the ability to change laws freely
Global charinfo <Character ID> Adds debug info to character status info ("ALL" = all)
Global discover_plots Toggles auto plot discovery
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 be known always
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
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
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 testevent <Event ID> <Character ID> Tests an event without triggering it
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!

Variables[edit]

Character ID: Found using the 'charinfo' command. It is listed on with the usual mouse-over stats.

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 bishropric of Tyddewi in Dyfed is b_st_davids. Refer to common/landed_titles/landed_titles.txt if you get stuck.

Modding
Static modding
Dynamic modding
Other