Question: Construction Set, How do I add an item to a non-referenced NPC?
I want to be able to add items to people in the game, anybody in the game, without needing to know their Reference ID. I specified "construction set', which means Oblivion, but got results for the GECK and Creation Kit. Which is fine. The GECK often shares the same language as OB's CS.
--------------------------------------------------------------
Answer: Certainly! If you're working with a construction set for a game like Skyrim or Fallout, and you want to add an item to a non-referenced NPC, you can follow these general steps:
Using the Creation Kit (for Skyrim)
Open the Creation Kit:
Launch the Creation Kit and load the appropriate game files (e.g., Skyrim.esm).
Find the NPC:
In the Object Window, navigate to Actors > Actor. Find the NPC you want to modify. If the NPC is not referenced in the game world, you can still find them in this list.
Edit the NPC:
Double-click on the NPC to open their properties window.
Add the Item:
Go to the Inventory tab.
Click on the Add button to add a new item.
In the new window, search for the item you want to add and double-click it to add it to the NPC's inventory.
Save Your Changes:
Click OK to close the NPC properties window.
Save your plugin file (ESP).
Using the GECK (for Fallout)
Open the GECK:
Launch the GECK and load the appropriate game files (e.g., FalloutNV.esm).
Find the NPC:
In the Object Window, navigate to Actors > NPC. Find the NPC you want to modify.
Edit the NPC:
Double-click on the NPC to open their properties window.
Add the Item:
Go to the Inventory tab.
Click on the Add Item button.
In the new window, search for the item you want to add and double-click it to add it to the NPC's inventory.
Save Your Changes:
Click OK to close the NPC properties window.
Save your plugin file (ESP).
Script Method (Applicable for Both Skyrim and Fallout)
If you prefer to use a script to add an item to an NPC, you can do so by creating a new script and attaching it to a quest or another suitable object.
1). Example Script for Skyrim (Papyrus):
Scriptname AddItemToNPC extends Quest
Actor Property TargetNPC Auto
Form Property ItemToAdd Auto
Int Property ItemCount = 1 Auto
Event OnInit()
TargetNPC.AddItem(ItemToAdd, ItemCount)
EndEvent
2). Example Script for Fallout (GECK Script):
scn AddItemToNPCScript
ref TargetNPC
ref ItemToAdd
int ItemCount
begin gamemode
if (TargetNPC && ItemToAdd)
TargetNPC.AddItem ItemToAdd ItemCount
endif
end
In both cases, you need to fill in the properties (TargetNPC, ItemToAdd, and ItemCount) in the editor.
By following these steps, you can successfully add items to non-referenced NPCs in your game. If you need more specific guidance, feel free to ask!
---------------------------------------
Did this work? answer to come.