RoT2_PRC8/_module/nss/aw_spell_capture.nss
Jaysyn904 499aba4eb3 Initial upload
Initial upload
2023-09-25 18:13:22 -04:00

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);}