I made a trigger that replaces a hero with a different one when he reaches a certain level. But when a player has more of these heroes, I only want only the first to level up to be replaced. So I've created a hashtable to store the replaced units per player and put it into the condition of the trigger, but it doesn't work.
I tried it with booleans too, that didn't work either. Additional question, even though it says they are, the level-up graphics don't show, how would I make them to?
-
Wildling
-

Events
-


Jednotka - A unit Leveled up
-
-

Conditions
-


And - All (Conditions) are true
-



Conditions
-




(Load (Key (Triggering unit)) of (Key (Owner of (Triggering unit))) from WildlingHash) not equal to 1
-




(Unit-type of (Triggering unit)) equals Wildling
-




(Level of (Triggering unit)) equals 5
-
-
-
-

Actions
-


Hashtable - Save 1 as (Key (Triggering unit)) of (Key (Owner of (Triggering unit))) in WildlingHash
-


Jednotka - Replace (Triggering unit) with a Wildling Alpha using Stará jednotka je relativnà life and mana
-


Hrdina - Set (Last replaced unit) Hero-level to 5, show level-up graphics
-
-



