-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSF_Auto_Splitter_old.asl
384 lines (338 loc) · 11.6 KB
/
SF_Auto_Splitter_old.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
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
state("ShadowFlare")
{
/*this string doesn't work anymore ugh
string30 dialog : 0x008CE14, 0x30, 0x3C, 0x4, 0x0;
*/
string50 dialog : 0x0080540, 0x0;
int lvl : 0x005CA58, 0x14;
string50 location : 0x00338FC, 0x0;
}
startup
{
//episode 1
settings.Add("ep1", true, "Episode 1 (Main Quests)");
settings.Add("ep1_entrances", true, "Episode 1 (entrances)");
settings.Add("ep1_side", false, "Episode 1 (Side Quests)");
settings.Add("ep2", false, "Episode 2 (Main Quests)");
//episode 1
settings.CurrentDefaultParent = "ep1";
settings.Add("reblin", true, "Red Goblin");
settings.Add("lvl5", true, "level 5");
settings.Add("dusty", true, "Dusty Ruins");
settings.Add("ruby", true, "Rosanna's Ruby");
settings.Add("cold", true, "Cold Ruins");
settings.Add("purgatory", true, "Purgatory of Judgments");
settings.Add("reincarnation", true, "Remains of Reincarnation");
settings.Add("conland", true, "Continuing Land");
settings.Add("garmains", true, "Immortal Remains");
//episode 1 entrances
settings.CurrentDefaultParent = "ep1_entrances";
settings.Add("dusty_entry", true, "Dusty Ruins - entrance");
settings.Add("cold_entry", false, "Cold Ruins - entrance");
settings.Add("purgatory_entry", false, "Purgatory of Judgments - entrance");
settings.Add("reincarnation_entry", false, "Remains of Reincarnation - entrance");
settings.Add("immortal_entry", false, "Immortal Remains - entrance");
//episode 1 side
settings.CurrentDefaultParent = "ep1_side";
settings.Add("malse", true, "Malse's Gem");
settings.Add("syria", true, "Syria's Spirit Stone");
settings.Add("gedo", true, "Errand for Edo");
//episode 2
settings.CurrentDefaultParent = "ep2";
settings.Add("lvl18", true, "level 18");
settings.Add("lvl20", true, "level 20");
settings.Add("thieves", true, "Thieves");
settings.Add("gandalf", true, "You shall not pass!");
settings.Add("wizard", true, "Meet with the Wizard Kirushutat");
settings.Add("crystal", true, "Take back the Seal Crystal");
settings.Add("control", true, "Retake the security and control facility");
settings.Add("power", true, "Recapture the power supply facility");
settings.Add("dragons", true, "Defeat the Dragons!");
//tooltips
settings.SetToolTip("ep1", "Selects episode 1 main quests.");
settings.SetToolTip("ep1_entrances", "Selects episode 1 entrances.");
settings.SetToolTip("ep1_side", "Selects episode 1 side quests.");
settings.SetToolTip("ep2", "Selects episode 2 main quests.");
settings.SetToolTip("dusty_entry", "Splits upon entering the Dusty Ruins.");
settings.SetToolTip("cold_entry", "Splits upon entering the Cold Ruins.");
settings.SetToolTip("purgatory_entry", "Splits upon entering the Purgatory of Judgments.");
settings.SetToolTip("reincarnation_entry", "Splits upon entering the Remains of Reincarnation.");
settings.SetToolTip("immortal_entry", "Splits upon entering the Immortal Remains.");
settings.SetToolTip("reblin", "Splits upon completing the Red Goblin quest.");
settings.SetToolTip("lvl5", "Splits at lvl 5.");
settings.SetToolTip("malse", "Splits upon completing the Malse's Gem quest.");
settings.SetToolTip("syria", "Splits upon completing the Syria's Spirit Stone quest.");
settings.SetToolTip("dusty", "Splits upon completing the Dusty Ruins quest.");
settings.SetToolTip("ruby", "Splits upon completing the Rosanna's ruby quest.");
settings.SetToolTip("cold", "Splits upon completing the Cold Ruins quest.");
settings.SetToolTip("purgatory", "Splits upon completing the Purgatory quest.");
settings.SetToolTip("reincarnation", "Splits upon completing the Reincarnation Gem quest.");
settings.SetToolTip("conland", "Splits upon completing the Continuing conland quest.");
settings.SetToolTip("garmains", "Splits upon entering the episode 1 epilogue screen.");
settings.SetToolTip("gedo", "Splits upon completing the Errand for Gedo quest.");
settings.SetToolTip("lvl20", "Splits at lvl 18.");
settings.SetToolTip("lvl20", "Splits at lvl 20.");
settings.SetToolTip("thieves", "Splits upon completing the 'Destroy Thieves staying SE of Kanfore' quest.");
settings.SetToolTip("gandalf", "Splits upon being refused entrance to the elven city.");
settings.SetToolTip("wizard", "Splits upon completing the 'Meet with the Wizard Kirushutat' quest.");
settings.SetToolTip("crystal", "Splits upon completing the 'Take back the Seal Crystal' quest.");
settings.SetToolTip("control", "Splits upon completing the 'Retake the security and control facility' quest.");
settings.SetToolTip("power", "Splits upon completing the 'Recapture the power supply facility' quest.");
settings.SetToolTip("dragons", "Splits upon completing the 'Defeat the Dragons!' quest.");
}
init
{
refreshRate = 30;
}
start
{
vars.dusty_visited = false;
vars.cold_visited = false;
vars.purgatory_visited = false;
vars.reincarnation_visited = false;
vars.immortal_visited = false;
if (current.lvl != old.lvl && current.lvl == 1)
{
return true;
}
}
/*for debugging
update
{
if (current.dialog != old.dialog)
{
print("old dialog: " + old.dialog);
print("current dialog: " + current.dialog);
}
if (current.location != old.location)
{
print("old location: " + old.location);
print("current location: " + current.location);
}
if (vars.dusty_visited == true)
{
print("Dusty Ruins have been visited.");
}
if (vars.dusty_visited == false)
{
print("Dusty Ruins have yet NOT been visited.");
}
}*/
split
{
//LVL - lvl 5
if (settings["lvl5"] && current.lvl != old.lvl && current.lvl == 5)
{
return true;
}
/*Location Splits (=entrances)
---------------------------------------------------------*/
//LOCATION - entering dusty ruins
if (current.location != old.location)
{
if (settings["dusty_entry"] && current.location.Contains("Dusty Ruins") && vars.dusty_visited == false)
{
vars.dusty_visited = true;
return true;
}
}
//LOCATION - entering cold ruins
if (current.location != old.location)
{
if (settings["cold_entry"] && current.location.Contains("Cold Ruins") && vars.cold_visited == false)
{
vars.cold_visited = true;
return true;
}
}
//LOCATION - entering purgatory of judgments
if (current.location != old.location)
{
if (settings["purgatory_entry"] && current.location.Contains("Purgatory") && vars.purgatory_visited == false)
{
vars.purgatory_visited = true;
return true;
}
}
//LOCATION - entering remains of reincarnation
if (current.location != old.location)
{
if (settings["reincarnation_entry"] && current.location.Contains("Reincarnation") && vars.reincarnation_visited == false)
{
vars.reincarnation_visited = true;
return true;
}
}
//LOCATION - entering immortal remains
if (current.location != old.location)
{
if (settings["immortal_entry"] && current.location.Contains("Immortal Remains") && vars.immortal_visited == false)
{
vars.immortal_visited = true;
return true;
}
}
/*Quest Splits
---------------------------------------------------------*/
//red goblin
if (current.dialog != old.dialog)
{
if (settings["reblin"] && current.dialog.Contains("I heard the news"))
{
return true;
}
}
//malse
if (current.dialog != old.dialog)
{
if (settings["malse"] && current.dialog.Contains("Oh, here you are. That must be"))
{
return true;
}
}
//syria
if (current.dialog != old.dialog)
{
if (settings["syria"] && current.dialog.Contains("Is that the stolen Spirit"))
{
return true;
}
}
//dusty ruins
if (current.dialog != old.dialog)
{
if (settings["dusty"] && current.dialog.Contains("This town is finally"))
{
return true;
}
}
//Rosanna's ruby
if (current.dialog != old.dialog)
{
if (settings["ruby"] && current.dialog.Contains("That must be the memorable ruby"))
{
return true;
}
}
//cold ruins
if (current.dialog != old.dialog)
{
if (settings["cold"] && current.dialog.Contains("You worked really hard."))
{
return true;
}
}
//purgatory
if (current.dialog != old.dialog)
{
if (settings["purgatory"] && current.dialog.Contains("You made it!"))
{
return true;
}
}
//reincarnation
if (current.dialog != old.dialog)
{
if (settings["reincarnation"] && current.dialog.Contains("Thank you for your efforts."))
{
return true;
}
}
//continuing land
if (current.dialog != old.dialog)
{
if (settings["conland"] && current.dialog.Contains("Good job. Your report drew"))
{
return true;
}
}
//epilogue (paired with the immortal garmains option)
if (current.dialog != old.dialog)
{
if (settings["garmains"] && current.dialog.Contains("It seems that peace has been"))
{
return true;
}
}
//errand for Gedo
if (current.dialog != old.dialog)
{
if (settings["gedo"] && current.dialog.Contains("Oh, you brought it back like"))
{
return true;
}
}
//---------------------------- EPISODE 2 ----------------------------
//SPECIAL (lvl) - lvl 18
if (settings["lvl18"] && current.lvl != old.lvl && current.lvl == 18)
{
return true;
}
//SPECIAL (lvl) - lvl 20
if (settings["lvl20"] && current.lvl != old.lvl && current.lvl == 20)
{
return true;
}
//Destroy Thieves staying SE of Kanfore
if (current.dialog != old.dialog)
{
if (settings["thieves"] && current.dialog.Contains("First, here is a reward for"))
{
return true;
}
}
//Head for the mining Tunnel of Yugunos
if (current.dialog != old.dialog)
{
if (settings["gandalf"] && current.dialog.Contains("Couldn't you pass through the"))
{
return true;
}
}
//Meet with the Wizard Kirushutat
if (current.dialog != old.dialog)
{
if (settings["wizard"] && current.dialog.Contains("Welcome, young man."))
{
return true;
}
}
//Take back the Seal Crystal
if (current.dialog != old.dialog)
{
if (settings["crystal"] && current.dialog.Contains("Thank you for bringing it back!"))
{
return true;
}
}
//Retake the security and control facility
if (current.dialog != old.dialog)
{
if (settings["control"] && current.dialog.Contains("Looks like you've recaptured"))
{
return true;
}
}
//Recapture the power supply facility
if (current.dialog != old.dialog)
{
if (settings["power"] && current.dialog.Contains("This is a reward for your efforts."))
{
return true;
}
}
//Defeat the Dragons! (=EPILOGUE)
if (current.dialog != old.dialog)
{
if (settings["dragons"] && current.dialog.Contains("I may be talking to a real hero."))
{
return true;
}
}
}
reset
{
}
isLoading
{
}