1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//adjust 3000 higher if needed
	on:load{
		timer 0,3000,1,"sheep";
	}
	on:sheep{
		if(count("unit",15)>=1){
			loop("units", 15){
				$loop_id = loop_id();
				color 100,100,100,"unit", $loop_id;
				scale 5,5,5,"unit", $loop_id;
			}
		}
	}
1
2
3
4
5
6
7
8
9
10
11
12
13
//with message
	on:sheep{
		if(count("unit",15)>=1){
			loop("units", 15){
				$loop_id = loop_id();
				color 100,100,100,"unit", $loop_id;
				scale 5,5,5,"unit", $loop_id;
			}
		}else{
			msg "No sheep created!",3,20000;
		}
	}