X2 inc spellhook

From NWN Lexicon



Contents

[edit] x2_inc_spellhook

Library file that acts as a hub for all code that is hooked into the nwn spellscripts.<br /><br /> If you want to implement material components into spells or add restrictions to certain spells, this is the place to do it.<br /><br /> NOTE: This file includes x3_inc_horse.

[edit] Constants

Name Value Brief Description
X2_EVENT_CONCENTRATION_BROKEN 12400


[edit] Functions

Name Brief Description
X2BreakConcentrationSpells Internal function. Concentration system for Black Blade of Disaster spell. If the mage tries to cast any kind of spell, the blade is signaled an event to die.

X2CastOnItemWasAllowed

This function return TRUE if the last casted spell can be cast to any item.
X2DoBreakConcentrationCheck Internal function.
X2GetBreakConcentrationCondition Internal function. Being hit by any kind of negative effect affecting the caster's ability to concentrate will cause a break condition for concentration spells.

X2GetSpellCastOnSequencerItem

Sequencer item property handling.

X2PreSpellCastCode

This function hooks all default spell scripts and is used for procedures related to all spells or for block the spell code to be executed.

X2RunUserDefinedSpellScript

Runs a custom spellhook script if defined.
X3ShapeShiftSpell Internal function. Returns TRUE if the spell that is cast is a shape shifting spell.

X2UseMagicDeviceCheck

Use Magic Device check.


[edit] See Also

events: 

OnSpellCastAt Event

includes: 

x2_i0_spells


  author: Mistress, contributor: ShaDoOoW

Personal tools
Categories