Xaeyr Posted November 1, 2009 Share Posted November 1, 2009 Hi all. Working on a simple (or so I thought) mod and been trying to figure out what script command/function is used (if any) to find out if a certain spell ID is active on a player...for example, if I were to cast a strength spell on myself, is there a way for my script to see whether or not it's on my player? Thanks! Xaeyr Link to comment Share on other sites More sharing options...
Xaeyr Posted November 1, 2009 Author Share Posted November 1, 2009 Well, I think I may have figured this one out...I hope :) Link to comment Share on other sites More sharing options...
grmblf Posted November 1, 2009 Share Posted November 1, 2009 If you want to know if certain actor is being affected by a specific spell then it is: reference.IsSpellTarget spellID If you want to know simply if it's being affected by certain magic effect (shield, fortify strenght, etc), then: reference.HasMagicEffect MagicEffectID You can get the spellID from the CS, and the magicEffectID from here. Good luck! Link to comment Share on other sites More sharing options...
Xaeyr Posted November 1, 2009 Author Share Posted November 1, 2009 Thanks, grmblf! I had actually figured it out early this morning. Was very excited when it worked, lol. Link to comment Share on other sites More sharing options...
Recommended Posts