AddSpell

From the CreationKit Wiki
Revision as of 09:00, 14 February 2012 by imported>EConundrum (→‎Description)
Jump to navigation Jump to search

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. Note it is the Form ID of the spell you need to use with this command e.g. the Hexdecimal number note the unique text ID as previously stated. It is also worth noting the second digit of the Form ID may be different from that shown in the editor if multiple esp files are loaded try incrementing it if the console can't find te spell.

Syntax

<ActorRef>.AddSpell SpellFORMID

Example

player.addSpell firebolt

Adds Firebolt spell to the player

See Also

RemoveSpell
EquipSpell
HasEquippedSpell

Papyrus Version

AddSpell - Actor