Actions: Set [IntegerVariable] = Count number of units of type [UnitType] in (Entire Map) owned by Player Set [IntegerVariable] = [IntegerVariable] x [IntegerVariable2] Add [IntegerVariable] to players gold. Set [IntegerVariable] = 0.
UnitType is the type of unit you wish to generate money. IntegerVariable is the count for the unit type. IntegerVariable2 is the amount of money you wish each unit to generate. Hope that helps.