The Elder Scrolls 4: Oblivion Tip (Batch File Command Guide)
Using a batch file to execute commands
Oblivion provides a simple mechanism for handling batch files. Thus, you can quickly change the game settings without the monotonous input of console commands.
Example: bat mybatchfile; will run all console commands contained in the file mybatchfile.
How to use:
- Create a text file containing the desired console commands (one per line).
- Place the file in the directory where Oblivion is installed.
- Start the game.
- Open the console.
- Enter the command bat followed by the name of your batch file to get, for example, bat mybatchfile.
In Oblivion, a batch file is a list of commands that will run in sequence, one after the other. They do not have loops, tests or other logic, so they cannot be stopped if there is an error or problem in one of the commands. You can create multiple batch files for different needs.
Batch File Commands Guide
Most of Oblivion’s commands can be used to run from a batch file. For instance:
- On / off commands work in batch files, including commands such as show / hide subtitles (ShowSubtitle), enable / disable grass (TG), enable / disable god mode (TGM), and many others.
- Address commands work great as long as you specify a target. For example, you can use the Additem f 1000 code in a batch file to add 1000 gold to your inventory.
- PRID (PrintReferenceID) shows items and NPCs.
- Various commands like SetAV, FOV, FW and AddItem (with different parameters) can all be used to run from a batch file.