Initial upload
Initial upload
This commit is contained in:
15
_module/nss/aw_spell_capture.nss
Normal file
15
_module/nss/aw_spell_capture.nss
Normal file
@@ -0,0 +1,15 @@
|
||||
#include "NW_I0_SPELLS"
|
||||
//Script for Capture
|
||||
int Capture (int nDuration);
|
||||
void Capture (int nDuration){
|
||||
object oTarget = GetSpellTargetObject();effect eDom = EffectStunned();
|
||||
eDom = GetScaledEffect(eDom, oTarget);
|
||||
effect eMind = EffectVisualEffect(VFX_DUR_MIND_AFFECTING_NEGATIVE);
|
||||
effect eDur = EffectVisualEffect(VFX_DUR_CESSATE_NEGATIVE);
|
||||
effect eLink = EffectLinkEffects(eMind, eDom);
|
||||
eLink = EffectLinkEffects(eLink, eDur);
|
||||
effect eVis = EffectVisualEffect(VFX_IMP_DOMINATE_S);
|
||||
SignalEvent(oTarget, EventSpellCastAt(OBJECT_SELF, SPELL_DOMINATE_MONSTER, FALSE));
|
||||
ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eLink, oTarget, TurnsToSeconds(nDuration));
|
||||
ApplyEffectToObject(DURATION_TYPE_INSTANT, eVis, oTarget);
|
||||
FadeFromBlack(oTarget,FADE_SPEED_MEDIUM);}
|
||||
Reference in New Issue
Block a user