summaryrefslogtreecommitdiff
path: root/data/scripts/maps/Route110_TrickHouseEntrance.inc
blob: 4bf7eb10af079e8e174cfa85ad5b6037f1095cdd (plain)
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
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
Route110_TrickHouseEntrance_MapScripts:: @ 8269A50
	map_script 3, Route110_TrickHouseEntrance_MapScript1_269A60
	map_script 2, Route110_TrickHouseEntrance_MapScript2_269CEE
	map_script 4, Route110_TrickHouseEntrance_MapScript2_269BD3
	.byte 0

Route110_TrickHouseEntrance_MapScript1_269A60: @ 8269A60
	setflag FLAG_LANDMARK_TRICK_HOUSE
	compare VAR_0x40B5, 1
	goto_eq Route110_TrickHouseEntrance_EventScript_269AF3
	compare VAR_0x40C1, 1
	goto_eq Route110_TrickHouseEntrance_EventScript_269AD7
	compare VAR_0x40A6, 1
	goto_eq Route110_TrickHouseEntrance_EventScript_269BB3
	compare VAR_0x40A7, 5
	call_if 1, Route110_TrickHouseEntrance_EventScript_269B03
	compare VAR_0x40A7, 3
	call_if 1, Route110_TrickHouseEntrance_EventScript_269B03
	compare VAR_0x40A7, 0
	call_if 1, Route110_TrickHouseEntrance_EventScript_269B03
	switch VAR_0x40A7
	case 0, Route110_TrickHouseEntrance_EventScript_269BBB
	case 1, Route110_TrickHouseEntrance_EventScript_269BC1
	case 3, Route110_TrickHouseEntrance_EventScript_269BC7
	case 4, Route110_TrickHouseEntrance_EventScript_269BCD
	end

Route110_TrickHouseEntrance_EventScript_269AD7:: @ 8269AD7
	setvar VAR_0x40A5, 1
	compare VAR_0x4044, 8
	goto_eq Route110_TrickHouseEntrance_EventScript_269AED
	setvar VAR_0x40A7, 2
	end

Route110_TrickHouseEntrance_EventScript_269AED:: @ 8269AED
	setvar VAR_0x40A7, 6
	end

Route110_TrickHouseEntrance_EventScript_269AF3:: @ 8269AF3
	setvar VAR_0x40B5, 0
	setvar VAR_0x40A7, 5
	setvar VAR_0x40A5, 1
	end

Route110_TrickHouseEntrance_EventScript_269B03:: @ 8269B03
	setvar VAR_0x40A7, 0
	compare VAR_0x4044, 1
	call_if 1, Route110_TrickHouseEntrance_EventScript_269B61
	compare VAR_0x4044, 2
	call_if 1, Route110_TrickHouseEntrance_EventScript_269B6B
	compare VAR_0x4044, 3
	call_if 1, Route110_TrickHouseEntrance_EventScript_269B75
	compare VAR_0x4044, 4
	call_if 1, Route110_TrickHouseEntrance_EventScript_269B7F
	compare VAR_0x4044, 5
	call_if 1, Route110_TrickHouseEntrance_EventScript_269B89
	compare VAR_0x4044, 6
	call_if 1, Route110_TrickHouseEntrance_EventScript_269B93
	compare VAR_0x4044, 7
	call_if 1, Route110_TrickHouseEntrance_EventScript_269B9D
	compare VAR_0x4044, 8
	call_if 1, Route110_TrickHouseEntrance_EventScript_269BA7
	return

Route110_TrickHouseEntrance_EventScript_269B61:: @ 8269B61
	checkflag FLAG_BADGE03_GET
	call_if 0, Route110_TrickHouseEntrance_EventScript_269BAD
	return

Route110_TrickHouseEntrance_EventScript_269B6B:: @ 8269B6B
	checkflag FLAG_BADGE04_GET
	call_if 0, Route110_TrickHouseEntrance_EventScript_269BAD
	return

Route110_TrickHouseEntrance_EventScript_269B75:: @ 8269B75
	checkflag FLAG_BADGE05_GET
	call_if 0, Route110_TrickHouseEntrance_EventScript_269BAD
	return

Route110_TrickHouseEntrance_EventScript_269B7F:: @ 8269B7F
	checkflag FLAG_BADGE06_GET
	call_if 0, Route110_TrickHouseEntrance_EventScript_269BAD
	return

Route110_TrickHouseEntrance_EventScript_269B89:: @ 8269B89
	checkflag FLAG_BADGE07_GET
	call_if 0, Route110_TrickHouseEntrance_EventScript_269BAD
	return

Route110_TrickHouseEntrance_EventScript_269B93:: @ 8269B93
	checkflag FLAG_BADGE08_GET
	call_if 0, Route110_TrickHouseEntrance_EventScript_269BAD
	return

Route110_TrickHouseEntrance_EventScript_269B9D:: @ 8269B9D
	checkflag FLAG_SYS_GAME_CLEAR
	call_if 0, Route110_TrickHouseEntrance_EventScript_269BAD
	return

Route110_TrickHouseEntrance_EventScript_269BA7:: @ 8269BA7
	setvar VAR_0x40A7, 4
	return

Route110_TrickHouseEntrance_EventScript_269BAD:: @ 8269BAD
	setvar VAR_0x40A7, 3
	return

Route110_TrickHouseEntrance_EventScript_269BB3:: @ 8269BB3
	setobjectxyperm 1, 5, 2
	end

Route110_TrickHouseEntrance_EventScript_269BBB:: @ 8269BBB
	setvar VAR_0x40A5, 0
	end

Route110_TrickHouseEntrance_EventScript_269BC1:: @ 8269BC1
	setvar VAR_0x40A5, 1
	end

Route110_TrickHouseEntrance_EventScript_269BC7:: @ 8269BC7
	setvar VAR_0x40A5, 1
	end

Route110_TrickHouseEntrance_EventScript_269BCD:: @ 8269BCD
	setvar VAR_0x40A5, 1
	end

Route110_TrickHouseEntrance_MapScript2_269BD3: @ 8269BD3
	map_script_2 VAR_0x40A6, 1, Route110_TrickHouseEntrance_EventScript_269C15
	map_script_2 VAR_0x40A7, 0, Route110_TrickHouseEntrance_EventScript_269C26
	map_script_2 VAR_0x40A7, 1, Route110_TrickHouseEntrance_EventScript_269CCC
	map_script_2 VAR_0x40A7, 2, Route110_TrickHouseEntrance_EventScript_269CD0
	map_script_2 VAR_0x40A7, 3, Route110_TrickHouseEntrance_EventScript_269CD0
	map_script_2 VAR_0x40A7, 4, Route110_TrickHouseEntrance_EventScript_269CCC
	map_script_2 VAR_0x40A7, 5, Route110_TrickHouseEntrance_EventScript_269CCC
	map_script_2 VAR_0x40A7, 6, Route110_TrickHouseEntrance_EventScript_269CDF
	.2byte 0

Route110_TrickHouseEntrance_EventScript_269C15:: @ 8269C15
	addobject 1
	showobjectat 1, ROUTE_110_TRICK_HOUSE_ENTRANCE
	turnobject 1, 4
	turnobject 255, 3
	end

Route110_TrickHouseEntrance_EventScript_269C26:: @ 8269C26
	addobject 1
	hideobjectat 1, ROUTE_110_TRICK_HOUSE_ENTRANCE
	switch VAR_0x4044
	case 0, Route110_TrickHouseEntrance_EventScript_269C8C
	case 1, Route110_TrickHouseEntrance_EventScript_269C94
	case 2, Route110_TrickHouseEntrance_EventScript_269C9C
	case 3, Route110_TrickHouseEntrance_EventScript_269CA4
	case 4, Route110_TrickHouseEntrance_EventScript_269CAC
	case 5, Route110_TrickHouseEntrance_EventScript_269CB4
	case 6, Route110_TrickHouseEntrance_EventScript_269CBC
	case 7, Route110_TrickHouseEntrance_EventScript_269CC4
	end

Route110_TrickHouseEntrance_EventScript_269C8C:: @ 8269C8C
	setobjectxy 1, 6, 3
	end

Route110_TrickHouseEntrance_EventScript_269C94:: @ 8269C94
	setobjectxy 1, 11, 5
	end

Route110_TrickHouseEntrance_EventScript_269C9C:: @ 8269C9C
	setobjectxy 1, 9, 1
	end

Route110_TrickHouseEntrance_EventScript_269CA4:: @ 8269CA4
	setobjectxy 1, 3, 1
	end

Route110_TrickHouseEntrance_EventScript_269CAC:: @ 8269CAC
	setobjectxy 1, 0, 5
	end

Route110_TrickHouseEntrance_EventScript_269CB4:: @ 8269CB4
	setobjectxy 1, 11, 1
	end

Route110_TrickHouseEntrance_EventScript_269CBC:: @ 8269CBC
	setobjectxy 1, 8, 1
	end

Route110_TrickHouseEntrance_EventScript_269CC4:: @ 8269CC4
	setobjectxy 1, 4, 4
	end

Route110_TrickHouseEntrance_EventScript_269CCC:: @ 8269CCC
	removeobject 1
	end

Route110_TrickHouseEntrance_EventScript_269CD0:: @ 8269CD0
	addobject 1
	setobjectxy 1, 5, 2
	turnobject 1, 2
	end

Route110_TrickHouseEntrance_EventScript_269CDF:: @ 8269CDF
	addobject 1
	setobjectxy 1, 5, 2
	turnobject 1, 1
	end

Route110_TrickHouseEntrance_MapScript2_269CEE: @ 8269CEE
	map_script_2 VAR_0x40A6, 1, Route110_TrickHouseEntrance_EventScript_269CF8
	.2byte 0

Route110_TrickHouseEntrance_EventScript_269CF8:: @ 8269CF8
	lockall
	delay 20
	compare VAR_0x4044, 0
	call_if 1, Route110_TrickHouseEntrance_EventScript_269E48
	msgbox Route110_TrickHouseEntrance_Text_26A78C, 4
	closemessage
	delay 20
	applymovement 1, Route110_TrickHouseEntrance_Movement_269E36
	waitmovement 0
	playse SE_W153
	applymovement 1, Route110_TrickHouseEntrance_Movement_269E3F
	waitmovement 0
	removeobject 1
	setvar VAR_0x40A7, 1
	setvar VAR_0x40A6, 0
	releaseall
	end

Route110_TrickHouseEntrance_EventScript_269D39:: @ 8269D39
	releaseall
	end

Route110_TrickHouseEntrance_EventScript_269D3B:: @ 8269D3B
	lockall
	switch VAR_0x40A7
	case 0, Route110_TrickHouseEntrance_EventScript_269D6E
	case 2, Route110_TrickHouseEntrance_EventScript_269E8F
	case 3, Route110_TrickHouseEntrance_EventScript_269E51
	case 6, Route110_TrickHouseEntrance_EventScript_26A039
	end

Route110_TrickHouseEntrance_EventScript_269D6E:: @ 8269D6E
	playse SE_PIN
	applymovement 255, Route110_TrickHouseEntrance_Movement_272598
	waitmovement 0
	applymovement 255, Route110_TrickHouseEntrance_Movement_27259A
	waitmovement 0
	compare VAR_0x4044, 0
	call_if 1, Route110_TrickHouseEntrance_EventScript_269DEE
	compare VAR_0x4044, 1
	call_if 1, Route110_TrickHouseEntrance_EventScript_269DF7
	compare VAR_0x4044, 2
	call_if 1, Route110_TrickHouseEntrance_EventScript_269E00
	compare VAR_0x4044, 3
	call_if 1, Route110_TrickHouseEntrance_EventScript_269E09
	compare VAR_0x4044, 4
	call_if 1, Route110_TrickHouseEntrance_EventScript_269E12
	compare VAR_0x4044, 5
	call_if 1, Route110_TrickHouseEntrance_EventScript_269E1B
	compare VAR_0x4044, 6
	call_if 1, Route110_TrickHouseEntrance_EventScript_269E24
	compare VAR_0x4044, 7
	call_if 1, Route110_TrickHouseEntrance_EventScript_269E2D
	closemessage
	setvar VAR_0x40A6, 1
	warpsilent ROUTE_110_TRICK_HOUSE_ENTRANCE, 255, 6, 2
	waitstate
	releaseall
	end

Route110_TrickHouseEntrance_EventScript_269DEE:: @ 8269DEE
	msgbox Route110_TrickHouseEntrance_Text_26A48A, 4
	return

Route110_TrickHouseEntrance_EventScript_269DF7:: @ 8269DF7
	msgbox Route110_TrickHouseEntrance_Text_26A4DA, 4
	return

Route110_TrickHouseEntrance_EventScript_269E00:: @ 8269E00
	msgbox Route110_TrickHouseEntrance_Text_26A529, 4
	return

Route110_TrickHouseEntrance_EventScript_269E09:: @ 8269E09
	msgbox Route110_TrickHouseEntrance_Text_26A577, 4
	return

Route110_TrickHouseEntrance_EventScript_269E12:: @ 8269E12
	msgbox Route110_TrickHouseEntrance_Text_26A5C8, 4
	return

Route110_TrickHouseEntrance_EventScript_269E1B:: @ 8269E1B
	msgbox Route110_TrickHouseEntrance_Text_26A616, 4
	return

Route110_TrickHouseEntrance_EventScript_269E24:: @ 8269E24
	msgbox Route110_TrickHouseEntrance_Text_26A665, 4
	return

Route110_TrickHouseEntrance_EventScript_269E2D:: @ 8269E2D
	msgbox Route110_TrickHouseEntrance_Text_26A6B6, 4
	return

Route110_TrickHouseEnd_Movement_269E36: @ 8269E36
Route110_TrickHouseEntrance_Movement_269E36: @ 8269E36
	step_01
	step_12
	step_02
	step_12
	step_00
	step_12
	step_03
	step_12
	step_end

Route110_TrickHouseEnd_Movement_269E3F: @ 8269E3F
Route110_TrickHouseEntrance_Movement_269E3F: @ 8269E3F
	step_01
	step_52
	step_32
	step_32
	step_32
	step_32
	step_32
	step_32
	step_end

Route110_TrickHouseEntrance_EventScript_269E48:: @ 8269E48
	msgbox Route110_TrickHouseEntrance_Text_26A709, 4
	return

Route110_TrickHouseEntrance_EventScript_269E51:: @ 8269E51
	msgbox Route110_TrickHouseEntrance_Text_26A921, 4
	closemessage
	applymovement 1, Route110_TrickHouseEntrance_Movement_27259E
	waitmovement 0
	playse SE_PIN
	applymovement 1, Route110_TrickHouseEntrance_Movement_272598
	waitmovement 0
	applymovement 1, Route110_TrickHouseEntrance_Movement_27259A
	waitmovement 0
	msgbox Route110_TrickHouseEntrance_Text_26A9AF, 4
	applymovement 1, Route110_TrickHouseEntrance_Movement_2725A6
	waitmovement 0
	releaseall
	end

Route110_TrickHouseEntrance_EventScript_269E8F:: @ 8269E8F
	applymovement 1, Route110_TrickHouseEntrance_Movement_27259E
	waitmovement 0
	msgbox Route110_TrickHouseEntrance_Text_26AA82, 4
	compare VAR_0x4044, 1
	goto_eq Route110_TrickHouseEntrance_EventScript_269EEF
	compare VAR_0x4044, 2
	goto_eq Route110_TrickHouseEntrance_EventScript_269F1B
	compare VAR_0x4044, 3
	goto_eq Route110_TrickHouseEntrance_EventScript_269F47
	compare VAR_0x4044, 4
	goto_eq Route110_TrickHouseEntrance_EventScript_269F73
	compare VAR_0x4044, 5
	goto_eq Route110_TrickHouseEntrance_EventScript_269F9F
	compare VAR_0x4044, 6
	goto_eq Route110_TrickHouseEntrance_EventScript_269FCB
	compare VAR_0x4044, 7
	goto_eq Route110_TrickHouseEntrance_EventScript_269FF7
	end

Route110_TrickHouseEntrance_EventScript_269EEF:: @ 8269EEF
	giveitem_std ITEM_RARE_CANDY
	compare VAR_RESULT, 1
	goto_eq Route110_TrickHouseEntrance_EventScript_26A023
	compare VAR_RESULT, 0
	call_if 1, Route110_TrickHouseEntrance_EventScript_27205E
	msgbox Route110_TrickHouseEntrance_Text_26AB00, 4
	releaseall
	end

Route110_TrickHouseEntrance_EventScript_269F1B:: @ 8269F1B
	giveitem_std ITEM_TIMER_BALL
	compare VAR_RESULT, 1
	goto_eq Route110_TrickHouseEntrance_EventScript_26A023
	compare VAR_RESULT, 0
	call_if 1, Route110_TrickHouseEntrance_EventScript_27205E
	msgbox Route110_TrickHouseEntrance_Text_26AB00, 4
	releaseall
	end

Route110_TrickHouseEntrance_EventScript_269F47:: @ 8269F47
	giveitem_std ITEM_HARD_STONE
	compare VAR_RESULT, 1
	goto_eq Route110_TrickHouseEntrance_EventScript_26A023
	compare VAR_RESULT, 0
	call_if 1, Route110_TrickHouseEntrance_EventScript_27205E
	msgbox Route110_TrickHouseEntrance_Text_26AB00, 4
	releaseall
	end

Route110_TrickHouseEntrance_EventScript_269F73:: @ 8269F73
	giveitem_std ITEM_SMOKE_BALL
	compare VAR_RESULT, 1
	goto_eq Route110_TrickHouseEntrance_EventScript_26A023
	compare VAR_RESULT, 0
	call_if 1, Route110_TrickHouseEntrance_EventScript_27205E
	msgbox Route110_TrickHouseEntrance_Text_26AB00, 4
	releaseall
	end

Route110_TrickHouseEntrance_EventScript_269F9F:: @ 8269F9F
	giveitem_std ITEM_TM12
	compare VAR_RESULT, 1
	goto_eq Route110_TrickHouseEntrance_EventScript_26A023
	compare VAR_RESULT, 0
	call_if 1, Route110_TrickHouseEntrance_EventScript_27205E
	msgbox Route110_TrickHouseEntrance_Text_26AB00, 4
	releaseall
	end

Route110_TrickHouseEntrance_EventScript_269FCB:: @ 8269FCB
	giveitem_std ITEM_MAGNET
	compare VAR_RESULT, 1
	goto_eq Route110_TrickHouseEntrance_EventScript_26A023
	compare VAR_RESULT, 0
	call_if 1, Route110_TrickHouseEntrance_EventScript_27205E
	msgbox Route110_TrickHouseEntrance_Text_26AB00, 4
	releaseall
	end

Route110_TrickHouseEntrance_EventScript_269FF7:: @ 8269FF7
	giveitem_std ITEM_PP_MAX
	compare VAR_RESULT, 1
	goto_eq Route110_TrickHouseEntrance_EventScript_26A023
	compare VAR_RESULT, 0
	call_if 1, Route110_TrickHouseEntrance_EventScript_27205E
	msgbox Route110_TrickHouseEntrance_Text_26AB00, 4
	releaseall
	end

Route110_TrickHouseEntrance_EventScript_26A023:: @ 826A023
	setvar VAR_0x40C1, 0
	setvar VAR_0x40A7, 3
	applymovement 1, Route110_TrickHouseEntrance_Movement_2725A6
	waitmovement 0
	releaseall
	end

Route110_TrickHouseEntrance_EventScript_26A039:: @ 826A039
	applymovement 1, Route110_TrickHouseEntrance_Movement_27259E
	waitmovement 0
	msgbox Route110_TrickHouseEntrance_Text_26AB2C, 4
	call Route110_TrickHouseEntrance_EventScript_26A070
	compare VAR_RESULT, 1
	goto_eq Route110_TrickHouseEntrance_EventScript_26A09A
	compare VAR_RESULT, 0
	call_if 1, Route110_TrickHouseEntrance_EventScript_272071
	msgbox Route110_TrickHouseEntrance_Text_26ABBD, 4
	releaseall
	end

Route110_TrickHouseEntrance_EventScript_26A070:: @ 826A070
	multichoice 0, 0, 88, 1
	switch VAR_RESULT
	case 0, Route110_TrickHouseEntrance_EventScript_26A08A
	goto Route110_TrickHouseEntrance_EventScript_26A092

Route110_TrickHouseEntrance_EventScript_26A08A:: @ 826A08A
	givedecoration_std 31
	return

Route110_TrickHouseEntrance_EventScript_26A092:: @ 826A092
	givedecoration_std 32
	return

Route110_TrickHouseEntrance_EventScript_26A09A:: @ 826A09A
	msgbox Route110_TrickHouseEntrance_Text_26ABAE, 4
	closemessage
	applymovement 1, Route110_TrickHouseEntrance_Movement_26D632
	waitmovement 0
	applymovement 1, Route110_TrickHouseEntrance_Movement_269E36
	waitmovement 0
	playse SE_W153
	applymovement 1, Route110_TrickHouseEntrance_Movement_269E3F
	waitmovement 0
	removeobject 1
	setvar VAR_0x40C1, 0
	setvar VAR_0x40A7, 5
	releaseall
	end

Route110_TrickHouseEntrance_EventScript_26A0D3:: @ 826A0D3
	lockall
	switch VAR_0x40A7
	case 0, Route110_TrickHouseEntrance_EventScript_26A106
	case 1, Route110_TrickHouseEntrance_EventScript_26A110
	case 4, Route110_TrickHouseEntrance_EventScript_26A201
	case 5, Route110_TrickHouseEntrance_EventScript_26A20B
	end

Route110_TrickHouseEntrance_EventScript_26A106:: @ 826A106
	msgbox Route110_TrickHouseEntrance_Text_26A878, 4
	releaseall
	end

Route110_TrickHouseEntrance_EventScript_26A110:: @ 826A110
	msgbox Route110_TrickHouseEntrance_Text_26A887, 5
	closemessage
	compare VAR_RESULT, 1
	goto_eq Route110_TrickHouseEntrance_EventScript_26A126
	releaseall
	end

Route110_TrickHouseEntrance_EventScript_26A126:: @ 826A126
	setmetatile 5, 1, 537, 0
	special DrawWholeMapView
	delay 20
	applymovement 255, Route110_TrickHouseEntrance_Movement_2725C9
	waitmovement 0
	applymovement 255, Route110_TrickHouseEntrance_Movement_26A1A7
	waitmovement 0
	switch VAR_0x4044
	case 0, Route110_TrickHouseEntrance_EventScript_26A1A9
	case 1, Route110_TrickHouseEntrance_EventScript_26A1B4
	case 2, Route110_TrickHouseEntrance_EventScript_26A1BF
	case 3, Route110_TrickHouseEntrance_EventScript_26A1CA
	case 4, Route110_TrickHouseEntrance_EventScript_26A1D5
	case 5, Route110_TrickHouseEntrance_EventScript_26A1E0
	case 6, Route110_TrickHouseEntrance_EventScript_26A1EB
	case 7, Route110_TrickHouseEntrance_EventScript_26A1F6
	end

Route110_TrickHouseEntrance_Movement_26A1A7: @ 826A1A7
	step_54
	step_end

Route110_TrickHouseEntrance_EventScript_26A1A9:: @ 826A1A9
	warp ROUTE_110_TRICK_HOUSE_PUZZLE_1, 255, 0, 21
	waitstate
	releaseall
	end

Route110_TrickHouseEntrance_EventScript_26A1B4:: @ 826A1B4
	warp ROUTE_110_TRICK_HOUSE_PUZZLE_2, 255, 0, 21
	waitstate
	releaseall
	end

Route110_TrickHouseEntrance_EventScript_26A1BF:: @ 826A1BF
	warp ROUTE_110_TRICK_HOUSE_PUZZLE_3, 255, 0, 21
	waitstate
	releaseall
	end

Route110_TrickHouseEntrance_EventScript_26A1CA:: @ 826A1CA
	warp ROUTE_110_TRICK_HOUSE_PUZZLE_4, 255, 0, 21
	waitstate
	releaseall
	end

Route110_TrickHouseEntrance_EventScript_26A1D5:: @ 826A1D5
	warp ROUTE_110_TRICK_HOUSE_PUZZLE_5, 255, 0, 21
	waitstate
	releaseall
	end

Route110_TrickHouseEntrance_EventScript_26A1E0:: @ 826A1E0
	warp ROUTE_110_TRICK_HOUSE_PUZZLE_6, 255, 0, 21
	waitstate
	releaseall
	end

Route110_TrickHouseEntrance_EventScript_26A1EB:: @ 826A1EB
	warp ROUTE_110_TRICK_HOUSE_PUZZLE_7, 255, 0, 21
	waitstate
	releaseall
	end

Route110_TrickHouseEntrance_EventScript_26A1F6:: @ 826A1F6
	warp ROUTE_110_TRICK_HOUSE_PUZZLE_8, 255, 0, 21
	waitstate
	releaseall
	end

Route110_TrickHouseEntrance_EventScript_26A201:: @ 826A201
	msgbox Route110_TrickHouseEntrance_Text_26A8BD, 4
	releaseall
	end

Route110_TrickHouseEntrance_EventScript_26A20B:: @ 826A20B
	compare VAR_0x4044, 8
	goto_eq Route110_TrickHouseEntrance_EventScript_26A220
	msgbox Route110_TrickHouseEntrance_Text_26A878, 4
	releaseall
	end

Route110_TrickHouseEntrance_EventScript_26A220:: @ 826A220
	msgbox Route110_TrickHouseEntrance_Text_26A8BD, 4
	releaseall
	end

Route110_TrickHouseEntrance_EventScript_26A22A:: @ 826A22A
	lockall
	switch VAR_0x4044
	case 0, Route110_TrickHouseEntrance_EventScript_26A289
	case 1, Route110_TrickHouseEntrance_EventScript_26A2B2
	case 2, Route110_TrickHouseEntrance_EventScript_26A2DB
	case 3, Route110_TrickHouseEntrance_EventScript_26A304
	case 4, Route110_TrickHouseEntrance_EventScript_26A32D
	case 5, Route110_TrickHouseEntrance_EventScript_26A356
	case 6, Route110_TrickHouseEntrance_EventScript_26A37F
	case 7, Route110_TrickHouseEntrance_EventScript_26A3A8
	end

Route110_TrickHouseEntrance_EventScript_26A289:: @ 826A289
	compare VAR_0x40AB, 0
	goto_eq Route110_TrickHouseEntrance_EventScript_26A3D1
	msgbox Route110_TrickHousePuzzle1_Text_26B98D, 4
	playse SE_PIN
	setvar VAR_0x40AB, 2
	setmetatile 13, 1, 523, 0
	special DrawWholeMapView
	releaseall
	end

Route110_TrickHouseEntrance_EventScript_26A2B2:: @ 826A2B2
	compare VAR_0x40AC, 0
	goto_eq Route110_TrickHouseEntrance_EventScript_26A3D1
	msgbox Route110_TrickHousePuzzle2_Text_26BCBA, 4
	playse SE_PIN
	setvar VAR_0x40AC, 2
	setmetatile 13, 1, 523, 0
	special DrawWholeMapView
	releaseall
	end

Route110_TrickHouseEntrance_EventScript_26A2DB:: @ 826A2DB
	compare VAR_0x40AD, 0
	goto_eq Route110_TrickHouseEntrance_EventScript_26A3D1
	msgbox Route110_TrickHousePuzzle3_Text_26C609, 4
	playse SE_PIN
	setvar VAR_0x40AD, 2
	setmetatile 13, 1, 523, 0
	special DrawWholeMapView
	releaseall
	end

Route110_TrickHouseEntrance_EventScript_26A304:: @ 826A304
	compare VAR_0x40AE, 0
	goto_eq Route110_TrickHouseEntrance_EventScript_26A3D1
	msgbox Route110_TrickHousePuzzle4_Text_26C8C3, 4
	playse SE_PIN
	setvar VAR_0x40AE, 2
	setmetatile 13, 1, 523, 0
	special DrawWholeMapView
	releaseall
	end

Route110_TrickHouseEntrance_EventScript_26A32D:: @ 826A32D
	compare VAR_0x40AF, 0
	goto_eq Route110_TrickHouseEntrance_EventScript_26A3D1
	msgbox Route110_TrickHousePuzzle5_Text_26D660, 4
	playse SE_PIN
	setvar VAR_0x40AF, 2
	setmetatile 13, 1, 523, 0
	special DrawWholeMapView
	releaseall
	end

Route110_TrickHouseEntrance_EventScript_26A356:: @ 826A356
	compare VAR_0x40B0, 0
	goto_eq Route110_TrickHouseEntrance_EventScript_26A3D1
	msgbox Route110_TrickHousePuzzle6_Text_26DE26, 4
	playse SE_PIN
	setvar VAR_0x40B0, 2
	setmetatile 13, 1, 523, 0
	special DrawWholeMapView
	releaseall
	end

Route110_TrickHouseEntrance_EventScript_26A37F:: @ 826A37F
	compare VAR_0x40B1, 0
	goto_eq Route110_TrickHouseEntrance_EventScript_26A3D1
	msgbox Route110_TrickHousePuzzle7_EventScript_26E413, 4
	playse SE_PIN
	setvar VAR_0x40B1, 2
	setmetatile 13, 1, 523, 0
	special DrawWholeMapView
	releaseall
	end

Route110_TrickHouseEntrance_EventScript_26A3A8:: @ 826A3A8
	compare VAR_0x40B2, 0
	goto_eq Route110_TrickHouseEntrance_EventScript_26A3D1
	msgbox Route110_TrickHousePuzzle8_EventScript_26E864, 4
	playse SE_PIN
	setvar VAR_0x40B2, 2
	setmetatile 13, 1, 523, 0
	special DrawWholeMapView
	releaseall
	end

Route110_TrickHouseEntrance_EventScript_26A3D1:: @ 826A3D1
	msgbox Route110_TrickHouseEntrance_Text_26AC4F, 4
	releaseall
	end

Route110_TrickHousePuzzle1_EventScript_26A3DB:: @ 826A3DB
Route110_TrickHousePuzzle2_EventScript_26A3DB:: @ 826A3DB
Route110_TrickHousePuzzle3_EventScript_26A3DB:: @ 826A3DB
Route110_TrickHousePuzzle4_EventScript_26A3DB:: @ 826A3DB
Route110_TrickHousePuzzle5_EventScript_26A3DB:: @ 826A3DB
Route110_TrickHousePuzzle6_EventScript_26A3DB:: @ 826A3DB
Route110_TrickHousePuzzle7_EventScript_26A3DB:: @ 826A3DB
Route110_TrickHousePuzzle8_EventScript_26A3DB:: @ 826A3DB
	msgbox Route110_TrickHousePuzzle1_Text_26AC2F, 4
	releaseall
	end

Route110_TrickHousePuzzle1_EventScript_26A3E5:: @ 826A3E5
Route110_TrickHousePuzzle2_EventScript_26A3E5:: @ 826A3E5
Route110_TrickHousePuzzle3_EventScript_26A3E5:: @ 826A3E5
Route110_TrickHousePuzzle4_EventScript_26A3E5:: @ 826A3E5
Route110_TrickHousePuzzle5_EventScript_26A3E5:: @ 826A3E5
Route110_TrickHousePuzzle6_EventScript_26A3E5:: @ 826A3E5
Route110_TrickHousePuzzle7_EventScript_26A3E5:: @ 826A3E5
Route110_TrickHousePuzzle8_EventScript_26A3E5:: @ 826A3E5
	playfanfare MUS_FANFA4
	message Route110_TrickHousePuzzle1_Text_26ABE8
	waitfanfare
	msgbox Route110_TrickHousePuzzle1_Text_26ABFB, 4
	releaseall
	end

Route110_TrickHouseEntrance_EventScript_26A3F8:: @ 826A3F8
	lockall
	msgbox Route110_TrickHouseEntrance_Text_26A474, 4
	releaseall
	compare VAR_0x4044, 0
	call_if 1, Route110_TrickHouseEntrance_EventScript_26A429
	compare VAR_0x4044, 1
	call_if 1, Route110_TrickHouseEntrance_EventScript_26A439
	compare VAR_0x4044, 2
	call_if 1, Route110_TrickHouseEntrance_EventScript_26A449
	setvar VAR_0x40A5, 1
	end

Route110_TrickHouseEntrance_EventScript_26A429:: @ 826A429
	setvar VAR_0x8004, 6
	setvar VAR_0x8005, 3
	call Route110_TrickHouseEntrance_EventScript_26A459
	return

Route110_TrickHouseEntrance_EventScript_26A439:: @ 826A439
	setvar VAR_0x8004, 11
	setvar VAR_0x8005, 5
	call Route110_TrickHouseEntrance_EventScript_26A459
	return

Route110_TrickHouseEntrance_EventScript_26A449:: @ 826A449
	setvar VAR_0x8004, 9
	setvar VAR_0x8005, 2
	call Route110_TrickHouseEntrance_EventScript_26A459
	return

Route110_TrickHouseEntrance_EventScript_26A459:: @ 826A459
	setvar VAR_0x8006, 0
	setfieldeffectargument 0, VAR_0x8004
	setfieldeffectargument 1, VAR_0x8005
	setfieldeffectargument 2, VAR_0x8006
	dofieldeffect 54
	waitfieldeffect 54
	delay 10
	return

Route110_TrickHouseEntrance_Text_26A474: @ 826A474
	.string "You’re being watched…$"

Route110_TrickHouseEntrance_Text_26A48A: @ 826A48A
	.string "Hah? Grrr…\p"
	.string "How did you know I concealed myself\n"
	.string "beneath this desk? You’re sharp!$"

Route110_TrickHouseEntrance_Text_26A4DA: @ 826A4DA
	.string "Hah? Grrr…\p"
	.string "How did you know I concealed myself\n"
	.string "behind this tree? You’re sharp!$"

Route110_TrickHouseEntrance_Text_26A529: @ 826A529
	.string "Hah? Grrr…\p"
	.string "How did you know I concealed myself\n"
	.string "in this dresser? You’re sharp!$"

Route110_TrickHouseEntrance_Text_26A577: @ 826A577
	.string "Hah? Grrr…\p"
	.string "How did you know I concealed myself\n"
	.string "beyond this window? You’re sharp!$"

Route110_TrickHouseEntrance_Text_26A5C8: @ 826A5C8
	.string "Hah? Grrr…\p"
	.string "How did you know I concealed myself\n"
	.string "in this planter? You’re sharp!$"

Route110_TrickHouseEntrance_Text_26A616: @ 826A616
	.string "Hah? Grrr…\p"
	.string "How did you know I concealed myself\n"
	.string "in this cupboard? You’re sharp!$"

Route110_TrickHouseEntrance_Text_26A665: @ 826A665
	.string "Hah? Grrr…\p"
	.string "How did you know I concealed myself\n"
	.string "behind this window? You’re sharp!$"

Route110_TrickHouseEntrance_Text_26A6B6: @ 826A6B6
	.string "Hah? Grrr…\p"
	.string "How did you know I concealed myself\n"
	.string "beneath this cushion? You’re sharp!$"

Route110_TrickHouseEntrance_Text_26A709: @ 826A709
	.string "Behold!\p"
	.string "For I am the greatest living mystery\n"
	.string "of a man in all of HOENN!\l"
	.string "They call me…\p"
	.string "The TRICK MASTER!\n"
	.string "Wahahaha! Glad to meet you!$"

Route110_TrickHouseEntrance_Text_26A78C: @ 826A78C
	.string "You, you’ve come to challenge\n"
	.string "my TRICK HOUSE, haven’t you?\p"
	.string "That’s why you’re here, isn’t it?\n"
	.string "Yes, it is!\p"
	.string "Consider your challenge accepted!\p"
	.string "Enter through the scroll there,\n"
	.string "and let your challenge commence!\p"
	.string "I shall be waiting in the back!$"

Route110_TrickHouseEntrance_Text_26A878: @ 826A878
	.string "It’s a scroll.$"

Route110_TrickHouseEntrance_Text_26A887: @ 826A887
	.string "There is a big hole behind the scroll!\p"
	.string "Want to go in?$"

Route110_TrickHouseEntrance_Text_26A8BD: @ 826A8BD
	.string "There is a note affixed to the scroll…\p"
	.string "“I am leaving on a journey.\n"
	.string "Don’t look for me. TRICK MASTER”$"

Route110_TrickHouseEntrance_Text_26A921: @ 826A921
	.string "For the next time, I’ll use this trick,\n"
	.string "and that scheme, and those ruses…\p"
	.string "Mufufufu… If I may say so, it’s\n"
	.string "brilliantly difficult, even for me!$"

Route110_TrickHouseEntrance_Text_26A9AF: @ 826A9AF
	.string "Hah? What?!\n"
	.string "Oh, it’s you!\p"
	.string "I’m in the midst of devising new tricky\n"
	.string "challenges!\p"
	.string "It’s not too much to ask for a bit more\n"
	.string "time for me to think, is it now?\l"
	.string "You wouldn’t begrudge me that?\l"
	.string "Come back in a little while!$"

Route110_TrickHouseEntrance_Text_26AA82: @ 826AA82
	.string "Ah, it’s you! You’re here to accept the\n"
	.string "reward from before, isn’t that right?\l"
	.string "Yes, right I am!\p"
	.string "Here!\n"
	.string "I’ll give it to you now!$"

Route110_TrickHouseEntrance_Text_26AB00: @ 826AB00
	.string "Hah?\n"
	.string "Did you not come to claim your reward?$"

Route110_TrickHouseEntrance_Text_26AB2C: @ 826AB2C
	.string "MECHADOLL 5 I AM!\n"
	.string "IF REWARD IS NOT TAKEN BY YOU,\l"
	.string "THEN TRICK MASTER YOU CANNOT FOLLOW.\p"
	.string "RED TENT OR BLUE TENT,\n"
	.string "WHICH DO YOU PREFER?$"

Route110_TrickHouseEntrance_Text_26ABAE: @ 826ABAE
	.string "THEN FAREWELL.$"

Route110_TrickHouseEntrance_Text_26ABBD: @ 826ABBD
	.string "YOUR PC STATUS: FULL AGAIN.\n"
	.string "MEAN, YOU ARE.$"

Route110_TrickHousePuzzle1_Text_26ABE8: @ 826ABE8
	.string "{PLAYER} found a scroll.$"

Route110_TrickHousePuzzle1_Text_26ABFB: @ 826ABFB
	.string "{PLAYER} memorized the secret code\n"
	.string "written on the scroll.$"

Route110_TrickHousePuzzle1_Text_26AC2F: @ 826AC2F
	.string "A secret code is written on it.$"

Route110_TrickHouseEntrance_Text_26AC4F: @ 826AC4F
	.string "The door is locked.\p"
	.string "…On closer inspection, this is written\n"
	.string "on it: “Write the secret code here.”$"