• 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] Why wont this work?

Status
Not open for further replies.
Level 9
Joined
Jan 17, 2009
Messages
372
I am making a spell and whenever i set a condition to check if a unit is alive when setting my unit group it wont select any units. Please help.. here is an example:
  • Example Spell
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to War Stomp
    • Actions
      • Set Temp_Point = (Position of (Triggering unit))
      • Set UnitGroup = (Units in (Region centered at Temp_Point with size (500.00, 500.00)) matching (((Picked unit) is alive) Equal to True))
      • Unit Group - Pick every unit in UnitGroup and do (Actions)
        • Loop - Actions
          • Unit - Cause (Triggering unit) to damage (Picked unit), dealing 500.00 damage of attack type Spells and damage type Normal
      • Custom script: call RemoveLocation(udg_TempPoint)
      • Custom script: call DestroyGroup(udg_UnitGroup)
why wont this work
please tell me how to fix!
 
Status
Not open for further replies.
Top