Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Initialization

Events


Map initialization

Conditions

Actions


Set Count = (Count + 1)


Set FirstAgeUnitTypes[Count] = Lumber Mill


Set SecondAgeUnitTypes[Count] = Blacksmith


Set ThirdAgeUnitTypes[Count] = Workshop


Set Count = (Count + 1)


Set FirstAgeUnitTypes[Count] = Scout Tower


Set SecondAgeUnitTypes[Count] = Guard Tower


Set ThirdAgeUnitTypes[Count] = Cannon Tower


Set Count = (Count + 1)


Set FirstAgeUnitTypes[Count] = Barracks


Set SecondAgeUnitTypes[Count] = High Elven Barracks


Set ThirdAgeUnitTypes[Count] = Arcane Sanctum


Player Group - Pick every player in (All players) and do (Actions)



Loop - Actions




Set SpecificAge[(Player number of (Picked player))] = 1
PlayerAdvancing

Events


Unit - A unit Finishes an upgrade

Conditions


Or - Any (Conditions) are true



Conditions




(Unit-type of (Triggering unit)) Equal to Town Hall




(Unit-type of (Triggering unit)) Equal to Keep




(Unit-type of (Triggering unit)) Equal to Castle

Actions


Set SpecificAge[(Player number of (Owner of (Triggering unit)))] = (SpecificAge[(Player number of (Owner of (Triggering unit)))] + 1)


Set AdvanceEverything = (Units owned by (Owner of (Triggering unit)) matching ((((Matching unit) is A structure) Equal to True) and (((Matching unit) is alive) Equal to True)))


Unit Group - Pick every unit in AdvanceEverything and do (Actions)



Loop - Actions




For each (Integer A) from 1 to Count, do (Actions)





Loop - Actions






If (All Conditions are True) then do (Then Actions) else do (Else Actions)







If - Conditions








SpecificAge[(Player number of (Owner of (Triggering unit)))] Equal to 2








(Unit-type of (Picked unit)) Equal to FirstAgeUnitTypes[(Integer A)]







Then - Actions








Unit - Replace (Picked unit) with a SecondAgeUnitTypes[(Integer A)] using The old unit's relative life and mana







Else - Actions








If (All Conditions are True) then do (Then Actions) else do (Else Actions)









If - Conditions










SpecificAge[(Player number of (Owner of (Triggering unit)))] Equal to 3










(Unit-type of (Picked unit)) Equal to SecondAgeUnitTypes[(Integer A)]









Then - Actions










Unit - Replace (Picked unit) with a ThirdAgeUnitTypes[(Integer A)] using The old unit's relative life and mana









Else - Actions


Custom script: call DestroyGroup( udg_AdvanceEverything )
hm, on the contrary, abilities made by blizzard actually leaks alittle bit.
Actually i'm quoting you on that comment GhostWolf.
In another thread of which I have been writing in too, you say that you preferred to trigger to damage an unit every x seconds, instead of making a dummy ability and dummy unit doing it.
And as well, you said that blizzards abilities were stupid
Maybe I've understood it wrong then... but cursing wont do it better
How can triggers be more efficient then the abilities that have been writen by blizzard staff, which im 100% sure has a better understanding of the raw codes than any none-staff map makers. The abilities are only ineffecient because they have limitations not because of leaks.