Editing
Spell Script
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
'''Extends:''' [[Form Script]] Script for the manipulation of spells. == Definition == <syntaxhighlight lang="papyrus"> ScriptName Spell extends Form </syntaxhighlight> == Properties == None == Global Functions == None == Member Functions == :'''[[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 == :'''Float [[GetCastTime - Spell|GetCastTime]]()''' :*Returns the time to cast the spell. :'''Int [[GetNumEffects - Spell|GetNumEffects]]()''' :*Returns the number of effects on this spell. :'''Float [[GetNthEffectMagnitude - Spell|GetNthEffectMagnitude]](Int ''index'')''' :*Returns the magnitude of the specified effect of this spell. :'''Int [[GetNthEffectArea - Spell|GetNthEffectArea]](Int ''index'')''' :*Returns the area of the specified effect of this spell. :'''Int [[GetNthEffectDuration - Spell|GetNthEffectDuration]](Int ''index'')''' :*Returns the duration of the specified effect of this spell. :'''MagicEffect [[GetNthEffectMagicEffect - Spell|GetNthEffectMagicEffect]](Int ''index'')''' :*Returns the MagicEffect of the specified effect of this spell. :'''Int [[GetCostliestEffectIndex - Spell|GetCostliestEffectIndex]]()''' :*Returns which effect of the spell has the highest cost. :'''Int [[GetMagickaCost - Spell|GetMagickaCost]]()''' :*Returns the base magicka cost of the spell :'''Int [[GetEffectiveMagickaCost - Spell|GetEffectiveMagickaCost]](Actor ''caster'')''' :*Returns the effective cost of the spell. :'''Perk [[GetPerk - Spell|GetPerk]]()''' :*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. :'''EquipSlot [[GetEquipType - Spell|GetEquipType]]()''' :*Returns the EquipSlot Type that this spell uses. :'''[[SetEquipSlotType - Spell|SetEquipSlotType]](EquipSlot ''type'')''' :*Sets the EquipSlot type to the specified equip slot. == Events == None [[Category:Scripting]] [[Category:Papyrus]] [[Category:Script Objects]] [[Category:SKSE]] [[Category:SKSE Script Objects]]
Summary:
Please note that all contributions to the CreationKit Wiki are considered to be released under the Creative Commons Attribution-ShareAlike (see
CreationKit:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
Edit source
View history
More
Search
Navigation
Landing page
Tutorials
Game Systems
Editor Reference
Scripting Reference
Recent changes
Help
Tools
What links here
Related changes
Special pages
Page information
Page values