nw_i0_spells

Spell related functions.

Constants

NameValueBrief Description
NW_I0_SPELLS_MAX_BREACH33Number of spells in GetSpellBreachProtections

Functions

NameBrief Description
AmIAHumanoidReturns TRUE if the target is a humanoid.
AssignAOEDebugStringCauses the creator of an area of effect spell to speak.
CalcNumberOfAttacksInternal function. Calculates the appropriate base number of attacks for spells that increase this (tensers, divine power).
CreateDoomEffectsLinkCreates a linked effect that can be used for all doom effects.
CreateProtectionFromAlignmentLinkCreates a protection from alignment effect.
DoSpellBreachPerforms a spell breach up to nTotal spells are removed and nSR spell resistance is lowered.
GetDragonFearDCInternal function. Adding a function, we were using two different sets of numbers before. Standardizing it to be closer to 3e. nAge - hit dice
GetRandomDelayGenerates a random number between two values used for time delays.
GetScaledDurationDetermines a scaled down duration based on the game difficulty setting.
GetScaledEffectCreates a new effect based on the game difficulty.
GetSpellBreachProtectionReturns the next protection spell from a list of seventeen.
GetSpellEffectDelayDetermines the time an effect should be delayed.
MyResistSpellDetermines and plays animation for resisting a spell when applicable.
MySavingThrowChecks for spell countering by a saving throw.
PlayDragonBattleCryMakes a dragon sound its battle cry.
RemoveEffectsFromSpellInternal function. Removes any effects from this type of spell. i.e., used in Mage Armor to remove any previous mage armors.
RemoveProtectionsRemoves all spell protections of a specific type.
RemoveSpecificEffectRemoves effects from a creature.
RemoveSpellEffectsRemoves the effects of a spell cast on a creature.
RemoveTempHitPointsInternal function. Gets rids of temporary hit points so that they will not stack.
spellsCureInternal 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.
TrapDoElectricalDamageFunction for doing electrical traps.

categories:  Spells Functions | Spell Casting Effects Functions
events:  OnSpellCastAt Event
includes:  x0_i0_spells | x2_i0_spells | x2_inc_spellhook

 author: Charles Feduke, editors: Mistress, ShaDoOoW