X0 i0 spells

From NWN Lexicon

Contents

[edit] x0_i0_spells

Expansion 1 and above include file for spells.

NOTE: This file includes x2_inc_switches .

[edit] Constants

Name Value Brief Description
SAVING_THROW_NONE 4
SPELL_TARGET_ALLALLIES 1 Will affect all allies, even those in my faction who don't like me.
SPELL_TARGET_SELECTIVEHOSTILE 3 Will only ever hurt enemies.
SPELL_TARGET_STANDARDHOSTILE 2 90% of offensive area spells will work this way.
- They will never hurt NEUTRAL or FRIENDLY NPCs.
- They will never hurt FRIENDLY PCs.
- They WILL hurt NEUTRAL PCs.


[edit] Functions

Name Brief Description

ArcaneArcherDamageDoneByBow

Returns how much should special archer arrows do for damage.

ArcaneArcherCalculateBonus

Calculates the enhancement bonus for an Arcane Archer.

CanCreatureBeDestroyed

Returns TRUE if the target creature is allowed to die.

doAura

Internal function. Used in the alignment aura spells.

DoCaltropEffect

Caltrops do 25 points of damage (1 point per target per round) and then are gone.

DoCamoflage

Applies the 'camoflage' magical effect to the target.

DoDirgeEffect

Applies the ability score damage of the dirge effect.

DoGrenade

Does a damage type grenade (direct or splash on miss).

DoMagicFang

Improves an animal companion's attack and damage and the ability to hit magically protected creatures.

DoMissileStorm

Fires a storm of missiles at targets in area.

DoPetrification

This is a wrapper for how Petrify will work in Expansion Pack 1.

DoSpikeGrowthEffect

For spike growth area of effect object applies damage and slow effect.

DoTrapSpike

Apply effects of spike trap on entering object.

GetCasterAbilityModifier

Returns the modifier from the ability score that matters for this caster.

GetSizeModifier

Gets the creature's applicable size modifier.

GZCanNotUseGazeAttackCheck

Internal function. Returns TRUE if oCreature is blinded and thus cannot use a gaze attack.

GZGetHighestSpellcastingClassLevel

Returns the target creature's levels in their highest spell casting class.

MaximizeOrEmpower

Checks the appropriate metamagic to see how the damage should be scaled.

RemoveAnySpellEffects

Internal function. Doesn't care who the caster was; removes the effects of the specified spell.

RemoveSpellEffects2

Internal function. Advanced version of RemoveSpellEffects to handle multiple spells.

spellApplyMindBlank

Removes negative mind effects and provides mind protection.

spellsDispelAoE

Handles dispel magic of area of effect spells.

spellsDispelMagic

Dispel magic on one or multiple targets.

spellsGenericAreaOfEffect

Generic apply area of effect wrapper.

spellsInflictTouchAttack

Inflicts a spell touch attack.

spellsIsFlying

Returns TRUE if the target creature is flying.

spellsIsImmuneToPetrification

Returns TRUE if the target creature is immune to petrification.

spellsIsMindless

Returns TRUE if the target creature does not have a mind.

spellsIsTarget

Generic reputation wrapper.

spellsStinkingCloud

Does a stinking cloud.


[edit] See Also

events: 

OnSpellCastAt Event

includes: 

x2_inc_spellhook


  author: Mistress, editor: Kolyana

Personal tools
Categories