Jump to content

Recommended Posts

  • 3 weeks later...
Posted (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 by bjornk
  • Thanks 1

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.


×
×
  • Create New...