X2 i0 spells

From NWN Lexicon

Contents

[edit] x2_i0_spells

Expansion 2 and above include file for spells.

NOTE: This file includes x2_inc_itemprop .

[edit] Constants

Name Value Brief Description
X2_SPELL_AOEBEHAVIOR_DISPEL_C 727 Used with the AOE behavior AI.
X2_SPELL_AOEBEHAVIOR_DISPEL_G SPELL_GREATER_DISPELLING Used with the AOE behavior AI.
X2_SPELL_AOEBEHAVIOR_DISPEL_L SPELL_LESSER_DISPEL Used with the AOE behavior AI.
X2_SPELL_AOEBEHAVIOR_DISPEL_M SPELL_MORDENKAINENS_DISJUNCTION Used with the AOE behavior AI.
X2_SPELL_AOEBEHAVIOR_DISPEL_N SPELL_DISPEL_MAGIC Used with the AOE behavior AI.
X2_SPELL_AOEBEHAVIOR_FLEE 0 Used with the AOE behavior AI.
X2_SPELL_AOEBEHAVIOR_GUST 2 Used with the AOE behavior AI.
X2_SPELL_AOEBEHAVIOR_IGNORE 1 Used with the AOE behavior AI.


[edit] Functions

Name Brief Description
CheckAndApplyEpicRageFeats Hub function for the epic barbarian feats that upgrade rage.
CheckAndApplyTerrifyingRage Checks and runs Rerrifying Rage feat.
CheckAndApplyThunderingRage Checks the character for the thundering rage feat and will apply temporary massive critical to the worn weapons.
CreateBadTideEffectsLink Returns a linked effect for all of the bad tide of battle effects.
CreateGoodTideEffectsLink Returns a linked effect for all of the good tide of battle effects.
DoCubeParalyze Internal function. Gelatinous Cube Paralyze attack.

DoMindBlast

Function for doing mind attacks.
EngulfAndDamage Internal function. Gelatinous Cube special abilities.
GetBestAOEBehavior

Internal function. Determines the optimal behavior against AoESpell nSpellId for a NPC use in OnSpellCastAt.

GetEpicSpellSaveDC

Determines the DC needed to save against any epic spell.

GetIsMagicalItem

Returns TRUE if the item has any item property that classifies it as magical item.

GetIsMagicStatBonus

Returns spellcasting ability modifier.
GetIsRangedWeapon Internal function. Returns TRUE if the specified object is a ranged weapon.

GetMeleeWeapon

Returns TRUE if the item is a melee weapon.

GetSlashingWeapon

Returns TRUE if the item is a slashing weapon.
GZGetDelayedSpellEffectsExpired Internal function. Returns FALSE if a delayed spell effect from nSpell_ID has expired.

See x2_s0_bigby4.nss for details.
GZRemoveSpellEffects Internal 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.


[edit] See Also

events: 

OnSpellCastAt Event

includes: 

x2_inc_spellhook


  author: Mistress, contributor: ShaDoOoW

Personal tools
Categories