FANDOM


This include file contains the functions which implement the new energy substitution feat, included in the Grimoire, as well as functions which change the visual effects of spells to match those changes. This file defines no constants.

Includes Edit

Functions Edit

int SGGetElementalDamageType (int iDamageType, object oCaster=OBJECT_SELF) This function returns the new element damage type based on whether the caster has used the energy substitution feat. The function has checks to make sure that items and familiars/animal companions do not get the benefits of the feat.


int SGGetElementalIPDamageType (int iDamageType) This function is used for item properties. It returns the proper type for use in changing the energy type for a spell that adds an item property to a weapon.


int SGGetElementalSpellType (int iDamageType) This function returns the proper spell descriptor value based on the damage type.


int SGGetElementalSaveType (int iDamageType) This function returns the proper SAVING_THROW_TYPE_* constant for the given damage type.


int SGGetElementalVisualType (int iVisualEffect, int iDamageType) This function returns a VFX_IMP_* or VFX_FNF_* visual effect for the given original visual effect and new damage type.


int SGGetElementalBeamType (int iDamageType) This function returns the proper VFX_BEAM_* constant for the given damage type.


int SGGetElementalExplodeType (int iDamageType, int iSpellID=-1) This function returns a VFX_FNF_* visual constant for an explosion effect that corresponds to the damage type. It also takes a spell ID parameter to maintain proper visuals for certain spells if the damage type has not been altered.


int SGGetElementalMirvType (int iDamageType) This function returns a VFX_IMP_* constant for a MIRV effect that corresponds to the given damage type.

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.