- Joined
- Aug 29, 2008
- Messages
- 134
I'm having some trouble with a trigger.
It's an automatic powerup system, so you don't have to right-click items.
But, ehh... it doesn't really work.
I can't seem to find my error
This isn't going to be in any real map, but is for training/learning purposes, so i would be happy if someone could point the error out for me
I will continue to try and find the fault myself, and update the thread if some of my wacked ideas works.
EDIT: Removed signature
EDIT2: Found out the problem. Apparently when you put locust on units, they wont get picked up by triggers.
It's an automatic powerup system, so you don't have to right-click items.
But, ehh... it doesn't really work.
I can't seem to find my error

This isn't going to be in any real map, but is for training/learning purposes, so i would be happy if someone could point the error out for me
-
Powerup Trigger
-

Events
-


Time - Every 0.04 seconds of game time
-
-

Conditions
-

Actions
-


Set tempLoc = (Position of Player)
-


Set tempGroup = (Units within 48.00 of tempLoc matching ((Owner of (Matching unit)) Equal to Neutral Passive))
-


Unit Group - Pick every unit in tempGroup and do (Actions)
-



Loop - Actions
-




If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-





If - Conditions
-






(Unit-type of (Picked unit)) Equal to Health Orb
-






((Picked unit) is alive) Equal to True
-
-





Then - Actions
-






Unit - Kill (Picked unit)
-






Unit - Set life of Player to ((Life of Player) + 25.00)
-
-





Else - Actions
-






If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-







If - Conditions
-








(Unit-type of (Picked unit)) Equal to Mana Orb
-








((Picked unit) is alive) Equal to True
-
-







Then - Actions
-








Unit - Kill (Picked unit)
-








Unit - Set mana of Player to ((Mana of Player) + 25.00)
-
-







Else - Actions
-
-
-
-
-
-


Custom script: call RemoveLocation( udg_tempLoc )
-


Custom script: call DestroyGroup( udg_tempGroup )
-
-
EDIT: Removed signature
EDIT2: Found out the problem. Apparently when you put locust on units, they wont get picked up by triggers.
Last edited:






