Difference between revisions of "Console commands"

From Crusader Kings II Wiki
Jump to navigation Jump to search
(Opening the console: Second key combination for French AZERTY keyboards.)
(44 intermediate revisions by 29 users not shown)
Line 1: Line 1:
{{version|2.8}}
+
{{version|3.2}}
  
 
'''Console commands''' are instructions to the game that players can use to cheat, experiment, or work around bugs.
 
'''Console commands''' are instructions to the game that players can use to cheat, experiment, or work around bugs.
Line 5: Line 5:
 
== Opening the console ==
 
== Opening the console ==
  
Keep in mind that the console is not accessible in Ironman !
+
Keep in mind that the console is not accessible in [[Ironman]]!
  
 
If you don't use Ironman for your current game, you can open the console by typing any of the following:
 
If you don't use Ironman for your current game, you can open the console by typing any of the following:
 
* {{key press|`}} grave accent or backtick
 
* {{key press|`}} grave accent or backtick
 
** On US keyboards, located to the left of {{key press|1}}
 
** On US keyboards, located to the left of {{key press|1}}
 +
** on Linux/US international layouts , this is {{key press|Alt Gr}} + {{key press|`}}
 
* {{key press|§}} section sign
 
* {{key press|§}} section sign
** On German/Nordic keyboards, this is {{key press|Shift}} + {{key press|3}}
+
** On German/Nordic keyboards, this is {{key press|Shift}} + {{key press|3}} This may also be for some like myself be the combo of left shift and the §| key to the left of the number 1 on the number row.
** On French keyboards, this is {{key press|Shift}} + {{key press|!}}
+
** On Spanish and Italian keyboards, this is is {{key press|Alt}} + {{key press|2}} + {{key press|1}}
 +
** On Portuguese keyboards, this is {{key press|Alt Gr}} + {{key press|4}} or {{key press|Alt}} + {{key press|0167}}
 +
** On French keyboards, this is {{key press|Shift}} + {{key press|!}} and {{key press|Alt}} + {{key press|2}} + {{key press|1}}
 
** On Windows, {{key press|Alt}} + {{key press|2|numpad}} + {{key press|1|numpad}} enters a §.
 
** On Windows, {{key press|Alt}} + {{key press|2|numpad}} + {{key press|1|numpad}} enters a §.
** On OS X, {{key press|Opt}} + {{key press|6}} enters a §.
+
** On macOS (US), {{key press|Opt}} + {{key press|6}} enters a §.
  
 
== List of commands ==
 
== List of commands ==
 
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.
 
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 "[[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.  
 
*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.  
Line 37: Line 40:
 
!Scope
 
!Scope
 
!Command
 
!Command
 +
!Alias
 
!Parameter
 
!Parameter
 
!Parameter
 
!Parameter
 
!Description
 
!Description
 
|-
 
|-
|Character||add_artifact||<artifact name>||<Character ID> (OPTIONAL)||Adds an artifact to the given character
+
|Character||add_artifact||||<Artifact Name>||<Character ID> (OPTIONAL)||Adds an artifact to the given character
 
|-
 
|-
|Character||get_all_artifacts||<Character ID> (OPTIONAL)||||Give all artifacts to target character, or the player's character is no target is specified
+
|Character||get_all_artifacts||||<Character ID> (OPTIONAL)||||Give all artifacts to target character, or the player's character if no target is specified
 
|-
 
|-
|Character||destroy_artifact||<artifact name>||<Character ID> (OPTIONAL)||Removes an artifact from the given character, destroying it  
+
|Character||destroy_artifact||||<Artifact Name>||<Character ID> (OPTIONAL)||Removes an artifact from the given character, destroying it  
 
|-
 
|-
|Character||add_diplomacy||<Character ID>||<Delta>||Modifies the base of a character's diplomacy [[attribute]]
+
|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_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_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_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_stewardship||||<Character ID>||<Delta>||Modifies the base of a character's stewardship attribute
 
|-
 
|-
|Character||add_offmap_currency||<Offmap Power>||<Amount> (OPTIONAL)||Gives currency with the specified offmap power to the player (default 5000)
+
|Character||add_offmap_currency||||<Offmap Power>||<Amount>||Gives the player currency with the specified offmap power. For example, to add [[grace]] with China: add_offmap_currency offmap_china 5000
 
|-
 
|-
|Character||add_trait||<Trait Name>||<Character ID>||Adds a [[trait]] to the character. Opposites traits are 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||add_trait||||<Trait Name>||<Character ID>||Adds a [[trait]] to the character. Opposites traits are 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||remove_trait||||<Trait Name>||<Character ID>||Removes a [[trait]] from the character
 
|-
 
|-
|Character||add_modifier||<Modifier Name>||<Character ID>, <Days>||Adds a modifier to a character
+
|Character||add_modifier||||<Modifier Name>||<Character ID>, <Days>||Adds a modifier to a character
 
|-
 
|-
|Character||remove_modifier||<Modifier Name>||<Character ID>||Removes a modifier from a character
+
|Character||remove_modifier||||<Modifier Name>||<Character ID>||Removes a modifier from a character
 
|-
 
|-
|Character||age||<Character ID>||<Delta>||Modifies a character's age
+
|Character||age||||<Character ID>||<Delta>||Modifies a character's age
 
|-
 
|-
|Character||banish||<Character ID> (banished)||||Banishes a character
+
|Character||banish||||<Character ID> (banished)||||Banishes a character
 
|-
 
|-
|Character||capital||<Province ID>||||Moves player capital to province
+
|Character||capital||||<Province ID>||||Moves player capital to province
 
|-
 
|-
|Character||clr_moved_capital||<Actorname> (OPTIONAL)||||Clears the moved capital-flag of a character. Argument does not work, confirmation needed.
+
|Character||clr_moved_capital||||<Character ID> (OPTIONAL)||||Clears the moved capital-flag of a character.
 
|-
 
|-
|Character||cash (wealth)||<Amount> (OPTIONAL)||||Adds gold (default 5000)
+
|Character||cash||wealth||<Amount> (OPTIONAL)||||Adds [[gold]] to the player (default 5000). Putting a - before the amount will subtract that amount instead.
 
|-
 
|-
|Character||claim||<Title Name>||<Character ID> (OPTIONAL)||Gives a [[claim]] to yourself or another character
+
|Character||claim||||<Title Name>||<Character ID> (OPTIONAL)||Gives a [[claim]] to yourself or another character
 
|-
 
|-
|Character||coalition||<Character 01 ID>||<Character 02 ID>||<Character 01> starts/joins/leaves a coalition against <Character 02>
+
|Character||coalition||||<Character 01 ID>||<Character 02 ID>||<Character 01> starts/joins/leaves a coalition against <Character 02>
 
|-
 
|-
|Character||council_positions||<Character ID or Title Name>||||Shows the ai scores of each council position
+
|Character||council_positions||||<Character ID or Title Name>||||Shows the ai scores of each council position
 
|-
 
|-
|Character||clr_focus||<Character ID>||||Clears the [[focus]] of a character
+
|Character||clr_focus||||||||Clears the [[focus]] of the player character
 
|-
 
|-
|Character||culture||<Character ID>||<Culture>||Sets a character's culture
+
|Character||culture||||<Character ID> (OPTIONAL)||<Culture>||Sets a character's culture
 
|-
 
|-
|Character||decadence||<New Decadence>||||Sets the [[Decadence]] of the player's [[Dynasty]]
+
|Character||decadence||||<Delta>||||Modifies the [[Decadence]] of the player's [[Dynasty]] relative to unmodified decadence
 
|-
 
|-
|Character||decision||<Decision ID>||<Character ID>||Executes a decision
+
|Character||decision||||<Decision ID>||<Character ID>||Executes a decision
 
|-
 
|-
|Character||die||||||Die a natural death
+
|Character||die||||||||Die a natural death
 
|-
 
|-
|Character||enforce_peace||<Amount>||||Triggers the enforce peace mechanic in the player's realm. Council must be empowered, other requirements are waived. <Amount> seems to be ignored, confirmation needed.
+
|Character||enforce_peace||||<Amount>||||Triggers the enforce peace mechanic in the player's realm. Council must be empowered, other requirements are waived. <Amount> seems to be ignored, confirmation needed.
 
|-
 
|-
|Character||liege_enforce_peace||<Amount>||||Triggers the enforce peace mechanic in the player's liege's realm. Council must be empowered, other requirements are waived. <Amount> seems to be ignored, confirmation needed.
+
|Character||liege_enforce_peace||||<Amount>||||Triggers the enforce peace mechanic in the player's liege's realm. Council must be empowered, other requirements are waived. <Amount> seems to be ignored, confirmation needed.
 
|-
 
|-
|Character||enable_ambition||<Character ID>||||Allows a character to pick a new [[ambition]]
+
|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.
+
|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
+
|Debug||testevent||||<Event ID>||<Character ID> or <Province ID>||Tests an [[event]] without triggering it
 
|-
 
|-
|Character||favor_get||<Character ID>||||Get a favor from character
+
|Character||favor_get||||<Character ID>||||Get a favor from character
 
|-
 
|-
|Character||favor_grant||<Character ID>||||Grant a favor to a character
+
|Character||favor_grant||||<Character ID>||||Grant a favor to a character
 
|-
 
|-
|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||gfx_culture||||<Character ID> (OPTIONAL)||<Culture>||Sets a character's gfx culture based on default graphical_culture of a culture
 
|-
 
|-
|Character||give_birth||<Character ID>||||Forces a pregnant character to instantly give birth.
+
|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||give_title||||<Title Name>||<Character ID>||Gives a title to a character
 
|-
 
|-
|Character||infamy||<Amount>||||Sets the infamy of the player
+
|Character||infamy||||<Delta>||||Modifies the player character's threat
 
|-
 
|-
|Character||imprison||<Character ID>(jailed)||<Character ID>(jailor)||Imprisons a character by another character
+
|Character||imprison||||<Character ID>(jailed)||<Character ID>(jailor)||Imprisons a character by another character
 
|-
 
|-
|Character||join_society||<Society Key>||||Join a society. Valid society names are: monastic_order_benedictine, monastic_order_dominican, monastic_order_orthodox, monastic_order_nestorian, monastic_order_monophysite, monastic_order_hindu, monastic_order_buddhist, monastic_order_jain, hermetics, the_assassins, the_satanists, the_trollcrafters, the_cult_of_kali, the_cold_ones, the_plaguebringers and dynamically generated secret religious societies.
+
|Character||join_society||||<Society Key>||||Join a society. Valid society names are: monastic_order_benedictine, monastic_order_dominican, monastic_order_orthodox, monastic_order_nestorian, monastic_order_monophysite, monastic_order_hindu, monastic_order_buddhist, monastic_order_jain, hermetics, the_assassins, the_satanists, the_trollcrafters, the_cult_of_kali, the_cold_ones, the_plaguebringers, and secret_religious_society_&lt;religion&gt;
 
|-
 
|-
|Character||leave_society||<Society Key> (OPTIONAL)||||Leave a society
+
|Character||leave_society||||<Society Key> (OPTIONAL)||||Leave a society
 
|-
 
|-
|Character||kill||<Character ID>||||Kills a character
+
|Character||log_missing_adjectives||||||||Logs any title that has no adjective loc key defined (E.G., if the title "k_title" is defined, but no loc "k_title_adj" is defined)
 
|-
 
|-
|Character||kill_yourself||<Character ID>||||Kills your character. Does not work ("Not today QA!").
+
|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||kill_yourself||||<Character ID>||||Kills your character. Does not work ("Not today QA!"). Use <code>die</code> instead.
 
|-
 
|-
|Character||neg_opinion||<Character ID>(Hater)||<Character ID>(Hated)||Adds a negative [[opinion]] between two characters
+
|Character||move||||<Character ID>(Mover)||<Character ID>(Move To)||Moves a character to a character's [[court]]
 
|-
 
|-
|Character||nickname||<Nickname>||<Character ID>||Gives a character or the player a [[nickname]]
+
|Character||neg_opinion||||<Character ID>(Hater)||<Character ID>(Hated)||Adds a negative [[opinion]] between two characters
 
|-
 
|-
|Character||piety||<Amount> (OPTIONAL)||||Adds [[piety]] to the player (default 5000)
+
|Character||nickname||||<Nickname>||<Character ID>||Gives a character or the player a [[nickname]]
 
|-
 
|-
|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||piety||||<Amount> (OPTIONAL)||||Adds [[piety]] to the player (default 5000)
 
|-
 
|-
|Character||prestige||<Amount> (OPTIONAL)||||Adds [[prestige]] to the player (default 5000)
+
|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||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||prestige||||<Amount> (OPTIONAL)||||Adds [[prestige]] to the player (default 5000)
 
|-
 
|-
|Character||score||<Amount> (OPTIONAL)||||Adds [[score]] to the player (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||techpoints||||||Adds 1000 technology points of each type to the player
+
|Character||score||||<Amount> (OPTIONAL)||||Adds [[score]] to the player (default 5000)
 
|-
 
|-
|Character||max_tech||<Province ID> (OPTIONAL)||||Maxes out tech in all provinces, or in specified province
+
|Character||techpoints||||||||Adds 1000 technology points of each type to the player
 
|-
 
|-
|Character||recalc_succ||<Character ID>||||Recalculate the [[succession]] for a character or the player
+
|Character||max_tech||||<Province ID> (OPTIONAL)||||Maxes out tech in all provinces, or in specified province
 
|-
 
|-
|Character||religion||<Character ID>||<Religion> ||Sets a character's religion or player if character not supplied
+
|Character||recalc_succ||||<Character ID>||||Recalculate the [[succession]] for a character or the player
 
|-
 
|-
|Character||secret_religion||<Character ID>||<Religion>||Sets a character's secret religion.
+
|Character||religion||||<Character ID> (OPTIONAL)||<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||secret_religion||||<Character ID> (OPTIONAL)||<Religion>||Sets a character's secret religion.
 
|-
 
|-
|Character||titleowner||<Title Name>||<Character ID> (OPTIONAL)||Reports or sets the holder of a title. Does not include tribal capital holdings.
+
|Character||set_government||||<Government Tag>||<Character ID> (OPTIONAL)||Changes government to specified type (accepted inputs are merchant_republic_government, nomadic_government, feudal_government, theocracy_government, tribal_government, republic_government, muslim_government, theocratic_feudal_government, chinese_imperial_government, confucian_bureaucracy, order_government, roman_imperial_government)
 
|-
 
|-
|Character||validate_government||<Character ID> (OPTIONAL)||||Validates government of a character
+
|Character||titleowner||||<Title Name>||<Character ID> (OPTIONAL)||Reports or sets the holder of a title. Does not include tribal capital holdings.
 
|-
 
|-
|Character||validate_laws||<Character ID>||||Validates the [[laws]] of a characters primary [[holding]]
+
|Character||validate_government||||<Character ID> (OPTIONAL)||||Validates government of a character
 
|-
 
|-
|Character||validate_lieges||<Title Name>||||Validates the liege of a title
+
|Character||validate_laws||||<Character ID>||||Validates the [[laws]] of a characters primary [[holding]]
 
|-
 
|-
|Character||set_char_flag||<Flag>||<Character ID>||Sets a [[flag]] for a character
+
|Character||validate_lieges||||<Title Name>||||Validates the liege of a title
 
|-
 
|-
|Character||clr_char_flag||<Flag>||<Character ID>||Clears a [[flag]] from a character
+
|Character||set_char_flag||||<Flag>||<Character ID>(OPTIONAL)||Sets a [[flag]] for a character
 
|-
 
|-
|Character||set_society_grandmaster||<Character ID> (OPTIONAL)||||Sets the grandmaster of the society you're in to the given character
+
|Character||clr_char_flag||||<Flag>||<Character ID>(OPTIONAL)||Clears a [[flag]] from a character
 
|-
 
|-
|Character||show_all_societies||||||Shows all societies in list of society view
+
|Character||set_society_grandmaster||||<Character ID> (OPTIONAL)||||Sets the grandmaster of the society you're in to the given character
 
|-
 
|-
|Character||society_rank_up||<Amount> (OPTIONAL)||||Ranks player up in society (default 1)
+
|Character||show_all_societies||||||||Shows all societies in list of society view
 
|-
 
|-
|Character||society_rank_down||<Amount> (OPTIONAL)||||Ranks player down in society (default 1)
+
|Character||society_rank_up||||<Amount> (OPTIONAL)||||Ranks player up in society (default 1)
 
|-
 
|-
|Character||society_currency||<Amount> (OPTIONAL)||||Adds society currency to the player (default 5000)
+
|Character||society_rank_down||||<Amount> (OPTIONAL)||||Ranks player down in society (default 1)
 
|-
 
|-
|Character||quickbuild||||||Player's constructions are finished immediately
+
|Character||society_currency||||<Amount> (OPTIONAL)||||Adds society currency to the player (default 5000)
 
|-
 
|-
|Character||usurp||<Title Name>||<Character ID>||Sets a title to be usurped by a character
+
|Character||quickbuild||||||||Player's constructions are finished immediately
 
|-
 
|-
|Character||vassalize||||||Sets a character as your [[vassal]]. (Obsolete)
+
|Character||usurp||||<Title Name>||<Character ID>||Sets a title to be usurped by a character; if title currently does not exist, creates the title instead.
 
|-
 
|-
|Global||activate_artifacts||||||All artifacts are always active regardless of activation triggers.
+
|Global||activate_artifacts||||||||All artifacts are always active regardless of activation triggers. Disabled as of at least 3.2.1.
 
|-
 
|-
|Global||allow_laws||||||Toggles the ability to change laws freely
+
|Global||allow_laws||||||||Toggles the ability to change laws freely
 
|-
 
|-
|Global||real_fathers||||||Shows the true fathers in the family tree
+
|Global||real_fathers||||||||Shows the true fathers in the family tree
 
|-
 
|-
|Global||charinfo||<Character ID>||||
+
|Global||charinfo||debug_mode||<Character ID>||||
 
*Adds debugging information to character, title and event tooltips
 
*Adds debugging information to character, title and event tooltips
*Reveals your spouse's other [[Marriage#Lovers|lovers]]
+
*Reveals your spouse's other [[Marriage#Lovers|lovers]]  
 
|-
 
|-
|Global||de_jure_counties||||||Shows de jure counties map mode
+
|Global||de_jure_counties||||||||Shows de jure counties map mode
 
|-
 
|-
|Global||discover_plots||||||Toggles auto plot discovery
+
|Global||discover_plots||||||||Toggles auto plot discovery
 
|-
 
|-
|Global||fow||<Province ID> (OPTIONAL)||||Turns off fog of war in a [[province]] or in general
+
|Global||fow||||<Province ID> (OPTIONAL)||||Turns off fog of war in a [[province]] or in general
 
|-
 
|-
|Global||game_speed||<Speed>||||Sets the game speed, from 0 to 4
+
|Global||game_speed||||<Speed>||||Sets the game speed, from 0 to 4
 
|-
 
|-
|Global||game_paused||<true/false> (OPTIONAL)||||Toggles/sets the game paused state, argument must be lowercase
+
|Global||game_paused||||<true/false> (OPTIONAL)||||Toggles/sets the game paused state, argument must be lowercase
 
|-
 
|-
|Global||get_offmap_holder||<Offmap Power>||||Displays the name and character id of the current holder of an offmap power
+
|Global||get_offmap_holder||||<Offmap Power>||||Displays the name and character id of the current holder of an offmap power
 
|-
 
|-
|Global||set_offmap_status||<Offmap Power>||<Status>||Sets the status of the specified offmap power
+
|Global||set_offmap_status||||<Offmap Power>||<Status>||Sets the status of the specified offmap power (e.g. china_stable, china_unrest...)
 
|-
 
|-
|Global||set_offmap_policy||<Offmap Power>||<Policy>||Sets the policy of the specified offmap power
+
|Global||set_offmap_policy||||<Offmap Power>||<Policy>||Sets the policy of the specified offmap power (e.g. china_open, china_isolationist, china_expansionist)
 
|-
 
|-
|Global||kill_offmap_ruler||<Offmap Power>||||Kills the ruler specified offmap power
+
|Global||kill_offmap_ruler||||<Offmap Power>||||Kills the ruler specified offmap power
 
|-
 
|-
|Global||kill_offmap_dynasty||<Offmap Power>||||Kills the ruler specified offmap power, and generates a new one of a different dynasty
+
|Global||kill_offmap_dynasty||||<Offmap Power>||||Kills the ruler specified offmap power, and generates a new one of a different dynasty
 
|-
 
|-
|Global||manpower||<Amount> (OPTIONAL)||||Adds nomadic manpower to a nomad player character (default 5000)
+
|Global||manpower||||<Amount> (OPTIONAL)||||Adds nomadic manpower to a nomad player character (default 5000)
 
|-
 
|-
|Global||population||<Amount> (OPTIONAL)||||Adds nomadic population to a nomad player character (default 5000)
+
|Global||population||||<Amount> (OPTIONAL)||||Adds nomadic population to a nomad player character (default 5000)
 
|-
 
|-
|Global||marry_anyone||||||Toggles the ability to marry anyone
+
|Global||marry_anyone||||||||Toggles the ability to marry anyone
 
|-
 
|-
|Global||morehumans||humans||||Adds more humans
+
|Global||morehumans||humans||<Amount>||||Adds more humans
 
|-
 
|-
|Global||neg_diplo||||||Toggles the ability to send diplomatic messages that will be refused
+
|Global||neg_diplo||||||||Toggles the ability to send diplomatic messages that will be refused
 
|-
 
|-
|Global||nextsong||||||Changes the currently playing [[soundtrack]]
+
|Global||nextsong||||||||Changes the currently playing [[soundtrack]]
 
|-
 
|-
|Global||outbreak||<disease>||||Starts specified disease outbreak in a random coastal province. Black Death may only start in Kundina and Jiuquan
+
|Global||listsongs||||||||Shows all available songs
 
|-
 
|-
|Global||plots_known||||||Toggles all plots to always be known
+
|Global||outbreak||||<Disease>||||Starts specified disease outbreak in a random province. Black Death may only start in Kundina and Jiuquan
 
|-
 
|-
|Global||recalc_council||||||Will recalc the council positions of each council member
+
|Global||plots_known||||||||Toggles all plots to always be known
 
|-
 
|-
|Global||set_flag||<Flag>||||Sets a global [[flag]]
+
|Global||recalc_council||||||||Will recalc the council positions of each council member
 
|-
 
|-
|Global||clr_flag||<Flag>||||Clears a global [[flag]]
+
|Global||reload_succession_voting||||||||Reloads succession voting patterns
 
|-
 
|-
|Global||set_prov_flag||<Flag>||<Province>||Sets a [[flag]] for a province
+
|Global||set_flag||||<Flag>||||Sets a global [[flag]]
 
|-
 
|-
|Global||clr_prov_flag||<Flag>||<Province>||Clears a [[flag]] from a province
+
|Global||clr_flag||||<Flag>||||Clears a global [[flag]]
 
|-
 
|-
|Global||validate_cultural_names||||||Validates cultural title names
+
|Global||set_prov_flag||||<Flag>||<Province ID>||Sets a [[flag]] for a province
 
|-
 
|-
|Global||spawn_disease||<disease>||<Province>||Spawn specified disease in chosen province. Black Death will start in either Kundina or Jiuquan
+
|Global||clr_prov_flag||||<Flag>||<Province ID>||Clears a [[flag]] from a province
 
|-
 
|-
|None||character_stats||||||Displays various game statistics, such as number of characters, plots, and fertility.
+
|Global||validate_cultural_names||||||||Validates cultural title names
 
|-
 
|-
|None||dynasty_stats||||||Displays various dynasty statistics, including the number of unique dynasties and how many historical dynasties have died off.
+
|Global||spawn_disease||||<Disease>||<Province ID>||Spawn specified disease in chosen province. Black Death will start in either Kundina or Jiuquan
 
|-
 
|-
|None||destroy_settlement||<Settlement Name>||||Destroys a settlement
+
|None||character_stats||||||||Displays various game statistics, such as number of characters, plots, and fertility.
 
|-
 
|-
|None||murder||<Character ID>(Murderer)||<Character ID>(Victim)||One character attempts to murder another
+
|None||dynasty_stats||||||||Displays various dynasty statistics, including the number of unique dynasties and how many historical dynasties have died off.
 
|-
 
|-
|None||pollinate||<Character ID>(Mother)||<Character ID>(Father)||Impregnates a character by another character
+
|None||destroy_settlement||||<Title Name>||||Destroys a holding. Takes a barony title (b_<name>) or destroys the capital of a county title (c_<name>)
 
|-
 
|-
|None||cuckoo||<Character ID>(Mother)||<Character ID>(Father)||Impregnates a character by another character, father unknown
+
|None||murder||||<Character ID>(Murderer)||<Character ID>(Victim)||One character attempts to murder another. Takes two more optional arguments: [<Auto success>( 1/0 )] [<Auto discover>( 1/0 )]
 
|-
 
|-
|None||revolt||<Province ID>||||Starts a [[Revolt]] in a province
+
|None||pollinate||||<Character ID>(Mother)||<Character ID>(Father)||Impregnates a character by another character
 
|-
 
|-
|None||succ||<Succession Type>||||Changes the succession type (WARNING: Dangerous). Valid values: feudal_elective, primogeniture, gavelkind, seniority, tanistry, turkish_succession, merchant_republic_government, tribal_government, nomadic_government, chinese_imperial_government
+
|None||cuckoo||||<Character ID>(Mother)||<Character ID>(Father)||Impregnates a character by another character, father unknown
 
|-
 
|-
|None||add_lover||<Character ID>||<Character ID>||Makes a character the lover of another character
+
|None||revolt||||<Province ID>||||Starts a [[Revolt]] in a province
 
|-
 
|-
|None||add_friend||<Character ID>||||Makes the character your friend
+
|None||succ||||<Succession Type>||||Changes the succession type (WARNING: Dangerous). Valid values: gavelkind, elective_gavelkind, tanistry, seniority, primogeniture, feudal_elective, ultimogeniture, turkish_succession, papal_succession, appointment, open_elective, catholic_bishopric, patrician_elective, nomad_succession, offmap_succession
 
|-
 
|-
|None||remove_friend||<Character ID>||||Removes the character as your friend
+
|None||add_lover||||<Character ID>||<Character ID>||Makes a character the lover of another character
 
|-
 
|-
|None||add_rival||<Character ID>||||Makes a character your rival
+
|None||add_friend||||<Character 01 ID>||<Character 02 ID> (OPTIONAL)||Makes the character your friend
 
|-
 
|-
|None||remove_rival||<Character ID>||||Removes the character as your rival
+
|None||remove_friend||||<Character 01 ID>||<Character 02 ID> (OPTIONAL)||Removes the character as your friend
 
|-
 
|-
|None||flip_mapmodes||||||Cycles to the next map mode each day
+
|None||add_rival||||<Character 01 ID>||<Character 02 ID> (OPTIONAL)||Makes a character your rival
 
|-
 
|-
|None||province_religion (prov_rel)||<Province ID>||<Religion>||Sets a province's religion
+
|None||remove_rival||||<Character 01 ID>||<Character 02 ID> (OPTIONAL)||Removes the character as your rival
 
|-
 
|-
|None||show_all_societies||||||Shows all societies in list of society view
+
|None||flip_mapmodes||||||||Cycles to the next map mode each day
 
|-
 
|-
|Debug||clear||||||Clears the console
+
|None||province_religion||prov_rel||<Province ID>||<Religion>||Sets a province's religion
 
|-
 
|-
|Debug||debug_ai||<Character ID>||recalc (OPTIONAL)||Displays AI strategy for a character (empty ID to turn off)
+
|None||run_commands_from_file||rcff, runcmdff||<File Name>||||Reads a file where each line is executed as a console command
 
|-
 
|-
|Debug||debug_aistrength||||||Prints some AI Strength data
+
|Debug||clear||||||||Clears the console
 
|-
 
|-
|Debug||debug_assert||||||Toggles asserts on/off
+
|Debug||debug_ai||||<Character ID>||recalc (OPTIONAL)||Displays AI strategy for a character (empty ID to turn off)
 
|-
 
|-
|Debug||debug_bloom||||||Toggles Bloom on/off
+
|Debug||debug_aistrength||||||||Prints some AI Strength data
 
|-
 
|-
|Debug||debug_borders||||||Toggles Borders on/off
+
|Debug||debug_assert||||||||Toggles asserts on/off
 
|-
 
|-
|Debug||debug_crash||||||Force game to crash
+
|Debug||debug_bloom||||||||Toggles Bloom on/off
 
|-
 
|-
|Debug||debug_citysprawl||||||Toggles Citysprawl on/off
+
|Debug||debug_borders||||||||Toggles Borders on/off
 
|-
 
|-
|Debug||debug_dumpevents||||||Dump Event data to game log
+
|Debug||debug_crash||||||||Force game to crash
 
|-
 
|-
|Debug||debug_events||||||Start Counting events
+
|Debug||debug_citysprawl||||||||Toggles Citysprawl on/off
 
|-
 
|-
|Debug||debug_hires||||||Toggles Terrain Hires mode on/off
+
|Debug||debug_dumpevents||||||||Dump Event data to dump_events.txt
 
|-
 
|-
|Debug||debug_info||||||Toggles Debug info
+
|Debug||debug_events||||||||Start Counting events
 
|-
 
|-
|Debug||debug_lines||||||Toggles Debuglines
+
|Debug||debug_hires||||||||Toggles Terrain Hires mode on/off
 
|-
 
|-
|Debug||debug_lockcamera||||||Toggles Camera locked on/off
+
|Debug||debug_info||||||||Toggles Debug info
 
|-
 
|-
|Debug||debug_name||||||Generates names for provinces
+
|Debug||debug_lines||||||||Toggles Debuglines
 
|-
 
|-
|Debug||debug_nogui||||||Toggles GUI on/off
+
|Debug||debug_lockcamera||||||||Toggles Camera locked on/off
 
|-
 
|-
|Debug||debug_nomen||||||Toggles Nomen
+
|Debug||debug_name||||||||Generates names for provinces
 
|-
 
|-
|Debug||debug_nomouse||||||Toggles mouse scrollwheel on/off
+
|Debug||debug_nogui||||||||Toggles GUI on/off
 
|-
 
|-
|Debug||debug_postfx||||||Toggles PostFX on/off
+
|Debug||debug_nomen||noman, nomen, nm||||||Toggles Nomen
 
|-
 
|-
|Debug||debug_rivers||||||Toggles Rivers on/off
+
|Debug||debug_nomouse||||||||Toggles mouse scrollwheel on/off
 
|-
 
|-
|Debug||debug_sky||||||Toggles Sky on/off
+
|Debug||debug_postfx||||||||Toggles PostFX on/off
 
|-
 
|-
|Debug||debug_smooth||||||Toggle framesmoothing
+
|Debug||debug_rivers||||||||Toggles Rivers on/off
 
|-
 
|-
|Debug||debug_terrain||||||Toggles Terrain on/off
+
|Debug||debug_sky||||||||Toggles Sky on/off
 
|-
 
|-
|Debug||debug_textures||||||Writes Texture info to application debug log
+
|Debug||debug_smooth||||||||Toggle framesmoothing
 
|-
 
|-
|Debug||debug_ti||||||Toggles Terra Incognita on/off
+
|Debug||debug_terrain||||||||Toggles Terrain on/off
 
|-
 
|-
|Debug||debug_tooltip||||||Toggles Tooltips on/off
+
|Debug||debug_textures||||||||Writes Texture info to application debug log
 
|-
 
|-
|Debug||debug_trees||||||Toggles Trees on/off
+
|Debug||debug_ti||||||||Toggles Terra Incognita on/off
 
|-
 
|-
|Debug||debug_triggerassert||||||Force game to throw an assert
+
|Debug||debug_tooltip||||||||Toggles Tooltips on/off
 
|-
 
|-
|Debug||debug_volume||<Volume Delta>||||Modifies music volume
+
|Debug||debug_trees||||||||Toggles Trees on/off
 
|-
 
|-
|Debug||debug_water||||||Toggles Water on/off
+
|Debug||debug_triggerassert||||||||Force game to throw an assert
 
|-
 
|-
|Debug||debug_wireframe||||||Toggles forced wireframe on/off
+
|Debug||debug_volume||||<Volume Delta>||||Modifies music volume
 
|-
 
|-
|Debug||debug_yesmen||||||Toggles Yesmen
+
|Debug||debug_water||||||||Toggles Water on/off
 
|-
 
|-
|Debug||debug_zoom||||||Zooms in the game
+
|Debug||debug_wireframe||||||||Toggles forced wireframe on/off
 
|-
 
|-
|Debug||eventinfo||||||Prints the number of running events (adds debug info to character status info)
+
|Debug||debug_yesmen||yesman, yesmen, ym||||||Toggles Yesmen; the AI will accept all diplomatic offers from the user. For example, request invasions from the Pope.
 
|-
 
|-
|Debug||guibounds (gui)||||||Toggles GUI bounds debug
+
|Debug||debug_zoom||||||||Zooms in the game
 
|-
 
|-
|Debug||fullscreen||||||Toggles fullscreen
+
|Debug||eventinfo||||||||Prints the number of running events (adds debug info to character status info)
 
|-
 
|-
|Debug||hello||<Character ID or Title Name>||||Opens the character screen or title screen
+
|Debug||guibounds||gui||||||Toggles GUI bounds debug
 
|-
 
|-
|Debug||help||<Command Name>||||Print out all console commands or a specific command description
+
|Debug||fullscreen||||||||Toggles fullscreen
 
|-
 
|-
|Debug||helplog||log file||||Print out all console commands to game.log
+
|Debug||hello||||<Character ID or Title Name>||||Opens the character screen or title screen
 
|-
 
|-
|Debug||noai||||||Toggles AI
+
|Debug||help||||<Command Name> (OPTIONAL)||||Print out all console commands or a specific command description
 
|-
 
|-
|Debug||numcoas||||||Prints the number of used coat of arms
+
|Debug||helplog||||||||Print out all console commands to game.log
 
|-
 
|-
|Debug||observe||||||Switches to [[observer]] mode, by playing no character at all, and no longer shows messages or pauses the game
+
|Debug||noai||||||||Toggles AI
 
|-
 
|-
|Debug||print_player_events||||||Print all player events to player_events.csv in game folder
+
|Debug||numcoas||||||||Prints the number of used coat of arms
 
|-
 
|-
|Debug||print_ai_events||||||Print all ai events to ai_events.csv in game folder
+
|Debug||observe||||||||Switches to [[observer]] mode, by playing no character at all, and no longer shows messages or pauses the game. Ctrl+clicking a character takes partial control, pausing only on succession and call-to-arms.
 
|-
 
|-
|Debug||refresh_portraits||||||Sets all character portraits to be refreshed asap
+
|Debug||print_player_events||||||||Print all player events to player_events.txt
 
|-
 
|-
|Debug||reload||file name||||Reloads the gui or lua file
+
|Debug||print_ai_events||||||||Print all ai events to ai_events.txt
 
|-
 
|-
|Debug||reloadevents||||||Reloads the event database
+
|Debug||print_global_flags||pgf||||||Print all global flags
 
|-
 
|-
|Debug||reloadfx||map/mapname/postfx or *||<fx filename>||Reloads the shader
+
|Debug||print_global_variables||print_global_vars, pgv||||||Print all global variables
 
|-
 
|-
|Debug||reloadgovernmentflavor||||||Reloads the government flavor
+
|Debug||print_holding_numbers||||||||Prints the number of holdings defined for each non-wasteland county, sorted by # of holdings. Useful if you want to ensure all counties can support up to 7 slots.
 
|-
 
|-
|Debug||reloadinterface||||||Reloads the entire interface
+
|Debug||print_randomlog||||||||Dumps content of the randomlog to randomlog.log
 
|-
 
|-
|Debug||reloadloc||||||Reloads the localisation
+
|Debug||refresh_portraits||||||||Sets all character portraits to be refreshed asap
 
|-
 
|-
|Debug||reloadpositions||||||Reloads the council position database
+
|Debug||reload||||<File Name>||||Reloads the gui or lua file
 
|-
 
|-
|Debug||reloadtexture||texture file name||||Reloads the specified texture
+
|Debug||reloadevents||||||||Reloads the event database
 
|-
 
|-
|Debug||spawnactor||<Actorname>||<Animation> (OPTIONAL||<Title Name> OPTIONAL Spawns an actor with an optional animation and tabard title
+
|Debug||reloadfx||||map/mapname/postfx or *.fx filename||||Reloads the shader
 
|-
 
|-
|Debug||version||||||Print out current version of the game
+
|Debug||reloadgovernmentflavor||||||||Reloads the government flavor
 
|-
 
|-
|Debug||window||<open/close>||<gui name>||Opens or closes the specified window
+
|Debug||reloadinterface||||||||Reloads the entire interface
 
|-
 
|-
|Debug||wipe_achievements||||||Wipe out all CK2 Steam [[achievements]]. WARNING: CANNOT BE UNDONE!
+
|Debug||reloadloc||||||||Reloads the localisation
 +
|-
 +
|Debug||reloadpositions||||||||Reloads the council position database
 +
|-
 +
|Debug||reloadtexture||||<Texture File Name>||||Reloads the specified texture
 +
|-
 +
|Debug||save_without_ironman||||<Save Name>||||Saves the current game without Ironman
 +
|-
 +
|Debug||spawnactor||||<Actorname>||<Animation> (OPTIONAL)||<Title Name> OPTIONAL Spawns an actor with an optional animation and tabard title
 +
|-
 +
|Debug||timer||||||||Prints out debug timing info
 +
|-
 +
|Debug||timer_start||||||||Starts debug timing
 +
|-
 +
|Debug||timer_restart||||||||Restarts (resets and starts) debug timing
 +
|-
 +
|Debug||timer_reset||||||||Resets debug timing
 +
|-
 +
|Debug||timer_stop||||||||Stops debug timing
 +
|-
 +
|Debug||timer_dump||||||||Dumps debug timing info
 +
|-
 +
|Debug||ct||||||||Puts timer info in clipboard
 +
|-
 +
|Debug||version||||||||Print out current version of the game
 +
|-
 +
|Debug||window||wnd||<open/close>||<window name>||Opens or closes the specified window
 +
|-
 +
|Debug||wipe_achievements||||||||Wipe out all CK2 Steam [[achievements]]. WARNING: CANNOT BE UNDONE!
 
|}
 
|}
  
Line 392: Line 424:
 
*Character ID: Found using the 'charinfo' command.  It is listed on with the usual mouse-over stats.
 
*Character ID: Found using the 'charinfo' command.  It is listed on with the usual mouse-over stats.
 
*Province ID: See [[provinces]]
 
*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.
+
*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/patrician house with "b". Some exceptions exist, such as Rome is c_roma, the Holy Roman Empire is e_hre, 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. Hovering over a title's flag shows you the name of the title, as long as you have charinfo active.
 
*Nickname: See [[nicknames]], format is nick_the_xxx
 
*Nickname: See [[nicknames]], format is nick_the_xxx
 
*Trait Name: See [[traits]]
 
*Trait Name: See [[traits]]

Revision as of 20:23, 1 August 2020

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

Opening the console

Keep in mind that the console is not accessible in Ironman!

If you don't use Ironman for your current game, you can open the console by typing any of the following:

  • ` grave accent or backtick
    • On US keyboards, located to the left of 1
    • on Linux/US international layouts , this is Alt Gr + `
  • § section sign
    • On German/Nordic keyboards, this is ⇧Shift + 3 This may also be for some like myself be the combo of left shift and the §| key to the left of the number 1 on the number row.
    • On Spanish and Italian keyboards, this is is Alt + 2 + 1
    • On Portuguese keyboards, this is Alt Gr + 4 or Alt + 0167
    • On French keyboards, this is ⇧Shift + ! and Alt + 2 + 1
    • On Windows, Alt + NumPad 2 + NumPad 1 enters a §.
    • On macOS (US), ⌥Option + 6 enters a §.

List of commands

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. However, as the attributes are stored in signed bytes, it ranges from -128 to 127. Correspondingly, the maximum base value a character can achieve is 127. Nonetheless, upon loading a savegame, the base value will be reduced to 100 - if it was above this value.
  • <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 (_).
  • NOTE: ANY COMMAND BEGINNING WITH "debug_" IS ACCESSIBLE ONLY BY DEVELOPERS—NOT BY PLAYERS.
Scope Command Alias Parameter Parameter Description
Character add_artifact <Artifact Name> <Character ID> (OPTIONAL) Adds an artifact to the given character
Character get_all_artifacts <Character ID> (OPTIONAL) Give all artifacts to target character, or the player's character if no target is specified
Character destroy_artifact <Artifact Name> <Character ID> (OPTIONAL) Removes an artifact from the given character, destroying it
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_offmap_currency <Offmap Power> <Amount> Gives the player currency with the specified offmap power. For example, to add grace with China: add_offmap_currency offmap_china 5000
Character add_trait <Trait Name> <Character ID> Adds a trait to the character. Opposites traits are 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 add_modifier <Modifier Name> <Character ID>, <Days> Adds a modifier to a character
Character remove_modifier <Modifier Name> <Character ID> Removes a modifier from a character
Character age <Character ID> <Delta> Modifies a character's age
Character banish <Character ID> (banished) Banishes a character
Character capital <Province ID> Moves player capital to province
Character clr_moved_capital <Character ID> (OPTIONAL) Clears the moved capital-flag of a character.
Character cash wealth <Amount> (OPTIONAL) Adds gold to the player (default 5000). Putting a - before the amount will subtract that amount instead.
Character claim <Title Name> <Character ID> (OPTIONAL) Gives a claim to yourself or another character
Character coalition <Character 01 ID> <Character 02 ID> <Character 01> starts/joins/leaves a coalition against <Character 02>
Character council_positions <Character ID or Title Name> Shows the ai scores of each council position
Character clr_focus Clears the focus of the player character
Character culture <Character ID> (OPTIONAL) <Culture> Sets a character's culture
Character decadence <Delta> Modifies the Decadence of the player's Dynasty relative to unmodified decadence
Character decision <Decision ID> <Character ID> Executes a decision
Character die Die a natural death
Character enforce_peace <Amount> Triggers the enforce peace mechanic in the player's realm. Council must be empowered, other requirements are waived. <Amount> seems to be ignored, confirmation needed.
Character liege_enforce_peace <Amount> Triggers the enforce peace mechanic in the player's liege's realm. Council must be empowered, other requirements are waived. <Amount> seems to be ignored, confirmation needed.
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 favor_get <Character ID> Get a favor from character
Character favor_grant <Character ID> Grant a favor to a character
Character gfx_culture <Character ID> (OPTIONAL) <Culture> Sets a character's gfx culture based on default graphical_culture of a culture
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 infamy <Delta> Modifies the player character's threat
Character imprison <Character ID>(jailed) <Character ID>(jailor) Imprisons a character by another character
Character join_society <Society Key> Join a society. Valid society names are: monastic_order_benedictine, monastic_order_dominican, monastic_order_orthodox, monastic_order_nestorian, monastic_order_monophysite, monastic_order_hindu, monastic_order_buddhist, monastic_order_jain, hermetics, the_assassins, the_satanists, the_trollcrafters, the_cult_of_kali, the_cold_ones, the_plaguebringers, and secret_religious_society_<religion>
Character leave_society <Society Key> (OPTIONAL) Leave a society
Character log_missing_adjectives Logs any title that has no adjective loc key defined (E.G., if the title "k_title" is defined, but no loc "k_title_adj" is defined)
Character kill <Character ID> Kills a character
Character kill_yourself <Character ID> Kills your character. Does not work ("Not today QA!"). Use die instead.
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> (OPTIONAL) Adds piety to the player (default 5000)
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> (OPTIONAL) Adds prestige to the player (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> (OPTIONAL) Adds score to the player (default 5000)
Character techpoints Adds 1000 technology points of each type to the player
Character max_tech <Province ID> (OPTIONAL) Maxes out tech in all provinces, or in specified province
Character recalc_succ <Character ID> Recalculate the succession for a character or the player
Character religion <Character ID> (OPTIONAL) <Religion> Sets a character's religion or player if character not supplied
Character secret_religion <Character ID> (OPTIONAL) <Religion> Sets a character's secret religion.
Character set_government <Government Tag> <Character ID> (OPTIONAL) Changes government to specified type (accepted inputs are merchant_republic_government, nomadic_government, feudal_government, theocracy_government, tribal_government, republic_government, muslim_government, theocratic_feudal_government, chinese_imperial_government, confucian_bureaucracy, order_government, roman_imperial_government)
Character titleowner <Title Name> <Character ID> (OPTIONAL) Reports or sets the holder of a title. Does not include tribal capital holdings.
Character validate_government <Character ID> (OPTIONAL) Validates government of a character
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>(OPTIONAL) Sets a flag for a character
Character clr_char_flag <Flag> <Character ID>(OPTIONAL) Clears a flag from a character
Character set_society_grandmaster <Character ID> (OPTIONAL) Sets the grandmaster of the society you're in to the given character
Character show_all_societies Shows all societies in list of society view
Character society_rank_up <Amount> (OPTIONAL) Ranks player up in society (default 1)
Character society_rank_down <Amount> (OPTIONAL) Ranks player down in society (default 1)
Character society_currency <Amount> (OPTIONAL) Adds society currency to the player (default 5000)
Character quickbuild Player's constructions are finished immediately
Character usurp <Title Name> <Character ID> Sets a title to be usurped by a character; if title currently does not exist, creates the title instead.
Global activate_artifacts All artifacts are always active regardless of activation triggers. Disabled as of at least 3.2.1.
Global allow_laws Toggles the ability to change laws freely
Global real_fathers Shows the true fathers in the family tree
Global charinfo debug_mode <Character ID>
  • Adds debugging information to character, title and event tooltips
  • Reveals your spouse's other lovers
Global de_jure_counties Shows de jure counties map mode
Global discover_plots Toggles auto plot discovery
Global fow <Province ID> (OPTIONAL) Turns off fog of war in a province or in general
Global game_speed <Speed> Sets the game speed, from 0 to 4
Global game_paused <true/false> (OPTIONAL) Toggles/sets the game paused state, argument must be lowercase
Global get_offmap_holder <Offmap Power> Displays the name and character id of the current holder of an offmap power
Global set_offmap_status <Offmap Power> <Status> Sets the status of the specified offmap power (e.g. china_stable, china_unrest...)
Global set_offmap_policy <Offmap Power> <Policy> Sets the policy of the specified offmap power (e.g. china_open, china_isolationist, china_expansionist)
Global kill_offmap_ruler <Offmap Power> Kills the ruler specified offmap power
Global kill_offmap_dynasty <Offmap Power> Kills the ruler specified offmap power, and generates a new one of a different dynasty
Global manpower <Amount> (OPTIONAL) Adds nomadic manpower to a nomad player character (default 5000)
Global population <Amount> (OPTIONAL) Adds nomadic population to a nomad player character (default 5000)
Global marry_anyone Toggles the ability to marry anyone
Global morehumans humans <Amount> 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 listsongs Shows all available songs
Global outbreak <Disease> Starts specified disease outbreak in a random province. Black Death may only start in Kundina and Jiuquan
Global plots_known Toggles all plots to always be known
Global recalc_council Will recalc the council positions of each council member
Global reload_succession_voting Reloads succession voting patterns
Global set_flag <Flag> Sets a global flag
Global clr_flag <Flag> Clears a global flag
Global set_prov_flag <Flag> <Province ID> Sets a flag for a province
Global clr_prov_flag <Flag> <Province ID> Clears a flag from a province
Global validate_cultural_names Validates cultural title names
Global spawn_disease <Disease> <Province ID> Spawn specified disease in chosen province. Black Death will start in either Kundina or Jiuquan
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 destroy_settlement <Title Name> Destroys a holding. Takes a barony title (b_<name>) or destroys the capital of a county title (c_<name>)
None murder <Character ID>(Murderer) <Character ID>(Victim) One character attempts to murder another. Takes two more optional arguments: [<Auto success>( 1/0 )] [<Auto discover>( 1/0 )]
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: gavelkind, elective_gavelkind, tanistry, seniority, primogeniture, feudal_elective, ultimogeniture, turkish_succession, papal_succession, appointment, open_elective, catholic_bishopric, patrician_elective, nomad_succession, offmap_succession
None add_lover <Character ID> <Character ID> Makes a character the lover of another character
None add_friend <Character 01 ID> <Character 02 ID> (OPTIONAL) Makes the character your friend
None remove_friend <Character 01 ID> <Character 02 ID> (OPTIONAL) Removes the character as your friend
None add_rival <Character 01 ID> <Character 02 ID> (OPTIONAL) Makes a character your rival
None remove_rival <Character 01 ID> <Character 02 ID> (OPTIONAL) Removes the character as your rival
None flip_mapmodes Cycles to the next map mode each day
None province_religion prov_rel <Province ID> <Religion> Sets a province's religion
None run_commands_from_file rcff, runcmdff <File Name> Reads a file where each line is executed as a console command
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_crash Force game to crash
Debug debug_citysprawl Toggles Citysprawl on/off
Debug debug_dumpevents Dump Event data to dump_events.txt
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 noman, nomen, nm 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_triggerassert Force game to throw an assert
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 yesman, yesmen, ym Toggles Yesmen; the AI will accept all diplomatic offers from the user. For example, request invasions from the Pope.
Debug debug_zoom Zooms in the game
Debug eventinfo Prints the number of running events (adds debug info to character status info)
Debug guibounds gui Toggles GUI bounds debug
Debug fullscreen Toggles fullscreen
Debug hello <Character ID or Title Name> Opens the character screen or title screen
Debug help <Command Name> (OPTIONAL) Print out all console commands or a specific command description
Debug helplog Print out all console commands to game.log
Debug noai Toggles AI
Debug numcoas Prints the number of used coat of arms
Debug observe Switches to observer mode, by playing no character at all, and no longer shows messages or pauses the game. Ctrl+clicking a character takes partial control, pausing only on succession and call-to-arms.
Debug print_player_events Print all player events to player_events.txt
Debug print_ai_events Print all ai events to ai_events.txt
Debug print_global_flags pgf Print all global flags
Debug print_global_variables print_global_vars, pgv Print all global variables
Debug print_holding_numbers Prints the number of holdings defined for each non-wasteland county, sorted by # of holdings. Useful if you want to ensure all counties can support up to 7 slots.
Debug print_randomlog Dumps content of the randomlog to randomlog.log
Debug refresh_portraits Sets all character portraits to be refreshed asap
Debug reload <File Name> Reloads the gui or lua file
Debug reloadevents Reloads the event database
Debug reloadfx map/mapname/postfx or *.fx filename Reloads the shader
Debug reloadgovernmentflavor Reloads the government flavor
Debug reloadinterface Reloads the entire interface
Debug reloadloc Reloads the localisation
Debug reloadpositions Reloads the council position database
Debug reloadtexture <Texture File Name> Reloads the specified texture
Debug save_without_ironman <Save Name> Saves the current game without Ironman
Debug spawnactor <Actorname> <Animation> (OPTIONAL) <Title Name> OPTIONAL Spawns an actor with an optional animation and tabard title
Debug timer Prints out debug timing info
Debug timer_start Starts debug timing
Debug timer_restart Restarts (resets and starts) debug timing
Debug timer_reset Resets debug timing
Debug timer_stop Stops debug timing
Debug timer_dump Dumps debug timing info
Debug ct Puts timer info in clipboard
Debug version Print out current version of the game
Debug window wnd <open/close> <window name> Opens or closes the specified window
Debug wipe_achievements Wipe out all CK2 Steam achievements. WARNING: CANNOT BE UNDONE!

Variables

  • 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/patrician house with "b". Some exceptions exist, such as Rome is c_roma, the Holy Roman Empire is e_hre, 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. Hovering over a title's flag shows you the name of the title, as long as you have charinfo active.
  • Nickname: See nicknames, format is nick_the_xxx
  • Trait Name: See traits
  • Settlement Name: The in-game name for the holding in question, as specified by landed_titles.txt. For example b_paris. Titles with cultural names can be hard to guess. Search for those by county name if you get lost.
  • Disease Name: One of the epidemic diseases