-
Notifications
You must be signed in to change notification settings - Fork 1
/
36463_seed.cos
82 lines (75 loc) · 1.07 KB
/
36463_seed.cos
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
**
** Seed script
**
**
** Creation script
**
** Seed creation
scrp 2 3 36463 1000
* Attr: mouseable 2 + collide 64 + physics 128 = 194
attr 194
* Bhvr: eat 16 + pick up 32
bhvr 48
* Set physics attributes
accg 2
aero 3
* Set collision attributes
perm 60
fric 60
elas 30
* Emit seed smell
emit 7 0.3
* Move to the spot if possible
doif tmvt _p1_ _p2_ ne 0
mvto _p1_ _p2_
else
kill targ
endi
tick rand 100 200
endm
**
** Eat script
**
** Seed eat
scrp 2 3 36463 12
stim writ from 77 2
kill ownr
endm
**
** Timer script
**
** Seed
scrp 2 3 36463 9
* If more than 3 in the vicinity, kill this one
setv va00 0
rnge 400
esee 2 3 36463
addv va00 1
next
doif va00 gt 3
gsub detritus
endi
* if around for long enough, kill it
targ ownr
tick rand 200 400
addv ov00 1
doif carr eq null
doif ov00 gt 10
gsub detritus
endi
endi
subr detritus
slow
targ ownr
setv va00 posl
setv va01 post
new: simp 2 10 36463 "betaship_dead" 1 2 rand 1000 3000
mesg wrt+ targ 1000 va00 va01 0
targ ownr
attr 16
show 0
wait 20
kill ownr
stop
retn
endm