|
NwGameObject? | Caster = NWScript.OBJECT_SELF.ToNwObject<NwGameObject>() [get] |
| Gets the caster of this spell.
|
|
bool | Harmful = NWScript.GetLastSpellHarmful().ToBool() [get] |
| Gets a value indicating whether this spell is considered harmful.
|
|
bool | IsSpontaneousCast = NWScript.GetSpellCastSpontaneously().ToBool() [get] |
| Gets if this spell was cast spontaneously.
|
|
NwItem? | Item = NWScript.GetSpellCastItem().ToNwObject<NwItem>() [get] |
| Gets the item that was used to cast the spell. Returns null if no item was used to cast this spell.
|
|
MetaMagic | MetaMagicFeat = (MetaMagic)NWScript.GetMetaMagicFeat() [get] |
| Gets the type of metamagic used on the last spell.
|
|
int | SaveDC = NWScript.GetSpellSaveDC() [get] |
| Gets the saving throw DC required to save against the effects of this spell.
|
|
NwSpell | Spell = NwSpell.FromSpellId(NWScript.GetSpellId())! [get] |
| Gets the spell that was cast.
|
|
NwClass? | SpellCastClass = NwClass.FromClassId(NWScript.GetLastSpellCastClass()) [get] |
| Gets the class that the caster cast the spell as.
|
|
int | SpellLevel = NWScript.GetLastSpellLevel() [get] |
| Gets the level of the spell that was cast.
|
|
Location? | TargetLocation = NWScript.GetSpellTargetLocation() [get] |
| Gets the targeted location of this spell.
|
|
NwGameObject? | TargetObject = NWScript.GetSpellTargetObject().ToNwObject<NwGameObject>() [get] |
| Gets the object being targeted by this spell, otherwise returns null if the caster targeted the ground.
|
|
The documentation for this class was generated from the following file:
- NWN.Anvil/src/main/API/Events/Script/SpellEvents.cs