Jump to content

Problems with new NPC


zymurgy65

Recommended Posts

I'm working on a mod that adds a small waterfront outside Bravil. I've got the infrastructure and path grids sorted, so I've started adding NPCs.

 

The harbour master has a script which arms and armours him when the nearby Oblivion gate opens. This works, but there's a snag with his AI packages. Although he's supposed to unequip his weapon and armour when eating or sleeping, only the armour part works. His mace remains stubbornly in place. This is annoying but not game-breaking. What is game-breaking is that any attempt to pickpocket him freezes the game.

 

Does anyone know what's causing these glitches?

Link to comment
Share on other sites

Why don't you just include the armor and weapon in his inventory and set the AI packages so the NPC unequips these objects at certain moments?

Good idea, I'll give it a try. More weirdness ensues at present. I can now pickpocket him without the game freezing, but he has thousands of copies of his armour and weapons in his inventory! Very strange... :huh:

Link to comment
Share on other sites

Yup, your suggestion did the trick. I've played through three game days - the first as normal, the second having SetStage MQ06 100 to open the Bravil gate, and the third having closed the gate and SetStage MQ16 100 to end the Oblivion crisis. Everything is working perfectly now, thank you! :thumbsup:

Edited by zymurgy65
Link to comment
Share on other sites

 

Why don't you just include the armor and weapon in his inventory and set the AI packages so the NPC unequips these objects at certain moments?

Good idea, I'll give it a try. More weirdness ensues at present. I can now pickpocket him without the game freezing, but he has thousands of copies of his armour and weapons in his inventory! Very strange... :huh:

 

Thousands, that worries me. While Oblivionaddicted has provided an IDE solution, what if the only solution was to code it.

Would you please provide the source code related to the thousands being added.

Link to comment
Share on other sites

Sorry glowplug, I've deleted the script - no idea what was causing the multiple copies. No harm done to the mod, and the four named NPCs' AI packages and dialogue are working nicely. (So. Many. AI. Packages!)

Edited by zymurgy65
Link to comment
Share on other sites

  • Recently Browsing   0 members

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