You got a lumber mill (it collects lumber) every 2 seconds you get 1 lumber item in that lumber mill if there is a sawmill nearby then every 20 seconds the lumber items should be taken out of the lumbermill and should transform to planks in the sawmill i could not figure out how to do that what i got now is this
-
wood1
-

Events
-


Time - Every 2.00 seconds of game time
-
-

Conditions
-

Actions
-


Unit Group - Pick every unit in (Units of type Lumber Mill) and do (Actions)
-



Loop - Actions
-




Hero - Create Wood and give it to (Picked unit)
-
-
-
-
-
wood1 Copy
-

Events
-


Time - Every 4.00 seconds of game time
-
-

Conditions
-

Actions
-


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



Loop - Actions
-




Set Temp_group3 = (Units owned by (Player((Integer A))) of type Sawmill)
-




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





Loop - Actions
-






Set Temp_Loc_2 = (Position of (Picked unit))
-






Set Temp_group4 = (Units within 512.00 of Temp_Loc_2 matching (((Owner of (Matching unit)) Equal to (Player((Integer A)))) and ((((Matching unit) is alive) Equal to True) and ((Unit-type of (Matching unit)) Equal to Sawmill))))
-






Item - Remove (Item carried by (Picked unit) in slot 1)
-






Custom script: call RemoveLocation(udg_Temp_Loc_2)
-






Custom script: call DestroyGroup(udg_Temp_Group_4)
-
-
-




Custom script: call DestroyGroup(udg_Temp_Group_3)
-
-
-
-



