-
Notifications
You must be signed in to change notification settings - Fork 0
/
_main.hss
556 lines (472 loc) · 11.5 KB
/
_main.hss
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
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
plotscript, defnewgame, begin
addHero(hero:weeble)
set level cap (10)
show text box (56)
end
plotscript,usepotty,begin
if (not(check tag(2)))
then (
set hero picture (find hero(hero:grolblie), 8)
show text box(1)
wait for text box
show text box(2)
wait for text box
show text box (3)
wait for text box
reset hero picture(find hero(hero:grolblie))
show text box(4)
wait for text box
show text box(5)
wait for text box
show text box(6)
wait for text box
set tag(2, on)
)
else(
show text box(7)
wait for text box)
end
plotscript,opentrashcan,blank,who,begin
variable(which)
which:=random(0,9)
if (NPC Direction(who) == 0)
then (
get item name(0,which)
get item(which)
set npc direction(who,left)
show text box(8)
wait for text box
)
else (show text box(18)
wait for text box)
end
plotscript,pannedPete,begin
if (not(check tag(3)))
then (
alter NPC (5,NPCstat:move type,NPCmovetype:walkinplace)
show text box(9)
)
else(
alter NPC (5,NPCstat:move type,NPCmovetype:walkinplace)
show text box(17)
wait for text box)
end
plotscript,afterTalkPete,begin
alter NPC (5,NPCstat:move type,NPCmovetype:wander)
end
plotscript,tacoMancometh,begin
if (not(check tag(4)))
then (
suspend player
show text box(19)
wait for text box
walk npc(10,right,5)
wait(23)
set tag(4,on)
show text box(20)
wait for text box
show text box(21)
wait for text box
show text box(22)
wait for text box
show text box(23)
wait for text box
show text box(24)
wait for text box
show text box(25)
wait for text box
resume player
)
else (
show text box(26)
wait for text box)
end
plotscript,GrackleTalk,begin
if (not(check tag(7)))
then(
suspend npcs
show text box(28)
wait for text box
show text box(29)
wait for text box
show text box(30)
wait for text box
show text box(31)
wait for text box
show text box(32)
wait for text box
show text box(33)
wait for text box
show text box(34)
wait for text box
show text box(35)
wait for text box
show text box(36)
wait for text box
show text box(37)
wait for text box
show text box(38)
wait for text box
show text box(39)
wait for text box
show text box(40)
wait for text box
show text box(41)
wait for text box
show text box(42)
wait for text box
show text box(43)
wait for text box
set tag(5,on)
resume npcs
)
else (
show text box(44)
wait for text box
)
end
plotscript,tacoPiss,begin
play sound (0)
end
plotscript,GameIntro,begin
show text box (56)
end
plotscript,HealAfterBattle,begin
if (get hero stat(hero:Weeble, stat:HP)<= 0)
then (set hero stat(hero:Weeble, stat:HP, 1))
if (get hero stat(hero:Grolblie, stat:HP)<= 0)
then (set hero stat(hero:Grolblie, stat:HP, 1))
end
#start of instead of battle script
#==================================================================================
#==================================================================================
define constant, begin
#max level of each formation set
3, levelcheck1
6, levelcheck2
9, levelcheck3
10, levelcheck4
15, levelcheck5
18, levelcheck6
#formation that you set in editor to trigger normal scaling set
1, parkinglotformation #change 0 to be formation that triggers normal set
#formation set numbers of each scaling set
1, parkingset1 #change the 0 to be the number of the formation you want to fight
3, parkingset2
4, parkingset3 #ditto
5, parkingset4
0, parkingset5 #ditto
0, parkingset6
#formation that you set in editor to trigger bird scaling set
1, birdformation #change 0 to be formation that triggers bird set
#same as above, but for birds
0, birdset1 #change the 0 to be the number of the formation you want to fight
0, birdset2
0, birdset3 #ditto
0, birdset4
0, birdset5 #ditto
0, birdset6
#formation that you set in editor to trigger sewer scaling set
2, sewerformation #change 0 to be formation that triggers sewer set
#same as above, but for sewer
0, sewerset1 #change the 0 to be the number of the formation you want to fight
0, sewerset2
0, sewerset3 #ditto
0, sewerset4
0, sewerset5 #ditto
0, sewerset6
end
#This takes the above numbers and chooses the formation you fight.
#Set as an instead of battle script.
#
#it also fully heals the party and revives members.
plotscript, defbattlescript, asdfasdfaf, formation, begin
switch (formation) do (
case (parkinglotformation) do (
if (get hero level (me) <= levelcheck1) then (
fight formation (random formation (parkingset1))
) else if (get hero level (me) <= levelcheck2) then (
fight formation (random formation (parkingset2))
) else if (get hero level (me) <= levelcheck3) then (
fight formation (random formation (parkingset3))
) else if (get hero level (me) <= levelcheck4) then (
fight formation (random formation (parkingset4))
) else if (get hero level (me) <= levelcheck5) then (
fight formation (random formation (parkingset5))
) else (
fight formation (random formation (parkingset6))
)
)
case (birdformation) do (
if (get hero level (me) <= levelcheck1) then (
fight formation (random formation (birdset1))
) else if (get hero level (me) <= levelcheck2) then (
fight formation (random formation (birdset2))
) else if (get hero level (me) <= levelcheck3) then (
fight formation (random formation (birdset3))
) else if (get hero level (me) <= levelcheck4) then (
fight formation (random formation (birdset4))
) else if (get hero level (me) <= levelcheck5) then (
fight formation (random formation (birdset5))
) else (
fight formation (random formation (birdset6))
)
)
case (sewerformation) do (
if (get hero level (me) <= levelcheck1) then (
fight formation (random formation (sewerset1))
) else if (get hero level (me) <= levelcheck2) then (
fight formation (random formation (sewerset2))
) else if (get hero level (me) <= levelcheck3) then (
fight formation (random formation (sewerset3))
) else if (get hero level (me) <= levelcheck4) then (
fight formation (random formation (sewerset4))
) else if (get hero level (me) <= levelcheck5) then (
fight formation (random formation (sewerset5))
) else (
fight formation (random formation (sewerset6))
)
) else (
$99="you did not set the formation correctly, either in editor or in .hss file"
script error (0)
$99=""
)
)
heal party (true)
end
#==================================================================================
#==================================================================================
#end of instead of battle script
#lines to add to other existing scripts
#==================================================================================
#==================================================================================
#add this line to new game script:
#set level cap (cap)
plotscript,smokeEvaporate,begin
suspend player
set npc direction(15,right)
wait(3)
set npc direction(15,down)
wait(3)
set npc direction(15,left)
wait(3)
set npc position(15,1,5)
set npc direction(15,up)
resume player
show text box(71)
end
plotscript,hoboDisapear,begin
suspend player
set npc position(15,25,4)
set npc direction(15,up)
set tag(5,on)
wait(7)
set npc direction(15,right)
wait(3)
set npc direction(15,down)
wait(3)
set npc direction(15,left)
wait(3)
set tag(6,on)
resume player
show text box(72)
end
#set to be the default on step script in the sewer map
plotscript, waterstep, begin
variable (sli, i, waterzone)
#change the 0 here to be the zone that is placed where there is water.
waterzone := 2
#step picture (who, new walkabout)
stepPicture(me, 22) #change the 0 to be the water walkabout of first hero
stepPicture(1, 23)
#checks for waterzone at spot to change walkabout to new walkabout
subscript, stepPicture, who, new, begin
variable (x, y)
resetHeroPicture(who)
x := heroX(who)
y := heroY(who)
if (zone at spot (x,y)==waterzone) then (
setHeroPicture(who, new)
play sound (2)
)
end
end
plotscript,wagonMount,begin
alter NPC (21,NPCstat:picture,24)
end
plotscript,wagonDismount,begin
alter NPC (21,NPCstat:picture,25)
end
plotscript,map0Autorun,begin
resetheropicture(me)
if (hero by slot(1) == -1)
then ()
else (
resetheropicture(1))
end
plotscript,peteBabyget,begin
if (inventory(item:BabyMan) == 1)
then (show text box (108))
else if(inventory(item:BabyMan) == 2)
then(show text box(109))
else if(inventory(item:BabyMan) == 3)
then (show text box(110))
aftertalkpete
end
plotscript,milkyTime,begin
suspend npcs
suspend random enemies
suspend player
walk hero to x(me,11)
wait for hero(me)
walk hero to y(me,4)
waitfor hero(me)
walk hero to x(me,11)
wait for hero(me)
walk hero to x(1,12)
wait for hero(1)
walk hero to y(1,4)
wait for hero
walk hero to x(1,12)
wait for hero(1)
set npc position(22,11,2)
set npc direction(22,down)
set hero direction(me,up)
set hero direction(1,up)
show text box(136)
wait for text box
show text box(137)
wait for text box
show text box(138)
wait for text box
show text box(139)
wait for text box
show text box(140)
wait for text box
show text box(141)
wait for text box
show text box(142)
wait for text box
show text box(143)
wait for text box
show text box(144)
wait for text box
show text box(145)
wait for text box
show text box(146)
wait for text box
show text box(147)
wait for text box
show text box(148)
wait for text box
set tag(10,false)
set tag(11,false)
set tag(12,false)
set npc position(9,10,2)
set npc position(8,12,2)
set npc position(7,11,3)
set npc direction(9,right)
set npc direction(8,left)
set npc direction(7,up)
suspend npcs
show text box(149)
wait for text box
show text box(150)
wait for text box
alter NPC (22,NPCstat:picture,27)
show text box(151)
wait for text box
walk npc to y(22,1)
wait for npc(22)
walk npcto x(22,13)
wait for npc(22)
walk npcto y(8,1)
wait for npc(8)
walk npc tox(8,12)
wait for npc(8)
set npc direction(8,right)
wait (10)
set tag(11,true)
walk npcto y(9,1)
wait for npc(9)
walk npcto x(9,12)
wait for npc(9)
set tag(12,true)
walk npcto y(7,1)
wait for npc(7)
walk npcto x(7,12)
wait for npc(7)
set tag(10,true)
resume npcs
alter NPC (22,NPCstat:move type,NPCmovetype:walkinplace)
show text box(152)
wait for text box
set hero direction(me,right)
wait (7)
show text box(153)
wait for text box
set hero direction(1,left)
wait(7)
show text box(154)
wait for text box
show text box(155)
wait for text box
set hero direction(me,up)
set hero direction(1,up)
show text box(156)
wait for text box
show text box(157)
wait for text box
show text box(158)
wait for text box
show text box(159)
wait for text box
show text box(160)
wait for text box
set tag(19,true)
set tag(15,true)
set tag(16,true)
set tag(17,true)
set tag(18,true)
wait(65)
alter NPC (26,NPCstat:picture,32)
set tag(20,on)
walk npc to y(27,0)
wait for npc(27)
walk npc to x(27,10)
wait for npc(27)
walk npc to y(27,2)
wait for npc(27)
alter NPC (23,NPCstat:move type,NPCmovetype:standstill)
alter NPC (24,NPCstat:move type,NPCmovetype:standstill)
alter NPC (25,NPCstat:move type,NPCmovetype:standstill)
alter NPC (26,NPCstat:move type,NPCmovetype:standstill)
wait(35)
set npc direction(26,left)
wait(2)
set npc direction(26,up)
wait(4)
set npc direction(26,left)
wait(2)
set npc direction(26,up)
wait(4)
set hero direction(me,right)
wait(12)
set hero direction(1,left)
wait (12)
set hero direction(me,up)
set hero direction(1,up)
wait(45)
alter NPC (23,NPCstat:move type,NPCmovetype:walkinplace)
alter NPC (24,NPCstat:move type,NPCmovetype:walkinplace)
alter NPC (25,NPCstat:move type,NPCmovetype:walkinplace)
alter NPC (26,NPCstat:move type,NPCmovetype:walkinplace)
show text box(161)
wait for text box
show text box(162)
wait for text box
show text box(163)
wait for text box
resume player
resume random enemies
end