| 10-29-2003, 09:05 PM | #1 |
Can you write a trigger to direct creeps to pick up items? I have creeps attacking a building, and when the building is destroyed, it drops an item. Can I direct the creep to pick up the item and move to a new location with it? |
| 10-29-2003, 09:14 PM | #2 |
Im not sure if you can make the creep pick up items BUT! If the items not needed (as in the creep wont need to use it) use a trigger to remove the item, and another to place the item in again when your creep reaches a certain place. IDISacredIDI |
| 10-29-2003, 09:17 PM | #3 |
The creep doesn't need to use it. I just want the creep to carry it from point A to point B. IF the creep gets killed along the way, I want him to drop it so another creep can pick it up. It's proving to be a difficult task for me. |
| 10-29-2003, 09:21 PM | #4 |
In that case make the creep a hero (so he can pick up items) then use a trigger to force him to pick up the item. Im sure theirs also triggers to make sure on death a unit drops its items. Once the creep gets to the set location then he should still have the item. Just wondering but why does your creep need to hold the item? Oh you could also use the first method that i typed but add another trigger creating the item if the creep dies. IDISacredIDI |
| 10-29-2003, 09:36 PM | #5 |
The creep doesn't need to hold the item technically. But the players are going to want to kill the unit that has the item. So it would be helpful if the creep showed the item in his inventory. I guess i could add some effect to the creep that picked up the item instead to distinguish him? |
| 10-29-2003, 09:41 PM | #6 |
I'm no trigger expert but heres my idea: Make the item, and make a trigger for when the unit (creep) comes within range it will move it to his 1st inventory slot (give him a inventory) or have him drop it on death, now, when he gets killed, he will drop it, if he dies, have it make the item dropped count as the last created item, and have the next creep run to it, make him drop it on death, rinse, and repeat for the creeps, after getting to item make them run to point B |
| 10-29-2003, 09:58 PM | #7 |
Ok... Well I gave the creep an inventory, problem is they all just want to stand around the darn thing... I have the item sitting in a rect, and the trigger i created is ... events Unit building <gen> dies actions item - pick every item in destinationrect <gen> and Do (Unit - Order(Attacking unit) to Attack-Move To (center of DestinationB <gen>)) But ... They like to just sit and stare at the item :) |
