1
2
3
4
5
6
7
8
9
sheep unit:
	//Spawn 2xWool at Start (the explanitory material that is usually at the start of such codes...)
	on:start {
		local $id; (The ID of the unit in the game while your playing, every thing in the game has 2 IDs, one of the IDs are connected to the map, and one that is connected to the sys folder, which gives it its function-ability, and this is the ID that is connected to the map. so it says, on the local ID)
		$id=create("item",48*ID number*,0,0,2*number of wool*); (Create item 48, {48} is the item id that its supposed to create... in this case its wool, its supposed to create 2 wool on the start of the game, so when you walk up to the animal it will give you 2 wool at the beginning of the game...
		store $id,"self"; (where does it put the wool? in itself, it goes back grabs the variable that it set its ID in, and tells itself to store the wool into that variable ID...)
		freevar $id; (We have no more use for the unit's ID variable, so to free up computer work time, we remove it... with the command Freevar)
	}