- Joined
- Jul 21, 2015
- Messages
- 143
Hi I would like to create a trigger,
I want it to make it so that when an item is dropped by a (specific unit type 1) of (specific item type), then a (specific unit type 2) will do an action. The problem I'm having is storing a unit that doesn't exist as a variable to sequence the rest of the trigger to occur. This is what I have so far.
CURRENT TRIGGER:
I want it to be global because I want any panther to be able to be tamed (or to pick up an item) if its dropped in front of them. Like a treat.
So once again I would like a (specific unit type 2) to pick up an item when it is dropped in front of them. I would like it to occur globally, and not have to do a periodic timer. I am assuming I have to store the (specific unit type 2) as a temporary variable but don't know enough if hashtables are needed or if I should just create a unit group (but that could get messy). Thanks for any assistance!
I want it to make it so that when an item is dropped by a (specific unit type 1) of (specific item type), then a (specific unit type 2) will do an action. The problem I'm having is storing a unit that doesn't exist as a variable to sequence the rest of the trigger to occur. This is what I have so far.
CURRENT TRIGGER:
-
Tame a Panther
-
Events
-
Unit - A unit Loses an item
-
-
Conditions
-
And - All (Conditions) are true
-
Conditions
-
(Unit-type of (Triggering unit)) Equal to Night Elf Runner
-
Or - Any (Conditions) are true
-
Conditions
-
(Item-type of (Item being manipulated)) Equal to Deer Meat
-
(Item-type of (Item being manipulated)) Equal to Frog Meat
-
(Item-type of (Item being manipulated)) Equal to Rabbit Meat
-
(Item-type of (Item being manipulated)) Equal to Raccoon Meat
-
-
-
-
-
-
Actions
-
Wait 4.00 seconds
-
Set VariableSet TamePanther = Panther 0017 <gen>
-
Unit - Order TamePanther to Right-Click (Item being manipulated)
-
-
I want it to be global because I want any panther to be able to be tamed (or to pick up an item) if its dropped in front of them. Like a treat.
So once again I would like a (specific unit type 2) to pick up an item when it is dropped in front of them. I would like it to occur globally, and not have to do a periodic timer. I am assuming I have to store the (specific unit type 2) as a temporary variable but don't know enough if hashtables are needed or if I should just create a unit group (but that could get messy). Thanks for any assistance!