FormID

Revision as of 19:30, 29 April 2006 by imported>Wrye (→‎See Also: Updated links)

Form ID

An object's Form ID is a hexidecimal number used to refer to the object from within Oblivion. Within the CS (for scripts and such), an object's Editor ID can be used to refer to it, but you must use the Form ID for console commands.

Finding the Form ID

By default, the Form ID column is hidden in the CS. The Form ID column is located to the right of the Editor ID column. Refer to Image 1.

The double column line means that a column is collapsed there. Click and drag on the column heading to expand the column. The expanded column is shown in Image 2.

 
Image 2

In this case, the Form ID for GiantSwordOfPwn is "02000CE8".

The Form Id can then be used in console commands as such:

player.addItem 02000ce8, 1

FormID Format

The first two digits in the FormID are the modindex, while the remaining six digits are the objectindex. The objectindex numbers are unique within each mod -- i.e., no two data objects belonging to a mod will have the same object index (otherwise, you get bashing error messages).

The modindex reflects the load order of the mod in the current context. The "native" modindex is the modindex as seen in the CS. When playing, this is mapped to the "in-game" modindex. E.g. assuming that you create your mod with nothing but Oblivion.esm loaded, then Oblivion.esm is first and has modindex 00, while anything created by your mod has modindex 01. (If there were a master mod which loaded before Oblivion (which there isn't, but just supposing), then it would have modindex 00, Oblivion would have modindex 01, and your mod would have modinex 02. In-game, if your mod loaded 12th, then its in-game modindex would be '0B' (= decimal 11).

In-Game Modindex

A cheap way to figure out the in-game modindex for your mod is to (in the construction set), drop an object in an easy to locate place. Then while playing, console-click on the object to get its modindex.

Or, if you use the Wrye Bash utility, you can read the modindex off the masters list for the save

See Also