

You could use this after additem 536c4 1 to guarantee that at least one metal chest piece in the target's inventory will be of the heavy variant. 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.
