Moderator
M
Moderator
17:11, 9th Oct 2012
Magtheridon96: This may be short, but it's nonetheless a useful utility.
Well done.
Magtheridon96: This may be short, but it's nonetheless a useful utility.
Well done.
Initialization

Events


Map initialization

Conditions

Actions


-------- Specify Gold Mine Return Ability --------


Set GMDR_Spell = Return Gold and Lumber


-------- Specify unit-types you want to be affected here --------


Set GMDR_BuildingUnitType[1] = Town Hall


-------- Specify how many unit types --------


Set GMDR_UnitTypeCount = 1
Run

Events


Unit - A unit Finishes construction

Conditions

Actions


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



Loop - Actions




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





If - Conditions






(Unit-type of (Triggering unit)) Equal to GMDR_BuildingUnitType[(Integer A)]





Then - Actions






Unit - Add GMDR_Spell to (Triggering unit)





Else - Actions