diamok Posted June 18, 2012 Share Posted June 18, 2012 So I have my mod Target Training System, which allows the player to train up their weapon skills when they attack a target. Pretty easy to do this, just used OnHit, and GetEquippedItemType. Now I'm working on adding magic school training as well, but I'm having trouble figuring out how to get which school of magic the player is using to hit the static. GetEquippedItemType allows for getting that the player is using magic, but not which specific school of magic...there is also GetEquippedSpell, which would work, but would also require many many lines of code to account for all the spells. I just need to get which school of magic is being used so I can add skill to the correct school for the training process. Any help would be appreciated. Take care, Link to comment Share on other sites More sharing options...
EnaiSiaion Posted June 20, 2012 Share Posted June 20, 2012 You can try akSpell.HasKeyword(), I think there are keywords for the various spell schools. Should you have to go with the "list of spells" approach, just create five formlists and throw them all in and seek through the formlists. Link to comment Share on other sites More sharing options...
Sjogga Posted June 26, 2012 Share Posted June 26, 2012 You have to use getAssociatedSkill() Link to comment Share on other sites More sharing options...
diamok Posted June 26, 2012 Author Share Posted June 26, 2012 Thanks for replies and help you guys. Now if the Creation Kit didn't crash everything I try to save, I'd be good to go. :-/ Take care, Link to comment Share on other sites More sharing options...
diamok Posted June 26, 2012 Author Share Posted June 26, 2012 Just wanted to add in a quick fix I found for the Creation Kit CTD when attempting to save. I had setup my Kit to allow for loading of multiple master files, I say had because after removing bAllowMultipleMasterLoads=1 from my SkyrimEditor.ini the Kit seems to be working fine again. So, at least for me, this worked. Take care, Link to comment Share on other sites More sharing options...
Recommended Posts