Initial upload
Initial upload. PRC8 has been added. Module compiles, PRC's default AI & treasure scripts have been integrated. Started work on top hak for SLA / Ability / Scripting modifications.
This commit is contained in:
39
_removed/x2_s0_vinemhmpa.nss
Normal file
39
_removed/x2_s0_vinemhmpa.nss
Normal file
@@ -0,0 +1,39 @@
|
||||
///::///////////////////////////////////////////////
|
||||
//:: Vine Mine, Hamper Movement: On Enter
|
||||
//:: X2_S0_VineMHmpA
|
||||
//:: Copyright (c) 2001 Bioware Corp.
|
||||
//:://////////////////////////////////////////////
|
||||
/*
|
||||
Creatures entering the zone of Vine Mine, Hamper
|
||||
Movement have their movement reduced by 1/2.
|
||||
*/
|
||||
//:://////////////////////////////////////////////
|
||||
//:: Created By: Andrew Nobbs
|
||||
//:: Created On: Nov 25, 2002
|
||||
//:://////////////////////////////////////////////
|
||||
//:: Last Updated By: Andrew Nobbs, 02/06/2003
|
||||
|
||||
#include "NW_I0_SPELLS"
|
||||
#include "x0_i0_spells"
|
||||
#include "x2_inc_spellhook"
|
||||
|
||||
void main()
|
||||
{
|
||||
|
||||
//Declare major variables
|
||||
effect eVis = EffectVisualEffect(VFX_IMP_SLOW);
|
||||
effect eSlow = EffectMovementSpeedDecrease(50);
|
||||
effect eLink = EffectLinkEffects(eVis, eSlow);
|
||||
object oTarget = GetEnteringObject();
|
||||
float fDelay = GetRandomDelay(1.0, 2.2);
|
||||
if(spellsIsTarget(oTarget, SPELL_TARGET_STANDARDHOSTILE, GetAreaOfEffectCreator()))
|
||||
{
|
||||
if(!GetHasFeat(FEAT_WOODLAND_STRIDE, oTarget) &&(GetCreatureFlag(OBJECT_SELF, CREATURE_VAR_IS_INCORPOREAL) != TRUE) )
|
||||
{
|
||||
//Fire cast spell at event for the target
|
||||
SignalEvent(oTarget, EventSpellCastAt(GetAreaOfEffectCreator(), GetSpellId()));
|
||||
//Apply reduced movement effect and VFX_Impact
|
||||
ApplyEffectToObject(DURATION_TYPE_PERMANENT, eLink, oTarget);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user