Professional Documents
Culture Documents
The UESPWiki – Your source for The Elder Scrolls since 1995
< Skyrim
Jump to: navigation, search
This page or section is incomplete. You can help by adding to it.
For more information, see the help files, the style guide, and this article's talk page.
The console is a powerful in-game tool only available to PC players. From the console it is
possible, while playing the game, to enter commands that will alter most aspects of gameplay,
and it is also possible to obtain detailed information about NPCs, creatures, and other items in
the game.
Contents
[hide]
1 General Information
2 Accessing the Console with Non-English Keyboards
3 Commands
o 3.1 Toggle Commands
o 3.2 Targeted Commands
o 3.3 Untargeted Commands
o 3.4 All Known Commands
4 Using Batch Files With the bat Command
o 4.1 Guidelines for Using Commands in Batch Files
o 4.2 Example for using a Batch File to create an alternative start
Many commands are targeted: this means that you may use player.command to affect the player
character; for example, type player.setav carryweight 1000 will set the Player's Carry
Weight at 1000. Or, you may want to target the NPC/actor, by first typing prid <RefID>, Enter.
Then, type the command by itself, setav carryweight 1000, to affect the NPC, specified by
RefID (Note: including the zeroes at the beginning of the RefID when targeting NPCs may
produce a "command not found" error. That can be evaded though by placing the RefID in
quotes, e.g. "000A2C94".setav carryweight 1000 will set Lydia's Carry Weight at 1000).
You may also target an NPC or object in the console by clicking on them, and then run command
to affect the NPC or object. When an NPC or object is targeted in this way, their hex code
(RefID) will be displayed at the top of the console. For example, to unlock a door, open the
console, click on the door so it is the active object in the console (its RefID is shown at the top of
the screen), then type unlock. When multiple objects overlap, use the mouse wheel to scroll
through different RefIDs until the correct one is selected. When playing on multiple monitors,
the cursor will display in the secondary monitor but clicking it will select the object in the same
area of the primary monitor.
Commands which are abbreviated (for example: tai) can also be run by using their full name;
thus, toggleai is synonymous with tai, and getactorvalue is synonymous with getav. In
most cases, the long command is an obvious progression from the abbreviation. Also, most
setSomething commands have a counterpart getSomething, even if the counterpart isn't shown
here.
Some commands require a form ID. Most articles on objects provide the id or ids for those items.
In addition the help command can be used to locate ids. Help "elven sword" 0 would provide
a list of all game objects with 'elven sword' in the title. This can be used for items, spells Help
firebolt 0, or perks Help juggernaut 0 .
Your best bet for help if your game is crashing or not operating
properly due to a console issue is on the producer's official
forums. You may see if someone in the wiki's irc chatroom has a
suggestion. You may not get any kind of answer right away, or a
solution at all. You might also try asking a question on this
article's talk page with the same idea: you may or may not
receive a timely reply to your question or problem, and you may
not receive a solution at all.
Often, the key used is the key below Esc and above Tab (↹), where the tilde/grave key is on a
US keyboard:
On a French keyboard, the console is accessed by pressing the ² key, the key just below
Esc.
On a Swiss keyboard, the console is accessed by pressing the § key, the key just below
Esc.
On a German keyboard, the console is accessed by pressing the ^ key just below Esc. As
this hat-character is usually used together with a normal letter to create letters as ê or ô
the first letter you enter into the console will be usually a Blank Square or not even
appear. Therefore have an eye on what is displayed in the console and delete when
necessary.
On a Hungarian keyboard, the console is accessed by pressing the 0 key. If you want to
type "0" you must type the one from your numpad. Otherwise, the console will shut.
Another possible solution is to install AutoHotKey and set up a shortcut to send the tilde key
code the game is expecting. Add the following lines to your AutoHotKey script and it will map
F12 to grave accent (`) and Shift+F12 to tilde (~). (The grave accent (`) key is the same physical
key as tilde on US English keyboards.)
; On some systems you may need to use the less optimal mapping
F12::~
[edit] Commands
How to Read the Command Table
When a command requires arguments (e.g., additem <Item ID> <qty>), the brackets <>
indicate that <ID> should be replaced with the appropriate ID, and <qty> with the appropriate
quantity. The brackets are not part of the syntax. So additem <ID> <qty> becomes additem
0002299c 1.
Furthermore, all REFIDs, faction, weather etc can be entered without the leading zeros, eg:
additem 2299c 1 has the same effect as above.
Note: the tm command will toggle off ALL menus, including the
console menu itself! To avoid confusion:
1. Press ~.
2. Type 'tm' and press ENTER.
3. At this point, your console is still open but you cannot see
it! Press ~ again to close it.
4. When you wish to toggle menus on again, press ~ to open
the console (you will not see anything, but the game
action will pause).
5. Type 'tm' and press ENTER.
Here are some examples (note how adding certain magic effects
can have unanticipated consequences):
xx = Hearthfire loading
order number
Will turn the selected
0005A1A4 Player Ally Faction NPC into a friendly
character.
If used on the player,
000E0CD9 Bandit Ally Faction most bandits will no
longer attack.
If used on the player,
most warlocks and
000E0CDA Warlock Ally Faction
necromancers will no
longer attack.
If used on the player,
000E0CDB Draugr Ally Faction most draugr will no
longer attack.
advlevel Adds one level to your character's current level. You
are not given the option to increase an attribute, are not awarded
any perk points, nor, obviously, will any of your skills improve.
This command may therefore seem of limited value; however,
Advance a
remember that enemies get tougher as your level increases - so if
character's
advlevel you're a Tamriel veteran and have already cranked the difficulty
level by
to "Master" but still crave more of a challenge, using advlevel
one.
to add ~10 levels to your character (that's ten levels without skill
increases, attribute gains, or new perks!) should certainly make
the enemies more difficult.(though remember that the loot will
also be leveled)
AdvSkill <skill> Advance AdvSkill registers the increase and will count toward your next
<nn> the levelup.
specified The full list of values recognized by AdvSkill is provided at
skill. Actor Value Indices. The number represents the experience level
to add to the skill (e.g., player.advskill destruction 1 will
only add 1 experience toward the next skill increase, it will not
advance Destruction 1 skill level). Some skills require far more
experience points than other skills, crafting skills level quickly
with few points, but armor skills require much higher numbers.
See the incPCS command for an alternative means of leveling
skills, which in comparison does not use the relative-value
experience points; however, incPCS can only increase a skill by
one level per use.
Be careful when using this command. Often, it merely makes the
Complete quest in the Journal become a completed quest. However, the
completequest
the quest related actors or NPCs to the quest may not recognize that you
<quest ID>
instantly. have completed a quest/task in order to give you a following
quest/task. Quest IDs can be found in Quests.
Example: player.damageactorvalue health 50 causes you to
lose 50 health as if you just took damage. It will still recover the
same way it normally does. Attributes can become negative. Can
be restored with restoreactorvalue. This is a better option
Damage
than modAV for temporary debuffing, since it can be restored to its
value of
DamageActorValu original value easier. Stacks with 'modAV' effects.
attribute by
e <attribute> <nn> Skills/attributes damaged with damageactorvalue will still
<nn>
appear white, but will correctly restore to what they really are.
amount
Can be used to kill NPCs.
Also see RestoreActorValue
[show]Equipment
E.g., player.removeallitems will remove all items from your
Remove all
character's inventory or "removeallitems <click on character> for
removeallitems items from
remove all items of particular character. Optionally, after the
<actor or a
command, enter the reference ID of an actor or container to
container ID> character's
transfer all the items in question into the referred actor/container.
inventory.
Also see duplicateallitems
Remove
the
specified E.g., player.removeitem 000669A5 5 will remove five leeks
removeitem amount of from your player's inventory. Changes to an NPC's inventory will
<item ID> <count> an item usually appear immediately if you're pickpocketing them when
from a you open the console.
character's
inventory.
For perk ID codes, see the page for the perk's corresponding
skill, indexed at Skills.
setgs <setting> Set game Doesn't seem to be preserved in saves; must be reset each time
the game loads. Example: setgs fJumpHeightMin <height>
<value> setting.
sets the jump height for the player.
Just like other target commands, type prid <RefID> of an
actor/NPC first. If you prefer to click on the npc while in the
command console, make sure the ID you see is of the targeted
npc and not an object.
You can get most location codes with the help location 0
command. I.e. help breezehome 0 will tell you that the correct
code is WhiterunBreezehome or that Sovngarde can be reached
with Sovngarde01.
Transports to the center of cell [cell x, cell y] in world space.
(cow stands for center on world.) The outdoor worldspace of
Transports Skyrim is Tamriel so to transport to the center of cell 5,7 in
to cell Tamriel you would put cow tamriel 5,7 in the console.
cow <worldspace> <cell x, (Whiterun 4,-4 Dawnstar 8,25 Solitude -15,25 Markarth -42,0
<cell x, cell y> cell y> in Morthal -10,15 Falkreath -7,-21 Winterhold 27,24 Windhelm
<worldspac 33,7 Riften 42,-23 High Hrothgar 10,-10 (These points will put
e> you at the stables or right in front of each city but not inside.
Having god mode acitve is highly recomended if you're going to
experiment with this.))
Clear
Removes all blood from the screen. Useful when taking
csb screen
screenshots.
blood
Will change the Field of View to <angle>. Default is about 65
and using the command with no value will set the fov to 75. This
change will reset if the game is restarted or if settings are
Set fov
fov <angle> changed by the Launcher. Values between 80 and 107 may be
<angle>
most suitable for wide screen PC users. 180 is the maximum,
values higher will be accepted, but will still have the effects of
180.
Changes the current weather to the specified value (NOTE:
Using this command will NOT permanently change the weather).
Force
fw <formid> It is only temporary, and will reset after some moving around.
Weather
Valid formids are:
[show]Weather formids
Returns the
value of a
Example:GetGlobalValue DragonsReturned would tell you
GetGlobalValue single
whether or not random dragon attacks will take place. See
<Variable> global
ShowGlobalVars.
game
setting.
Checks if
Example:GetInCellParam 5de24 14 would tell you whether or
GetInCellParam an object is
not the player is in helgen keep. getincell >> 0.00= not present,
<Cell ID> in a
1.00=present. Can be used to confirm if your character or an
<Object ID> specified
NPC is in a particular cell.
cell.
GetPCMiscStat Returns the Shorthand is GetPCMS. Example: GetPCMS "barters" would tell
<Stat> value of the you how many times you've gone shopping or GetPCMS "days
(typically as a werewolf" will tell you how many days you have been a
meaningles werewolf. The quotation marks are required in the command to
s) stats properly identify multiword stat IDs.
shown in
the ESC
menu.
Returns the
IDs of all
items, This is a useful command to find the item ID of an object, which
spells, can then be used with other console commands.
game
help <Text> settings, E.g., help "Daedric" will list all items, etc. which have
etc. which "Daedric" in their name. There is no need to put a "0" for the
have the help command. Quotation marks are required for queries of more
entered text than one word (e.g., help "ancient nord").
in their
name.
Kills all loaded (in currently rendered cells) non-essential actors
Kill all (NPCs and creatures) immediately. Essential actors will be
killallactors
actors. knocked down. The code killall can be used for identical
effect.
Loads the corresponding save. E.g.: load autosave1 will load
Loads last autosave. If the name contains spaces, it must be enclosed in
load <name> <name> double-quotes, E.g.: load "My Skyrim Save"
gamesave.
Useful when stuck, or if showracemenu is opened. See also: save
Adjusts the
value of the
Shorthand is ModPCMS. Modifies the Player Character
(typically
Miscellaneous Statistic value by registering a permanent modifier
meaningles
(positive or negative) of the value stated. Example: ModPCMS
ModPCMiscStat s) stats
"days as a werewolf" -100 will modify how many days you
<Stat> <nn> shown in
have been a werewolf by a negative 100. The quotation marks
the ESC
are required in the command to properly identify multiword stat
menu by
IDs.
<nn>
amount.
This will free up used memory, often times increasing fps after
any given amount of time in game. Best used while in interior
Purge cell
pcb cells. However, since it purges cached cells, any cells you visited
buffer
in the recent past will have to be reloaded completely when
reentered.
playercreatepotion Creates a Example: playercreatepotion 6b10C gives you a potion of
<MGEF ID#1> potion with improved nighteye for X seconds. Alchemy Skill determines
<MGEF ID#2 up to 3 effect magnitude(based on alchemy skill 1=1%/1Pt,) and
(optional)> effects. duration(duration = Alchemy Skill +1 Sec). Some MGEF effects
<MGEF ID#3 don't work with potions.
(optional)>
damageactorvalue and modAV will effect the magnitude of
alchemy effects without messing with your level/skill progress.
Example: playerenchantobject 136D5 109637 109637
would give you imperial armor with two magic resist
enchantments.
resetquest Reset a This command will reset a quest. This command will set all
<questid> quest. stages of the quest to 0.
Begins every quest in the game and adds them all to your journal.
Not recommended for non-experimental use due to the large
Start all
saq number of quests. May crash your game. Note: This will unlock
quests
several quest related Steam achievements if they have not been
unlocked yet. See also: caqs
Save game to a named save <name>. If the name contains
spaces, it must be enclosed in double-quotes, i.e. save "My
Skyrim Save" Note that this will overwrite an existing save of
<name> without prompting.
Write
save <name> <name>
Appending the parameter "1" will create a file <name>.ess.txt
gamesave.
and open a texteditor upon it. This textfile contains a lot of
dumped data and takes a while to write out (15 minutes
observed) - the console and game is unresponsive during that.
See also: load
set Sets a
<globalvariable> to global Sets the value for a global variable. See ShowGlobalVars.
<value> variable
Doing this will allow you to change your race without using
showracemenu. If ID is not provided race menu will appear.
You can get most race codes with the help race 0 command.
Use PageUp and PageDown to scroll to the races at the top of the
list. Unlike most other commands, the race needs to be specified
Set player
setplayerrace <ID> in plain text and not the race's BaseID (i.e. setplayerrace
race.
nordrace). Creatures are available as race as well, but most
creatures will have a buggy camera position in 3rd person.
SetRace racename can also be used. Upon using this code, the
character's hand will be bound like in the beginning of the game,
but this can be undone by drawing a weapon. Will mess up
attributes/skills.
set sets used to remove a lost pet from your party set
playeranimalcount number of playeranimalcount to 0
to <qty> animal
followers Note: doesn't remove any actual follower, just reset the count to
the selected number (1 or 0). If used with a animal follower next
to you that isn't lost, you can recruit another one.
used to remove a lost follower from your party set
set sets playerfollowercount to 0
playerfollowercoun number of
t to <qty> followers Note: doesn't remove any actual follower, just reset the count to
the selected number (1 or 0).
Default value is 20. Setting the value to 1 will make time
sets the advance at the same rate as the real world. Values down to 0 are
speed of possible, where less than 1 represents game time at a fraction of
set timescale to how fast real time and 0 freezing the time of day completely.
<qty> time
advances Note: NPCs are unable to cross cell boundaries when timescale is
in-game less than 1. Fast traveling while timescale = 0 may also prevent
your game from loading properly.
Switches the player's gender; does not require a value. Can be
Switches used on an NPC if you target them. A fun thing to note is that
the player this code does not change the face and voice of a character. Can
SexChange or an be used on mannequins to show female outfits. It is possible to
NPC's use this command to fix the lingering sound effect bug that some
gender characters seem to suffer, just remember to use the command
twice to return to your original gender.
Changes
the
Gametime
Allows you to control the gamespeed, making it easier to capture
Multiplier
screenshots of action on slower speeds. Causes issues above 2.0
to a
and below 0.10, except when 0. This is different from timescale
specified
SGTM as timescale does not affect combat and movement and dialog
value for
where this setting does. Example: sgtm 2 will make the game run
slow
in fastforward. Note: This setting is automatically reset back to 1
motion,
(default) when killmoves are executed.
and fast
forward
type effects
Shows all
This will list all current game variables, which can then be
current
ShowGlobalVars changed with the set command. You can scroll through the list
game
with the PgUp and PgDown keys.
variables
ShowMessage Shows a E.g., ShowMessage 000A81FF will display the "Playtesting
<ID> message Temporary Message."
showracemenu Opens the Note: Using this command to alter one's race will reset skills and
character health/magicka/stamina to default levels. This command can be
creation safely used to alter a character's appearance without causing any
menu. unwanted side-effects as long as race is not changed. However, it
should be noted that upon completing your changes and choosing
a name for your character, all temporary active effects (such as
Gift of Charity or shrine blessings) will be removed. Racial
resistances will no longer be listed in Active Effects until the
game is loaded from the main menu, at which time racial
resistances will be automatically reapplied. Permanent active
effects such as those from guardian stones or perks will not be
lost. Active effects granted from enchanted items will not be
listed until the items are re-equipped.
Example: showracemenu bretonrace will make your character
into a Breton. This variation of showracemenu doesn't actually
Changes show the race menu, but instead works like setplayerrace
showracemenu
the player's <race>. Skills bonuses/powers change to reflect new race, but it
<race>
race. messes up skills/attributes like showracemenu past lv1. Setting
race to 'nordrace' from any other race seems to result in a no head
glitch unless used from the chargen menu.
Itemizes
quest
Shows a human friendly list of active and completed quest
sqo objectives
objectives for currently active quests
and their
states
List quest List all active quest IDs and their targets. Useful for finding the
sqt ids and "questID" parameter for targeted quest commands such as
targets movetoqt <QuestID>
Ex.: bat mybatchfile; runs all of the console commands in the file mybatchfile.
Create a text file that contains a list of console commands (one per line).
Place the file in your Skyrim installation directory.
Start the game.
Bring up the console.
Type bat followed by the name of your batch file, for example bat mybatchfile.
Skyrim batch files are lists of console commands that are run one after the other. They have no
loops, tests, or other logic and execution doesn't stop if there's a problem with one of the
commands. You can create any number of batch files, each with its own purpose.
[edit] Guidelines for Using Commands in Batch Files
Most Skyrim console commands can be run from a batch file. For example:
Toggle commands work in batch files. These include showing and hiding NPC
conversation subtitles (ShowSubtitle), turning on and off grass display (TG), enabling
and disabling god mode (TGM), and so forth.
Targeted commands with an explicit reference work fine. For example, you can use
Player.Additem f 1000 in a batch file to add 1000 gold to your inventory. If you want
to give Lydia 1000 gold, use A2C94.Additem F 1000 (A2C94 being the Reference ID of
Lydia).
PRID (Pick by Reference ID) selects an item, NPC, etc. Using PRID to select an NPC
before performing additional commands that you want to apply to that NPC works fine,
for example prid a2c94 then setclass 13176 will cause Lydia to level up correctly.
Miscellaneous commands such as FOV or FW can also be run from batch files.
The COC command cannot be run from within a batch file (the game will crash to
desktop). [verification needed — see talk page]
With the above method you can actually create an alternative start to the game. In addition to a
batch file, you also need to edit the Skyrim.ini file, which can be found in your C:\Users\
YOUR_USER_NAME\Documents\My Games\Skyrim folder.
1. Open your Skyrim.ini file and add the line SStartingCell=WhiteRiverWatch01 under
the [General] tab.
2. Adding this line causes Skyrim to bypass the Continue - New - Load - Credits - Quit
screen, and starts a New game - without the prisoner video sequence. Once you have
created a new character, you will need to remove it again.
3. Create an empty .txt-file in your Skyrim folder (where the TESV.exe is located) and name
it bandit (not bandit.txt).
4. Paste the code sniplet below the numbered list into the new file.
5. Start a new game and you will not see the intro but stand within the White River Watch
cave.
6. Open the console and type bat bandit.
7. Create your character.
player.removeallitems
;Leather Armor, Bracers and Boots
player.additem 3619e 1
player.equipitem 3619e
player.additem 13921 1
player.equipitem 13921
player.additem 13920 1
player.equipitem 13920
;Steel Sword and Shield
player.additem 13989 1
player.equipitem 13989
player.additem 13955 1
player.equipitem 13955
;Hunting Bow and Iron Arrows
player.additem 13985 1
player.additem 1397D 25
;Gold and Lockpicks
player.additem f 100
player.additem a 15
;Bandit Ally Faction
player.addtofaction e0cd9 0
;Create Character
showracemenu
Using this method you can visit Helgen before it is destroyed and you can also do the side
missions, but without further editing the main quest will not start (see the Quest Stages section of
Unbound to find out how to start the main quest anyway).
Another method to use batch files is to place it under Skyrim\Data\ and name it bandit.txt
instead of just bandit. The console command will be the same - bat bandit. This method is
better because any TXT editor (like Notepad) will automatically recognize the file, allowing you
to easily open and edit it. Also, you may want to place this file in the same folder as other mods,
which will help keep the root folder clean.