blob: c575b7caf3cbbf4c5e6603dc1984d0ded955d9ec (
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
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
|
enum_start
enum scall_command
scall: macro
db scall_command
dw \1 ; pointer
endm
enum farscall_command
farscall: macro
db farscall_command
dba \1
endm
enum ptcall_command
ptcall: macro
db ptcall_command
dw \1 ; pointer
endm
enum jump_command
jump: macro
db jump_command
dw \1 ; pointer
endm
enum farjump_command
farjump: macro
db farjump_command
dba \1
endm
enum ptjump_command
ptjump: macro
db ptjump_command
dw \1 ; pointer
endm
enum if_equal_command
if_equal: macro
db if_equal_command
db \1 ; byte
dw \2 ; pointer
endm
enum if_not_equal_command
if_not_equal: macro
db if_not_equal_command
db \1 ; byte
dw \2 ; pointer
endm
enum iffalse_command
iffalse: macro
db iffalse_command
dw \1 ; pointer
endm
enum iftrue_command
iftrue: macro
db iftrue_command
dw \1 ; pointer
endm
enum if_greater_than_command
if_greater_than: macro
db if_greater_than_command
db \1 ; byte
dw \2 ; pointer
endm
enum if_less_than_command
if_less_than: macro
db if_less_than_command
db \1 ; byte
dw \2 ; pointer
endm
enum jumpstd_command
jumpstd: macro
db jumpstd_command
dw \1 ; predefined_script
endm
enum callstd_command
callstd: macro
db callstd_command
dw \1 ; predefined_script
endm
enum callasm_command
callasm: macro
db callasm_command
dba \1
endm
enum special_command
special: macro
db special_command
dw (\1Special - SpecialsPointers) / 3
endm
add_special: MACRO
\1Special::
dba \1
ENDM
enum ptcallasm_command
ptcallasm: macro
db ptcallasm_command
dw \1 ; asm
endm
enum checkmaptriggers_command
checkmaptriggers: macro
db checkmaptriggers_command
map \1 ; map
endm
enum domaptrigger_command
domaptrigger: macro
db domaptrigger_command
map \1 ; map
db \2 ; trigger_id
endm
enum checktriggers_command
checktriggers: macro
db checktriggers_command
endm
enum dotrigger_command
dotrigger: macro
db dotrigger_command
db \1 ; trigger_id
endm
enum writebyte_command
writebyte: macro
db writebyte_command
db \1 ; value
endm
enum addvar_command
addvar: macro
db addvar_command
db \1 ; value
endm
enum random_command
random: macro
db random_command
db \1 ; input
endm
enum checkver_command
checkver: macro
db checkver_command
endm
enum copybytetovar_command
copybytetovar: macro
db copybytetovar_command
dw \1 ; address
endm
enum copyvartobyte_command
copyvartobyte: macro
db copyvartobyte_command
dw \1 ; address
endm
enum loadvar_command
loadvar: macro
db loadvar_command
dw \1 ; address
db \2 ; value
endm
enum checkcode_command
checkcode: macro
db checkcode_command
db \1 ; variable_id
endm
enum writevarcode_command
writevarcode: macro
db writevarcode_command
db \1 ; variable_id
endm
enum writecode_command
writecode: macro
db writecode_command
db \1 ; variable_id
db \2 ; value
endm
enum giveitem_command
giveitem: macro
db giveitem_command
db \1 ; item
if _NARG == 2
db \2 ; quantity
else
db 1
endc
endm
enum takeitem_command
takeitem: macro
db takeitem_command
db \1 ; item
if _NARG == 2
db \2 ; quantity
else
db 1
endc
endm
enum checkitem_command
checkitem: macro
db checkitem_command
db \1 ; item
endm
enum givemoney_command
givemoney: macro
db givemoney_command
db \1 ; account
dt \2 ; money
endm
enum takemoney_command
takemoney: macro
db takemoney_command
db \1 ; account
dt \2 ; money
endm
enum checkmoney_command
checkmoney: macro
db checkmoney_command
db \1 ; account
dt \2 ; money
endm
enum givecoins_command
givecoins: macro
db givecoins_command
dw \1 ; coins
endm
enum takecoins_command
takecoins: macro
db takecoins_command
dw \1 ; coins
endm
enum checkcoins_command
checkcoins: macro
db checkcoins_command
dw \1 ; coins
endm
enum addcellnum_command
addcellnum: macro
db addcellnum_command
db \1 ; person
endm
enum delcellnum_command
delcellnum: macro
db delcellnum_command
db \1 ; person
endm
enum checkcellnum_command
checkcellnum: macro
db checkcellnum_command
db \1 ; person
endm
enum checktime_command
checktime: macro
db checktime_command
db \1 ; time
endm
checkmorn EQUS "checktime 1 << MORN"
checkday EQUS "checktime 1 << DAY"
checknite EQUS "checktime 1 << NITE"
enum checkpoke_command
checkpoke: macro
db checkpoke_command
db \1 ; pkmn
endm
enum givepoke_command
givepoke: macro
db givepoke_command
db \1 ; pokemon
db \2 ; level
if _NARG >= 3
db \3 ; item
if _NARG >= 4
db \4 ; trainer
if \4
dw \5 ; trainer_name_pointer
dw \6 ; pkmn_nickname
endc
else
db 0
endc
else
db 0, 0
endc
endm
enum giveegg_command
giveegg: macro
db giveegg_command
db \1 ; pkmn
db \2 ; level
endm
enum givepokeitem_command
givepokeitem: macro
db givepokeitem_command
dw \1 ; pointer
endm
enum checkpokeitem_command
checkpokeitem: macro
db checkpokeitem_command
dw \1 ; pointer
endm
enum checkevent_command
checkevent: macro
db checkevent_command
dw \1 ; event_flag
endm
enum clearevent_command
clearevent: macro
db clearevent_command
dw \1 ; event_flag
endm
enum setevent_command
setevent: macro
db setevent_command
dw \1 ; event_flag
endm
enum checkflag_command
checkflag: macro
db checkflag_command
dw \1 ; engine_flag
endm
enum clearflag_command
clearflag: macro
db clearflag_command
dw \1 ; engine_flag
endm
enum setflag_command
setflag: macro
db setflag_command
dw \1 ; engine_flag
endm
enum wildon_command
wildon: macro
db wildon_command
endm
enum wildoff_command
wildoff: macro
db wildoff_command
endm
enum xycompare_command
xycompare: macro
db xycompare_command
dw \1 ; pointer
endm
enum warpmod_command
warpmod: macro
db warpmod_command
db \1 ; warp_id
map \2 ; map
endm
enum blackoutmod_command
blackoutmod: macro
db blackoutmod_command
map \1 ; map
endm
enum warp_command
warp: macro
db warp_command
map \1 ; map
db \2 ; x
db \3 ; y
endm
enum readmoney_command
readmoney: macro
db readmoney_command
db \1 ; account
db \2 ; memory
endm
enum readcoins_command
readcoins: macro
db readcoins_command
db \1 ; memory
endm
enum RAM2MEM_command
RAM2MEM: macro
db RAM2MEM_command
db \1 ; memory
endm
enum pokenamemem_command
pokenamemem: macro
db pokenamemem_command
db \1 ; pokemon
db \2 ; memory
endm
enum itemtotext_command
itemtotext: macro
db itemtotext_command
db \1 ; item
db \2 ; memory
endm
enum mapnametotext_command
mapnametotext: macro
db mapnametotext_command
db \1 ; memory
endm
enum trainertotext_command
trainertotext: macro
db trainertotext_command
db \1 ; trainer_id
db \2 ; trainer_group
db \3 ; memory
endm
enum stringtotext_command
stringtotext: macro
db stringtotext_command
dw \1 ; text_pointer
db \2 ; memory
endm
enum itemnotify_command
itemnotify: macro
db itemnotify_command
endm
enum pocketisfull_command
pocketisfull: macro
db pocketisfull_command
endm
enum opentext_command
opentext: macro
db opentext_command
endm
enum refreshscreen_command
refreshscreen: macro
db refreshscreen_command
db \1 ; dummy
endm
enum closetext_command
closetext: macro
db closetext_command
endm
enum loadbytec2cf_command
loadbytec2cf: macro
db loadbytec2cf_command
db \1 ; byte
endm
enum farwritetext_command
farwritetext: macro
db farwritetext_command
dba \1
endm
enum writetext_command
writetext: macro
db writetext_command
dw \1 ; text_pointer
endm
enum repeattext_command
repeattext: macro
db repeattext_command
db \1 ; byte
db \2 ; byte
endm
enum yesorno_command
yesorno: macro
db yesorno_command
endm
enum loadmenudata_command
loadmenudata: macro
db loadmenudata_command
dw \1 ; data
endm
enum closewindow_command
closewindow: macro
db closewindow_command
endm
enum jumptextfaceplayer_command
jumptextfaceplayer: macro
db jumptextfaceplayer_command
dw \1 ; text_pointer
endm
; IF _CRYSTAL
enum farjumptext_command
farjumptext: macro
db farjumptext_command
dba \1
endm
; ENDC
enum jumptext_command
jumptext: macro
db jumptext_command
dw \1 ; text_pointer
endm
enum waitbutton_command
waitbutton: macro
db waitbutton_command
endm
enum buttonsound_command
buttonsound: macro
db buttonsound_command
endm
enum pokepic_command
pokepic: macro
db pokepic_command
db \1 ; pokemon
endm
enum closepokepic_command
closepokepic: macro
db closepokepic_command
endm
enum _2dmenu_command
_2dmenu: macro
db _2dmenu_command
endm
enum verticalmenu_command
verticalmenu: macro
db verticalmenu_command
endm
enum loadpikachudata_command
loadpikachudata: macro
db loadpikachudata_command
endm
enum randomwildmon_command
randomwildmon: macro
db randomwildmon_command
endm
enum loadmemtrainer_command
loadmemtrainer: macro
db loadmemtrainer_command
endm
enum loadwildmon_command
loadwildmon: macro
db loadwildmon_command
db \1 ; pokemon
db \2 ; level
endm
enum loadtrainer_command
loadtrainer: macro
db loadtrainer_command
db \1 ; trainer_group
db \2 ; trainer_id
endm
enum startbattle_command
startbattle: macro
db startbattle_command
endm
enum reloadmapafterbattle_command
reloadmapafterbattle: macro
db reloadmapafterbattle_command
endm
enum catchtutorial_command
catchtutorial: macro
db catchtutorial_command
db \1 ; byte
endm
enum trainertext_command
trainertext: macro
db trainertext_command
db \1 ; which_text
endm
enum trainerflagaction_command
trainerflagaction: macro
db trainerflagaction_command
db \1 ; action
endm
enum winlosstext_command
winlosstext: macro
db winlosstext_command
dw \1 ; win_text_pointer
dw \2 ; loss_text_pointer
endm
enum scripttalkafter_command
scripttalkafter: macro
db scripttalkafter_command
endm
enum end_if_just_battled_command
end_if_just_battled: macro
db end_if_just_battled_command
endm
enum check_just_battled_command
check_just_battled: macro
db check_just_battled_command
endm
enum setlasttalked_command
setlasttalked: macro
db setlasttalked_command
db \1 ; person
endm
enum applymovement_command
applymovement: macro
db applymovement_command
db \1 ; person
dw \2 ; data
endm
enum applymovement2_command
applymovement2: macro
db applymovement2_command
dw \1 ; data
endm
enum faceplayer_command
faceplayer: macro
db faceplayer_command
endm
enum faceperson_command
faceperson: macro
db faceperson_command
db \1 ; person1
db \2 ; person2
endm
enum variablesprite_command
variablesprite: macro
db variablesprite_command
db \1 - SPRITE_VARS ; byte
db \2 ; sprite
endm
enum disappear_command
disappear: macro
db disappear_command
db \1 ; person
endm
enum appear_command
appear: macro
db appear_command
db \1 ; person
endm
enum follow_command
follow: macro
db follow_command
db \1 ; person2
db \2 ; person1
endm
enum stopfollow_command
stopfollow: macro
db stopfollow_command
endm
enum moveperson_command
moveperson: macro
db moveperson_command
db \1 ; person
db \2 ; x
db \3 ; y
endm
enum writepersonxy_command
writepersonxy: macro
db writepersonxy_command
db \1 ; person
endm
enum loademote_command
loademote: macro
db loademote_command
db \1 ; bubble
endm
enum showemote_command
showemote: macro
db showemote_command
db \1 ; bubble
db \2 ; person
db \3 ; time
endm
enum spriteface_command
spriteface: macro
db spriteface_command
db \1 ; person
db \2 ; facing
endm
enum follownotexact_command
follownotexact: macro
db follownotexact_command
db \1 ; person2
db \2 ; person1
endm
enum earthquake_command
earthquake: macro
db earthquake_command
db \1 ; param
endm
enum changemap_command
changemap: macro
db changemap_command
db \1 ; map_bank
dw \2 ; map_data_pointer
endm
enum changeblock_command
changeblock: macro
db changeblock_command
db \1 ; x
db \2 ; y
db \3 ; block
endm
enum reloadmap_command
reloadmap: macro
db reloadmap_command
endm
enum reloadmappart_command
reloadmappart: macro
db reloadmappart_command
endm
enum writecmdqueue_command
writecmdqueue: macro
db writecmdqueue_command
dw \1 ; queue_pointer
endm
enum delcmdqueue_command
delcmdqueue: macro
db delcmdqueue_command
db \1 ; byte
endm
enum playmusic_command
playmusic: macro
db playmusic_command
dw \1 ; music_pointer
endm
enum encountermusic_command
encountermusic: macro
db encountermusic_command
endm
enum musicfadeout_command
musicfadeout: macro
db musicfadeout_command
dw \1 ; music
db \2 ; fadetime
endm
enum playmapmusic_command
playmapmusic: macro
db playmapmusic_command
endm
enum dontrestartmapmusic_command
dontrestartmapmusic: macro
db dontrestartmapmusic_command
endm
enum cry_command
cry: macro
db cry_command
dw \1 ; cry_id
endm
enum playsound_command
playsound: macro
db playsound_command
dw \1 ; sound_pointer
endm
enum waitsfx_command
waitsfx: macro
db waitsfx_command
endm
enum warpsound_command
warpsound: macro
db warpsound_command
endm
enum specialsound_command
specialsound: macro
db specialsound_command
endm
enum passtoengine_command
passtoengine: macro
db passtoengine_command
db \1 ; data_pointer
endm
enum newloadmap_command
newloadmap: macro
db newloadmap_command
db \1 ; which_method
endm
enum pause_command
pause: macro
db pause_command
db \1 ; length
endm
enum deactivatefacing_command
deactivatefacing: macro
db deactivatefacing_command
db \1 ; time
endm
enum priorityjump_command
priorityjump: macro
db priorityjump_command
dw \1 ; pointer
endm
enum warpcheck_command
warpcheck: macro
db warpcheck_command
endm
enum ptpriorityjump_command
ptpriorityjump: macro
db ptpriorityjump_command
dw \1 ; pointer
endm
enum return_command
return: macro
db return_command
endm
enum end_command
end: macro
db end_command
endm
enum reloadandreturn_command
reloadandreturn: macro
db reloadandreturn_command
db \1 ; which_method
endm
enum end_all_command
end_all: macro
db end_all_command
endm
enum pokemart_command
pokemart: macro
db pokemart_command
db \1 ; dialog_id
dw \2 ; mart_id
endm
enum elevator_command
elevator: macro
db elevator_command
dw \1 ; floor_list_pointer
endm
enum trade_command
trade: macro
db trade_command
db \1 ; trade_id
endm
enum askforphonenumber_command
askforphonenumber: macro
db askforphonenumber_command
db \1 ; number
endm
enum phonecall_command
phonecall: macro
db phonecall_command
dw \1 ; caller_name
endm
enum hangup_command
hangup: macro
db hangup_command
endm
enum describedecoration_command
describedecoration: macro
db describedecoration_command
db \1 ; byte
endm
enum fruittree_command
fruittree: macro
db fruittree_command
db \1 ; tree_id
endm
enum specialphonecall_command
specialphonecall: macro
db specialphonecall_command
dw \1 ; call_id
endm
enum checkphonecall_command
checkphonecall: macro
db checkphonecall_command
endm
enum verbosegiveitem_command
verbosegiveitem: macro
db verbosegiveitem_command
db \1 ; item
if _NARG == 2
db \2 ; quantity
else
db 1
endc
endm
enum verbosegiveitem2_command
verbosegiveitem2: macro
db verbosegiveitem2_command
db \1 ; item
db \2 ; var
endm
enum swarm_command
swarm: macro
db swarm_command
db \1 ; flag
map \2 ; map
endm
enum halloffame_command
halloffame: macro
db halloffame_command
endm
enum credits_command
credits: macro
db credits_command
endm
enum warpfacing_command
warpfacing: macro
db warpfacing_command
db \1 ; facing
map \2 ; map
db \3 ; x
db \4 ; y
endm
enum battletowertext_command
battletowertext: macro
db battletowertext_command
db \1 ; memory
endm
enum landmarktotext_command
landmarktotext: macro
db landmarktotext_command
db \1 ; id
db \2 ; memory
endm
enum trainerclassname_command
trainerclassname: macro
db trainerclassname_command
db \1 ; id
db \2 ; memory
endm
enum name_command
name: macro
db name_command
db \1 ; type
db \2 ; id
db \3 ; memory
endm
enum wait_command
wait: macro
db wait_command
db \1 ; duration
endm
enum check_save_command
check_save: macro
db check_save_command
endm
|