Further file organization
Further file organization
This commit is contained in:
30
nwn/nwnprc/trunk/newspellbook/inv_miasmiccloud.nss
Normal file
30
nwn/nwnprc/trunk/newspellbook/inv_miasmiccloud.nss
Normal file
@@ -0,0 +1,30 @@
|
||||
|
||||
#include "prc_alterations"
|
||||
#include "inv_inc_invfunc"
|
||||
#include "inv_invokehook"
|
||||
|
||||
void main()
|
||||
{
|
||||
if (!PreInvocationCastCode())
|
||||
{
|
||||
// If code within the PreSpellCastHook (i.e. UMD) reports FALSE, do not run this spell
|
||||
return;
|
||||
}
|
||||
|
||||
// End of Spell Cast Hook
|
||||
|
||||
|
||||
//Declare major variables including Area of Effect Object
|
||||
effect eAOE = EffectAreaOfEffect(INVOKE_AOE_MIASMIC_CLOUD);
|
||||
location lTarget = PRCGetSpellTargetLocation();
|
||||
int CasterLvl = GetInvokerLevel(OBJECT_SELF, GetInvokingClass());
|
||||
|
||||
int nDuration = 1;
|
||||
effect eImpact = EffectVisualEffect(257);
|
||||
ApplyEffectAtLocation(DURATION_TYPE_INSTANT, eImpact, lTarget);
|
||||
|
||||
|
||||
//Create an instance of the AOE Object using the Apply Effect function
|
||||
ApplyEffectAtLocation(DURATION_TYPE_TEMPORARY, eAOE, lTarget, TurnsToSeconds(nDuration));
|
||||
|
||||
}
|
Reference in New Issue
Block a user