|
@@ -5,8 +5,10 @@
|
5
|
5
|
#include <script/movement.h>
|
6
|
6
|
#include <script/mugshot.h>
|
7
|
7
|
#include <script/battlescreen.h>
|
|
8
|
+#include <script/items.h>
|
8
|
9
|
|
9
|
|
-#include <script_constant.h> /*TODO: REMOVE ONCE THIS IS DEALT WITH*/
|
|
10
|
+@@Some Constants
|
|
11
|
+.equ PLAYER, 0xFF
|
10
|
12
|
|
11
|
13
|
@@ Costum Specials
|
12
|
14
|
.equ SP_BATCHMAPTILE, 0x7
|
|
@@ -19,6 +21,12 @@
|
19
|
21
|
.equ B_GE, 0x4
|
20
|
22
|
.equ B_NE, 0x5
|
21
|
23
|
|
|
24
|
+@@Spritefacing
|
|
25
|
+.equ SPRITEFACE_DOWN, 0x1
|
|
26
|
+.equ SPRITEFACE_UP, 0x2
|
|
27
|
+.equ SPRITEFACE_LEFT, 0x3
|
|
28
|
+.equ SPRITEFACE_RIGHT, 0x4
|
|
29
|
+
|
22
|
30
|
@@ Important flags
|
23
|
31
|
.equ FLAG_PKMN_MENU, 0x828
|
24
|
32
|
.equ FLAG_POKDEX, 0x829
|
|
@@ -68,6 +76,19 @@
|
68
|
76
|
|
69
|
77
|
@@ Custom commands
|
70
|
78
|
|
|
79
|
+.macro camerafreeze
|
|
80
|
+special 0x113
|
|
81
|
+.endm
|
|
82
|
+
|
|
83
|
+.macro cameraunfreeze
|
|
84
|
+special 0x114
|
|
85
|
+.endm
|
|
86
|
+
|
|
87
|
+.macro spritefacedelay spritefacedelay_id:req spritefacedelay_facing:req
|
|
88
|
+spriteface \spritefacedelay_id spritefacedelay_facing
|
|
89
|
+pause 0x20
|
|
90
|
+.endm
|
|
91
|
+
|
71
|
92
|
.macro batchmaptilefromto batchmaptile_tiles_from:req batchmaptile_tiles_to:req batchmaptile_kollision_from:req batchmaptile_kollision_to:req
|
72
|
93
|
setvar 0x8000 \batchmaptile_tiles_from
|
73
|
94
|
setvar 0x8001 \batchmaptile_tiles_to
|
|
@@ -232,8 +253,7 @@ msgbox \mugmsg_textpointer \mugmsg_callstd
|
232
|
253
|
setvar MUGHSOT_1_TABLE 0x0
|
233
|
254
|
.endm
|
234
|
255
|
|
235
|
|
-.macro mugrival mugrival_textpointer:req mugrival_callstd:req mugrival_facing:req mugrival_emot=0
|
236
|
|
-setvar 0x8000 \mugrival_emot
|
|
256
|
+.macro mugrival mugrival_textpointer:req mugrival_callstd:req mugrival_facing:req
|
237
|
257
|
.if \mugrival_facing==MUGFACE_LEFT
|
238
|
258
|
call scr_mugrival_left
|
239
|
259
|
.endif
|
|
@@ -284,6 +304,12 @@ setflag FLAG_SKIP_BATTLE_MUSIC
|
284
|
304
|
clearflag FLAG_SKIP_BATTLE_MUSIC
|
285
|
305
|
.endm
|
286
|
306
|
|
|
307
|
+.macro changeowto changeowto_from:req changeowto_to:req
|
|
308
|
+setvar CHANGE_OW_FROM \changeowto_from
|
|
309
|
+setvar CHANGE_OW_TO \changeowto_to
|
|
310
|
+.endm
|
|
311
|
+
|
|
312
|
+
|
287
|
313
|
@@ Index commands
|
288
|
314
|
|
289
|
315
|
.macro nop
|