-
Notifications
You must be signed in to change notification settings - Fork 3
/
21835_signpost_grendelhideout.cos
174 lines (158 loc) · 2.22 KB
/
21835_signpost_grendelhideout.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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
**
**
** Favplace injector
**
**
new: simp 1 1 21835 "blnk" 1 0 0
tick 10
**
** ELEVINE PLACEHOLDERS
**
**
**
** GRENDEL HIDEOUT
*
** The 2nd level elevine
new: simp 3 1 21835 "blnk" 1 1 100
setv ov00 0
mvto 20048 213
*
** The 1st level right elevine
new: simp 3 1 21835 "blnk" 1 1 100
setv ov00 0
mvto 20052 503
*
** The floor level right elevine
new: simp 3 1 21835 "blnk" 1 1 100
setv ov00 0
mvto 20064 857
*
** The 1st level left elevine
new: simp 3 1 21835 "blnk" 1 1 100
setv ov00 1
mvto 19348 496
*
** The floor level left elevine
new: simp 3 1 21835 "blnk" 1 1 100
setv ov00 1
mvto 19258 856
*
** the -1 level elevine
new: simp 3 1 21835 "blnk" 1 1 100
setv ov00 1
mvto 19298 1146
*
** Elevine activator script
new: simp 3 1 21836 "blnk" 1 0 100
tick 10
**
** FAVPLACE INJECTOR TIMER SCRIPT
**
**
scrp 1 1 21835 9
* disable ticks
tick 0
* inst
inst
**
** FAVPLACE GRENDEL HIDEOUT
new: simp 1 3 21835 "gp_favicons_jungle" 1 0 1
attr 272
mvto 19908 651
tick 10
**
slow
* camera to favplaces
cmrp posx posy 0
wait 20
endm
**
** DOOR EVENT SCRIPTS
**
**
*
** PUSH
scrp 2 2 21835 1
seta va52 from
setv va00 ov00
seta va50 targ
seta va51 targ
enum 2 2 21835
doif ov00 eq va00
doif targ ne va50
seta va51 targ
endi
endi
next
targ va51
setv va00 posx
setv va01 posy
targ va52
doif fmly eq 4
lock
doif tmvf va00 va01 eq 1
zomb 1
targ va50
attr 16
anim [0 0 0 0 0 0 0 0]
over
attr 4
targ va51
attr 16
targ va52
** travelled through door
stim writ from 95 1
** no more attention on door
urge writ targ 2 -2 1 -2
mvft va00 va01
zomb 0
** Travelled through door
** Discourage from pushing door any further
targ va51
anim [0 0 0 0 0 0 0 0]
over
attr 4
endi
unlk
endi
doif va52 eq pntr
cmrp va00 va01 1
endi
endm
*
** Removal script
*
rscr
* Favplace
* signpost
enum 1 1 21835
kill targ
next
scrx 1 1 21835 9
enum 1 3 21835
kill targ
next
enum 1 4 21835
setv va00 ov50
kill targ
subv game "ds_favourites" 1
enum 1 4 0
doif ov50 > va00
setv va01 ov50
subv va01 1
setv ov50 va01
setv va02 ov50
mulv va02 50
addv va02 145
flto va02 0
endi
next
next
* Doors
enum 2 2 21835
kill targ
next
* Lift placeholders
enum 3 1 21834
kill targ
next