Difference between revisions of "Spell Script"
Jump to navigation
Jump to search
m
Formatting Change
imported>Dominoid |
imported>CraftySentinel m (Formatting Change) |
||
Line 21: | Line 21: | ||
== Member Functions == | == Member Functions == | ||
{|class="wikitable" width =100% | |||
!style="text-align:left;"|Function | |||
!style="text-align:left;"|Description | |||
|- | |||
|[[Cast - Spell|'''Cast'''(ObjectReference ''akSource'', ObjectReference ''akTarget'')]] | |||
|Casts this spell from the source object reference, optionally toward a target object reference. | |||
|- | |||
''' | |[[IsHostile - Spell|Bool '''IsHostile'''()]] | ||
|Returns whether this spell is considered hostile or not. | |||
|- | |||
|[[RemoteCast - Spell|'''RemoteCast'''(ObjectReference ''akSource'', Actor ''akBlameActor'', ObjectReference ''akTarget'')]] | |||
|Casts this spell from the source object reference, with akBlameActor getting blame for any crime | |||
|- | |||
|} | |||
== SKSE Member Functions == | == SKSE Member Functions == | ||
''' | {|class="wikitable" width =100% | ||
!style="text-align:left;"|Function | |||
!style="text-align:left;"|Description | |||
|- | |||
|[[GetCastTime - Spell|Float '''GetCastTime'''()]] | |||
|Returns the time to cast the spell. | |||
|- | |||
|[[GetNumEffects - Spell|Int '''GetNumEffects'''()]] | |||
|Returns the number of effects on this spell. | |||
|- | |||
|[[GetNthEffectMagnitude - Spell|Float '''GetNthEffectMagnitude'''(Int ''index'')]] | |||
|Returns the magnitude of the specified effect of this spell. | |||
|- | |||
|[[GetNthEffectArea - Spell|Int '''GetNthEffectArea'''(Int ''index'')]] | |||
|Returns the area of the specified effect of this spell. | |||
|- | |||
|[[GetNthEffectDuration - Spell|Int '''GetNthEffectDuration'''(Int ''index'')]] | |||
|Returns the duration of the specified effect of this spell. | |||
|- | |||
|[[GetNthEffectMagicEffect - Spell|MagicEffect '''GetNthEffectMagicEffect'''(Int ''index'')]] | |||
|Returns the MagicEffect of the specified effect of this spell. | |||
|- | |||
|[[GetCostliestEffectIndex - Spell|Int '''GetCostliestEffectIndex'''()]] | |||
|Returns which effect of the spell has the highest cost. | |||
|- | |||
|[[GetMagickaCost - Spell|Int '''GetMagickaCost'''()]] | |||
|Returns the base magicka cost of the spell | |||
|- | |||
|[[GetEffectiveMagickaCost - Spell|Int '''GetEffectiveMagickaCost'''(Actor ''caster'')]] | |||
|Returns the effective cost of the spell. | |||
|- | |||
|[[GetPerk - Spell|Perk '''GetPerk'''()]] | |||
|Returns the perk associated with the spell. | |||
|- | |||
|} | |||
== Events == | == Events == | ||
None | None |