Jump to content

Idea to share items with NPC and override default outfit behaviour


Mystra007

Recommended Posts

I've been exploring the CK to allow me to give items to anyone in the world while playing and expecting to stay equipped.

Naturally, due to the "outfit system" the equipped items are eventually reverted to the default outfit from the CK (unless the actor is a follower who is currently following you).

 

I've tested with Embry dialogue, so I can give him apparels and weapons. What I did was to set him as a teammate but without favors, open the gift menu, then clear the follower flag.

 

He does wear what I gave him, but eventually it is cleared to the default outfit.

The only alternative to equip everyone in the world as you want is to set them to teammate. They won't follow you, but:

- They will draw their weapon when you do

- Their crimes will be blamed on you

- They will sneak when you sneak

 

Obviously this is not an acceptable behaviour.

 

So here are some ideas:

 

1) Add a script to each NPC to intercept an event. In the event the NPC would be set as teammate, then the flag would be cleared. The NPC would re-equip the best items he/she have.

- Let's say you gave equipment to 100 NPCs... this would probably be very slow no?

- What event? (I already tried packagechange and it doesn't work)

 

2) Overwrite Outfit.psc??

 

3) Overwrite Actor.psc assuming the setoutfit function is used by the game...

Edited by Mystra007
Link to comment
Share on other sites

During the game you can change what is in an NPC's inventory, does Skyrim have a scripting command that lets you change what is in their outfit box?

 

 

EDIT: I got curious and went looking:

 

; Set the prisoner's outfit to rags
Prisoner.SetOutfit(RagsOutfit)

 

Source of information: Creation Kit Wiki

Edited by David Brasher
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...