Nw i0 spells

From NWN Lexicon
Jump to: navigation, search



nw_i0_spells

Spell related functions.

Constants

Name Value Brief Description
NW_I0_SPELLS_MAX_BREACH 33 Number of spells in GetSpellBreachProtections

Functions

Name Brief Description

AmIAHumanoid

Returns TRUE if the target is a humanoid.

AssignAOEDebugString

Causes the creator of an area of effect spell to speak.
CalcNumberOfAttacks Internal function. Calculates the appropriate base number of attacks for spells that increase this (tensers, divine power).

CreateDoomEffectsLink

Creates a linked effect that can be used for all doom effects.

CreateProtectionFromAlignmentLink

Creates a protection from alignment effect.

DoSpellBreach

Performs a spell breach up to nTotal spells are removed and nSR spell resistance is lowered.
GetDragonFearDC Internal function. Adding a function, we were using two different sets of numbers before. Standardizing it to be closer to 3e. nAge - hit dice

GetRandomDelay

Generates a random number between two values used for time delays.

GetScaledDuration

Determines a scaled down duration based on the game difficulty setting.

GetScaledEffect

Creates a new effect based on the game difficulty.

GetSpellBreachProtection

Returns the next protection spell from a list of seventeen.

GetSpellEffectDelay

Determines the time an effect should be delayed.

MyResistSpell

Determines and plays animation for resisting a spell when applicable.

MySavingThrow

Checks for spell countering by a saving throw.

PlayDragonBattleCry

Makes a dragon sound its battle cry.
RemoveEffectsFromSpell Internal function. Removes any effects from this type of spell. i.e., used in Mage Armor to remove any previous mage armors.

RemoveProtections

Removes all spell protections of a specific type.

RemoveSpecificEffect

Removes effects from a creature.

RemoveSpellEffects

Removes the effects of a spell cast on a creature.
RemoveTempHitPoints Internal function. Gets rids of temporary hit points so that they will not stack.
spellsCure Internal function. Used by the 'cure' series of spells. Will do max heal/damage if at normal or low difficulty. Random rolls occur at higher difficulties.

TrapDoElectricalDamage

Function for doing electrical traps.


events: 

OnSpellCastAt Event

includes: 

x2_inc_spellhook


 author: Charles Feduke, editors: Mistress, ShaDoOoW