• 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] A lil problem

Status
Not open for further replies.
Level 4
Joined
Mar 15, 2008
Messages
71
  • Life Drain
    • Events
      • Unit - A unit Begins channeling an ability
    • Conditions
      • (Ability being cast) Equal to Life Drain
    • Actions
      • Set I = 0
      • Set point = (Target point of ability being cast)
      • Set Group = (Units in (Region centered at point with size ((350.00 + (50.00 x (Real((Level of Life Drain for (Casting unit)))))), (350.00 + (50.00 x (Real((Level of Life Drain for (Casting unit)))))))) matching (((((Matching unit) is Magic Immune) Equal to False) and (((
      • Set p = (Position of (Casting unit))
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Number of units in Group) Greater than 0
        • Then - Actions
          • Unit Group - Pick every unit in Group and do (Actions)
            • Loop - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • I Less than ((Level of Life Drain for (Casting unit)) + 1)
                • Then - Actions
                  • Set I = (I + 1)
                  • Unit - Create 1 Dummy for (Owner of (Casting unit)) at p facing Default building facing degrees
                  • Unit - Add a 8.00 second Generic expiration timer to (Last created unit)
                  • Unit - Add Life Drain(Dummy) to (Last created unit)
                  • Unit - Set level of Life Drain(Dummy) for (Last created unit) to (Level of Life Drain for (Casting unit))
                  • Unit - Order (Last created unit) to Neutral Dark Ranger - Life Drain (Picked unit)
                • Else - Actions
        • Else - Actions
          • Unit - Order (Casting unit) to Stop
this is a trigger from my new map.the thing is that instead of 6 units (at lvl 5) the spell affects only one unit :/ (it's same for all levels->it's always one unit :( )
I would really appreciate if someone could tell me what's the problem I'm unable to detect myself...I've been trying to detect it for about a hour and a half :sad::hohum:

EDIT: NEVERMIND the leaks and you don't have to check the groups,I think it's all fine there,and I'll fix the leaks as soon as I find my problem :hohum:
 
Level 4
Joined
Mar 15, 2008
Messages
71
^ thx for that I totally forgot about the range thing :D(Haven't been playing with triggers for quite a while)-> and the Group has a lot more conditions that didn't fit for some reason :/
 
Status
Not open for further replies.
Top