x2_i0_spells

Expansion 2 and above include file for spells.

NOTE: This file includes x0_i0_spells and x2_inc_itemprop.

Constants

NameValueBrief Description
X2_SPELL_AOEBEHAVIOR_DISPEL_C727Used with the AOE behavior AI.
X2_SPELL_AOEBEHAVIOR_DISPEL_GSPELL_GREATER_DISPELLINGUsed with the AOE behavior AI.
X2_SPELL_AOEBEHAVIOR_DISPEL_LSPELL_LESSER_DISPELUsed with the AOE behavior AI.
X2_SPELL_AOEBEHAVIOR_DISPEL_MSPELL_MORDENKAINENS_DISJUNCTIONUsed with the AOE behavior AI.
X2_SPELL_AOEBEHAVIOR_DISPEL_NSPELL_DISPEL_MAGICUsed with the AOE behavior AI.
X2_SPELL_AOEBEHAVIOR_FLEE0Used with the AOE behavior AI.
X2_SPELL_AOEBEHAVIOR_GUST2Used with the AOE behavior AI.
X2_SPELL_AOEBEHAVIOR_IGNORE1Used with the AOE behavior AI.

Functions

NameBrief Description
CheckAndApplyEpicRageFeatsHub function for the epic barbarian feats that upgrade rage.
CheckAndApplyTerrifyingRageChecks and runs Rerrifying Rage feat.
CheckAndApplyThunderingRageChecks the character for the thundering rage feat and will apply temporary massive critical to the worn weapons.
CreateBadTideEffectsLinkReturns a linked effect for all of the bad tide of battle effects.
CreateGoodTideEffectsLinkReturns a linked effect for all of the good tide of battle effects.
DoCubeParalyzeInternal function. Gelatinous Cube Paralyze attack.
DoMindBlastFunction for doing mind attacks.
EngulfAndDamageInternal function. Gelatinous Cube special abilities.
GetBestAOEBehaviorInternal function. Determines the optimal behavior against AoESpell nSpellId for a NPC use in OnSpellCastAt.
GetEpicSpellSaveDCDetermines the DC needed to save against any epic spell.
GetIsMagicalItemReturns TRUE if the item has any item property that classifies it as magical item.
GetIsMagicStatBonusReturns spellcasting ability modifier.
GetIsRangedWeaponInternal function. Returns TRUE if the specified object is a ranged weapon.
GetMeleeWeaponReturns TRUE if the item is a melee weapon.
GetSlashingWeaponReturns TRUE if the item is a slashing weapon.
GZGetDelayedSpellEffectsExpiredInternal function. Returns FALSE if a delayed spell effect from nSpell_ID has expired.

See x2_s0_bigby4.nss for details.
GZRemoveSpellEffectsInternal function. Removes all effects from nID without paying attention to the caster as the spell can from only one caster anyway.

By default, it will only cancel magical effects.

See Also

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

  author: Mistress, contributor: ShaDoOoW