1
2
3
4
5
6
7
8
9
10
11
12
### Light Flour (3xGrain + Stone)
combi=start
id=lightflour
req=42,3
req=23,1,stay
gen=186
script=start
	play "grind.wav";
	process "grinding",410;
event "iskill_cooking","global";
script=end
combi=end
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
### Light Flour
id=186
name=Light Flour
group=food
icon=gfx\flour.bmp
model=gfx\flour.b3d
scale=0.65
mat=dust
weight=250
info=a pile of light flour. I can mix it with water to get light dough
script=start
	on:use {
		if ( ((count_behaviourinrange("object","fountain",50)+count_behaviourinrange("object","watersource",50))>0) or (inarea_freshwater("unit",1)==1) ){
			play "mat_flesh5.wav";
			alteritem 1,187;
			process "making dough",500;
event "iskill_cooking","global";
		}else{
			msg "I need water!",3;
			speech "negative";
		}
	}
	on:eat {
		process "eating",1000;
		eat 1,10,5,0;
	}
script=end