Perpetually naked NPC that refuses to equip anything

Post » Sat Nov 17, 2012 5:54 pm

I created a new NPC and it somehow refuses to wear anything I give through openinventory(). Is there a way to tell the NPC to wear things? I even tried removing all the default clothing and it'd just walk around naked. Ugh. This never occurred to me before.

Also, I would like to ask:
1. if dead bodies are automatically cleaned up or that their clean-up need to be scriptted
2. How to make a permanent corpse

Thanks,
User avatar
Cat
 
Posts: 3451
Joined: Mon Dec 18, 2006 5:10 am

Post » Sat Nov 17, 2012 7:25 am

NPCs will generally never wear what you give them through inventory, unless they are set as a teammate.

you either need to use preset outfits, or if you absolutely must have player-given items be worn, you need to make them into living mannequins (using a similar script as mannequin activator script)
User avatar
Floor Punch
 
Posts: 3568
Joined: Tue May 29, 2007 7:18 am

Post » Sat Nov 17, 2012 3:03 pm

It also might be a save game issue.
I modded Uthgerd to wear a farm outfit initially ( so she would equip studded when I gave it to her).
For the rest of that game she was nekkid, and I couldn't get her to equip w / o being a follower.
Next new game she is wearing the farm outfit, no problem.
User avatar
Peter lopez
 
Posts: 3383
Joined: Mon Sep 10, 2007 5:55 pm

Post » Sat Nov 17, 2012 11:23 am

You can give the NPC an event that fires when something arrives in his inventory.

If the PC is the giver and if the item is armor, the script can equip it on the NPCc and stop them removing it. The only problem there is that they'll wear everything that you give them. Mind, you can always add code to make the decision a bit smarter
User avatar
(G-yen)
 
Posts: 3385
Joined: Thu Oct 11, 2007 11:10 pm

Post » Sat Nov 17, 2012 8:23 am

NPCs will generally never wear what you give them through inventory, unless they are set as a teammate.

you either need to use preset outfits, or if you absolutely must have player-given items be worn, you need to make them into living mannequins (using a similar script as mannequin activator script)
Thanks. Your trick worked perfectly. I just copied some lines from the mannequin script.
User avatar
Marcia Renton
 
Posts: 3563
Joined: Fri Jan 26, 2007 5:15 am


Return to V - Skyrim