GetAssociatedSkill - MagicEffect

From Creation Kit
Jump to: navigation, search

Member of: MagicEffect Script

Obtains the skill that this magic effect is associated with.

Syntax

string Function GetAssociatedSkill() native

Parameters

None.

Return Value

The name of the skill the effect is associated with. Actor Value List

Examples

; Is the MagicEffect in the school of Destruction?
if (effect.GetAssociatedSkill() == "Destruction")
  Debug.Trace("Destruction effect!")
endIf

See Also