16 lines
758 B
Plaintext
16 lines
758 B
Plaintext
#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);}
|