Added "Removed Files" folder
Added "Removed Files" folder in case we needed to review any of them.
This commit is contained in:
51
_module/_removed files/nw_s0_crpdooma.nss
Normal file
51
_module/_removed files/nw_s0_crpdooma.nss
Normal file
@@ -0,0 +1,51 @@
|
||||
//::///////////////////////////////////////////////
|
||||
//:: Creeping Doom: On Enter
|
||||
//:: NW_S0_AcidFogA.nss
|
||||
//:: Copyright (c) 2001 Bioware Corp.
|
||||
//:://////////////////////////////////////////////
|
||||
/*
|
||||
Creature caught in the swarm take an initial
|
||||
damage of 1d20, but there after they take
|
||||
1d4 per swarm counter on the AOE.
|
||||
*/
|
||||
//:://////////////////////////////////////////////
|
||||
//:: Created By: Preston Watamaniuk
|
||||
//:: Created On: May 17, 2001
|
||||
//:://////////////////////////////////////////////
|
||||
|
||||
#include "X0_I0_SPELLS"
|
||||
#include "x2_inc_spellhook"
|
||||
|
||||
void main()
|
||||
{
|
||||
|
||||
//Declare major variables
|
||||
int nDamage;
|
||||
effect eDam;
|
||||
effect eVis = EffectVisualEffect(VFX_COM_BLOOD_REG_RED);
|
||||
object oTarget = GetEnteringObject();
|
||||
effect eSpeed = EffectMovementSpeedDecrease(50);
|
||||
effect eVis2 = EffectVisualEffect(VFX_DUR_CESSATE_NEGATIVE);
|
||||
effect eLink = EffectLinkEffects(eSpeed, eVis2);
|
||||
|
||||
float fDelay;
|
||||
if (spellsIsTarget(oTarget, SPELL_TARGET_STANDARDHOSTILE, GetAreaOfEffectCreator()))
|
||||
{
|
||||
//Fire cast spell at event for the target
|
||||
SignalEvent(oTarget, EventSpellCastAt(GetAreaOfEffectCreator(), SPELL_CREEPING_DOOM));
|
||||
fDelay = GetRandomDelay(1.0, 1.8);
|
||||
//Spell resistance check
|
||||
if(!MyResistSpell(GetAreaOfEffectCreator(), oTarget, fDelay))
|
||||
{
|
||||
//Roll Damage
|
||||
nDamage = d6(4)+ 6;
|
||||
|
||||
//Set Damage Effect with the modified damage
|
||||
eDam = EffectDamage(nDamage, DAMAGE_TYPE_SONIC);
|
||||
//Apply damage and visuals
|
||||
ApplyEffectToObject(DURATION_TYPE_PERMANENT, eSpeed, oTarget);
|
||||
DelayCommand(fDelay, ApplyEffectToObject(DURATION_TYPE_INSTANT, eVis, oTarget));
|
||||
DelayCommand(fDelay, ApplyEffectToObject(DURATION_TYPE_INSTANT, eDam, oTarget));
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user