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.