Hello!
I'm trying to create a consumable item that modifies heroes stats, then reverts back after 60 seconds.
-If I assign a variable to the unit, the trigger works. BUT, if another unit uses the same item, the first unit that used it gets a permanent increase, as the variable gets reassigned before the timer could have out.
-If I don't assign a variable to the unit, the stats don't get removed for anyone, as the second trigger doesn't seem to run.
Here are the triggers without the assigning the unit to a variable:
Trigger 1:
Any help or direction would be much appreciated!
I'm trying to create a consumable item that modifies heroes stats, then reverts back after 60 seconds.
-If I assign a variable to the unit, the trigger works. BUT, if another unit uses the same item, the first unit that used it gets a permanent increase, as the variable gets reassigned before the timer could have out.
-If I don't assign a variable to the unit, the stats don't get removed for anyone, as the second trigger doesn't seem to run.
Here are the triggers without the assigning the unit to a variable:
Trigger 1:
-
Ironforge Ale
-
Events
- Unit - A unit Uses an item
-
Conditions
- (Item-type of (Item being manipulated)) Equal to Ironforge Ale
-
Actions
- Hero - Modify Strength of (Triggering unit): Add 5.
- Hero - Modify Intelligence of (Triggering unit): Subtract 5.
- Countdown Timer - Start IronforgeAleTimer as a One-shot timer that will expire in 60.00 seconds
-
Events
-
Ironforge Ale Timer
-
Events
- Time - IronforgeAleTimer expires
- Conditions
-
Actions
- Hero - Modify Strength of (Triggering unit): Subtract 5.
- Hero - Modify Intelligence of (Triggering unit): Add 5.
-
Events
Any help or direction would be much appreciated!