Console Command Skyrim

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 12

Console Commands are a debugging tool available to PC players, adding a wide range of

functionality to the game. On American English keyboards, the tilde key (~) will toggle the
console screen, but on British English keyboards, that key is the grave key ( ` ). The tilde key on
American English keyboards also picture the grave symbol. The key is located below Escape (
Esc ) and just left of the one (1) key. Output from commands that exceed the console window
area can be navigated using the Page Up and Page Down keys. A BASH-like command history
can be navigated using the Up Arrow and Down Arrow keys.

Contents
 1 Comparisons with other games
 2 Using the console
o 2.1 Entering codes
o 2.2 Targeting
o 2.3 Short code or Prefix Required
 3 Subpages
 4 Toggle commands
 5 Targeted commands
 6 Quest commands
 7 Player commands
 8 Other
 9 Movement
 10 List of locations accessible only through console commands
 11 Batch Lists
 12 Trivia
 13 Bugs

Comparisons with other games


As with The Elder Scrolls III: Morrowind and The Elder Scrolls IV: Oblivion, console
commands are only available in the PC version of the game.

Using the console


Entering codes

 Codes are not case sensitive; "a" is same as "A."

 Codes are shown as: Code <Variable> <#>


 The < and > are not entered with the code, and # is replaced by the desired
quantity.

 The code to add an item is listed as: Player.AddItem <ItemID> <#>

 If 500 gold were to be added, it would be entered as:

player.additem f 500

Targeting

To target an object, open the console and click the object. Its name will appear about center
screen. An item targeted in the console is also called a reference.

A target may also be selected using the PRID command and the target's Reference ID.

Short code or Prefix Required

Short code refers to a code having a short form that can be used interchangeably with the Long
form.

 ToggleFogOfWar is the long code form.


 TFOW is the short code form.

Prefix Required refers to a code needing a prefix to work as intended.

 SetHealth <#> will set the max health of the target selected by clicking or the PRID
command to <#>.
 Player.SetHealth <#> will set your max health to <#>.

Subpages
Alchemy Armor Items
Heavy Books
Food and Drinks
Light Keys
Potions and Poisons
Clothing Miscellaneous Items
Ingredients
Jewelry Soul Gems
Weapons Magic Other
ActorValues
Arrows Spells
Characters
Blades Enchantments
Factions
Blunts Perks
Followers
Bows Shouts
Locations
Staves Skills
Weather
Toggle commands
Command Effect
rm
Toggle Run Mode. Will switch between run mode and walking mode. Same function
as <Caps Lock> key.
Toggle Artificial Intelligence (Characters will not react to non-combat stimuli and
tai dialogue may not function. Used in conjunction with TCAI will completely disable
NPC actions.)
Toggle player Control of target entity. If used when targeting an NPC, will transfer
tc control to said NPC, and any command inputs will be applied both characters. To
fix, use TC on the Dragonborn to turn off their actions.
tcai
Toggle Combat Artificial Intelligence (characters may turn hostile, but will not
attack the Dragonborn).
Toggle Collision. Using the TCL command with a target toggles clipping for the
tcl target. If used while falling off a cliff, may cause a crash. Useful for relocating the
Dragonborn or finding items or bodies that have fallen through a wall or floor.
tdetect Toggle AI Detection. Does not work with Pickpocket detection.
teofis
Toggle relatively taxing image settings such as blur. May result in an increase in
frames per second.
tfc Toggle freefly camera. Add <1> to pause.
tfow Toggles regions on the local map. i.e. loads all unexplored areas on the local map.
tg Toggles grass
tgm
Toggle God Mode (Grants infinite health, magicka, and stamina. Carry weight will
never affect movement or fast travel.)
Toggle Immortal Mode (Character will still take damage, but their health will never
tim reach zero. If an enemy performs a kill animation on the Dragonborn, a visual bug
will result where the Dragonborn's body will appear to be slightly distorted.)
tll Toggles LOD
Toggle Menus (Disables all GUI elements, including menus, the compass, subtitles
tm and messages. Very useful for taking screenshots. This will also visually disable the
console, but it will still function.)
tmm <#>
Toggle Map Markers; <0> Disable all. <1> Enable all. <1,0,1> Show all, no fast
travel.
ts Toggles display of skybox and fog.
tscr Toggles script processing
tt Toggles trees
tws Toggle water display when not underwater
twf Toggles framework border

Targeted commands
Command Effect
additem <ItemID> <#> Adds <ItemID> to target NPC, Note: Use on a merchant to set the
amount of barter gold. This gold will not go to the Dragonborn's
inventory when selling items to the vendor if the additem causes the
vendor's gold to exceed 32,767, the maximum positive number that
can be stored in an int variable in C. To avoid this, increment by
32,700 less the merchant's current gold, sell items and repeat as
needed. If it does go over, using additem with a negative number can
fix this, for example, "additem f -10000"
DamageActorValue
<attribute> <amount> Lowers the given attribute by the desired amount.

disable
This will make the target disappear, but still loaded with the cell (see
also: MarkForDelete).
dispelallspells Removes spell effects such as poisons from the target.
duplicateallitems After targeting an NPC, this can be used to place a copy of their
<refID> inventory into that of another NPC.
enable Used to make disabled targets re-appear.
Forces the target to equip <ItemID>, if it is in their inventory.
equipitem <ItemID> Adding a "1" after the ID seems to make some items un-removable,
<#><left/right> while "0" keeps them removable as normal. <left/right> will equip
the weapon in the left or right hand.
Forces the target to equip <SpellID>, <left/right> will equip the spell
in the left or right hand. Spells cannot be acquired by addspell
equipspell <SpellID>
<left/right> command such as Vampiric Drain can be acquired temporarily in this
way. As for player variant: type "player.Equipspell <SpellID>
<left/right>"
forceav <AV> <#> Forces <AV> to <#>
GetAngle <axis> Returns the value of given rotational axis (x,y,z) of the target.
getav <AV> Returns the current value of the specified actor value.
getavinfo <AV> Returns info about the specified actor value.
getlevel Returns the level of the target.
getlocationcleared Returns the clear code off the specified location. Requires the
<ID> numerical location ID.
getpos <axis> Returns the position value of given axis (x,y,z) of the target
getrelationshiprank Returns the numerical rank of the friendliness between two
<ID>
characters (-4–4).

 -4 - Archenemy
 -3 - Enemy
 -2 - Foe
 -1 - Rival
 0 - Acquaintance
 1 - Friend
 2 - Confident
 3 - Ally
 4 - Lover

hasperk <ID> Returns whether or not the target has the specified perk.
kill
Instantly kills target. (Does not kill characters/creatures marked
"essential," only causes them to fall to the ground for a few minutes.)
lock <#>
Lock chests, doors or people. <#> = the level of difficulty. (0–100,
any larger and the lock cannot be picked)
Permanently deletes the selected item either instantaneously or upon
MarkForDelete reload. This command is cleaner than disable, as it removes the
item completely instead of hiding it from view.
modav <AV> <+/-#> Changes <AV> by <+/-#>
Teleports the targeted NPC to the Dragonborn. (Works similar to
moveto player player.placeatme <BaseID> <#> but does not create a new
reference of the base object.)
<#> = 1, 2, 3, or 4. Depending on the actor's faction ranking to the
Dragonborn will depend on what is seen in their inventory.confirmation
openactorcontainer needed
<#> Use the correct ranking for their current status. This allows one
to add or retrieve items from that actor. Some actors will not equip
armor or weapons stored on them.
playidle <ID>
Makes the target do the specified action, such as a specific attack
animation.
pushactoraway <ID> Attract or repel the target in relation to the Dragonborn by the
<distance> specified amount.
recycleactor Cycle between different actors within the same actor ID randomly.
removeallitems
Removes all items in the targets inventory. Use the <player>
variable to transfer all items to own inventory.
resetai Resets the AI of the target (see also: tai).
resetinventory Restores the target's inventory to its original state.
RestoreActorValue
<attribute> <amount> Reverses the effect(s) of DamageActorValue.
Return a dead NPC to life. Replace <#> with 1 to resurrect with all
resurrect <#> current items intact. Leave off <#> to have the corpse removed & a
new copy spawned.
Changes the transparency of the target. Ranges are in decimal from
setactoralpha <#> 0–1, with 0 being completely invisible, 0.5 being half visible and 1
being completely visible.
SetAngle <axis> <#>
Sets the value of given rotational axis (x,y,z) of the target (the change
happens when the targeted object is picked up).
setav <AV> <#> Like forceav, but some values do not stay set through saves.
setessential <BaseID>
<#> Make NPC mortal (0) / immortal(1).
setfavorstate <#> 0 = inactive, 1 = active. Makes any targeted NPC obey player
commands by moving the cursor over an interactable object or NPC
while activated. In example, typing setfavorstate 1 while having
a Guard selected in the command console and clicking on a dropped
item, makes that Guard pick-up and automatically equip that item.
After issuing a command, typing setfavorstate 0 while a
command has not yet been issued or pressed the TAB button will
cancel and deactivate the command.
Makes the target either intangible or susceptible to damage or
setghost <#> staggering effects. Range of 0-1, with 0 making the target tangible,
and 1 making the target intangible.
setgs <attribute>
<amount> Set Game Setting.
Sets the level of an NPC compared to the Dragonborn. SetLevel
1000,0,1,81 will make target level with the Dragonborn from 1 to
81.
1: <% of PC's level * 10> The NPC's level in comparison to the
setlevel
<1>,<2>,<3>,<4> Dragonborn, based on % of their level. (1000 = 100.0%)
2: <1 level +/-> How many levels this NPC will be above or below the
level in 1.
3: <starting level> The lowest level this NPC can be.
4: <level cap> The highest level this NPC can be.
setlocationcleared Sets a location as cleared (1) or uncleared (0). The numerical location
<ID> <#> ID must be used.
setnpcweight <#>
Sets the weight of the target or the Dragonborn. Ranges from 0–100,
with 0 being the lightest and 100 being the heaviest.
Allows one to make items owned by different people. They will not
setownership <BaseID> become the Dragonborn's unless an ID is not entered. When used on
chests, applies to everything inside.
setcellownership Marks desired interior or exterior cell as owned by the player, as well
<LocationID> as everything within its perimeter.
SetPos <axis> <#> Sets the position value of given axis (x,y,z) of the target.
Used to set an NPC's disposition towards the Dragonborn. <#> = 1–4
setrelationshiprank Note: If this does not help when attempting to add Follower
<refID> <#> dialogue, use setrelationshiprank <refID> <#> then
player.setrelationshiprank <refID> <#>.
Sets the scale of an object. "1" is default. If no object is selected,
applies to PC. NOTE: When used on an actor, it increases or
setscale <#> decreases speed and damage. Also note that the lowest possible value
to change the scale, is 0.1, and the highest possible value to change
the scale, is 10.00, exactly on the dot.
setunconscious <#>
Sets the target as unconscious. Range of 0–1, with 0 being conscious
and 1 being unconscious.
sexchange
Change gender of target NPC, or PC. Note: Only BODY changes,
not the head.
shp <#>
Set HDR Parameter. Nine separate numbers should be entered to
change various luminosity settings.
sifh <#>
Set Ignore Friendly Hit. Range of 0–1, with 0 causing the target not
to ignore friendly hits and 1 causing the target to ignore them.
Set Target Refraction. Range of 0–1, with0.000001 being completely
str <#> invisible and 1.000000 being completely visible, and 0 reverting the
target to its default state.
Forces the target to unequip <ItemID>, similar to the Equipitem
command except it unequips items if it is in one's inventory. Adding
unequipitem <ItemID>
<#><left/right> a '1' after the ID will make certain items unable to be removed, while
'0' keeps them removable as normal. <left/right> will unequip the
weapon in the left or right hand.
unlock
Unlock the desired chest or door. Note: This may not work in some
cases.

 Most "Target commands" can be used on the Dragonborn by self-targeting or prefixing


with Player. in the console window. Some commands, such as Kill and Disable may
crash the game when self-targeted, while others may produce unexpected results.

Quest commands
Command Effect
Complete all Stages of every quest.
caqs Buggy, may not be stable. NOT
recommended.
completequest <QuestID>
Complete a quest. May cause buggy behavior,
SetStage is generally cleaner.

getstage <QuestID>
Used to get the current quest stage for quest
(use ShowQuestTargets for IDs).
movetoqt <QuestID> Move to quest target.
resetquest <QuestID> Completely resets the given quest.
saq Starts every quest (may cause crash).
SetObjectiveCompleted <QuestID> <stage> Used to set the quest stage as being completed
<1 to set, 0 to unset> or uncompleted.
setstage <quest id> <stage value>
Used to set the quest stage (useful for bugged
quests).
showquesttargets Shows all current quest IDs.
setpqv <quest form ID> <quest variable Attempts to modify a quest variable to the
ID> <desired variable> desired value.
sqv <quest id>
Displays a list of all variables used by <quest
id>.
player.sqs <quest id> Used to display all the stages of a quest.

Player commands
Command Effect
player.additem <ItemID> Add an item to the inventory.
<#>
For example, to add 100 gold to the inventory, use
player.additem f 100
player.addperk <PerkID> Adds the perk.
Add shout to one's skill list. Shouts are also part of spells, so in
order for this command to work the spells will need to already be
unlocked. List of Shout Codes.
Addshout <ShoutID>
 NOTE: Shouts can be unlocked using: player.unlockword
<shoutID>

Adds a spell, disease, or power. This can also be used for acquiring
player.addspell
<variable> an unused spell. ex: Conjure Dragon Priest, does not work for
vampiric spells.
player.advlevel Force a Level Up (does not add ability to pick a new perk).
Gives one the desired amount of skill usage points. NOTE: Very
AdvSkill <AV> <#>
inconsistent between skills. E.g. "AdvSkill speechcraft 3000"
gives about as much Speech experience as "AdvSkill enchanting
1" gives Enchanting experience. See skills for test results.

animcam
Allows for the camera to view the Dragonborn from any direction
without changing which way they are facing.
player.drop <ItemID>
<#> This will drop the item.
This command is used to enable controls during cinematics when
enableplayercontrols they are disabled. Occasionally the game will glitch, instead of
reloading put in this command and carry on.
player.forceav <AV> <#>
Should be avoided for use, as it overrides game's automatic
calculations such as item bonuses, spell bonuses, etc.
player.forceav Sets the number of Dragon Souls the Dragonborn has. Replace #
dragonsouls # with the desired number.
Adjust field of view. The default is 75, and the maximum value
fov <#>
appears to be 160. Higher numbers allow a wider field of vision,
but it can be distorted. Lower numbers show a "zoomed" view. 60–
90 is a useful range.
IncPCS <AVskill>
Increase the Dragonborn's skill points by one point. For example,
the command IncPCS marksman will raise the Archery skill by 1.
player.modav <AV> <+/-
#> Modifies the Actor Value by <#>.
On occasion, this may not pay off the entire bounty
player.paycrimegold <X>
<Y> <FactionID> X= 1 Remove stolen items. 0 Do not remove stolen items.
Y = 1 Go to jail. 0 Do not go to jail.
player.placeatme
<Item/NPCID> <#> Places an item or actor next to the Dragonborn.
playerEnchantObject Adds object to inventory with any two magic effects (not limited to
<ItemID> <mgef> <mgef> enchants). Codes
psb Player Spell Book. Unlocks all spells and shouts. NOTE: Using
this command will unlock every spell, even those used to test
Skyrim. However, this may cause bugs.
player.removeitem
<ItemID> <#> Remove an item from the inventory.
player.removeperk
<PerkID> Removes a perk.; does not return the point used to gain the perk.
player.removespell
<variable> Removes a spell, disease, or power.
player.resethealth Refills the Dragonborn's health instantly.
While in third person, the Dragonborn's arms—which would
s1st
normally only appear in first person—appear behind them,
allowing for the Dragonborn to experience first person and third
person simultaneously.
player.setav <AV> <#> Sets the Actor Value to <#>.
player.setcrimegold <#>
<FactionID> Adds <#> to one's current bounty with <FactionID>
player.setlevel <#> Sets current level to <#>.
Doing this will allow the Dragonborn's race to be changed without
SetPlayerRace <Raceid>
using showracemenu. Note: May bug after certain transformations
(ex: Werewolf), and revert to original race, or the race that was
selected using showracemenu.
A variant of SetPlayerRace <Raceid>, it is possible to become
non-human race using this variant i.e. Player.SetRace
Player.SetRace <RaceID> DragonRace will transform the Dragonborn into a Dragon and
capable of using Thu'um under Dragon voice clip, this variant can
also be used on NPCs.
player.setscale #
Sets height for character. Tsun, for example, ranks 1.23 on the
height scale.
Bring up character customization menu. Magicka, Stamina, and
Health will be spread evenly on using this depending on one's
character's level. It will remove any custom point distributions.
showracemenu
Note: Using TGM command before entering the menu will retain
the original levels. Will only modify one's
attributes/skills/points/etc. if the race or sex is changed or a preset
is selected form the list. Modifying cosmetic details such a skin
color/warpaint/hair/face shape/etc. will leave one's points.
player.showinventory
Lists all items in the Dragonborn's inventory and their codes. PgUp
and PgDwn to scroll through.
spf <name>
Save Player Face. This saves the Dragonborn's current facial
settings (from character creation) in the game files.
Set the speed of the free-flying camera (tfc). The default is 1.
sucsm <#> Setting it to 2, for example, would double the speed, and to 0.5
would half the speed.
Teaches a word of power, words can be found with the "help
player.teachword <WOOP> <word> 4" command and are recognizable by the WOOP tag. See
Dragon Shouts.
player.unlockword Unlocks a word of power. List of Shout Codes.
<shoutID>

 Most "Player commands" can be used on any NPC by left clicking them while in the
console window, and typing the code without the Player. prefix.
 The addperk command does not seem to work on NPCs, as they seem to rely upon the
perks assigned to them.

Other
Command Effect
Addfac <FactionID> <#>
Adds the selected NPC to a faction. May cause undesired and buggy
AI behavior, 1–4 affects faction rank
Alternate version of AddFac, adds the selected NPC to a faction.
AddToFaction
<FactionID> <#> May cause undesired and buggy AI behavior, 1–4 affects faction
rank
bat <name of text
file> Executes a .bat file. For more info read this.
csb Clear Screen Blood. Removes any blood effects from the screen.
fw
Force Weather. Will automatically change the current weather to the
one specified. (May also vanish as with the sw command).
GetGlobalValue <Value> Returns information about the given value in the game's settings.
Returns whether or not the specified object is in the specified cell.
GetInCellParam
<LocationID> <FormID> Ranges from 0.00–1.00, with 0.00 being not present and 1.00 being
present.
GetPCMiscStat
<MiscStat> Returns the specified miscellaneous stat of the Dragonborn.
Show all console commands with descriptions. Add descriptors to
search for IDs. ex: help "elven armor" 0 will show ids of all
help <"Object name">
<#> items that include "elven armor" in the name. Quotation mark is a
must for items with more than one word ex: "elven armor," <#> sets
the limits for the search function, 0 = no limits; 4 = Exact.
killall
Kills all non-essential NPCs in the vicinity. Has the same result as
killallactors.

load <save name>


Loads the specified save. Requires quotation marks around the name
if includes spaces.
ModPCMiscStat
<MiscStat> <#> Modifies the specified miscellaneous stat of the player.
Purge Cell Buffer. Purges interior cells the Dragonborn has recently
pcb exited, potentially allowing for a higher framerate at the cost of
longer loading screens.
Allows for potions to be created through the console. <ID> refers to
PlayerCreatePotion
<ID> <ID> <ID> the potion effect rather than the ingredient's ID. The second and
third <ID> codes are optional.
Prid <refID> Sets the NPC as reference, allowing other commands to be used,
good for targeting NPCs that cannot be reached/selected on screen
or fixing quest glitches about NPCs not appearing.
qqq
Quits the game without going through the menus. (May cause
crash.)
refini Refreshes .ini settings (does not reset them).
Removes the selected NPC from a faction. Usually used for
RemoveFac <FactionID> unaligning hostile NPC from hostile factions. This may cause
undesired and buggy AI behavior.
resetinterior
<LocationID> Resets the given cell, reverting it to its original settings.

save <save name>


Saves the game over an existing save with the specified name.
Requires quotation marks around the name if includes spaces.
saveini Saves all current game settings to the game's .ini files.
set playeranimalcount
to <#> 0 Clears non-humanoid followers and allows one to recruit again.
set
playerfollowercount to 0 Clears followers and allows one to recruit again.
<#>
set timescale to <#> Set the rate at which time passes (20 is the default, 1 is realtime)
set <variable> to <#> Sets the specified variable.
Set Gametime Multiplier. This changes the game speed (e.g.
sgtm <#> movement, dialogue, etc.), with a higher number leading to a faster
speed and a lower number leading to a lower speed.
showglobalvars Shows all game variables.
showmessage <ID> Shows a message in the center of the screen with the given ID.
sqo
Show Quest Objectives. Gives a list of all objectives for ongoing
quests.
sqt Show Quest Targets. Gives a list of all targets for ongoing quests.
Set Tint Parameters. Ranges from 0–1, with stp 0 0 0 0 creating
stp <#> <#> <#> <#> the most vibrant display and stp 1 1 1 1 creating the most black
and white display.
Set Weather. Changes the current weather to the one entered. It may
sw <WeatherID> vanish quickly depending on the area the Dragonborn is in, due to
the area's climate being forced.

Movement
Command Effect
coc <CellID>
Center On Cell. Teleports the Dragonborn to the center of the cell. A list of
coc codes is here.
cow Tamriel <X>
<Y> Center on World. Teleports the Dragonborn to the given coordinates.
Move to an NPC. Note that if the NPC is dead, the Dragonborn will be
player.moveto moved to the Dead Body Cleanup Cell where the NPC can be resurrected
<NPCrefID> using the console command, but will need to use the coc command to
return.

You might also like