1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
script=start
on:changeday {
loop("count",$count) {
if (count_inrange("unit",26,$radius,"self")<$max){
create "unit",26,(getx("self")+10),(getz("self")+10);
}
}
$amount=$maxamount;
}
on:use {
if ($amount>0) {
find 503,1;
$amount--;
}
}
on:start { local $amount; $amount=$maxamount; }
on:create { local $amount; $amount=$maxamount; }
on:spawn { local $amount; $amount=$maxamount; }
script=end
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
##################
# BID: 27
# GID: 0
# File: objects_stuff
##################
#!NEXT
id=197
name=Kiwinest
icon=gfx\kiwinest.bmp
group=hoard,stuff,std
model=gfx\kiwinest.b3d
health=30
mat=leaf
fx=16
scale=0.5
var=radius,Radius,500,0
var=count,Kiwis pro Tag,1,0
var=max,Kiwis maximal,1,0
var=maxamount,Eier pro Tag,3,0
)