Difference between revisions of "AddSpell"

From the CreationKit Wiki
Jump to navigation Jump to search
imported>Scornett-Bot
m (Script running global find and replace: = for '''=)
 
imported>EConundrum
Line 4: Line 4:


==Syntax==
==Syntax==
  ''<ActorRef>''.AddSpell ''SpellID''  
  ''<ActorRef>''.AddSpell ''SpellFORMID''


==Example==
==Example==

Revision as of 06:27, 13 February 2012

Description

Adds spell item to calling actor. "Spells" include diseases, abilities, spells and powers . When an ability or disease is added it shows up as a current magical effect. When a spell or power is added it shows up as a castable power/spell. There are other important differences. See Spell for more info.

Syntax

<ActorRef>.AddSpell SpellFORMID

Example

player.addSpell firebolt

Adds Firebolt spell to the player

See Also

RemoveSpell
EquipSpell
HasEquippedSpell

Papyrus Version

AddSpell - Actor