0% found this document useful (0 votes)
502 views9 pages

Console Commands - Crusader Kings II

This document provides a summary of console commands that can be used in Crusader Kings II to cheat, experiment, or work around bugs. It lists the available commands organized by scope (character, none, global). Each command is accompanied by required and optional parameters and a brief description of what the command does. Opening the console involves using a backtick/grave accent or section sign keyboard button, and commands can modify character attributes, add/remove artifacts/traits, and more.

Uploaded by

Jacek Bednarek
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
502 views9 pages

Console Commands - Crusader Kings II

This document provides a summary of console commands that can be used in Crusader Kings II to cheat, experiment, or work around bugs. It lists the available commands organized by scope (character, none, global). Each command is accompanied by required and optional parameters and a brief description of what the command does. Opening the console involves using a backtick/grave accent or section sign keyboard button, and commands can modify character attributes, add/remove artifacts/traits, and more.

Uploaded by

Jacek Bednarek
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 9

22.03.

2018 Console commands - Crusader Kings II Wiki

Console commands
From Crusader Kings II Wiki

Console commands are instructions to the game that players


can use to cheat, experiment, or work around bugs. This article is considered accurate for the current version (2.8)
of the game.

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
§ 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
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.

https://ck2.paradoxwikis.com/Console_commands 1/9
22.03.2018 Console commands - Crusader Kings II Wiki

Scope Command Parameter Parameter Description


<Character
Adds an artifact to the given
Character add_artifact <artifact name> ID>
character
(OPTIONAL)
Give all artifacts to target character,
<Character ID>
Character get_all_artifacts or the player's character if no target
(OPTIONAL)
is specified
<Character
Removes an artifact from the given
Character destroy_artifact <artifact name> ID>
character, destroying it
(OPTIONAL)
Modifies the base of a character's
Character add_diplomacy <Character ID> <Delta>
diplomacy attribute
Modifies the base of a character's
Character add_intrigue <Character ID> <Delta>
intrigue attribute
Modifies the base of a character's
Character add_learning <Character ID> <Delta>
learning attribute
Modifies the base of a character's
Character add_martial <Character ID> <Delta>
martial attribute
Modifies the base of a character's
Character add_stewardship <Character ID> <Delta>
stewardship attribute
Gives the player currency with the
specified offmap power. For
Character add_offmap_currency <Offmap Power> <Amount> example, to add grace with China:
add_offmap_currency offmap_china
5000
Adds a trait to the character.
Opposites traits are checked. Trait
names are all lower case. If no
<Character character ID is inputted, the trait
Character add_trait <Trait Name>
ID> will be given to the character you
are currently playing instead. The
same thing also proves true with the
remove_trait command.
<Character
Character remove_trait <Trait Name> Removes a trait from the character
ID>
<Character
Character add_modifier <Modifier Name> Adds a modifier to a character
ID>, <Days>
<Character Removes a modifier from a
Character remove_modifier <Modifier Name>
ID> character
Character age <Character ID> <Delta> Modifies a character's age
<Character ID>
Character banish Banishes a character
(banished)
Character capital <Province ID> Moves player capital to province
Clears the moved capital-flag of a
<Actorname>
Character clr_moved_capital character. Argument does not work,
(OPTIONAL)
confirmation needed.
<Amount>
Character cash (wealth) Adds gold (default 5000)
(OPTIONAL)
<Character
Gives a claim to yourself or another
Character claim <Title Name> ID>
character
(OPTIONAL)
<Character <Character 01> starts/joins/leaves a
Character coalition <Character 01 ID>
02 ID> coalition against <Character 02>
https://ck2.paradoxwikis.com/Console_commands 2/9
22.03.2018 Console commands - Crusader Kings II Wiki

Scope Command Parameter Parameter Description


<Character ID or Shows the ai scores of each council
Character council_positions
Title Name> position
Character clr_focus <Character ID> Clears the focus of a character
Character culture <Character ID> <Culture> Sets a character's culture
Sets the Decadence of the player's
Character decadence <New Decadence>
Dynasty
<Character
Character decision <Decision ID> Executes a decision
ID>
Character die Die a natural death
Triggers the enforce peace mechanic
in the player's realm. Council must
Character enforce_peace <Amount> be empowered, other requirements
are waived. <Amount> seems to be
ignored, confirmation needed.
Triggers the enforce peace mechanic
in the player's liege's realm. Council
must be empowered, other
Character liege_enforce_peace <Amount>
requirements are waived.
<Amount> seems to be ignored,
confirmation needed.
Allows a character to pick a new
Character enable_ambition <Character ID>
ambition
<Character
ID> or Executes an event for yourself or for
Character event <Event ID>
<Province another character or province.
ID>
<Character
ID> or
Debug testevent <Event ID> Tests an event without triggering it
<Province
ID>
Character favor_get <Character ID> Get a favor from character
Character favor_grant <Character ID> Grant a favor to a character
Sets a character's gfx culture based
Character gfx_culture <Character ID> <Culture> on default graphical_culture of a
culture. Ex: gfx_culture 10 norse
Forces a pregnant character to
Character give_birth <Character ID>
instantly give birth.
<Character
Character give_title <Title Name> Gives a title to a character
ID>
Character infamy <Amount> Sets the infamy of the player
<Character ID> <Character Imprisons a character by another
Character imprison
(jailed) ID>(jailor) character

https://ck2.paradoxwikis.com/Console_commands 3/9
22.03.2018 Console commands - Crusader Kings II Wiki

Scope Command Parameter Parameter Description


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,
Character join_society <Society Key>
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>.
<Society Key>
Character leave_society Leave a society
(OPTIONAL)
Character kill <Character ID> Kills a character
Kills your character. Does not work
Character kill_yourself <Character ID>
("Not today QA!").
<Character
<Character ID> Moves a character to a character's
Character move ID>(Move
(Mover) court
To)
<Character ID> <Character Adds a negative opinion between
Character neg_opinion
(Hater) ID>(Hated) two characters
<Character Gives a character or the player a
Character nickname <Nickname>
ID> nickname
<Amount> Adds piety to the player (default
Character piety
(OPTIONAL) 5000)
Switches to play a character
(WARNING: This deletes and resets
Character play <Character ID>
the chronicle of your current
character each time you switch.)
<Amount> Adds prestige to the player (default
Character prestige
(OPTIONAL) 5000)
Executes script commands from a
text file. The file must be in the
Documents/Paradox
Character run <file name> Interactive/Crusader Kings 2/ folder
(as appropriate for your OS).
Commands will be executed in the
scope of the player's character.
<Amount> Adds score to the player (default
Character score
(OPTIONAL) 5000)
Adds 1000 technology points of
Character techpoints
each type to the player
<Province ID> Maxes out tech in all provinces, or
Character max_tech
(OPTIONAL) in specified province
Recalculate the succession for a
Character recalc_succ <Character ID>
character or the player
Sets a character's religion or player
Character religion <Character ID> <Religion>
if character not supplied
Character secret_religion <Character ID> <Religion> Sets a character's secret religion.

https://ck2.paradoxwikis.com/Console_commands 4/9
22.03.2018 Console commands - Crusader Kings II Wiki

Scope Command Parameter Parameter Description


Changes government to specified
type (accepted inputs are
merchant_republic_government,
nomadic_government,
<Character feudal_government,
Character set_government <Government Tag>
ID> theocracy_government,
tribal_government,
republic_government,
muslim_government,
chinese_imperial_government)
<Character Reports or sets the holder of a title.
Character titleowner <Title Name> ID> Does not include tribal capital
(OPTIONAL) holdings.
<Character ID>
Character validate_government Validates government of a character
(OPTIONAL)
Validates the laws of a characters
Character validate_laws <Character ID>
primary holding
Character validate_lieges <Title Name> Validates the liege of a title
<Character
Character set_char_flag <Flag> Sets a flag for a character
ID>
<Character
Character clr_char_flag <Flag> Clears a flag from a character
ID>
<Character ID> Sets the grandmaster of the society
Character set_society_grandmaster
(OPTIONAL) you're in to the given character
Shows all societies in list of society
Character show_all_societies
view
<Amount> Ranks player up in society (default
Character society_rank_up
(OPTIONAL) 1)
<Amount> Ranks player down in society
Character society_rank_down
(OPTIONAL) (default 1)
<Amount> Adds society currency to the player
Character society_currency
(OPTIONAL) (default 5000)
Player's constructions are finished
Character quickbuild
immediately
<Character Sets a title to be usurped by a
Character usurp <Title Name>
ID> character
Sets a character as your vassal.
Character vassalize
(Obsolete)
All artifacts are always active
Global activate_artifacts
regardless of activation triggers.
Toggles the ability to change laws
Global allow_laws
freely
Shows the true fathers in the family
Global real_fathers
tree

Adds debugging information


to character, title and event
Global charinfo <Character ID> tooltips
Reveals your spouse's other
lovers

Global de_jure_counties Shows de jure counties map mode

https://ck2.paradoxwikis.com/Console_commands 5/9
22.03.2018 Console commands - Crusader Kings II Wiki

Scope Command Parameter Parameter Description


Global discover_plots Toggles auto plot discovery
<Province ID> Turns off fog of war in a province or
Global fow
(OPTIONAL) in general
Global game_speed <Speed> Sets the game speed, from 0 to 4
<true/false> Toggles/sets the game paused state,
Global game_paused
(OPTIONAL) argument must be lowercase
Displays the name and character id
Global get_offmap_holder <Offmap Power> of the current holder of an offmap
power
Sets the status of the specified
Global set_offmap_status <Offmap Power> <Status> offmap power (e.g. china_stable,
china_unrest...)
Sets the policy of the specified
offmap power (e.g. china_open,
Global set_offmap_policy <Offmap Power> <Policy>
china_isolationist,
china_expansionist)
Kills the ruler specified offmap
Global kill_offmap_ruler <Offmap Power>
power
Kills the ruler specified offmap
Global kill_offmap_dynasty <Offmap Power> power, and generates a new one of a
different dynasty
Adds nomadic manpower to a
<Amount>
Global manpower nomad player character (default
(OPTIONAL)
5000)
Adds nomadic population to a
<Amount>
Global population nomad player character (default
(OPTIONAL)
5000)
Global marry_anyone Toggles the ability to marry anyone
Global morehumans humans Adds more humans
Toggles the ability to send
Global neg_diplo diplomatic messages that will be
refused
Changes the currently playing
Global nextsong
soundtrack
Starts specified disease outbreak in
a random coastal province. Black
Global outbreak <disease>
Death may only start in Kundina
and Jiuquan
Toggles all plots to always be
Global plots_known
known
Will recalc the council positions of
Global recalc_council
each council member
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
Spawn specified disease in chosen
Global spawn_disease <disease> <Province> province. Black Death will start in
either Kundina or Jiuquan

https://ck2.paradoxwikis.com/Console_commands 6/9
22.03.2018 Console commands - Crusader Kings II Wiki

Scope Command Parameter Parameter Description


Displays various game statistics,
None character_stats such as number of characters, plots,
and fertility.
Displays various dynasty statistics,
including the number of unique
None dynasty_stats
dynasties and how many historical
dynasties have died off.
None destroy_settlement <Settlement Name> Destroys a settlement
<Character ID> <Character One character attempts to murder
None murder
(Murderer) ID>(Victim) another
<Character ID> <Character Impregnates a character by another
None pollinate
(Mother) ID>(Father) character
<Character ID> <Character Impregnates a character by another
None cuckoo
(Mother) ID>(Father) character, father unknown
None revolt <Province ID> Starts a Revolt in a province
Changes the succession type
(WARNING: Dangerous). Valid
values: feudal_elective,
primogeniture, gavelkind, seniority,
None succ <Succession Type> tanistry, turkish_succession,
merchant_republic_government,
tribal_government,
nomadic_government,
chinese_imperial_government
<Character Makes a character the lover of
None add_lover <Character ID>
ID> another character
None add_friend <Character ID> Makes the character your friend
Removes the character as your
None remove_friend <Character ID>
friend
None add_rival <Character ID> Makes a character your rival
None remove_rival <Character ID> Removes the character as your rival
Cycles to the next map mode each
None flip_mapmodes
day
province_religion
None <Province ID> <Religion> Sets a province's religion
(prov_rel)
Debug clear Clears the console
recalc Displays AI strategy for a character
Debug debug_ai <Character ID>
(OPTIONAL) (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 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
https://ck2.paradoxwikis.com/Console_commands 7/9
22.03.2018 Console commands - Crusader Kings II Wiki

Scope Command Parameter Parameter Description


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
Writes Texture info to application
Debug debug_textures
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 Toggles Yesmen
Debug debug_zoom Zooms in the game
Prints the number of running events
Debug eventinfo (adds debug info to character status
info)
Debug guibounds (gui) Toggles GUI bounds debug
Debug fullscreen Toggles fullscreen
<Character ID or Opens the character screen or title
Debug hello
Title Name> screen
Print out all console commands or a
Debug help <Command Name>
specific command description
Print out all console commands to
Debug helplog log file
game.log
Debug noai Toggles AI
Prints the number of used coat of
Debug numcoas
arms
Switches to observer mode, by
playing no character at all, and no
longer shows messages or pauses
Debug observe
the game. Ctrl+clicking a character
takes partial control, pausing only
on succession and call-to-arms.
Print all player events to
Debug print_player_events
player_events.csv in game folder
Print all ai events to ai_events.csv in
Debug print_ai_events
game folder
Sets all character portraits to be
Debug refresh_portraits
refreshed asap

https://ck2.paradoxwikis.com/Console_commands 8/9
22.03.2018 Console commands - Crusader Kings II Wiki

Scope Command Parameter Parameter Description


Debug reload file name Reloads the gui or lua file
Debug reloadevents Reloads the event database
map/mapname/postfx <fx
Debug reloadfx Reloads the shader
or * filename>
Debug reloadgovernmentflavor Reloads the government flavor
Debug reloadinterface Reloads the entire interface
Debug reloadloc Reloads the localisation
Reloads the council position
Debug reloadpositions
database
Debug reloadtexture texture file name Reloads the specified texture
<Title Name> OPTIONAL Spawns
<Animation>
Debug spawnactor <Actorname> an actor with an optional animation
(OPTIONAL
and tabard title
Print out current version of the
Debug version
game
Opens or closes the specified
Debug window <open/close> <gui name>
window
Wipe out all CK2 Steam
Debug wipe_achievements 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 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. 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

Modding
History Characters • Dynasties • Titles • Bookmarks
Scripting Commands • Conditions • Scopes • Modifiers • Events • Decisions
Common Defines • Game rules • Religion • Culture • Traits • Technology • Laws • Buildings • Casus Belli • Units • Objectives • Governments •
Disease • Death • Minor titles • Societies • Artifacts
Gfx/Sfx/localisation Map • Graphics • Coats of arms • Portraits • Interface • Music • Localisation
Other Troubleshooting • The Validator • Console commands • Save-game editing • Steam Workshop • EU4 Converter

Retrieved from "https://ck2.paradoxwikis.com/index.php?title=Console_commands&oldid=29525"

Categories: 2.8 Modding

https://ck2.paradoxwikis.com/Console_commands 9/9

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy