- Joined
- Jan 18, 2008
- Messages
- 4
Not sure if this post goes here or in the helper trigger creation forum.
Ok I probably dont need the "random 1 unit" bit. And I added the random Item hoping it would help, wich it seemed to when there was only two Crates, but htat coudl have been a randomizer issue.
When a 'trap blueprint unit' "enters playable map area"
I wanted 1 Imp to grab 1 Crate near the Workshop, regardless of how many Crates are there.
What happens now is for every Crate near the Workshop an Imp moves toward the Crates.
example if there are 2 Crates then two imps move, up to about 10 imps can move towards 10 Crates, but I think some are targeting the same crates since only 8 pick them up.
I just want 1 Imp to pick up 1 Crate!
I think the problem is the "Pick Every Item" function when all I need to do is just pick 1 item, but how?
Ok I probably dont need the "random 1 unit" bit. And I added the random Item hoping it would help, wich it seemed to when there was only two Crates, but htat coudl have been a randomizer issue.
When a 'trap blueprint unit' "enters playable map area"
I wanted 1 Imp to grab 1 Crate near the Workshop, regardless of how many Crates are there.
What happens now is for every Crate near the Workshop an Imp moves toward the Crates.
example if there are 2 Crates then two imps move, up to about 10 imps can move towards 10 Crates, but I think some are targeting the same crates since only 8 pick them up.
I just want 1 Imp to pick up 1 Crate!
I think the problem is the "Pick Every Item" function when all I need to do is just pick 1 item, but how?
-
Untitled Trigger 003
-
Events
- Unit - A unit enters (Playable map area)
-
Conditions
- (Unit-type of (Triggering unit)) Equal to Freeze Trap Blueprint
-
Actions
-
Unit Group - Pick every unit in (Units owned by (Owner of (Triggering unit)) of type Workshop) and do (Actions)
-
Loop - Actions
-
Item - Pick every item in (Region centered at (Position of (Picked unit)) with size (401.00, 401.00)) and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Item-type of (Picked item)) Equal to Freeze Trap Crate
-
Then - Actions
- Unit - Order (Random unit from (Random 1 units from (Units owned by (Owner of (Triggering unit)) of type Imp))) to Right-Click (Random item in (Region centered at (Position of (Picked unit)) with size (401.00, 401.00)) matching ((Item-type of (Picked item)) Equal to (Item-type of (Picked item))))
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Loop - Actions
-
Item - Pick every item in (Region centered at (Position of (Picked unit)) with size (401.00, 401.00)) and do (Actions)
-
Loop - Actions
-
Unit Group - Pick every unit in (Units owned by (Owner of (Triggering unit)) of type Workshop) and do (Actions)
-
Events