In Skyrim when adding an item to my player via the console, I will search the item online and then I type:

player.additem 00000000A 1 

A lot of Wiki sites list both the baseId and the refId, but the above command only works with the refId. What's the difference, and where is baseId used?

  • 4
    Fun fact: you can skip leading zeros in a lot of the commands. Player.AddItem F 10000 is the same as Player.AddItem 00000000F 10000
    – JonK
    Dec 16 '16 at 21:09

I found a Steam Forum post the explains the difference and has an example:

  • BaseID is the ID of the default entry in the editor. If you place an item via its BaseID, you will always get the default, unmodified item.
  • RefID is the ID that is given to each and every object in the world. For instance, If you have 2 Jarl Balgruufs, they share same BaseID, but have 2 different RefID. Just like every floor and wall tiles, etc.

Basically, the Base ID will always be the same for every object. The Ref ID depends on what instance it is in the world and is unique for each object. In the example above, the Ref ID could be used to distinguish the difference between two Jarl Balgruufs.

  • 4
    The difference becomes very important when dealing with commands that take BaseIDs instead of RefIDs, such as PlaceAtMe. If you use PlaceAtMe <BaseID> to spawn Jarl Balgruuf you will create a brand new copy of him rather than move the existing one. This can cause problems with quests and scripts because only one of the Balgruufs has the correct RefID, the other won't cause scripted events or quests to progress, even though they may have all of the correct dialogue options. Before you mess around with unique NPCs check which ID it uses, and avoid ones that need a BaseID
    – JonK
    Dec 16 '16 at 21:18
  • 1
    ^ that is why the Wikis list the Ref ID as well.
    – Timmy Jim
    Dec 16 '16 at 21:19
  • Whoops, my previous comment should read "Before you mess around with unique NPCs check which ID the command uses, and avoid the ones that need a BaseID.
    – JonK
    Dec 16 '16 at 21:31

The BaseID is the identifier for each "object". Be it actor, items, statics. It's always the same and unchanging. BaseID designate the dormant version of each objects, a blueprint so to speak.

The RefID on the other hand is an identifier assigned to each object once they get into the world.

For example, you can have a set of different NPC named "Guard". You want to populate an area and spawn 20 of them through placeatme or similar. They will each have an unique RefID, but some will share the same BaseID. The important element is that quests refers to other NPC and objects by their RefID, and thus you cannot just spawn a clone of a NPC and call it done.

This is how Skyrim generates dungeons. They have pools of blueprints and then spawn and level different actors when you enter the place.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy