Oblivion:Console
The UESPWiki – Your source for The Elder Scrolls since 1995
The console is a powerful in-game tool 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. The console is only available on the PC; there is no way to use the console on the Xbox 360 or PS3 platforms.
Contents |
[edit] General Information
The console is accessed by toggling the tilde (~) key, (found on most keyboards next to the "1" key). The console prompt will appear in the lower left-hand corner of your screen. You can scroll the console output using the "Page Up" and "Page Down" keys. The console is not case sensitive: entering any of "tdt" or "TDT" or "TdT" will toggle the debugging text.
Many commands are targeted: this means that you may use "player.command" to affect the player character, or you may target an NPC or object in the console by clicking on them, and then run "command" to affect the NPC or object. When a NPC or object is targeted, their name and hex code 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 name and ID is shown at the top of the screen), then type unlock.
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.
Warning: Use console commands with caution! It is easily possible to mess up your game if you modify settings at the console. Even if short term the game functions normally, you may later discover that you have made it impossible to complete a quest and therefore you cannot proceed normally with game play; fixing that problem can then make new glitches pop up elsewhere. Create a permanent saved game before experimenting with the console. If you need to use the console to fix a glitch, try to use the least powerful command possible.
Note: If you are running Oblivion on Windows XP Media Center Edition or Windows Vista, and an infrared remote receiver is plugged in, your console may not function properly. In order to restore its functionality, unplug the receiver for your Media Center Remote. This will allow you to use the console, as the receiver interferes with Oblivion's programming. Alternatively, a Ring of Console mod has been created to circumvent this problem.
[edit] Commands
[edit] How to Read the Command Table
When a command requires arguments, i.e. additem <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.
| Command | Effect | Notes |
|---|---|---|
[edit] Toggle Commands |
These commands toggle settings on and off. | |
| showsubtitle | Toggles NPC conversation subtitles | |
| tai | Toggle AI | This command can be targeted, so you can selectively turn off AI for some actors but not others. If you try to turn off the player AI (try "player.tai"), you will be unable to move the player. If nothing is targeted this will turn off AI for all actors. |
| tcai | Toggle combat AI | Actors will still engage in combat, but they won't move to fight once they engage. This can also be used as a targeted command. If no actor is targeted will turn off combat AI for all actors. |
| tcl | Toggle collision (clipping) | You can essentially fly. Point in a direction and move wherever you want. You can also fly through buildings and even the landscape. This command is targeted; if no actor is selected it will turn off collision for the player only. Note that your horse is considered a separate actor, even when you are riding. If you get stuck in a rock while on horseback, you must select the horse before entering the "tcl" command. Note: Killing an NPC while collision is toggled off seems to freeze the creature. It will still die, but it will not fall down until the command is off. Instead, it freezes in the exact position it was in when you delivered the killing blow.
[verification needed -- has anyone else experienced this] Also if you die or get paralyzed while this command is on then the game crashes because you fly out of the game. |
| pcb | Purge cell buffer | This will free up used memory, often times increasing fps after any given amount of time in game. Best used while in interior cells. However, since it purges cached cells, any cells you visited in the recent past will have to be reloaded completely when re-entered. |
| tdetect | Toggle AI detection | This command can be used as a targeted command. If no target is selected, it will turn off detection for all actors. If actors are engaged in combat with you, this will not stop them from seeing and attacking you. Similarly, if a guard is coming to arrest you, this will not stop him. |
| tdt | Toggle debug text | Display (or remove) debugging text on the screen. The default selection is some graphics info, including your frames per second. For more information, see SetDebugText |
| tfc | Freeflying camera | Sets your controls to move the camera around, instead of the player. Use with third-person view to get a good look at your character. |
| tfow | Toggle fog of war | Displays the complete map for your local area, including areas you have not yet explored. |
| tfh | Toggle full help | |
| tg | Toggle grass | |
| tgm | Toggle god mode | No damage taken, no magicka consumed, no fatigue used, all spells castable, no encumbrance, unlimited arrows. you can only use this on yourself. |
| thd | Toggle Heads up Picture in Picture | A small copy of the full screen render will appear in the top left hand corner of the screen, along with two brown boxes. |
| tll | Toggle land LOD (Level of Detail) | |
| tlv | Toggle leaves | |
| tm | Toggles menus (HUD) | "Menus" refers the the Heads-Up Display (HUD) at the bottom of the screen: the health/magicka/fatigue meters, your current weapon and spell, etc. This also removes the crosshair if it's present. This command is useful for taking screenshots without all the clutter. |
| tmm <nn> | Show/hide all map markers | <nn> should be 1 to show all markers, or 0 to hide all markers. Note that hiding markers hides ALL markers - including the city markers that are automatically visible at the beginning of the game. |
| ts | Toggle sky | |
| tt | Toggle trees | |
| twf | Toggle wireframe mode | |
| tws | Toggle water rendering | |
[edit] Targeted Commands |
These commands require a target reference. Select one with the mouse in the console, the "prid" command, or prefix the command with "player." to target the player character. | |
| additem <BaseID> <qty> | Add item to inventory | See the various item pages for item BaseIDs. For example, since the item code for gold is F, player.additem F 1000 will make your character 1000 gold richer. |
| disable | Disable an object or NPC | Removes an object or NPC from the world. The object information is still stored in your savegame, but otherwise the object effectively no longer exists. |
| enable <RefID> | Enables an object or NPC | Enables a disabled object or NPC. |
| removeitem <BaseID> <qty> | Remove item from inventory | The opposite of additem. See the various item pages for item codes. |
| equipitem <BaseID> <qty> | Equip an Item | Allows a NPC or creature to equip an item provided that an item with the BaseID provided exist in inventory of said NPC or creature. |
| removeallitems | Remove all items from inventory | Strips naked a target. |
| addspell <SpellCode> | Add spell | See the list of spell codes. |
| removespell <SpellCode> | Remove spell | See the list of spell codes |
| createfullactorcopy | Clones target actor | This will create a living actor even if the target is dead. And yes, you can clone your player character, and talk to yourself. And fight with yourself. WARNING: If you kill yourself while in a guild, you will be expelled for killing a member (The member being yourself). |
| deletefullactorcopy | Deletes a clone of the target actor | This will delete a clone that was created using the "createfullactorcopy" command. |
| getav <attribute> | Get value of attribute | Here, <attribute> includes the eight basic attributes (strength, intelligence, etc.), derived attributes (health, magicka, fatigue, encumbrance), and skills (blade, blunt, etc.). Other values can be used to, including but not limited to Resist (Fire, Frost, Shock, Magic, Poison), Paralysis, etc. |
| setav <attribute> <nn> | Sets value of attribute | If used on a skill, it will increase the skill without causing inadvertent level-up issues (like with "advskill"). With this command the expertise level message does not show but the expertise level is increased or decreased correctly. SetAV can be used with the other actor values mentioned above as well. |
| kill <killer> | Kill actor | Will not truly kill Essential characters, they will revive as they normally do because of their Essential tag. For some reason this produces a lot of output to the console. Specifying a <killer> will assign credit for the kill (for determining some quest updates, bounty, etc.). |
| lock <nn> | Lock Target | <nn> is the degree of complexity (1-99). 100 is unpickable/needs a key. Just typing 'lock' will relock at the original level. |
| unlock | Unlock Target | Can be used on doors or chests. |
| moddisposition <actorid> <nn> | modify disposition | To use this command, select the NPC whose disposition you want to modify, then type in the ActorID of the NPC the selected NPC's disposition will be modified toward. To modify an NPC's disposition towards the player (the same value used for the purposes of revealing information), select the player (to get the ActorID), type in his/her ActorID, input the amount you want to add to or subtract from (use "-" when decreasing) the NPC's disposition, select the NPC, and press Enter. |
| moveto <RefID> | Teleports the actor to destination | <RefID> is the Reference ID for an existing object, person, or creature to which you would like to be transported. To move to a specified location, you should use the coc command instead. |
| payfine | Pay criminal fines | While you will not be teleported to prison like when you select the "Pay Fines" dialog option with a guard, all your stolen items will be removed in the same manner. You will have to find the evidence chest to get them back, as usual. When used on NPCs, this command does not set their bounty to 0, but it works like one would expect when used on the player character. |
| placeatme <BaseID> | Spawns new copy of object in front of actor | <BaseID> is a base Form ID as seen in the "Object Window" of the Construction Set. BaseIDs exist for items, NPCs, creatures, etc. This command will spawn a new copy of the object. UESP articles (e.g. Oblivion:Items) provide the BaseIDs for all listed objects, or the same IDs are available at PlanetElderScrolls. This command should not be used for unique NPCs; see NPCs and prid instead.
WARNING: Overuse of the placeatme command may result in savegame bloating, which can lead to savegame corruption. |
| resurrect <1> | Resurrects target actor | Unless you use this command the instant the NPC is killed, the game will still register the target as "Dead" and they will subsequently not be mentioned in dialogue and sometimes specifically referred to as "Dead" during a quest. Adding a tag of "1" at the end (i.e., resurrect 1) will make the target get up instead of vanishing and reappearing, thus allowing them to keep their equipment. If an NPC's corpse has vanished already, you will also need to enable the NPC. |
| setactorfullname <name> | Sets actor's name | <name> must be in quotes, e.g. player.SetActorFullName "Bob" |
| setcrimegold <qty> | Sets bounty on target | Does not automatically stop guards from attacking you if set to 0; you still have to yield to them. In some situations you may incur further bounty before you can yield. |
| setlevel <nn> | Changes target's level | Does not bring up the usual level advance screen; also see "advlevel" below. |
| SetOwnership [<owner>|<Faction>] | Changes ownership of targeted item to Player Character (if no <owner> variable is specified), or to the specified <owner> or <Faction> | Potentially useful for situations where the game does not recongnize that an item (e.g. door or bed) should rightfully 'belong' to the player (example). See also constwiki:SetOwnership. |
| stopcombat | Stop target combat | Depending on circumstances, the actor may immediately re-engage in combat. |
| startcombat | Start target combat | Make a creature or NPC attack a creature, NPC or player |
[edit] Other Commands |
These commands don't really lend themselves to a category. | |
| advlevel | Forces a levelup | This command does display the usual levelup dialog where you select the attributes to increase. When using this, the number of times you have to level up your major skills to level again does NOT advance. This means that if you had 3 major skill levels until your next level, and you used the advlevel command to level three times, you will need 23 major skill improves before the game starts leveling you again. |
| advskill <skill> <nn> | Forces a skill level up | Using this method the game's internal mechanics will report a skill increase when you enter this command, and it will advance normally (unlike modpcs on pre 1.1.511 versions of Oblivion which was subject to a bug that caused locking the skill in place until internal re-synch). However, using this command to increase the level of a major skill too high will result in messing up your level-ups, as it will register several major skill increases. Using negative numbers to decrease your skill may crash the game. |
| bat <filename> | Executes the file with name <filename> | The file may contain console commands separated by a line break. |
| completequest <questid> | Complete current quest | |
| caqs | Complete all quest stages | This will complete ALL quests in the game. But doesn't give any titles for any guild factions. |
| coc <location> | Teleport to <location> | See individual Place pages for that location's console codes. When teleporting you may not appear where you expect to. |
| coe <X>,<Y> | Teleport to <location> | The difference between this and coc is that this command takes two coordinates for an exterior cell. Most place pages will give the location of the exterior coordinates. Example: coe -9,19. |
| fov <value> | Changes the field of view of the player | This command works only with the first person camera and its unfortunately reset every time you speak to a character or change camera. The <value> is in degrees. The default fov is 75, while the ideal is 90. In real life we actually see 120 degrees but in the game, values over 90 don't appear quite right... |
| fw <ID> | Force Weather | Instantly set the weather to a particular type. The ID must be one of the following:
|
| getstage <questid> | Returns the current stage of the specified quest | This shows you the current quest stage. 10 generally indicates quest accepted, other than that, it's all quest dependent. |
| setstage <questid> <stage> | Sets the current stage of a quest | Quest stages can be found on each individual quest page. First, select the quest you want to change in your journal. Use the SQT command to see the quest id, then use the getstage command to see the stage. Usually you add or subtract 10 to change the stage, but there are exceptions. |
| modpca <attribute> <nn> | Adds nn points to an attribute | Attributes are subject to the same rules as skills in the entry below, except that you may use negative values. |
| modpcs <skill> <nn> | Adds nn points to the skill | Skill name to use is the name minus spaces, e.g. "handtohand." If you enter a value that would cause the skill to exceed 255 it will reset back to 0 and continue adding the remaining. Negative values will crash the game. This command was subject to a bug that was fixed in Oblivion 1.1.511. Using it on older versions will appear to end the ability of a skill to level up, but the skill will resume to level, once its internal level (the level it would be at without using the Console Command) has caught up with the level dictated by the Console Command. Abilities such as Vampirism alter the base value of the skill, and are subject the the 255 limit. |
| movetoqt | Teleports you to your quest target | This sometimes results in your being stuck in a wall, stuck in cinematic mode (can't move etc.), or can mess up the current quest. Be prepared to toggle collision (tcl) or reload. |
| prid <RefId> | Pick reference by ID | Select an existing copy of an object/creature/NPC using its reference FormID. All subsequent targeted commands will use this object as the target. This is the same as clicking on the object in the console, but can be used even if the object is invisible or in a different area. |
| psb | Add all spells to player | Note that this adds ALL spells of Oblivion, including the spells that were used to test Oblivion. Without using modifications, there are more than 600 spells. This will make your spell menu load slowly, and it is hard to find certain spells with so many. |
| qqq | Exit game without using menus | |
| save <name> [1] | Save game | Saves the game using the name specified. Using the optional "1" will also save a text file (name.esm.txt) which contains information about the saved game. |
| saveini | Save ini settings | Forces a save of the oblivion.ini file with current settings in the Options menu. Useful to save your settings if your game crashes when exiting (some custom mods cause this). |
| set <globalvar> to <value> | Set Global Variable | Sets a global variable to the given value. Use "show" to see the current value. |
| setdebugtext | Selects Debugging Info | Selects what info "tdt" displays. See SetDebugText for more info. |
| setpcfame <qty> | Set Player Fame | |
| setpcinfamy <qty> | Set Player Infamy | |
| setquestobject <BaseID> <flag> | Set Quest Object | Changes the quest object status of the specified object. Setting "flag" to "1" will turn an object into a quest object: setting it to "0" clears quest item status. |
| sexchange | Changes your gender | Can be used on NPCs if player is in separate area from target NPC. After doing so, the game must be saved and reloaded or game may crash when player enters an area with affected NPCs. Game may still become unstable after doing so. |
| set timescale to <qty> | sets the speed of how fast time advances in-game | Default value is 30. Setting the value to 1 will make time advance at the same rate as the real world Setting value to negative will reverse time, but will turn the clock to negative values if allowed to past midnight. Altering the value of timescale can cause bugs to occur during various quests (e.g., A Brush With Death, Where Spirits Have Lease). Resetting timescale to the default value of 30 fixes the bugs. |
| show | Show Value of Global Variable | Use "set" to set a variable. |
| showbirthsignmenu | Allows you to change your birthsign | Seems(?) that using this command doesn't empty your spellbook like in Morrowind. |
| showclassmenu | Change Class | WARNING: Using this menu will reset all of your skills to their default initial settings. (If you edit your class, instead of clicking "done" when you are done, leave the class menu open and save your game. When you reload it your Class will be changed like you wanted them to be and your skills will not be reset.) |
| showenchantment | Enchanting window | This will pull up the Enchanting window. |
| showracemenu | Change Race/Appearance | WARNING: Using this menu will reset all of your skills to their default initial settings. (If you edit your race, instead of clicking "done" when you are done, leave the race menu open with the console up and save your game. When you reload it your race/looks will be changed like you wanted them to be and your skills will not be reset.) |
| showspellmaking | Spellmaking window | This will pull up the Spell Making window. |
| sq | Show all quests | List all quests in the game, not just ones you're on, along with current stage. |
| sqt | Show current quest | Shows the status of the current quest. |
| ssg | Creates a window with the full game scene graph | You may need to Alt-Tab out of Oblivion to see the window. |
| sw <ID> | Set Weather | Allow the weather to morph into a particular type. See fw for the codes. |
| swdp | Show Who's Detecting Player | Displays a list of characters currently detecting the player. |

![[Content is available under Attribution-ShareAlike]](http://www.uesp.net/w/images/Somerights.png)