-
Notifications
You must be signed in to change notification settings - Fork 0
/
hype the time quest autosplitter.asl
309 lines (304 loc) · 9.34 KB
/
hype the time quest autosplitter.asl
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
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
state("MAIDFXVR_BLEU")
{
string40 level : 0x1ECC5E;
byte granslak : 0x1E682C;
byte breastplate : 0x323AE8;
}
update
{
print(current.level);
print(vars.actualsplit);
}
init
{
vars.granslakkilled = false;
vars.donable = false;
vars.db2 = false;
vars.db = false;
vars.once = false;
vars.ooc = false;
vars.taken = false;
vars.takenbreat = true;
vars.atlciv = false;
vars.bltorras = false;
vars.splittrigger = false;
vars.catchable = false;
vars.done = false;
vars.donable2 = false;
vars.unrepeatable = false;
vars.hereonce = false;
vars.t1f = false;
vars.t2f = false;
vars.t3f = false;
vars.enostkilled = false;
vars.voithded = false;
vars.splitbreaker = 0;
vars.firsttime = false;
vars.unchanged = false;
vars.actualsplit = "";
vars.dragon = false;
vars.armorcomplete = true;
vars.firstboss = 0;
vars.senekal = false;
}
start
{
//split to start the game
if (old.level == "fix.ptx" && current.level == @"manoir\manoir.ptx"){
vars.granslakkilled = false;
vars.donable = false;
vars.db2 = false;
vars.db = false;
vars.once = false;
vars.ooc = false;
vars.taken = false;
vars.takenbreat = false;
vars.atlciv = false;
vars.bltorras = false;
vars.splittrigger = false;
vars.catchable = false;
vars.done = false;
vars.donable2 = false;
vars.armorcomplete = false;
vars.unrepeatable = false;
vars.hereonce = false;
vars.t1f = false;
vars.t2f = false;
vars.t3f = false;
vars.enostkilled = false;
vars.voithded = false;
vars.splitbreaker = 0;
vars.firsttime = false;
vars.unchanged = false;
vars.dragon = false;
vars.firstboss = 0;
vars.senekal = false;
return true;
}
}
reset
{
//split to reset the game
if (current.level == "fix.ptx"){
return true;
}
}
split
{
//split to senekal weapons
if(current.level == @"casino\casino.ptx" && vars.splitbreaker >= 4 && vars.armorcomplete == true && vars.senekal == true){
return true;
vars.actualsplit = "Senekal split";
}
//configuring jewel of mankind
if(current.level == @"casino\casino.ptx" && current.granslak > 0 && old.granslak == 0 && vars.firstboss < 2){
vars.firstboss += 1;
}
if (vars.firstboss == 2 && vars.catchable == false){
vars.catchable = true;
}
if (vars.catchable == true && old.breastplate == 0 && current.breastplate > 0 && vars.senekal == false && vars.firstboss == 2){
vars.splitbreaker += 1;
}
if (old.level == @"casino\casino.ptx" && current.level == @"toras2\toras2.ptx" && vars.senekal == false){
vars.done = false;
vars.senekal = true;
}
//split to jewel of mankind
if (vars.splitbreaker == 2 && current.level == @"casino\casino.ptx" && vars.armorcomplete == false && vars.catchable == true && vars.firstboss == 2){
vars.armorcomplete = true;
vars.catchable = false;
vars.splitbreaker = 0;
vars.done = true;
return true;
vars.actualsplit = "jewel of mankind";
}
//configuring royal jewel
if (current.granslak > 0 && current.breastplate == 1 && current.level == @"monast1\monast1.ptx"){
vars.splittrigger = true;
}
if (vars.splittrigger == true && vars.donable == false && current.breastplate == 0){
vars.donable = true;
}
//split from royal jewel
if (vars.splittrigger == true && vars.donable == true && current.breastplate == 1){
vars.splittrigger = false;
vars.donable = false;
return true;
vars.actualsplit = "split of royal jewel";
}
//split to torras I
if (current.level == @"toras\toras.ptx" && vars.bltorras == false){
vars.bltorras = true;
return true;
vars.actualsplit = "torras split";
}
//configurating breastplate
if (old.level == @"fort\fort.ptx" && current.level == @"cachots\cachots.ptx"){
vars.firsttime = true;
}
if (vars.taken == true && old.level == @"fort\fort.ptx" && current.level == @"toras\toras.ptx"){
vars.taken = false;
vars.hereonce = true;
}
//split to breastplate
if (current.level == @"fort\fort.ptx" && vars.firsttime == true && vars.hereonce == false && old.breastplate == 0 && current.breastplate > 0){
vars.splitbreaker += 1;
}
if (current.level == @"fort\fort.ptx" && vars.splitbreaker == 2 && vars.takenbreat == false){
vars.splitbreaker = 0;
vars.takenbreat = true;
return true;
}
//split to torras 2
if (current.level == @"toras2\toras2.ptx" && vars.donable2 == false){
vars.donable2 = true;
return true;
vars.actualsplit = "era 2 split";
}
//split from torras II to torras III
if (old.level == @"toras2\toras2.ptx" && current.level == @"toras3\toras3.ptx" && vars.db == false){
vars.db = true;
return true;
vars.actualsplit = "era 3 split";
}
//configing jewel of virtue
if (current.level == @"cite3\cite3.ptx" && vars.splitbreaker >= 8){
vars.ooc = true;
vars.splitbreaker = 0;
}
//split to jewel of virtue
if (current.level == @"cite3\cite3.ptx" && vars.ooc == true && vars.splitbreaker == 1 && current.breastplate == 1){
vars.splitbreaker = 0;
return true;
vars.actualsplit = "jewel of virtue split";
}
else if (current.level == @"cite3\cite3.ptx" && old.breastplate == 0 && current.breastplate > 0) {
vars.splitbreaker += 1;
}
//split to era IV in torras
if (old.level == @"toras3\toras3.ptx" && current.level == @"toras4\toras4.ptx" && vars.once == false){
vars.once = true;
return true;
vars.actualsplit = "era 4 split";
}
//split from Dungeons to fortress
if (old.level == @"cachots4\cachots4.ptx" && current.level == @"fort4\fort4.ptx"){
return true;
vars.actualsplit = "Hype's room split";
}
//configuring lost city IV
if (current.level == @"cite4\cite4.ptx"){
vars.ooc = false;
vars.takenbreat = false;
vars.atlciv = true;
vars.taken = false;
}
//split lost city IV
if (vars.atlciv == true){
if (vars.splitbreaker >= 6 && current.breastplate > 0 && vars.ooc == false && vars.taken == false && vars.takenbreat == false){
vars.ooc = true;
vars.taken = true;
vars.takenbreat = true;
vars.atlciv = false;
return true;
vars.actualsplit = "jewel of the gods split";
}
else if (current.breastplate > 0 && old.breastplate == 0){
vars.splitbreaker += 1;
}
}
//configuring boots & spliting boots
if (current.level == @"brigand3\brigand3.ptx" && current.breastplate == 1 && vars.splitbreaker >= 5){
vars.splitbreaker = 0;
return true;
vars.actualsplit = "boots split";
}
else if (current.level == @"brigand3\brigand3.ptx" && old.breastplate == 0){
vars.splitbreaker += 1;
}
//configuring laboratories almanac
if (current.level == @"labo3\labo3.ptx" && old.granslak == 0 && vars.unrepeatable == false){
vars.unrepeatable = true;
}
//splting laboratories almanac
if (vars.unrepeatable == true && vars.breastplate == 1){
vars.unrepeatable = false;
return true;
vars.actualsplit = "laboratories split";
}
//configuring monastery almanac
if (current.level == @"monast3\monast3.ptx" && old.breastplate == 0){
vars.splitbreaker += 1;
}
//spliting monastery almanac
if (current.level == @"monast3\monast3.ptx" && current.breastplate == 1 && vars.splitbreaker >= 2){
vars.splitbreaker = 0;
return true;
vars.actualsplit = "monastery split";
}
//spliting enost almanac
if (current.level == @"tour3\tour3.ptx" && old.level != "fix.ptx" && current.breastplate == 1 && vars.splitbreaker >= 5){
vars.splitbreaker = 0;
return true;
vars.actualsplit = "Enost split";
}
else if (current.level == @"tour3\tour3.ptx" && old.breastplate == 0){
vars.splitbreaker += 1;
}
if (current.level == @"tour3\tour3.ptx" && old.level == "fix.ptx" && current.breastplate == 1 && vars.splitbreaker >= 2){
vars.splitbreaker = 0;
return true;
vars.actualsplit = "Enost split";
}
//spliting to T3 flag
if (current.level == @"casino3\casino3.ptx" && current.breastplate == 1 && vars.splitbreaker >= 2){
vars.splitbreaker = 0;
vars.t3f = true;
return true;
vars.actualsplit = "T3 split";
}
//config T3 flag
if(current.level == @"casino3\casino3.ptx" && old.breastplate == 0){
vars.splitbreaker += 1;
}
//split T1 flag
if (vars.hereonce == true && current.level == @"fort\fort.ptx" && vars.splitbreaker >= 2 && current.breastplate == 1){
vars.splitbreaker = 0;
vars.t1f = true;
return true;
vars.actualsplit = "T1 split";
}
//split T2 flag
if (current.level == @"monast2\monast2.ptx" && vars.splitbreaker >= 2 && current.breastplate == 1){
vars.splitbreaker = 0;
vars.t2f = true;
return true;
vars.actualsplit = "T2 split";
}
//split to T4
if (current.level == @"toras4\toras4.ptx" && vars.splitbreaker >= 3 && current.breastplate == 1 && vars.t1f == true && vars.t2f == true && vars.t3f == true){
vars.splitbreaker = 0;
return true;
vars.actualsplit = "T4 split";
}
//split to enost
if (vars.splitbreaker >= 7 && current.breastplate == 1 && vars.enostkilled == false && current.level == @"tour\tour.ptx"){
vars.enostkilled = true;
vars.splitbreaker = 0;
return true;
vars.actualsplit = "enost boss split";
}
else if (current.level == @"tour\tour.ptx" && old.breastplate == 0){
vars.splitbreaker += 1;
}
//configuring barnak
if (vars.splitbreaker == 9 && current.level == @"toptower\toptower.ptx"){
vars.voithded = true;
}
//split barnak
if (vars.voithded == true && old.granslak > 0 && current.granslak == 0){
return true;
vars.actualsplit = "barnak split";
}
}