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
on:load {
local $bananen,$blaetter,$fleisch,$blau;
}
on:trigger {
$bananen=count_stored("object",1,14);
$blaetter=count_stored("object",1,15);
$fleisch=count_stored("object",1,11);
$blau=count_stored("object",1,13);
abs $bananen;
abs $blaetter;
abs $fleisch;
abs $blau;
	if ($bananen>=1)
		{
		if ($blaetter>=20)
			{
			if ($fleisch>=4)
				{
				if ($blau>=6)
					{
					addscript "self","3";
					}
				}
			}
		}
}
1
2
3
4
5
6
7
8
on:trigger {
freestored "object",1,14,1;
freestored "object",1,15,20;
freestored "object",1,11,4;
freestored "object",1,13,6;
msg "Ich habs geschafft!",4,5000;
free "self";
}