It's doing what I want it to do, but it's causing so much lag. This should be easy to fix. I can't think of alternative.
Main:
Main:
-
Test
-

Events
-


Map initialization
-
-

Conditions
-

Actions
-


Unit - Create 1 Peasant for Neutral Passive at ((Position of Paladin 0000 <gen>) offset by 100.00 towards (Random angle) degrees) facing Default building facing degrees
-


Unit Group - Add (Last created unit) to Peasant_Group
-


Set Peasant_Counts = (Peasant_Counts + 1)
-


Set Peasants[Peasant_Counts] = (Last created unit)
-


Unit - Create 1 Peasant for Neutral Passive at ((Position of Paladin 0000 <gen>) offset by 100.00 towards (Random angle) degrees) facing Default building facing degrees
-


Unit Group - Add (Last created unit) to Peasant_Group
-


Set Peasant_Counts = (Peasant_Counts + 1)
-


Set Peasants[Peasant_Counts] = (Last created unit)
-


Unit - Create 1 Peasant for Neutral Passive at ((Position of Paladin 0000 <gen>) offset by 100.00 towards (Random angle) degrees) facing Default building facing degrees
-


Unit Group - Add (Last created unit) to Peasant_Group
-


Set Peasant_Counts = (Peasant_Counts + 1)
-


Set Peasants[Peasant_Counts] = (Last created unit)
-


Unit - Create 1 Peasant for Neutral Passive at ((Position of Paladin 0000 <gen>) offset by 100.00 towards (Random angle) degrees) facing Default building facing degrees
-


Unit Group - Add (Last created unit) to Peasant_Group
-


Set Peasant_Counts = (Peasant_Counts + 1)
-


Set Peasants[Peasant_Counts] = (Last created unit)
-


Unit - Create 1 Peasant for Neutral Passive at ((Position of Paladin 0000 <gen>) offset by 100.00 towards (Random angle) degrees) facing Default building facing degrees
-


Unit Group - Add (Last created unit) to Peasant_Group
-


Set Peasant_Counts = (Peasant_Counts + 1)
-


Set Peasants[Peasant_Counts] = (Last created unit)
-


Unit - Create 1 Peasant for Neutral Passive at ((Position of Paladin 0000 <gen>) offset by 100.00 towards (Random angle) degrees) facing Default building facing degrees
-


Unit Group - Add (Last created unit) to Peasant_Group
-


Set Peasant_Counts = (Peasant_Counts + 1)
-


Set Peasants[Peasant_Counts] = (Last created unit)
-


Unit - Create 1 Peasant for Neutral Passive at ((Position of Paladin 0000 <gen>) offset by 100.00 towards (Random angle) degrees) facing Default building facing degrees
-


Unit Group - Add (Last created unit) to Peasant_Group
-


Set Peasant_Counts = (Peasant_Counts + 1)
-


Set Peasants[Peasant_Counts] = (Last created unit)
-


Unit - Create 1 Peasant for Neutral Passive at ((Position of Paladin 0000 <gen>) offset by 100.00 towards (Random angle) degrees) facing Default building facing degrees
-


Unit Group - Add (Last created unit) to Peasant_Group
-


Set Peasant_Counts = (Peasant_Counts + 1)
-


Set Peasants[Peasant_Counts] = (Last created unit)
-


Unit - Create 1 Peasant for Neutral Passive at ((Position of Paladin 0000 <gen>) offset by 100.00 towards (Random angle) degrees) facing Default building facing degrees
-


Unit Group - Add (Last created unit) to Peasant_Group
-


Set Peasant_Counts = (Peasant_Counts + 1)
-


Set Peasants[Peasant_Counts] = (Last created unit)
-


Unit - Create 1 Peasant for Neutral Passive at ((Position of Paladin 0000 <gen>) offset by 100.00 towards (Random angle) degrees) facing Default building facing degrees
-


Unit Group - Add (Last created unit) to Peasant_Group
-


Set Peasant_Counts = (Peasant_Counts + 1)
-


Set Peasants[Peasant_Counts] = (Last created unit)
-
-
-
Test2
-

Events
-


Time - Every 0.20 seconds of game time
-
-

Conditions
-

Actions
-


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



Loop - Actions
-




Set Peasant_Random_Move = ((Position of Paladin 0000 <gen>) offset by (Random real number between 50.00 and 150.00) towards (Random angle) degrees)
-




Unit - Order Peasants[Peasant_Counts] to Move To Peasant_Random_Move
-




Custom script: call RemoveLocation (udg_Peasant_Random_Move)
-
-
-
-


Please help, I'm going to bed 
