• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Venomancer Spells v1.00

This bundle is marked as useful / simple. Simplicity is bliss, low effort and/or may contain minor bugs.
Code:
Releases Venomous Gale which poisons enemy units it comes in contact with. Poisoned units take initial damage, damage over time, and have their movement speed slowed for a short duration. 
Level 1 - 50 strike damage, 10 duration damage. 
Level 2 - 70 strike damage, 20 duration damage.
Level 3 - 70 strike damage, 40 duration damage. 
Level 4 - 100 strike damage, 50 duration damage.
  • VenomousGale Cast
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Venomous Gale
    • Actions
      • Set VenomousGale_Caster = (Triggering unit)
      • Set VenomousGale_Level = (Level of Poison Sting for VenomousGale_Caster)
      • Set TempLoc = (Position of VenomousGale_Caster)
      • Set TempLoc2 = (Target point of ability being cast)
      • Set VenomousGale_Angle = (Angle from TempLoc to TempLoc2)
      • Set VenomousGale_Tick = 80
      • Unit Group - Remove all units from VenomousGale_Hit
      • Unit - Create 1 Dummy Unit - Gale for (Owner of VenomousGale_Caster) at TempLoc facing VenomousGale_Angle degrees
      • Set VenomousGale_Gale = (Last created unit)
      • Unit - Add Crow Form to VenomousGale_Gale
      • Unit - Remove Crow Form from VenomousGale_Gale
      • Animation - Change VenomousGale_Gale flying height to 60.00 at 0.00
      • Custom script: call RemoveLocation( udg_TempLoc )
      • Custom script: call RemoveLocation( udg_TempLoc2 )
      • Trigger - Turn on VenomousGale Exec <gen>
  • VenomousGale Exec
    • Events
      • Time - Every 0.01 seconds of game time
    • Conditions
    • Actions
      • Set TempLoc = (Position of VenomousGale_Gale)
      • Set TempLoc2 = (TempLoc offset by 10.00 towards VenomousGale_Angle degrees)
      • Unit - Move VenomousGale_Gale instantly to TempLoc2
      • Set TempGroup = (Units within 150.00 of TempLoc2 matching ((((Matching unit) is A structure) Equal to False) and ((((Matching unit) is alive) Equal to True) and ((((Matching unit) belongs to an enemy of (Owner of VenomousGale_Caster)) Equal to True) and (((Matching unit) is
      • Unit Group - Pick every unit in TempGroup and do (Actions)
        • Loop - Actions
          • Unit - Create 1 Dummy Unit for (Owner of VenomousGale_Caster) at TempLoc2 facing 0.00 degrees
          • Unit - Add a 15.10 second Generic expiration timer to (Last created unit)
          • Unit - Add Venomous Gale Damager to (Last created unit)
          • Unit - Set level of Venomous Gale Damager for (Last created unit) to VenomousGale_Level
          • Unit - Order (Last created unit) to Night Elf Warden - Shadow Strike (Picked unit)
          • Unit Group - Add (Picked unit) to VenomousGale_Hit
      • Custom script: call RemoveLocation( udg_TempLoc )
      • Custom script: call RemoveLocation( udg_TempLoc2 )
      • Custom script: call DestroyGroup( udg_TempGroup )
      • Set VenomousGale_Tick = (VenomousGale_Tick - 1)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • VenomousGale_Tick Equal to 0
        • Then - Actions
          • Unit - Kill VenomousGale_Gale
          • Trigger - Turn off (This trigger)
        • Else - Actions
Code:
Creats a ring of noxious poison that damages enemy units.
Level 1 - 36 damage per second for 12 seconds.
Level 2 - 58 damage per second for 14 seconds. 
Level 3 - 81 damage per second for 15 seconds
  • Poison Nova
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Poison Nova
    • Actions
      • Set Caster = (Triggering unit)
      • Set CastLoc = (Position of Caster)
      • Set Real = 0.00
      • For each (Integer A) from 1 to 20, do (Actions)
        • Loop - Actions
          • Unit - Create 1 Dummy for (Owner of Caster) at CastLoc facing Default building facing degrees
          • Unit - Turn collision for (Last created unit) Off
          • Set LocOffset[(Integer A)] = (CastLoc offset by 600.00 towards Real degrees)
          • Unit - Set level of Poison Nova for (Last created unit) to (Level of Poison Nova for Caster)
          • Unit - Order (Last created unit) to Move To LocOffset[(Integer A)]
          • Unit - Add a 1.30 second Generic expiration timer to (Last created unit)
          • Set Real = (Real + (360.00 / 20.00))
          • Custom script: call RemoveLocation (udg_LocOffset[bj_forLoopAIndex])
      • Custom script: call RemoveLocation (udg_CastLoc)
Give Credits if you use it in your map.
Sorry My English Is Bad! I'm Vietnamese and now i living in south seoul korea.
Contents

[Spellpack] Venomancer (Map)

Reviews
12th Dec 2015 IcemanBo: Too long time as NeedsFix. Rejected. 09:59, 30th Jun 2010 Hanky: You have to make your spells at least MPI to get approved. After you did that message me or one of the other spell moderators.

Moderator

M

Moderator

12th Dec 2015
IcemanBo: Too long time as NeedsFix. Rejected.

09:59, 30th Jun 2010
Hanky:
You have to make your spells at least MPI to get approved. After you did that message me or one of the other spell moderators.
 
Level 5
Joined
May 27, 2009
Messages
94
The problem is that you every 0.01 second sets the posistion of the last triggering unit making it only work fore the last unit therefore its None MUI/MPI.
Try to read about hashtables a bit.
Try to read a turtorial about.
 
Top