home *** CD-ROM | disk | FTP | other *** search
/ PC Zone 125 / DPPCZ0203B.7z / DPPCZ0203B.ISO / Demos / Neverwinter / data1.cab / override / nw_s0_timestop.nss < prev    next >
Text File  |  2002-09-10  |  1KB  |  31 lines

  1. //::///////////////////////////////////////////////
  2. //:: Time Stop
  3. //:: NW_S0_TimeStop.nss
  4. //:: Copyright (c) 2001 Bioware Corp.
  5. //:://////////////////////////////////////////////
  6. /*
  7.     All persons in the Area are frozen in time
  8.     except the caster.
  9. */
  10. //:://////////////////////////////////////////////
  11. //:: Created By: Preston Watamaniuk
  12. //:: Created On: Jan 7, 2002
  13. //:://////////////////////////////////////////////
  14.  
  15. void main()
  16. {
  17.     //Declare major variables
  18.        location lTarget = GetSpellTargetLocation();
  19.     effect eVis = EffectVisualEffect(VFX_FNF_TIME_STOP);
  20.     effect eTime = EffectTimeStop();
  21.     int nRoll = 1 + d4();
  22.  
  23.     //Fire cast spell at event for the specified target
  24.     SignalEvent(OBJECT_SELF, EventSpellCastAt(OBJECT_SELF, SPELL_TIME_STOP, FALSE));
  25.  
  26.     //Apply the VFX impact and effects
  27.     DelayCommand(0.75, ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eTime, OBJECT_SELF, 9.0));
  28.     ApplyEffectAtLocation(DURATION_TYPE_INSTANT, eVis, lTarget);
  29. }
  30.  
  31.