Jump to content

Is there a way to make an npc change armor?


gunner9213

Recommended Posts

I want to try to make it where the NPCs have NCR trooper armor, but when relaxing, they wear regular clothing. Like When They are out standing guard, or doing things for the ncr they equip ncr armor, when on down time, they have regular clothing on. How would I script this? Any help would be most apprciated.
Link to comment
Share on other sites

would it be possible to set up a script like someone comes in gives an order through dialogue, and use the result end script

to have like Npc1REF.EquipItem Ncr trooper armor. Then upon completion of there patrol or whatever package, have them return to there barrack, and use something like Npc1Ref.RemoveItem Ncr trooper Armor, Equip outfit Merc5 . Or something along those lines? And thanks for all the help youve been giving me, I really Appreciate it.

Link to comment
Share on other sites

Using the removeitem command destroys the item: GECK

The items are destroyed - despite the name, they are not simply "removed" from the container and placed nearby.

 

You will have to add the items you want to use before you equip them. This will give the character a new item everytime.

 

That's why "Xaranth" mentioned using a container.

 

You could then use code like this

CharacterREF.removeallitems ContainerREF 1 1

and

ContainerREF.removeallitems CharacterREF 1 1

 

which could be used in a result script.

Edited by rotarydanimal
Link to comment
Share on other sites

  • 7 months later...

Yes. there is a way...

 

Step by Step

 

1. get the base id for the items you are working with

(1.a. if you have little in your inventory you can toggle the console and target yourself and type "inv" )

(1.b.you can easily place all your gear in a random box/crate/safe then do 1.a.)

 

2. after getting your gear id's toggle the console

 

3. click the npc you are working with

(3.a. make sure that the reference id is on the top of the screen)

 

4. with the console on and the reference id at the top type "additem <items-id> <quantity> <quality>"

(4.a . they have to have the item in their inventory after all)

 

5. push enter

(5.a. keep the console on)

 

6. with the console on and the reference id at the top type "equipitem <item-id> <quantity> <quality>"

(6.a. this will force them to equip the item, not 100% sure, but I think its permanent <STILL IN TESTING>)

 

7. push enter

 

8. exit console and enjoy a modified npc...

 

sorry if this doesn't help.. I've used this a few times.

Edited by DirectorKane
Link to comment
Share on other sites

  • Recently Browsing   0 members

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