• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!

My Avalance help

Status
Not open for further replies.
Hey ive been makign a spell and im kinda havign some problems.

Well lets just say it will loop the Spell twice.
here is the beginging of the spell.
Aint gonna give all due to Stealers.

  • Avalanche
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Avalanche
    • Actions
      • For each (Integer A) from 1 to (1 x (Level of Avalanche for (Triggering unit))), do (Actions)
        • Loop - Actions
          • Unit - Pause (Target unit of ability being cast)
          • Unit - Make (Casting unit) Invulnerable
          • -------- Ice Pillar - 1 --------
          • Set TempLoc1 = (Position of (Target unit of ability being cast))
          • Unit - Create 1 Ice Base for (Owner of (Casting unit)) at TempLoc1 facing (Random real number between 0.00 and 359.00) degrees
          • Animation - Play (Last created unit)'s birth large animation
          • Special Effect - Create a special effect at (Position of (Last created unit)) using Abilities\Weapons\FrostWyrmMissile\FrostWyrmMissile.mdl
          • Set tempEffect = (Last created special effect)
          • Custom script: call DestroyEffect(udg_tempEffect)
          • Special Effect - Create a special effect at (Position of (Last created unit)) using Abilities\Spells\Undead\FreezingBreath\FreezingBreathMissile.mdl
          • Set tempEffect = (Last created special effect)
          • Custom script: call DestroyEffect(udg_tempEffect)
          • Special Effect - Create a special effect at (Position of (Last created unit)) using Abilities\Spells\Undead\FrostNova\FrostNovaTarget.mdl
          • Set tempEffect = (Last created special effect)
          • -------- Ice Pillar - 1 --------
          • Set TempLoc1 = (Position of (Target unit of ability being cast))
          • Unit - Create 1 Ice Pillar for (Owner of (Casting unit)) at TempLoc1 facing (Random real number between 0.00 and 359.00) degrees
          • Animation - Change (Last created unit) flying height to 110.00 at 99999.00
          • Animation - Play (Last created unit)'s birth large animation
          • Special Effect - Create a special effect at (Position of (Last created unit)) using Abilities\Weapons\FrostWyrmMissile\FrostWyrmMissile.mdl
          • Set tempEffect = (Last created special effect)
          • Custom script: call DestroyEffect(udg_tempEffect)
          • Special Effect - Create a special effect at (Position of (Last created unit)) using Abilities\Spells\Undead\FreezingBreath\FreezingBreathMissile.mdl
          • Set tempEffect = (Last created special effect)
          • Custom script: call DestroyEffect(udg_tempEffect)
          • Special Effect - Create a special effect at (Position of (Last created unit)) using Abilities\Spells\Undead\FrostNova\FrostNovaTarget.mdl
          • Set tempEffect = (Last created special effect)
 
If the level of the ablity is above 1, it will loop more than once.
Additonally, if your Dummy Unit hasn´t the ability to fly it will stay on the ground although you´re highering its flying high.
Btw, you forgot to clean the location leak via a custom script:
call RemoveLocation(udg_TempLoc1)
And you should create the special effects at the TempLoc1 location, not at the position of last created unit.
 
Status
Not open for further replies.
Top