Aller au contenu

Photo

Changing equipment for an NPC in original campaign


  • Veuillez vous connecter pour répondre
3 réponses à ce sujet

#1
Rolenka

Rolenka
  • Members
  • 2 257 messages
I've been thinking I might try it by duplicating the creature, changing the equipment, saving it and putting it in the override folder with the filename of the original.

But I kind of suspect it won't work because of the fix article for Greagoir's Shield. If it were something you could put in a mod, I'm guessing it would have been done for that issue, rather than just a set of instructions on the wiki. (my issue is different, but similar -- it involves equipped gear)

I'm in the process of testing my idea, but I kind of have to get to the area where the NPC lives. Do you think it will work? If not, is there some sort of command I could put into a PRCSCR that can change an NPC's gear?

#2
CID-78

CID-78
  • Members
  • 1 124 messages
Script it. don't mess with the orginal resources. simply add a script that do the transaction.

#3
Rolenka

Rolenka
  • Members
  • 2 257 messages
Turns out just overriding the creature works just fine.

I *could* also script it, but it would be a lot more work and more files and more testing. I don't anticipate the override being a problem. The NPCs I'm messing with are very static and minor characters.

Unless there's some reason to script it I'm not aware of. In that case, in the builder I found CommandEquipItem and EquipItem, but I'm not sure of the difference between the two, and I found no function to *create* an item in their inventory.

#4
CID-78

CID-78
  • Members
  • 1 124 messages
CreateItemOnObject(), scripting works better for companions but if it's just a regular NPC override works just fine.