nw_i0_spells

Spell related functions.

Constants

NameValueBrief Description
NW_I0_SPELLS_MAX_BREACH3Number of spells in GetSpellBreachProtections

Functions

NameBrief Description
AmIAHumanoidReturns true if Target is a humanoid.
AssignAOEDebugStringCauses the creator of an area of effect spell to speak.
CalcNumberOfAttacksCalculates 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 spell are removed and nSR spell resistance is lowered. nSpellId can be used to override the originating spell ID. If not specified, SPELL_GREATER_SPELL_BREACH is used.
GetDragonFearDCAdding 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.
RemoveEffectsFromSpellRemoves 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.
RemoveTempHitPointsGets rids of temporary hit points so that they will not stack.
spellsCureUsed 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.


 author: Charles Feduke, editor: Mistress
 Send comments on this topic.