iamgprime Posted April 13, 2019 Share Posted April 13, 2019 I'm making a mod that I intend to use in Enderal. It creates some spells to unlock containers/doors, and uses the skill tree Mentalism (Enderal's version of Alteration). In the creation kit, I've set the skill level requirements as 25 for apprentice, 50 for adept, etc. I've also added the skill books to the the vendors' leveled spell books list so they will sell them. I was expecting that the merchants would only sell the spells once my skill level was appropriately high enough, but this doesn't seem to be the case. I have around 30 skill level, and it's letting me buy the expert version that should require 75. The only requirement seems to be the minimum level I provided in the leveled Items list. Is there a way in creation kit to restrict it so that merchants will only sell the books once I raise my skill level? Link to comment Share on other sites More sharing options...
foamyesque Posted April 14, 2019 Share Posted April 14, 2019 I'm making a mod that I intend to use in Enderal. It creates some spells to unlock containers/doors, and uses the skill tree Mentalism (Enderal's version of Alteration). In the creation kit, I've set the skill level requirements as 25 for apprentice, 50 for adept, etc. I've also added the skill books to the the vendors' leveled spell books list so they will sell them. I was expecting that the merchants would only sell the spells once my skill level was appropriately high enough, but this doesn't seem to be the case. I have around 30 skill level, and it's letting me buy the expert version that should require 75. The only requirement seems to be the minimum level I provided in the leveled Items list. Is there a way in creation kit to restrict it so that merchants will only sell the books once I raise my skill level? Yes. The way it's done with the vanilla spellbooks is that there's a quest that fires whenever you skill up. It checks to see if it was a magic skill, and, if it was, checks to see if that skill has exceeded one of apprentice/adept/etc thresholds. If it has, it then modifies a GlobalVariable from 100 to 0, which is used in the leveled lists to set the chance nothing is generated from it. So what you'd want to do is have a leveled list for each tier of spellbook you've added (probably nested inside a single levelled list so you can add the whole set at once), and each of those tiered leveled lists would need to have the global. I don't know if Enderal uses the vanilla globals or not, but either way you should be able to find out and use that in them. Link to comment Share on other sites More sharing options...
iamgprime Posted April 14, 2019 Author Share Posted April 14, 2019 Thanks. That's more complicated than I was expecting, but it makes sense. I suspect that Enderal doesn't do any of that stuff. I think they just put them in a leveled list so you can use them regardless of your skill level. I realized I've been using their default destruction spells well above my skill level for a while now. Link to comment Share on other sites More sharing options...
Recommended Posts