Jump to content

Scripting Help


diamok

Recommended Posts

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

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

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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...