1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//Eat 	on:eat { 		$event=random(0,3); 		if ($event==1) { 		process "Vomiting",1000; 		eat -60,0,0,15; 		addstate "unit",1,"fuddle"; 		statevalue "unit",1,"fuddle",10; 		addstate "unit",1,"dizzy"; 		statevalue "unit",1,"dizzy",10; 		play "vomit.wav"; 		vomit 1; 	}else{ 		process "eating",1000; 		eat 5,20,10,0;} 	}