lol, now you'll be surprised, I don't know what MPI means. XD
EDIT: I decided to explain better the hashtables here.
First, notice that there are two units involved with your skill:
The hero that casts it, and the dummy that we created.
So, when you hero stops casting the skill, I mean, the duration of the blizzard has ended, we need to remove the dummy, in order to make it stop the real blizzard.
-
Blizzard Stopped
-
Events
-
Unit - A unit Stops casting an ability
-
Conditions
-
(Ability being cast) Equal to Animate Dead
-
Actions
-
-------- we want to remove the dummy --------
-
Unit - Remove (?????????) from the game
The problem here is:
What we put at the ????? to be the dummy? In other words, when your hero stops the blizzard, how can we pick the related dummy?
We could make a unit variable, for example, "LastDummy". But, let's say a hero casts the dummy blizzard (that lasts 7 seconds), and after 2 seconds, other hero also casts the dummy blizzard. The LastDummy variable would be replaced, and when everything ends, only 1 dummy would be removed.
So, I decided to suggest a solution with hashtables to you.
With that, I can do something that would be similar of:
-
Set tempUnit = (dummy-caster linked to (Triggering Unit))
-
Unit - Remove tempUnit from the game
So, hashtables are the solution.
EDIT: thanks for the rep man!