Selaa lähdekoodia

Merge origin/master

SBird1337 7 vuotta sitten
vanhempi
commit
8590d828cb
3 muutettua tiedostoa jossa 1032 lisäystä ja 0 poistoa
  1. 2
    0
      nbproject/private/configurations.xml
  2. 103
    0
      src/include/applymovements.h
  3. 927
    0
      src/include/script_language.h

+ 2
- 0
nbproject/private/configurations.xml Näytä tiedosto

@@ -6656,6 +6656,7 @@
6656 6656
             <in>ascii.c</in>
6657 6657
             <in>ascii.h</in>
6658 6658
           </df>
6659
+          <in>applymovements.h</in>
6659 6660
           <in>attack_names.h</in>
6660 6661
           <in>battle_abilities.h</in>
6661 6662
           <in>battle_common.h</in>
@@ -6686,6 +6687,7 @@
6686 6687
           <in>pkmn_items.h</in>
6687 6688
           <in>pkmn_types.h</in>
6688 6689
           <in>pokemon.h</in>
6690
+          <in>script_language.h</in>
6689 6691
           <in>sound.h</in>
6690 6692
           <in>types.h</in>
6691 6693
         </df>

+ 103
- 0
src/include/applymovements.h Näytä tiedosto

@@ -0,0 +1,103 @@
1
+@@ Applymovement commands
2
+.equ APPLYMOVE_LOCK_DOWN, 0x0
3
+.equ APPLYMOVE_LOCK_UP, 0x1
4
+.equ APPLYMOVE_LOCK_LEFT, 0x2
5
+.equ APPLYMOVE_LOCK_RIGHT, 0x3
6
+.equ APPLYMOVE_GO_DOWN_VERY_SLOW, 0x8
7
+.equ APPLYMOVE_GO_UP_VERY_SLOW, 0x9
8
+.equ APPLYMOVE_GO_LEFT_VERY_SLOW, 0xA
9
+.equ APPLYMOVE_GO_RIGHT_VERY_SLOW, 0xB
10
+.equ APPLYMOVE_GO_DOWN_SLOW, 0xC
11
+.equ APPLYMOVE_GO_UP_SLOW, 0xD
12
+.equ APPLYMOVE_GO_LEFT_SLOW, 0xE
13
+.equ APPLYMOVE_GO_RIGHT_SLOW, 0xF
14
+.equ APPLYMOVE_GO_DOWN, 0x10
15
+.equ APPLYMOVE_GO_UP, 0x11
16
+.equ APPLYMOVE_GO_LEFT, 0x12
17
+.equ APPLYMOVE_GO_RIGHT, 0x13
18
+.equ APPLYMOVE_JUMP_TWO_DOWN, 0x14
19
+.equ APPLYMOVE_JUMP_TWO_UP, 0x15
20
+.equ APPLYMOVE_JUMP_TWO_LEFT, 0x16
21
+.equ APPLYMOVE_JUMP_TWO_RIGHT, 0x17
22
+.equ APPLYMOVE_DELAY1, 0x18
23
+.equ APPLYMOVE_DELAY2, 0x19
24
+.equ APPLYMOVE_DELAY3, 0x1A
25
+.equ APPLYMOVE_DELAY4, 0x1B
26
+.equ APPLYMOVE_DELAY5, 0x1C
27
+.equ APPLYMOVE_GO_DOWN_FAST, 0x1D
28
+.equ APPLYMOVE_GO_UP_FAST, 0x1E
29
+.equ APPLYMOVE_GO_LEFT_FAST, 0x1F
30
+.equ APPLYMOVE_GO_RIGHT_FAST, 0x20
31
+.equ APPLYMOVE_GO_DOWN_ON_POINT, 0x21
32
+.equ APPLYMOVE_GO_UP_ON_POINT, 0x22
33
+.equ APPLYMOVE_GO_LEFT_ON_POINT, 0x23
34
+.equ APPLYMOVE_GO_RIGHT_ON_POINT, 0x24
35
+.equ APPLYMOVE_GO_DOWN_ON_POINT_FAST, 0x25
36
+.equ APPLYMOVE_GO_UP_ON_POINT_FAST, 0x26
37
+.equ APPLYMOVE_GO_LEFT_ON_POINT_FAST, 0x27
38
+.equ APPLYMOVE_GO_RIGHT_ON_POINT_FAST, 0x28
39
+.equ APPLYMOVE_GO_DOWN_ON_POINT_VERY_FAST, 0x29
40
+.equ APPLYMOVE_GO_UP_ON_POINT_VERY_FAST, 0x2A
41
+.equ APPLYMOVE_GO_LEFT_ON_POINT_VERY_FAST, 0x2B
42
+.equ APPLYMOVE_GO_RIGHT_ON_POINT_VERY_FAST, 0x2C
43
+.equ APPLYMOVE_LOCK_DOWN_DELAY, 0x2D
44
+.equ APPLYMOVE_LOCK_UP_DELAY, 0x2E
45
+.equ APPLYMOVE_LOCK_LEFT_DELAY, 0x2F
46
+.equ APPLYMOVE_LOCK_RIGHT_DELAY, 0x30
47
+.equ APPLYMOVE_GO_DOWN_VERY_FAST, 0x35
48
+.equ APPLYMOVE_GO_UP_VERY_FAST, 0x36
49
+.equ APPLYMOVE_GO_LEFT_VERY_FAST, 0x37
50
+.equ APPLYMOVE_GO_RIGHT_VERY_FAST, 0x38
51
+.equ APPLYMOVE_SLIDE_DOWN_FAST, 0x39
52
+.equ APPLYMOVE_SLIDE_UP_FAST, 0x3A
53
+.equ APPLYMOVE_SLIDE_LEFT_FAST, 0x3B
54
+.equ APPLYMOVE_SLIDE_RIGHT_FAST, 0x3C
55
+.equ APPLYMOVE_GO_LOOP, 0x45
56
+.equ APPLYMOVE_RUN_LOOP, 0x46
57
+.equ APPLYMOVE_LOCK_PLAYER, 0x4A
58
+.equ APPLYMOVE_LOCK_NOT_PLAYER, 0x4B
59
+.equ APPLYMOVE_FREEZE_LOCK, 0x4C
60
+.equ APPLYMOVE_FREE_LOCK, 0x4D
61
+.equ APPLYMOVE_JUMP_ONE_DOWN, 0x4E
62
+.equ APPLYMOVE_JUMP_ONE_UP, 0x4F
63
+.equ APPLYMOVE_JUMP_ONE_LEFT, 0x50
64
+.equ APPLYMOVE_JUMP_ONE_RIGHT, 0x51
65
+.equ APPLYMOVE_JUMP_ON_POINT_DOWN, 0x52
66
+.equ APPLYMOVE_JUMP_ON_POINT_UP, 0x53
67
+.equ APPLYMOVE_JUMP_ON_POINT_LEFT, 0x54
68
+.equ APPLYMOVE_JUMP_ON_POINT_RIGHT, 0x55
69
+.equ APPLYMOVE_JUMP_ON_POINT_UP_DOWN, 0x56
70
+.equ APPLYMOVE_JUMP_ON_POINT_DOWN_UP, 0x57
71
+.equ APPLYMOVE_JUMP_ON_POINT_RIGHT_LEFT, 0x58
72
+.equ APPLYMOVE_JUMP_ON_POINT_LEFT_RIGHT, 0x59
73
+.equ APPLYMOVE_HIDESPRITE, 0x60
74
+.equ APPLYMOVE_SHOWSPRITE, 0x61
75
+.equ APPLYMOVE_EXCL, 0x62
76
+.equ APPLYMOVE_QUEST, 0x63
77
+.equ APPLYMOVE_IDEA, 0x64
78
+.equ APPLYMOVE_ANGRY, 0x65
79
+.equ APPLYMOVE_CONCERNED, 0x66
80
+.equ APPLYMOVE_TREESMASH, 0x69
81
+.equ APPLYMOVE_RUN_DOWN, 0x74
82
+.equ APPLYMOVE_RUN_UP, 0x75
83
+.equ APPLYMOVE_RUN_LEFT, 0x76
84
+.equ APPLYMOVE_RUN_RIGHT, 0x77
85
+.equ APPLYMOVE_JUMP_TWO_DOWN, 0x84
86
+.equ APPLYMOVE_JUMP_TWO_UP, 0x85
87
+.equ APPLYMOVE_JUMP_TWO_LEFT, 0x86
88
+.equ APPLYMOVE_JUMP_TWO_RIGHT, 0x87
89
+.equ APPLYMOVE_GO_CLOCKWISE_DOWN, 0x94
90
+.equ APPLYMOVE_GO_CLOCKWISE_UP, 0x95
91
+.equ APPLYMOVE_GO_CLOCKWISE_LEFT, 0x96
92
+.equ APPLYMOVE_GO_CLOCKWISE_RIGHT, 0x97
93
+.equ APPLYMOVE_GO_PIXELWISE_DOWN, 0x9B
94
+.equ APPLYMOVE_GO_PIXELWISE_UP, 0x9C
95
+.equ APPLYMOVE_GO_PIXELWISE_LEFT, 0x9D
96
+.equ APPLYMOVE_GO_PIXELWISE_RIGHT, 0x9E
97
+.equ APPLYMOVE_SLIDE_NO_MOVEMENT_DOWN, 0xA0
98
+.equ APPLYMOVE_SLIDE_NO_MOVEMENT_UP, 0xA1
99
+.equ APPLYMOVE_SLIDE_NO_MOVEMENT_LEFT, 0xA2
100
+.equ APPLYMOVE_SLIDE_NO_MOVEMENT_RIGHT, 0xA3
101
+.equ APPLYMOVE_TELEPORT_MOVE, 0xA4
102
+.equ APPLYMOVE_FALLING_DOWN_MOVE, 0xA5
103
+.equ APPLYMOVE_END, 0xFE

+ 927
- 0
src/include/script_language.h Näytä tiedosto

@@ -0,0 +1,927 @@
1
+#include <config.h>
2
+#include <applymovements.h>
3
+
4
+@@ Compare operands
5
+.equ <, 0x0
6
+.equ ==, 0x1
7
+.equ >, 0x2
8
+.equ <=, 0x3
9
+.equ >=, 0x4
10
+.equ !=, 0x5
11
+
12
+@@ Flag operands
13
+.equ !, 0x0
14
+.equ =, 0x1
15
+
16
+
17
+@@@@@@@@@@@@@@@@@ Macro
18
+
19
+@@ Costum commands
20
+
21
+.macro msgbox msgbox_textpointer msgbox_callstd
22
+loadpointer 0x0 \msgbox_textpointer
23
+callstd \msgbox_callstd
24
+.endm
25
+
26
+.marco giveitem giveitem_item giveitem_quantity giveitem_messagetyp
27
+setvarifnotzero 0x8000 \giveitem_item
28
+setvarifnotzero 0x8001 \giveitem_quantity
29
+callstd \giveitem_messagetyp
30
+.endm
31
+
32
+.marco giveitem2 giveitem2_item giveitem2_quantity giveitem2_song
33
+setvarifnotzero 0x8000 \giveitem2_item
34
+setvarifnotzero 0x8001 \giveitem2_quantity
35
+setvarifnotzero 0x8002 \giveitem2_song
36
+callstd 0x9
37
+.endm
38
+
39
+.marco wildbattle wildbattle_spezies wildbattle_level wildbattle_item
40
+setwildbattle \wildbattle_spezies \wildbattle_level \wildbattle_item
41
+dowildbattle
42
+.endm
43
+
44
+.marco wildbattle2 wildbattle2_spezies wildbattle2_level wildbattle2_item wildbattle2_battlestyle
45
+setwildbattle \wildbattle2_spezies \wildbattle2_level \wildbattle2_item
46
+special 0x137
47
+waitstate
48
+.endm
49
+
50
+.marco msgmugr msgmugr_textpointer msgmugr_callstd msgmugr_sprite
51
+setvar MUGHSOT_1_TABLE \msgmugr_sprite
52
+setvar MUGSHOT_1_X 0xD0
53
+setvar MUGSHOT_1_Y 0x60
54
+msgbox \msgmugr_textpointer \msgmugr_callstd
55
+setvar MUGHSOT_1_TABLE 0x0
56
+.endm
57
+
58
+.marco msgmugl msgmugl_textpointer msgmugl_callstd msgmugl_sprite
59
+setvar MUGHSOT_1_TABLE \msgmugl_sprite
60
+setvar MUGSHOT_1_X 0x16
61
+setvar MUGSHOT_1_Y 0x60
62
+msgbox \msgmugl_textpointer \msgmugl_callstd
63
+setvar MUGHSOT_1_TABLE 0x0
64
+.endm
65
+
66
+.marco transparenzon
67
+clearflag FLAG_ACTIVATE
68
+.endm
69
+
70
+.marco transparenzoff
71
+setflag FLAG_ACTIVATE
72
+.endm
73
+
74
+.marco battlescreen battlescreen_grass battlescreen_sea
75
+setvar NORMAL_VAR \battlescreen_grass
76
+setvar SEA_VAR \battlescreen_sea
77
+.endm
78
+
79
+.marco cameramove cameramove_xpos cameramove_ypos
80
+setvar CAMERA_VAR_X \cameramove_xpos
81
+setvar CAMERA_VAR_Y \cameramove_ypos
82
+setvar CALLASM_VAR 0x1
83
+special 0x68
84
+.endm
85
+
86
+.marco walkingscript \walkingscript_value
87
+setvar WALK_SCRIPT_VAR \walkingscript_value
88
+.endm
89
+
90
+.marco walkingscripton
91
+setflag FLAG_WALK_SCRIPT
92
+.endm
93
+
94
+.marco walkingscriptoff
95
+clearflag FLAG_WALK_SCRIPT
96
+.endm
97
+
98
+.marco writemusikto1 writemusikto1_from writemusikto1_to
99
+setflag FLAG_ENABLE_MUSIC_OVERRIDES
100
+setvar VAR_FROM_1 \writemusikto1_from
101
+setvar VAR_TO_1 \writemusikto1_to
102
+.endm
103
+
104
+.marco writemusikto2 writemusikto2_from writemusikto2_to
105
+setflag FLAG_ENABLE_MUSIC_OVERRIDES
106
+setvar VAR_FROM_2 \writemusikto2_from
107
+setvar VAR_TO_2 \writemusikto2_to
108
+.endm
109
+
110
+.marco writemusikto3 writemusikto3_from writemusikto3_to
111
+setflag FLAG_ENABLE_MUSIC_OVERRIDES
112
+setvar VAR_FROM_3 \writemusikto3_from
113
+setvar VAR_TO_3 \writemusikto3_to
114
+.endm
115
+
116
+.marco writemusikwithmapmusik \writemusikwithmapmusik_mapmusik
117
+setflag FLAG_ENABLE_MUSIC_OVERRIDES
118
+setvar VAR_FROM_1 \writemusikwithmapmusik_mapmusik
119
+setvar VAR_TO_1 MUS_SKIP_PLAY
120
+
121
+
122
+.marco writemusikoff
123
+clearflag FLAG_ENABLE_MUSIC_OVERRIDES
124
+.endm
125
+
126
+
127
+
128
+
129
+
130
+@@ Index commands
131
+
132
+.macro nope
133
+.byte 0x0
134
+.endm
135
+
136
+.macro nop
137
+.byte 0x1
138
+.endm
139
+
140
+.macro end
141
+.byte 0x2
142
+.endm
143
+
144
+.macro return
145
+.byte 0x3
146
+.endm
147
+
148
+.macro call call_address
149
+.byte 0x4
150
+.word \call_address
151
+.endm
152
+
153
+.macro goto goto_address
154
+.byte 0x5
155
+.word \goto_address
156
+.endm
157
+
158
+.macro if1 if1_value if1_pointer
159
+.byte 0x6
160
+.byte \if1_value
161
+.word \if1_address
162
+.endm
163
+
164
+.macro if2 if2_value if2_pointer
165
+.byte 0x7
166
+.byte \if2_value
167
+.word \if2_address
168
+.endm
169
+
170
+.macro callstd callstd_call
171
+.byte 0x9
172
+.byte \callstd_call
173
+.endm
174
+
175
+.macro killscript
176
+.byte 0xD
177
+.endm
178
+
179
+.macro loadpointer loadpointer_bank loadpointer_pointer
180
+.byte 0xF
181
+.byte \loadpointer_bank
182
+.word \loadpointer_pointer
183
+.endm
184
+
185
+.macro writebytetooffset writebytetooffset_bank writebytetooffset_location
186
+.byte 0x11
187
+.byte \writebytetooffset_bank
188
+.word \writebytetooffset_location
189
+.endm
190
+
191
+.macro setvar setvar_variable setvar_value
192
+.byte 0x16
193
+.hword \setvar_variable
194
+.hword \setvar_value
195
+.endm
196
+
197
+.macro addvar addvar_variable addvar_value
198
+.byte 0x17
199
+.hword \addvar_variable
200
+.hword \addvar_value
201
+.endm
202
+
203
+.macro subvar subvar_variable subvar_value
204
+.byte 0x18
205
+.hword \subvar_variable
206
+.hword \subvar_value
207
+.endm
208
+
209
+.macro copyvar copyvar_variableADestin copyvar_variableBSource
210
+.byte 0x19
211
+.hword copyvar_variableADestin
212
+.hword copyvar_variableBSource
213
+.endm
214
+
215
+.macro setvarifnotzero setvarifnotzero_variableADestin setvarifnotzero_variableBSource
216
+.byte 0x1A
217
+.hword setvarifnotzero_variableADestin
218
+.hword setvarifnotzero_variableBSource
219
+.endm
220
+
221
+.macro compare compare_variable compare_value
222
+.byte 0x21
223
+.hword \compare_variable
224
+.hword \compare_value
225
+.endm
226
+
227
+.macro comparevars comparevars_variableA comparevars_variableB
228
+.byte 0x22
229
+.hword \comparevars_variableA
230
+.hword \comparevars_variableB
231
+.endm
232
+
233
+.marco callasm callasm_address
234
+.byte 0x23
235
+.word \callasm_address
236
+.endm
237
+
238
+.marco special special_number
239
+.byte 0x25
240
+.hword \special_number
241
+.endm
242
+
243
+.marco special2 special2_variable special2_number
244
+.byte 0x26
245
+.hword \special2_variable
246
+.hword \special2_number
247
+.endm
248
+
249
+.macro waitstate
250
+.byte 0x27
251
+.endm
252
+
253
+.macro pause pause_delay
254
+.byte 0x28
255
+.hword \pause_delay
256
+.endm
257
+
258
+.macro setflag setflag_flag
259
+.byte 0x29
260
+.hword \setflag_flag
261
+.endm
262
+
263
+.macro clearflag clearflag_flag
264
+.byte 0x2A
265
+.hword \clearflag_flag
266
+.endm
267
+
268
+.macro checkflag checkflag_flag
269
+.byte 0x2B
270
+.hword \checkflag_flag
271
+.endm
272
+
273
+.macro resetvars
274
+.byte 0x2E
275
+.endm
276
+
277
+.macro sound sound_song
278
+.byte 0x2F
279
+.hword \sound_song
280
+.endm
281
+
282
+.macro checksound
283
+.byte 0x30
284
+.endm
285
+
286
+.macro fanfare fanfare_song
287
+.byte 0x31
288
+.hword \fanfare_song
289
+.endm
290
+
291
+.macro waitfanfare
292
+.byte 0x32
293
+.endm
294
+
295
+.macro playsong playsong_song playsong_value
296
+.byte 0x33
297
+.hword \playsong_song
298
+.byte \playsong_value
299
+.endm
300
+
301
+.macro playsong2 playsong2_song
302
+.byte 0x34
303
+.hword \playsong2_song
304
+.endm
305
+
306
+.macro fadedefault
307
+.byte 0x35
308
+.endm
309
+
310
+.macro fadesong fadesong_song
311
+.byte 0x36
312
+.hword \fadesong_song
313
+.endm
314
+
315
+.macro fadeout fadeout_volume
316
+.byte 0x37
317
+.byte \fadeout_volume
318
+
319
+
320
+.macro fadein fadein_volume
321
+.byte 0x38
322
+.byte \fadein_volume
323
+.endm
324
+
325
+.marco warp warp_bank warp_map warp_exit warp_x warp_y
326
+.byte 0x39
327
+.byte \warp_bank
328
+.byte \warp_map
329
+.byte \warp_exit
330
+.hword \warp_x
331
+.hword \warp_y
332
+.endm
333
+
334
+.marco warpmuted warpmuted_bank warpmuted_map warpmuted_exit warpmuted_x warpmuted_y
335
+.byte 0x3A
336
+.byte \warpmuted_bank
337
+.byte \warpmuted_map
338
+.byte \warpmuted_exit
339
+.hword \warpmuted_x
340
+.hword \warpmuted_y
341
+.endm
342
+
343
+.marco warpwalk warpwalk_bank warpwalk_map warpwalk_exit warpwalk_x warpwalk_y
344
+.byte 0x3B
345
+.byte \warpwalk_bank
346
+.byte \warpwalk_map
347
+.byte \warpwalk_exit
348
+.hword \warpwalk_x
349
+.hword \warpwalk_y
350
+.endm
351
+
352
+.marco warphole warphole_bank warphole_map
353
+.byte 0x3C
354
+.byte \warphole_bank
355
+.byte \warphole_map
356
+.endm
357
+
358
+.marco warpteleport warpteleport_bank warpteleport_map warpteleport_exit warpteleport_x warpteleport_y
359
+.byte 0x3D
360
+.byte \warpteleport_bank
361
+.byte \warpteleport_map
362
+.byte \warpteleport_exit
363
+.hword \warpteleport_x
364
+.hword \warpteleport_y
365
+.endm
366
+
367
+.marco setwarpplace setwarpplace_bank setwarpplace_map setwarpplace_exit setwarpplace_x setwarpplace_y
368
+.byte 0x3F
369
+.byte \setwarpplace_bank
370
+.byte \setwarpplace_map
371
+.byte \setwarpplace_exit
372
+.hword \setwarpplace_x
373
+.hword \setwarpplace_y
374
+.endm
375
+
376
+.marco getplayerpos getplayerpos_variableX getplayerpos_variableY
377
+.byte 0x42
378
+.hword \getplayerpos_variableX
379
+.hword \getplayerpos_variableY
380
+.endm
381
+
382
+.macro countpokemon
383
+.byte 0x43
384
+.endm
385
+
386
+.marco additem additem_item additem_quantity
387
+.byte 0x44
388
+.hword \additem_item
389
+.hword \additem_quantity
390
+.endm
391
+
392
+.marco removeitem removeitem_item removeitem_quantity
393
+.byte 0x45
394
+.hword \removeitem_item
395
+.hword \removeitem_quantity
396
+.endm
397
+
398
+.marco checkitemroom checkitemroom_item checkitemroom_quantity
399
+.byte 0x46
400
+.hword \checkitemroom_item
401
+.hword \checkitemroom_quantity
402
+.endm
403
+
404
+.marco checkitem checkitem_item checkitem_quantity
405
+.byte 0x47
406
+.hword \checkitem_item
407
+.hword \checkitem_quantity
408
+.endm
409
+
410
+.marco checkitemtype checkitemtype_item
411
+.byte 0x48
412
+.hword \checkitemtype_item
413
+.endm
414
+
415
+.marco addpcitem addpcitem_item addpcitem_quantity
416
+.byte 0x49
417
+.hword \addpcitem_item
418
+.hword \addpcitem_quantity
419
+.endm
420
+
421
+.marco checkpcitem checkpcitem_item checkpcitem_quantity
422
+.byte 0x4A
423
+.hword \checkpcitem_item
424
+.hword \checkpcitem_quantity
425
+.endm
426
+
427
+.marco applymovement applymovement_people applymovement_movedata
428
+.byte 0x4F
429
+.hword \applymovement_people
430
+.word \applymovement_movedata
431
+.endm
432
+
433
+.marco applymovementpos applymovementpos_people applymovementpos_movedata applymovementpos_x applymovementpos_y
434
+.byte 0x50
435
+.hword \applymovementpos_people
436
+.word \applymovementpos_movedata
437
+.byte \applymovementpos_x
438
+.byte \applymovementpos_y
439
+.endm
440
+
441
+.marco waitmovement waitmovement_people
442
+.byte 0x51
443
+.hword \waitmovement_people
444
+.endm
445
+
446
+.marco waitmovementpos waitmovementpos_people waitmovementpos_x waitmovementpos_y
447
+.byte 0x52
448
+.hword \waitmovementpos_people
449
+.byte \waitmovementpos_x
450
+.byte \waitmovementpos_y
451
+.endm
452
+
453
+.marco hidesprite hidesprite_people
454
+.byte 0x53
455
+.hword \hidesprite_people
456
+.endm
457
+
458
+.marco hidespritepos hidesprite_people hidespritepos_x hidespritepos_y
459
+.byte 0x54
460
+.hword \hidespritepos_people
461
+.byte \hidespritepos_x
462
+.byte \hidespritepos_y
463
+.endm
464
+
465
+.marco showsprite showsprite_people
466
+.byte 0x55
467
+.hword \showsprite_people
468
+.endm
469
+
470
+.marco showspritepos showspritepos_people showspritepos_x showspritepos_y
471
+.byte 0x56
472
+.hword \showspritepos_people
473
+.byte \showspritepos_x
474
+.byte \showspritepos_y
475
+.endm
476
+
477
+.marco movesprite movesprite_people movesprite_x movesprite_y
478
+.byte 0x57
479
+.hword \movesprite_people
480
+.hword \movesprite_x
481
+.hword \movesprite_y
482
+.endm
483
+
484
+.marco spritevisible spritevisible_people spritevisible_bank movesprite_map
485
+.byte 0x58
486
+.hword \spritevisible_people
487
+.byte \spritevisible_bank
488
+.byte \spritevisible_map
489
+.endm
490
+
491
+.marco spriteinvisible spriteinvisible_people spriteinvisible_bank spriteinvisible_map
492
+.byte 0x59
493
+.hword \spriteinvisible_people
494
+.byte \spriteinvisible_bank
495
+.byte \spriteinvisible_map
496
+.endm
497
+
498
+.macro faceplayer
499
+.byte 0x5A
500
+.endm
501
+
502
+.marco spriteface spriteface_people spriteface_facing
503
+.byte 0x5B
504
+.hword \spriteface_people
505
+.byte \spriteface_facing
506
+.endm
507
+
508
+.marco trainerbattle trainerbattle_kind trainerbattle_id trainerbattle_value trainerbattle_before trainerbattle_after trainerbattle_later
509
+.byte 0x5C
510
+.byte \trainerbattle_kind
511
+.hword \trainerbattle_id
512
+.hword \trainerbattle_value
513
+.word \trainerbattle_before
514
+.word \trainerbattle_after
515
+.word \trainerbattle_later
516
+.endm
517
+
518
+.macro repeattrainerbattle
519
+.byte 0x5D
520
+.endm
521
+
522
+.macro endtrainerbattle
523
+.byte 0x5E
524
+.endm
525
+
526
+.macro endtrainerbattle2
527
+.byte 0x5E
528
+.endm
529
+
530
+.macro checktrainerflag checktrainerflag_flag
531
+.byte 0x60
532
+.hword \checktrainerflag_flag
533
+.endm
534
+
535
+.macro settrainerflag settrainerflag_flag
536
+.byte 0x61
537
+.hword \settrainerflag_flag
538
+.endm
539
+
540
+.macro cleartrainerflag cleartrainerflag_flag
541
+.byte 0x62
542
+.hword \cleartrainerflag_flag
543
+.endm
544
+
545
+.marco movesprite2 movesprite2_people movesprite2_x movesprite2_y
546
+.byte 0x63
547
+.hword \movesprite2_people
548
+.hword \movesprite2_x
549
+.hword \movesprite2_y
550
+.endm
551
+
552
+.marco moveoffscreen moveoffscreen_people
553
+.byte 0x64
554
+.hword \moveoffscreen_people
555
+.endm
556
+
557
+.marco spritebehave spritebehave_people spritebehave_facing
558
+.byte 0x65
559
+.hword \spritebehave_people
560
+.byte \spritebehave_behaviour
561
+.endm
562
+
563
+.macro waitmsg
564
+.byte 0x66
565
+.endm
566
+
567
+.macro preparemsg preparemsg_text
568
+.byte 0x67
569
+.word \preparemsg_text
570
+.endm
571
+
572
+.macro closeonkeypress
573
+.byte 0x68
574
+.endm
575
+
576
+.macro lockall
577
+.byte 0x69
578
+.endm
579
+
580
+.macro lock
581
+.byte 0x6A
582
+.endm
583
+
584
+.macro releaseall
585
+.byte 0x6B
586
+.endm
587
+
588
+.macro release
589
+.byte 0x6C
590
+.endm
591
+
592
+.macro waitkeypress
593
+.byte 0x6D
594
+.endm
595
+
596
+.macro yesnobox yesnobox_x yesnobox_y
597
+.byte 0x6E
598
+.byte \yesnobox_x
599
+.byte \yesnobox_y
600
+.endm
601
+
602
+.macro multichoice multichoice_x multichoice_y multichoice_choiceList multichoice_determines
603
+.byte 0x6F
604
+.byte \multichoice_x
605
+.byte \multichoice_y
606
+.byte \multichoice_choiceList
607
+.byte \multichoice_determines
608
+.endm
609
+
610
+.macro multichoice2 multichoice2_x multichoice2_y multichoice2_choiceList multichoice2_defaultchoice multichoice2_determines
611
+.byte 0x70
612
+.byte \multichoice2_x
613
+.byte \multichoice2_y
614
+.byte \multichoice2_choiceList
615
+.byte \multichoice2_defaultchoice
616
+.byte \multichoice2_determines
617
+.endm
618
+
619
+.macro multichoice3 multichoice3_x multichoice3_y multichoice3_choiceList multichoice3_numberofchoices multichoice3_determines
620
+.byte 0x71
621
+.byte \multichoice3_x
622
+.byte \multichoice3_y
623
+.byte \multichoice3_choiceList
624
+.byte \multichoice3_numberofchoices
625
+.byte \multichoice3_determines
626
+.endm
627
+
628
+.marco showpokepic showpokepic_spezies showpokepic_x showpokepic_y
629
+.byte 0x75
630
+.hword \showpokepic_spezies
631
+.byte \showpokepic_x
632
+.byte \showpokepic_y
633
+.endm
634
+
635
+.macro hidepokepic
636
+.byte 0x76
637
+.endm
638
+
639
+.macro braile braile_data
640
+.byte 0x78
641
+.word \braile_data
642
+.endm
643
+
644
+.macro givepokemon givepokemon_spezies givepokemon_level givepokemon_item
645
+.byte 0x79
646
+.hword \givepokemon_spezies
647
+.byte \givepokemon_level
648
+.hword \givepokemon_item
649
+.word 0x0
650
+.word 0x0
651
+.byte 0x0
652
+.endm
653
+
654
+.macro giveegg giveegg_spezies
655
+.byte 0x7A
656
+.hword \giveegg_spezies
657
+.endm
658
+
659
+.macro setpokemonmove setpokemonmove_partyslot setpokemonmove_moveslot setpokemonmove_move
660
+.byte 0x7B
661
+.byte \setpokemonmove_partyslot
662
+.byte \setpokemonmove_moveslot
663
+.hword \setpokemonmove_move
664
+.endm
665
+
666
+.macro checkattack checkattack_move
667
+.byte 0x7C
668
+.hword \checkattack_move
669
+.endm
670
+
671
+.macro bufferpokemon bufferpokemon_buffernumber bufferpokemon_spezies
672
+.byte 0x7D
673
+.byte \bufferpokemon_buffernumber
674
+.hword \bufferpokemon_spezies
675
+.endm
676
+
677
+.macro bufferfirstpokemon bufferfirstpokemon_buffernumber
678
+.byte 0x7E
679
+.byte \bufferfirstpokemon_buffernumber
680
+.endm
681
+
682
+.macro bufferpartypokemon bufferpartypokemon_buffernumber bufferpartypokemon_spezies
683
+.byte 0x7F
684
+.byte \bufferpartypokemon_buffernumber
685
+.hword \bufferpartypokemon_spezies
686
+.endm
687
+
688
+.macro bufferitem bufferitem_buffernumber bufferitem_item
689
+.byte 0x80
690
+.byte \bufferitem_buffernumber
691
+.hword \bufferitem_item
692
+.endm
693
+
694
+.macro bufferattack bufferattack_buffernumber bufferattack_attack
695
+.byte 0x82
696
+.byte \bufferattack_buffernumber
697
+.hword \bufferattack_attack
698
+.endm
699
+
700
+.macro buffernumber buffernumber_buffernumber buffernumber_variable
701
+.byte 0x83
702
+.byte \buffernumber_buffernumber
703
+.hword \buffernumber_variable
704
+.endm
705
+
706
+.macro bufferstd bufferstd_buffernumber bufferstd_variable
707
+.byte 0x84
708
+.byte \bufferstd_buffernumber
709
+.hword \bufferstd_stdnumber
710
+.endm
711
+
712
+.macro bufferstring bufferstring_buffernumber bufferstring_string
713
+.byte 0x85
714
+.byte \bufferstring_buffernumber
715
+.hword \bufferstring_string
716
+.endm
717
+
718
+.macro pokemart pokemart_list
719
+.byte 0x86
720
+.word \pokemart_list
721
+.endm
722
+
723
+.macro random random_possiblities
724
+.byte 0x8F
725
+.hword \random_possiblities
726
+.endm
727
+
728
+.macro givemoney givemoney_quantity givemoney_command
729
+.byte 0x90
730
+.word \givemoney_quantity
731
+.byte \givemoney_command
732
+.endm
733
+
734
+.macro paymoney paymoney_quantity paymoney_command
735
+.byte 0x91
736
+.word \paymoney_quantity
737
+.byte \paymoney_command
738
+.endm
739
+
740
+.macro checkmoney checkmoney_quantity paymoney_command
741
+.byte 0x92
742
+.word \checkmoney_quantity
743
+.byte \checkmoney_command
744
+.endm
745
+
746
+.marco showmoney showmoney_x showmoney_y showmoney_value
747
+.byte 0x93
748
+.byte \showmoney_x
749
+.byte \showmoney_y
750
+.byte \showmoney_value
751
+.endm
752
+
753
+.marco hidemoney hidemoney_x hidemoney_y
754
+.byte 0x94
755
+.byte \hidemoney_x
756
+.byte \hidemoney_y
757
+.endm
758
+
759
+.marco updatemoney updatemoney_x updatemoney_y updatemoney_value
760
+.byte 0x95
761
+.byte \updatemoney_x
762
+.byte \updatemoney_y
763
+.byte \updatemoney_value
764
+.endm
765
+
766
+.marco fadescreen fadescreen_effect
767
+.byte 0x97
768
+.byte \fadescreen_effect
769
+.endm
770
+
771
+.marco fadescreendelay fadescreendelay_effect fadescreendelay_delay
772
+.byte 0x98
773
+.byte \fadescreendelay_effect
774
+.byte \fadescreendelay_delay
775
+.endm
776
+
777
+.marco darken darken_flashsize
778
+.byte 0x99
779
+.hword \darken_flashsize
780
+.endm
781
+
782
+.marco lighten lighten_flashsize
783
+.byte 0x9A
784
+.hword \lighten_flashsize
785
+.endm
786
+
787
+.marco doanimation doanimation_animation
788
+.byte 0x9C
789
+.hword \doanimation_animation
790
+.endm
791
+
792
+.marco setanimation setanimation_animation setanimation_variable
793
+.byte 0x9D
794
+.byte \setanimation_animation
795
+.hword \setanimation_variable
796
+.endm
797
+
798
+.marco checkanimation checkanimation_animation
799
+.byte 0x9E
800
+.hword \checkanimation_animation
801
+.endm
802
+
803
+.marco sethealingplace sethealingplace_flightspot
804
+.byte 0x9F
805
+.hword \sethealingplace_flightspot
806
+.endm
807
+
808
+.macro checkgender
809
+.byte 0xA0
810
+.endm
811
+
812
+.marco cry cry_spezies cry_effect
813
+.byte 0xA1
814
+.hword \cry_spezies
815
+.hword \cry_effect
816
+
817
+.marco setmaptile setmaptile_x setmaptile_y setmaptile_tile setmaptile_attribut
818
+.byte 0xA2
819
+.hword \setmaptile_x
820
+.hword \setmaptile_y
821
+.hword \setmaptile_tile
822
+.hword \setmaptile_attribut
823
+.endm
824
+
825
+.macro resetweather
826
+.byte 0xA3
827
+.endm
828
+
829
+.macro setweather setweather_weather
830
+.byte 0xA4
831
+.hword \setweather_weather
832
+.endm
833
+
834
+.macro doweather
835
+.byte 0xA5
836
+.endm
837
+
838
+.macro setmapfooter setmapfooter_footer
839
+.byte 0xA7
840
+.hword \setmapfooter_footer
841
+.endm
842
+
843
+.marco spritelevelup spritelevelup_people spritelevelup_bank spritelevelup_map
844
+.byte 0xA8
845
+.hword \spritelevelup_people
846
+.byte \spritelevelup_bank
847
+.byte \spritelevelup_map
848
+.byte 0x0
849
+.endm
850
+
851
+.marco restorespritelevel restorespritelevel_people restorespritelevel_bank restorespritelevel_map
852
+.byte 0xA9
853
+.hword \restorespritelevel_people
854
+.byte \restorespritelevel_bank
855
+.byte \restorespritelevel_map
856
+.endm
857
+
858
+.marco createsprite createsprite_sprite createsprite_id createsprite_x createsprite_y createsprite_behaviour createsprite_facing
859
+.byte 0xAA
860
+.byte \createsprite_sprite
861
+.byte \createsprite_id
862
+.hword \createsprite_x
863
+.hword \createsprite_y
864
+.byte \createsprite_behaviour
865
+.byte \createsprite_facing
866
+.endm
867
+
868
+.marco spriteface2 spriteface2_people spriteface2_facing
869
+.byte 0xAB
870
+.hword \spriteface2_people
871
+.byte \spriteface2_facing
872
+.endm
873
+
874
+.marco setdooropened setdooropened_x setdooropened_y
875
+.byte 0xAC
876
+.hword \setdooropened_x
877
+.hword \setdooropened_y
878
+.endm
879
+
880
+.marco setdoorclosed setdoorclosed_x setdoorclosed_y
881
+.byte 0xAD
882
+.hword \setdoorclosed_x
883
+.hword \setdoorclosed_y
884
+.endm
885
+
886
+.macro doorchange
887
+.byte 0xAE
888
+.endm
889
+
890
+.marco setdooropened2 setdooropened2_x setdooropened2_y
891
+.byte 0xAF
892
+.hword \setdooropened2_x
893
+.hword \setdooropened2_y
894
+.endm
895
+
896
+.marco setdoorclosed2 setdoorclosed2_x setdoorclosed2_y
897
+.byte 0xB0
898
+.hword \setdoorclosed2_x
899
+.hword \setdoorclosed2_y
900
+.endm
901
+
902
+.marco setwildbattle setwildbattle_spezies setwildbattle_level setwildbattle_item
903
+.byte 0xB6
904
+.hword \setwildbattle_spezies
905
+.byte \setwildbattle_level
906
+.hword \setwildbattle_item
907
+.endm
908
+
909
+.macro dowildbattle
910
+.byte 0xB7
911
+.endm
912
+
913
+.macro waitcry
914
+.byte 0xC5
915
+.endm
916
+
917
+.marco setworldmapflag setworldmapflag_flag
918
+.byte 0xD0
919
+.hword \setworldmapflag_flag
920
+.endm
921
+
922
+.macro bufferitems bufferitems_buffernumber bufferitems_item bufferitems_quantity
923
+.byte 0xD4
924
+.byte \bufferitems_buffernumber
925
+.hword \bufferitems_item
926
+.hword \bufferitems_quantity
927
+.endm