Giving and Equipping Item to All NPCs

Post » Sat Jan 04, 2014 7:22 pm

Hello,

I had a question in the "quick questions/answers" thread that I would like to inquire into more deeply, and I don't want to hog the thread so I'm making my own. I'm delving into the CK/Scripting and would like input about the strategy I approach to make my desired mod:

The goal:

For each NPC in the game, give them item X and have them equip it.

The approach:

Here is what was suggested by s70:

A couple questions about these approaches (sorry for my ignorance; I'm a beginner)

1. For option #2, I don't understand in what case an actor would not be leveled. Do dynamically generated NPCs not count as "leveled"?

2. For option #3, would this operation be performed just on game-load (causing lag for only a short while)? Would I need to repeat the operation afterward, or would this cover all actors including dynamically generated bandits, etc?

3. I found a GetClosestActor function in the creation kit... would it be more efficient to just loop over this function within a certain radius and have it update every couple minutes or upon movement to a different cell?

Thanks for any feedback!

User avatar
Laura Wilson
 
Posts: 3445
Joined: Thu Oct 05, 2006 3:57 pm

Return to V - Skyrim