Table of Contents

Class NwSpell

Namespace
Anvil.API
Assembly
NWN.Anvil.dll

A spell definition.

public sealed class NwSpell
Inheritance
NwSpell
Inherited Members
Extension Methods

Properties

AllowedMetaMagic

Gets the type of MetaMagic that may be used with this spell.

AltMessage

Gets the unformatted message shown in the combat log when something casts this spell.

CastAnim

Gets the animation type used to cast this spell.

CastGroundVisual

Gets the ResRef of the visual effect model shown at the ground of the creature when casting this spell.

CastHandVisual

Gets the ResRef of the visual effect model shown at the creature's hands when casting this spell.

CastHeadVisual

Gets the ResRef of the visual effect model shown above the creature's head when casting this spell.

CastSound

Gets the ResRef of the sound that plays when a creature casts this spell.

CastTime

Gets the amount of time to cast the spell, once it has been successfully conjured.

ConjureAnim

Gets the animation type used to conjure the spell.

ConjureGroundVisual

Gets the ResRef of the visual effect model shown at the ground of the creature when conjuring this spell.

ConjureHandVisual

Gets the ResRef of the visual effect model shown at the creature's hands when conjuring this spell.

ConjureHeadVisual

Gets the ResRef of the visual effect model shown above the creature's head when conjuring this spell.

ConjureSound

Gets the ResRef of the sound that plays when a creature conjures this spell.

ConjureTime

Gets the amount of time needed to conjure the spell. This is the animation that plays before the spell is cast.

CounterSpells

Gets a list of spells that may directly counter this spell.

Description

Gets the description of this spell.

FeatReference

Gets the associated feat if this spell is linked to a feat.

HasProjectile

Gets if this spell fires a projectile once successfully cast.

IconResRef

Gets the spell's icon ResRef.

Id

Gets the ID of this spell.

ImpactScript

Gets the name of the script invoked when the spell impacts a target.
This script is only invoked when the spell was successfully cast.

InnateSpellLevel

Gets the innate level of this spell.
See GetSpellLevelForClass(NwClass) to get the spell level for a specific class.

IsHostileSpell

Gets if this spell is considered hostile when cast on other creatures.

MasterSpell

Gets the parent spell if this spell is a subradial spell. The reverse of RadialSpells.

Name

Gets the name of this spell.

ProjectileModel

Gets the ResRef of the projectile model.

ProjectileOrientation

Gets the orientation of this spell's projectile.

ProjectilePathType

Gets the type of path that this spell's projectile follows by default.

ProjectileSound

Gets the sound of this spell's projectile.

ProjectileSpawnPoint

Gets the spawn point of this spell's projectile.

RadialSpells

Gets the sub-list of spells that appear in the spell's radial menu.

Range

Gets the range of this spell.

SpellComponents

Gets the spell components needed to cast this spell.

SpellSchool

Gets the spell school for this spell.

SpellType

Gets the associated Spell type for this spell.

SpontaneouslyCast

Gets if this spell can be spontaneously cast (e.g. cleric heal spells).

TalentCategory

Gets the talent category that this spell is assigned to.

TargetTypes

Gets the types of targets that this spell is valid for.

UseConcentration

Gets if this spell should trigger concentration checks.

UserType

Gets the UserType for this spell.

Methods

FromSpellId(int?)

Resolves a NwSpell from a spell id.

FromSpellId(uint?)

Resolves a NwSpell from a spell id.

FromSpellType(Spell)

Resolves a NwSpell from a Spell.

GetConjureSound(Gender)

Gets the chant/voice that is played when this spell is conjured.

GetSpellLevelByClass(NwClass, bool)

Gets the spell class level for the specified class.

GetSpellLevelForClass(NwClass)

Gets the spell class level for the specified class.

Operators

implicit operator NwSpell(Spell)