bjornk Posted Tuesday at 07:23 PM Posted Tuesday at 07:23 PM (edited) ; 000xxxxx is the FormID of the magic effect in the "A Separate Mod.esp". The first two digits should always be "00...". MagicEffect TheMagicEffect = Game.GetFormFromFile(0x000xxxxx,"A Separate Mod.esp") As MagicEffect If Game.GetPlayer().HasMagicEffect(TheMagicEffect) Debug.Notification("Player has the magic effect.") EndIf HasMagicEffect Note however: Quote This function will still return true if the effect is applied to the actor but the condition specified in the spell or magic effect is not met. This function cannot test if the active magic effect is actually affecting the actor(*). (*) You may need to check for a few additional things (e.g. if the ME conditions are met etc.) for that. Edited Tuesday at 07:34 PM by bjornk 1 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.