• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Trigger] Is this spell efficient?

Status
Not open for further replies.
Level 12
Joined
Aug 12, 2008
Messages
350
  • NS effect
    • Events
      • Unit - A unit Is attacked
    • Conditions
      • ((Triggering unit) has buff Nature Shield ) Equal to True
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Random integer number between 1 and 100) Less than or equal to (10 + (5 x (Level of Nature Shield for (Triggering unit))))
        • Then - Actions
          • Set NS_point = (Position of (Attacking unit))
          • Unit - Create 1 dummy unit (instant spell) for (Owner of (Triggering unit)) at NS_point facing Default building facing degrees
          • Set NS_dummy = (Last created unit)
          • Unit - Add Nature Shield_dummy to NS_dummy
          • Unit - Set level of Nature Shield_dummy for NS_dummy to (Level of Nature Shield for (Triggering unit))
          • Unit - Order NS_dummy to Night Elf Keeper Of The Grove - Entangling Roots (Attacking unit)
          • Custom script: call RemoveLocation (udg_NS_point)
        • Else - Actions
I've made this spell for my map but I'm not sure whether this will cause any bug or lag when many units have this spell functioning.
 
Status
Not open for further replies.
Top