if you just want to have mirror images level up when a hero levels, you can just make a trigger that is something like:
- Code: Select all
Untitled Trigger 001
Events
Unit - A unit Gains a level
Conditions
(Unit-type of (Triggering unit)) Equal to Blademaster
Actions
Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
And - All (Conditions) are true
Conditions
((Picked unit) is Summoned) Equal to True
(Unit-type of (Picked unit)) Equal to Blademaster
(Owner of (Picked unit)) Equal to (Triggering player)
Then - Actions
Hero - Set (Picked unit) Hero-level to ((Hero level of (Picked unit)) + 1), Show level-up graphics
Else - Actions
Do nothing
This will make it so any time a hero levels up, the game will pick every unit, then check if:
1) the unit is summoned
2) the unit is a blademaster
3) the unit belongs to player whose Blademaster leveled up
if this is true, it levels up the blademaster image and shows the graphics.