Trouble Adding Spells to NPCs

Post » Mon Apr 06, 2015 12:40 am

Hello all.

So I've got a script which calls a sub-function that determines whether or not to add a spell to an NPC. In this particular case, there are 13 spells it needs to check.

I've found that there seems to be an issue in that the script is processing so fast, that although I'm getting a positive return on the add spell function, only every other spell is actually being added.

I know this because when the spells are added to a merchant, they are supposed to show up on their for sale lists, and I cross reference what is showing up with some debug code I threw in at the time the spell is added.

Anyone have any ideas what is going on and/or how to resolve it? I'm at a loss.

saebel

Edit: It's not every other spell. It's specific spells. And I have no idea why.

User avatar
Kit Marsden
 
Posts: 3467
Joined: Thu Jul 19, 2007 2:19 pm

Post » Sun Apr 05, 2015 11:03 pm

I don't have an immediate idea either. Is there anything special about these spells in relation to the others? And what speaks against giving them directly to your merchant?

User avatar
Nicole Elocin
 
Posts: 3390
Joined: Sun Apr 15, 2007 9:12 am


Return to IV - Oblivion