Page 1 of 1

Adding items to a merchant's spell list?

Posted: 22 Sep 2018, 03:26
by Kerredai
Hello,

I'm thinking about how to create a sort of "spell library" mod that lets you unlearn spells, and relearn them for free later, and the obvious way would be to create a spell merchant with a negative Mercantile skill who you can teach spells to, but that would require the ability to add spells to a merchant's list.

Is that at all possible?

(I have next to no modding experience, so if the answer is "obviously" or "obviously not", please be gentle :P).

Re: Adding items to a merchant's spell list?

Posted: 27 Sep 2018, 23:42
by Jemolk
I *believe* spell merchants sell all spells they know. If this is the case, it should be simple enough to add spells -- a script could call (insert merchant's ID here)->addspell (insert spell ID here). The problem: I don't think there is a function to get spell IDs available at the moment, so the idea can *almost* work, but not quite, and annoyingly, the blocker isn't actually doing the thing, but getting the information necessary to do the thing. Again. This is obnoxiously common with MWScript, and quite frankly the single largest reason the script extenders had to exist in my experience.