
This function can be called via the console command refID.cf (or refID.CallFunction ).Ĭf "ObjectReference.AttachModToInventoryItem" 536c4 18400b will attach the mod " 0018400B" (heavy armor) to the base item " 000536C4" (metal chest piece) in the target's inventory. The native Papyrus function ObjectReference.AttachModToInventoryItem allows you to attach a mod to a single item within the inventory of an object (such as the player, an NPC, or a container). Exit the console and retrieve the item from the ground.
Enter the following in the console, substituting the appropriate refID and modID: refID.amod and hit enter. This returns the refID of the item you're holding in the air. Open the console and input GetPlayerGrabbedRef. This is the same thing you would do to drag the item around in-game and place it somewhere else. After dropping the item on the ground, pick it up by holding the action key ( E on PC). Sometimes the item is too difficult to target in the console because a nearby item is getting in the way. Pick up the now modified item after exiting the console.
In the console, "target" the item by clicking on it, and input one of the above commands. While looking at the item on the ground bring up your console ( ~ key on PC). Find the item in your inventory and drop it on the ground. The most common way of using those commands is: To completely remove a modifier, execute the command RemoveMod (or rmod ). The command AttachMod (or amod for short) can be used to attach a modifier to an item. Misc (no form type) – applicable to misc objectsĬonsole commands Attaching/removing mods from a targeted item. The complete list of mods is too large to fit on one page, therefore it is split into four parts, based on the OMOD form types: However, only one mod can be attached to a given slot, so attaching a new mod to an already occupied slot will replace the current one. For instance, armor items commonly support a Legendary effect, a material mod, a misc mod and a size variant. These slots are known as "attachment points".
However, many of these modifiers can only be added or removed via the console.Ī single item can have a variety of slots available. Some of these modifiers are attached in-game, such as when a Legendary item is found, or when an armor mod is attached at a armor workbench.
These include regular weapon and armor mods, such as sturdy or heavy armor piece variants, Legendary armor and weapon effects, and so forth. Object modifiers (or OMODs) are modifications applied to a base item.
2.2 Attaching mods to items in inventory. 2.1 Attaching/removing mods from a targeted item.