Difference between revisions of "Spell Script"

From the CreationKit Wiki
Jump to navigation Jump to search
imported>CraftySentinel
m (Formatting Change)
imported>CraftySentinel
(→‎SKSE Member Functions: Added SetNth Functions)
Line 84: Line 84:
|[[GetPerk - Spell|Perk '''GetPerk'''()]]
|[[GetPerk - Spell|Perk '''GetPerk'''()]]
|Returns the perk associated with the spell.
|Returns the perk associated with the spell.
|-
|[[SetNthEffectMagnitude - Spell|'''SetNthEffectMagnitude'''(Int ''index'', Float ''value'')]]
|Sets the magnitude of the specified effect.
|-
|[[SetNthEffectArea - Spell|'''SetNthEffectArea'''(Int ''index'', Int ''value'')]]
|Sets the area of the specified effect.
|-
|[[SetNthEffectDuration - Spell|'''SetNthEffectDuration'''(Int ''index'', Int ''value'')]]
|Sets the duration of the specified effect.
|-
|-



Revision as of 06:00, 25 October 2013


Extends: Form Script

Script for the manipulation of spells.

Definition

ScriptName Spell extends Form

Properties

None

Global Functions

None

Member Functions

Function Description
Cast(ObjectReference akSource, ObjectReference akTarget) Casts this spell from the source object reference, optionally toward a target object reference.
Bool IsHostile() Returns whether this spell is considered hostile or not.
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

Function Description
Float GetCastTime() Returns the time to cast the spell.
Int GetNumEffects() Returns the number of effects on this spell.
Float GetNthEffectMagnitude(Int index) Returns the magnitude of the specified effect of this spell.
Int GetNthEffectArea(Int index) Returns the area of the specified effect of this spell.
Int GetNthEffectDuration(Int index) Returns the duration of the specified effect of this spell.
MagicEffect GetNthEffectMagicEffect(Int index) Returns the MagicEffect of the specified effect of this spell.
Int GetCostliestEffectIndex() Returns which effect of the spell has the highest cost.
Int GetMagickaCost() Returns the base magicka cost of the spell
Int GetEffectiveMagickaCost(Actor caster) Returns the effective cost of the spell.
Perk GetPerk() Returns the perk associated with the spell.
SetNthEffectMagnitude(Int index, Float value) Sets the magnitude of the specified effect.
SetNthEffectArea(Int index, Int value) Sets the area of the specified effect.
SetNthEffectDuration(Int index, Int value) Sets the duration of the specified effect.

Events

None