Console commands are short lines of code to use in the console to change variables in Kingdom Come: Deliverance. The console can only be accessed on PC versions of the game using the ~ key (if not it is the key found just under Esc in the top left).
The base game features several console commands, but some of the most useful ones were removed shortly after release. In order to use them, you need to add -devmode
to the "SET LAUNCH OPTIONS..." in the steam properties of the game.
Some mods add new or previously removed console commands, they are listed under user commands.
Using console commands doesn't disable achievements.
Base game commands[]
Here is a list of vanilla commands. Some of them need -devmode
in the launch options of the game to work.
Note: this list is incomplete
Vanilla Commands |
Users commands[]
Note: this list is incomplete
Users Commands |
Action | Command | Information |
---|---|---|
Add item | wh_cheat_addItem X # or cheat_add_item id:X amount:# |
X = item ID, # Number of that item |
Add Money / Groschen | Wh_cheat_money # | Adds # of money (Use WeMod since this doesn't work.) |
Activate Cheats on Steam users only | -devmode | Add into the (Set launch option) in order to use the cheat commands. |
Commands
cheat_add_all_items
cheat_add_all_perks
cheat_add_buff
cheat_add_buff_heal
cheat_add_buff_immortal
cheat_add_buff_invisible
cheat_add_item
cheat_add_money
cheat_add_perk
cheat_add_stat_xp
cheat_auto_exec
cheat_damage_all_items
cheat_eval
cheat_exec_delay
cheat_exec_file
cheat_find_buffs
cheat_find_horses
cheat_find_items
cheat_find_npc
cheat_find_perks
cheat_find_skills
cheat_get_time
cheat_kill_npc
cheat_kill_target
cheat_loc
cheat_no_door_lockpicking
cheat_no_lockpicking
cheat_no_pickpocketing
cheat_no_stash_lockpicking
cheat_own_all_stolen_items
cheat_phys_hover
cheat_phys_push
cheat_phys_sprint
cheat_remove_all_buffs
cheat_remove_all_items
cheat_remove_all_perks
cheat_remove_all_stolen_items
cheat_remove_buff
cheat_remove_buff_immortal
cheat_remove_buff_invisible
cheat_remove_item
cheat_remove_perk
cheat_repair_all_items
cheat_reveal_map
cheat_save
cheat_set_all_merchants_fence
cheat_set_bow_reticle
cheat_set_horse
cheat_set_regen
cheat_set_skill_level
cheat_set_stat_level
cheat_set_state
cheat_set_time
cheat_set_time_speed
cheat_set_wanted_level
cheat_set_weather
cheat_spawn
cheat_spawn_npc
cheat_stash
cheat_target_entity
cheat_teleport
cheat_teleport_horse
cheat_teleport_npc_to_loc
cheat_teleport_npc_to_player
cheat_unlock_recipes
cheat_wash_dirt_and_blood
Command Documentation
All of this information is available in game by running "command-name ?".
cheat_eval
Executes the given Lua code. This is not a cheat it is used for testing and debugging.
Examples:
Dump all methods on the cheat table:
cheat_eval cheat:print_methods(cheat)
Dump all methods on player metatable:
cheat_eval cheat:print_methods(getmetatable(player))
Log the value of something to the console:
cheat_eval cheat:logInfo(tostring(player.soul:GetState("health")))
cheat_save
This instantly saves your game. No item requirements or save limits.
Examples:
Save your game:
cheat_save
cheat_find_buffs
Finds all of the buffs that match the given token.
Arguments:
token: (optional) All or part of a the buff's name. Leave empty to list all buffs.
Examples:
Show all buffs:
cheat_find_buffs token:
Show all buffs with 'heal' in their name:
cheat_find_buffs token:heal
cheat_add_buff
Adds the given buff to the player.
Arguments:
id: (required) The buff ID or all or part of a the buff's name. Uses last match from cheat_find_buffs.
Examples:
Adds the last buff with 'heal' in its name:
cheat_add_buff id:heal
Adds the buff poor_hearing buff by ID:
cheat_add_buff id:29336a21-dd76-447b-a4f0-94dd6b9db466
Adds the buff healthEatSleep_instant buff by full name:
cheat_add_buff id:healthEatSleep_instant
cheat_remove_buff
Removes the given buff from the player.
Arguments:
id: (required) The buff ID or all or part of a the buff's name. Uses last match from cheat_find_buffs.
Examples:
Removes the last buff with 'heal' in its name:
cheat_remove_buff id:heal
Removes the buff poor_hearing buff by ID:
cheat_remove_buff id:29336a21-dd76-447b-a4f0-94dd6b9db466
Removes the buff healthEatSleep_instant buff by full name:
cheat_remove_buff id:healthEatSleep_instant
cheat_remove_all_buffs
Removes all buffs from the player.
Examples:
Remove all buffs:
cheat_remove_all_buffs
cheat_add_buff_heal
Stop bleeding, removes injuries, and restores all health, stamina, hunger, and exhaust.
Examples:
Heal bleeding and injuries:
cheat_add_buff_heal
cheat_add_buff_immortal
Adds buffs to make the player immortal. Use cheat_remove_buff_immortal to remove this.
Examples:
Add immortality:
cheat_add_buff_immortal
cheat_remove_buff_immortal
Removes the buffs making the player immortal.
Examples:
Remove immortality:
cheat_remove_buff_immortal
cheat_add_buff_invisible
Adds invisible buff to player. For now this just sets conspicuousness to zero.
Use cheat_remove_buff_invisible to remove this.
Examples:
Add invisible buff to player:
cheat_add_buff_invisible
cheat_remove_buff_invisible
Removes invisible buff from player.
Examples:
Remove invisible buff from player:
cheat_remove_buff_invisible
cheat_find_horses
Find and display stats of horses.
Arguments:
token: (optional) All or part of a horse's name. Leave blank to list all horses.
Examples:
List all horses:
cheat_find_horses token:
Find all horses in MRH stable:
cheat_find_horses token:mrh
cheat_set_horse
Sets the player's horse.
Arguments:
token: (optional) All or part of a horse's name. Leave blank to list all horses.
Examples:
Set horse by name part:
cheat_set_horse id:mrh_05
cheat_teleport_horse
Teleports your horse to you.
Examples:
Teleport your horse to you:
cheat_teleport_horse
cheat_find_items
Finds all of the items that match the given token.
Arguments:
token: (optional) All or part of a the item's name. Leave empty to list all items.
Examples:
Show all items:
cheat_find_items token:
Show all items with 'arrow' in their name:
cheat_find_items token:arrow
cheat_add_item
Adds an item to the player's inventory.
Arguments:
amount: (optional number) The number of items to add. Default 1.
health: (optional number) The condition of the item added. Default 100.
id: (required) The item ID or all or part of a the item's name. Uses last match from cheat_find_items.
Examples:
Adds the last item with 'bow' in its name:
cheat_add_item id:bow
Adds the item ui_nm_arrow_hunter by ID:
cheat_add_item id:802507e9-d620-47b5-ae66-08fcc314e26a
Adds 10 items ui_nm_arrow_hunter by fullname with 50 condition:
cheat_add_item id:ui_nm_arrow_hunter amount:10 health:50
cheat_add_all_items
Adds all items the player's inventory. This is probably a bad idea...
Examples:
Add all items:
cheat_add_all_items
cheat_remove_item
Removes an item to the player's inventory.
Arguments:
amount: (optional number) The number of items to remove. Default 1.
id: (required) The item ID or all or part of a the item's name. Uses last match from cheat_find_items.
Examples:
Removes the last item with 'bow' in its name:
cheat_remove_item id:bow
Removes the item ui_nm_arrow_hunter by ID:
cheat_remove_item id:802507e9-d620-47b5-ae66-08fcc314e26a
Removes 10 items ui_nm_arrow_hunter by fullname:
cheat_remove_item id:ui_nm_arrow_hunter amount:10
cheat_remove_all_items
Removes all items in the player's inventory.
THIS DELETES YOUR INVENTORY! Move items you want to a stash first.
Examples:
Delete your inventory:
cheat_remove_all_items
cheat_remove_all_stolen_items
Removes all stolen items from your inventory.
Examples:
Remove stolen items:
cheat_remove_all_stolen_items
cheat_own_all_stolen_items
Makes you the owner of all stolen items in your inventory.
This removes the stolen flag from the item.
Examples:
Take ownership of stolen items:
cheat_own_all_stolen_items
cheat_repair_all_items
Repairs all damaged items in your inventory. This can uneqip items so don't do this in combat.
Examples:
Repair all items:
cheat_repair_all_items
cheat_damage_all_items
Damages all weapons and armor in your inventory. This can uneqip items so don't do this in combat.
Arguments:
health: (required number) The item health/condition to apply between 0 and 1.
Examples:
Damage all weapons and armor to 50%:
cheat_damage_all_items health:0.5
cheat_set_all_merchants_fence
Flags all merchants so they accept stolen goods.
Restarting the game reverts this effect.
Arguments:
enable: (required boolean) true or false
Examples:
Turn it on:
cheat_set_all_merchants_fence enable:true
Turn it off:
cheat_set_all_merchants_fence enable:false
cheat_find_perks
Finds all of the perks that match the given token.
Arguments:
token: (optional) All or part of a the perk's name. Leave empty to list all perks.
Examples:
Show all perks:
cheat_find_perks token:
Show all perks with 'hunt' in their name:
cheat_find_perks token:hunt
cheat_add_perk
Adds the given perk to the player.
Arguments:
id: (required) The perk ID or all or part of a the perk's name. Uses last match from cheat_find_perks.
Examples:
Adds the last perk with 'hunt' in its name:
cheat_add_perk id:hunt
Adds the perk juggler perk by ID:
cheat_add_perk id:09a5f2a0-d59f-42c2-a80c-bec9ad7ca168
Adds the perk general_speech perk by full name:
cheat_add_perk id:general_speech
cheat_add_all_perks
Adds all perks to the player.
Arguments:
exclude: (required boolean) If true then negative, test, and obsolete of perks are excluded.
Examples:
Add all perks:
cheat_add_all_perks exclude:true
Add all perks including negative, test, and obsolete perks:
cheat_add_all_perks exclude:false
cheat_remove_perk
Removes the given perk from the player.
Arguments:
id: (required) The perk ID or all or part of a the perk's name. Uses last match from cheat_find_perks.
Examples:
Removes the last perk with 'hunt' in its name:
cheat_remove_perk id:hunt
Removes the perk juggler by ID:
cheat_remove_perk id:09a5f2a0-d59f-42c2-a80c-bec9ad7ca168
Removes the perk golden_tongue by full name.:
cheat_remove_perk id:golden_tongue
cheat_remove_all_perks
Removes all perks from the player.
Examples:
Remove all perks:
cheat_remove_all_perks
cheat_phys_hover
Use F1 key to toggle hover on and off.
This uses physics to push the player slightly up.
This is intended to be used with F2 push.
cheat_phys_push
Use F2 key to toggle push on and off.
This uses physics to push the player forward.
This is intended to be used with F1 hover.
cheat_phys_sprint
Use F3 key to toggle sprinting on and off.
This uses physics to push the player forward (and down for friction).
cheat_no_stash_lockpicking
This disables the lockpicking minigame on stashes and automatically opens the stash for looting.
Restarting the game reverts this effect.
Examples:
Turn off lockpicking minigame on stashes:
cheat_no_stash_lockpicking
cheat_no_door_lockpicking
This disables the lockpicking minigame on doors and automatically opens the door.
Restarting the game reverts this effect.
Examples:
Turn off lockpicking minigame on doors:
cheat_no_door_lockpicking
cheat_no_lockpicking
This calls cheat_no_stash_lockpicking and cheat_no_door_lockpicking.
Examples:
Turn off lockpicking minigames on doors and stashes:
cheat_no_lockpicking
cheat_no_pickpocketing
This disables the pickpocketing minigame and automatically opens the person's inventory for looting.
They can still catch you.
Restarting the game reverts this effect.
Examples:
Turn off pickpocketing minigame:
cheat_no_pickpocketing
cheat_stash
Opens the player's stash. This only works if you have unlocked at least 1 stash.
Examples:
Open your stash:
cheat_stash
cheat_loc
Shows player's world location.
Examples:
Example:
cheat_loc
cheat_teleport
Teleports the player to the given coordinates.
You can end up in the air or under the map.
I suggest saving your game and turn on immortality first.
Arguments:
y: (required number) Y coordinate
x: (required number) X coordinate
z: (required number) Z coordinate
Examples:
Example:
cheat_teleport x:3000 y:1500 z:300
cheat_set_state
Sets one of the player's states to the given value.
Arguments:
state: (required) One of: health, exhaust, hunger, or stamina.
value: (required number) The number to assign to the given state.
Examples:
Set health to 100 points:
cheat_set_state state:health value:100
Set exhaust to 100 points:
cheat_set_state state:exhaust value:100
cheat_add_stat_xp
Adds XP to one of the player's stats.
Arguments:
stat: (required) One of: str, agi, vit, or spc.
xp: (required number) The desired XP to add.
Examples:
Add 100 XP to player's strength stat:
cheat_add_stat_xp stat:str xp:100
cheat_set_stat_level
Sets one of the player's stats to the given level.
Arguments:
stat: (required) One of: str, agi, vit, or spc.
level: (required number) The desired level for the given stat (max 20). Level cannot lowered.
Examples:
Set player's strength to level 20:
cheat_set_stat_level stat:str level:20
Set player's agility to level 5:
cheat_set_stat_level stat:agi level:5
cheat_add_money
Adds the given amount of groschen to the player's inventory.
Arguments:
amount: (required number) The amount of groschen to add.
Examples:
Add 200 groschen:
cheat_add_money amount:200
cheat_set_bow_reticle
Enabled or disables the bow reticle. Won't take effect if bow is drawn.
Arguments:
enable: (required boolean) true or false
Examples:
Turn it on:
cheat_set_bow_reticle enable:true
Turn it off:
cheat_set_bow_reticle enable:false
cheat_set_wanted_level
Set or clears the player's wanted level. This doesn't affect faction reputation.
Arguments:
level: (required number) 0=not wanted, 1=wanted for money, 2=wanted for jail, 3=wanted dead
Examples:
Clear wanted status:
cheat_set_wanted_level level:0
Make the guards kill me on sight:
cheat_set_wanted_level level:4
cheat_wash_dirt_and_blood
Washes all blood and dirt from the player and player's horse.
Do horses need this?
Can items be washed?
Let me know.
Examples:
Wash yourself and your horse:
cheat_wash_dirt_and_blood
cheat_unlock_recipes
Saw this code to unlock recipes in a pak file.
I have no idea what this really does or if it works.
Let me know.
Examples:
Unlock all recipes:
cheat_unlock_recipes
cheat_set_regen
Regenerates the given player state over time; pulses once per second.
Arguments:
enable: (required boolean) true to enable state regen; false to disable
amount: (optional number) The amount to regen every second.
state: (required) The state to regen: all, health, stamina, or exhaust.
Examples:
Adds 1 to all states every second.:
cheat_set_regen enable:true state:all amount:1
Adds 100 to player's stamina every second.:
cheat_set_regen enable:true state:stamina amount:100
Disable all state regeneration.:
cheat_set_regen enable:false state:all
cheat_find_skills
Finds all of the skills that match the given token.
Arguments:
token: (optional) All or part of a the skill's name. Leave empty to list all skills.
Examples:
Show all skills:
cheat_find_skills token:
Show all skills with 'pick' in their name:
cheat_find_skills token:pick
cheat_set_skill_level
Sets one of the player's skills to the given level.
Arguments:
level: (required number) The desired level for the given skill (max 20).
skill: (required) The skill name, full or partial, or ID. Use cheat_find_skills to list all skills.
Examples:
Set player's lockpicking skill to level 20:
cheat_set_skill_level skill:lockpicking level:20
Set player's bow skill to level 20:
cheat_set_skill_level skill:18 level:20
cheat_reveal_map
Reveals the entire map (removes fog of war).
Examples:
Reveal the entire map:
cheat_show_map
cheat_get_time
Logs information about game time.
Examples:
Get game time:
cheat_get_time
cheat_set_time
Moved time forward the given number of hours.
Arguments:
hours: (required number) The number of hours.
Examples:
Move 5 hours forward:
cheat_set_time hours:5
cheat_set_time_speed
Set the game time speed as a ratio between real time and game time.
A high ratio, like 1000, is faster. Default is 15. 0 will pause time.
Arguments:
ratio: (required number) The ratio between real time and game time. Default 15.
Examples:
Speed up game time:
cheat_set_time_speed ratio:1000
cheat_kill_npc
Finds and kills all the killable NPCs within the given radius of the player.
Arguments:
token: (required) All or part of a the NPC's name.
radius: (optional number) The kill radius around player. Default 5.
Examples:
Kill Father Godwin:
cheat_kill_npc token:Father Godwin radius:2
Kill all bandits near the player:
cheat_kill_npc token:bandit radius:10
cheat_find_npc
Finds and shows information about an NPC.
This only works if the NPC has been loaded into the world.
Arguments:
token: (required) All or part of a the NPC's name.
Examples:
Find Father Godwin:
cheat_find_npc token:godwin
cheat_teleport_npc_to_loc
Teleports one or more NPCs to the given coordinates. Use cheat_loc to get locations.
Arguments:
max: (optional number) The maximum NPCs to teleport. Default 10.
x: (required number) X coordinate.
y: (required number) Y coordinate.
radius: (optional number) The teleport radius around the x,y,z target. Default 5.
token: (required) All or part of a the NPC's name.
z: (required number) Z coordinate.
Examples:
Teleport Father Godwin to somewhere...:
cheat_teleport_npc_to_loc token:Father_Godwin x:1 y:2 z:3
cheat_teleport_npc_to_player
Teleports one or more NPCs to the player's location.
Arguments:
max: (optional number) The maximum NPCs to teleport. Default 10.
token: (required) All or part of a the NPC's name.
radius: (optional number) The teleport radius around the player. Default 5.
Examples:
Teleport Father Godwin to ???:
cheat_teleport_npc_to_loc token:Father_Godwin x:1 y:2 z:3
cheat_target_entity
Tracks the entity being targeted by the player.
This will allow you to use other commands on the entity.
This command is bound to the F4 key.
cheat_kill_target
Kills the entity targeted using by F4 or the cheat_target_entity command.
cheat_spawn
Spawns bandits, cuman, or animals.
For some reason most of the animals and some bandits/cuman just stand around. No idea why.
The spawned entities are not managed so you should kill them off or load a clean save.
Arguments:
count: (optional number) Number of things to spawn. Default 1.
radius: (optional number) The spawn radius around the player. Default 5.
class: (required) bandit|cuman|hare|horse|boar|sheep|pig|cow|buck|doe|reddeer
Examples:
Spawn 10 bandits:
cheat_spawn class:bandit count:10
cheat_spawn_npc
Searches through the database of souls and spawns 1 NPC for each match.
This is intended to be used to spawn specific NPCs.
The list of souls is in v_soul_character_data.xml in tables.pak.
Arguments:
token: (required) The sould ID, all/part of the soul name, or all/part of localized soul name.
Examples:
Spawn Olena by name (spawns 2 NPCs, 1 is invisible):
cheat_spawn_npc token:olena
Spawn all NPCs with 'father' in their name:
cheat_spawn_npc token:father
Spawn by soul ID:
cheat_spawn_npc token:4d69f4f4-6b78-7b1f-5a61-8fa8045b7aac
Spawn by ui name:
cheat_spawn_npc token:char_452_uiName
cheat_set_weather
Sets the weather to the given weather ID.
1 = cloudless_sunny
2 = semicloudy_clear
3 = cloudy_no_rain
4 = cloudy_frequent_showers
5 = foggy_drizzly
6 = foggy_storm
7 = dream
Arguments:
delay: (optional number) The number of hours to delay the transition. Default 0.
id: (required number) The weather type ID.
Examples:
Set weather to foggy storm:
cheat_set_weather id:6
cheat_exec_delay
Sets the number of milliseconds to delay execution of the next command.
Arguments:
ms: (required number) The number of milliseconds to delay the next command.
Examples:
1 second delay:
cheat_exec_delay ms:1000
cheat_exec_file
Executes a file of console commands. Use an absolute path or
path relative to SteamLibrary\steamapps\common\KingdomComeDeliverance.
Arguments:
file: (required) The file to execute.
Examples:
Manually run autocheat.txt:
cheat_exec_file file:Data\autocheat.txt
cheat_auto_exec
This command does nothing and is here for documentation only.
You can run cheat commands automatically when a level loads by placing them in file Datautocheat.txt.
This is useful for commands that are not permanent.
Fast Travel[]
Here is a list of locations the player can force themselves to with fast travel.
Command: wh_pl_fasttravelto x y z
Rattay:
Pillory: 2534.91 568.23 80.54
Refugee Camp: 2551.85 505.21 72.50
Lower Castle: 2560.36 457.77 69.11
Upper Castle: 2722.34 662.99 103.85
Middle Pub: 2632.66 626.48 92.48
Broken Wheel Pub: 2914.68 732.88 110.21
Bathhouse: 2379.86 601.76 33.05
Peshek's Mill: 2453.48 702.12 29.86
Merjohed:
Town: 1634.30 2620.59 126.36
Warcamp: 1405.67 2708.03 130.74
Talmberg
Town: 2397.25 2732.29 86.79
Castle: 2331.76 2770.60 105.56
Outer Fortification: 2332.83 2820.28 106.97
Bathhouse: 2398.38 2822.36 91.92
Pub: 2388.38 2715.27 88.37
Sasau
Bridge: 1019.39 1331.71 24.05
Butcher: 928.25 1289.84 22.24
Pub: 956.76 1234.14 27.93
Pillory: 894.74 1189.76 27.10
Quarry: 753.23 1134.09 24.31
Bathhouse: 956.30 1320.00 21.06
Pub: 907.74 1430.87 27.22
Center: 998.73 1542.48 25.04
Ledetchko
North: 2044.35 1335.93 32.19
South: 2119.16 1191.85 29.53
Neuhof
Town: 3459.54 1422.78 127.24
Stables - Center: 3555.06 1521.43 130.05
Stables - West: 3669.66 1573.81 125.11
Uzhitz
North: 3050.63 3330.19 154.74
Northwest: 3141.07 3411.79 158.63
River: 3086.34 3199.68 115.15
South: 3176.21 3079.45 153.25
Vranik
Town?: 926.03 907.69 129.18
Command Post: 994.51 962.07 137.81 Pribyslavitz
Bridge: 994.51 962.07 137.81
Camp: 1668.08 3614.91 88.84
Samopesh: 1136.07 2236.18 70.59
Skalitz: 781.16 3489.35 51.97
Monestary: 909 1695 45
Inn in the Glade: 2857.36 1908.53 155.89
Katzek Mill: 1568 1843 24