|
@@ -1,124 +1,110 @@
|
1
|
|
-#include "pkmn_types.h"
|
2
|
|
-
|
3
|
|
-#ifndef CONFIG_S_
|
4
|
|
-#define CONFIG_S_
|
5
|
|
-
|
6
|
|
-#define MAGIC_BOUNCE_FLAG 0x0203FFFD
|
7
|
|
-#define OBJ_1_TEMP 0x0203FFFE
|
8
|
|
-#define OBJ_2_TEMP 0x0203FFFF
|
9
|
|
-
|
10
|
|
-
|
11
|
|
-/*Variables regarding battle background loading*/
|
12
|
|
-#define NORMAL_VAR 0x4000
|
13
|
|
-#define SEA_VAR 0x4001
|
14
|
|
-
|
15
|
|
-/*Variables and Tags regarding mugshots*/
|
16
|
|
-#define MUGHSOT_1_TABLE 0x5000
|
17
|
|
-#define MUGSHOT_1_X 0x5001
|
18
|
|
-#define MUGSHOT_1_Y 0x5002
|
19
|
|
-#define MUGSHOT_1_TAG 0x1337
|
20
|
|
-
|
21
|
|
-#define MUGHSOT_2_TABLE 0x5003
|
22
|
|
-#define MUGSHOT_2_X 0x5004
|
23
|
|
-#define MUGSHOT_2_Y 0x5005
|
24
|
|
-#define MUGSHOT_2_TAG 0x1338
|
25
|
|
-
|
26
|
|
-/*Variable for special control*/
|
27
|
|
-#define CALLASM_VAR 0x5006
|
28
|
|
-
|
29
|
|
-/*Variables for camera control*/
|
30
|
|
-#define CAMERA_VAR_X 0x5007
|
31
|
|
-#define CAMERA_VAR_Y 0x5008
|
32
|
|
-
|
33
|
|
-/*Variables for walking script control*/
|
34
|
|
-#define WALK_SCRIPT_VAR 0x5009
|
35
|
|
-
|
36
|
|
-/*Variable for custom text*/
|
37
|
|
-#define TEXT_VAR 0x500C
|
38
|
|
-
|
39
|
|
-/*Variable for controlling evolutions*/
|
40
|
|
-#define EVO_VAR 0x500D
|
41
|
|
-
|
42
|
|
-/*Variables to control the music overrides*/
|
43
|
|
-#define VAR_FROM_1 0x51FA
|
44
|
|
-#define VAR_FROM_2 0x51FB
|
45
|
|
-#define VAR_FROM_3 0x51FC
|
46
|
|
-#define VAR_TO_1 0x51FD
|
47
|
|
-#define VAR_TO_2 0x51FE
|
48
|
|
-#define VAR_TO_3 0x51FF
|
49
|
|
-
|
50
|
|
-/*Flag to enable the music overrides*/
|
51
|
|
-#define FLAG_SKIP_BATTLE_MUSIC 0x742
|
52
|
|
-
|
53
|
|
-/*Trainer encounter IDs*/
|
54
|
|
-#define TRAINER_EYE_MUS_BOY 0
|
55
|
|
-#define TRAINER_EYE_MUS_GIRL 1
|
56
|
|
-#define TRAINER_EYE_MUS_KID 2
|
57
|
|
-#define TRAINER_EYE_MUS_HIKER 3
|
58
|
|
-#define TRAINER_EYE_MUS_SAILOR 4
|
59
|
|
-#define TRAINER_EYE_MUS_ELECTRIC 5
|
60
|
|
-#define TRAINER_EYE_MUS_PSYCHIC 6
|
61
|
|
-#define TRAINER_EYE_MUS_SWIMMER 7
|
62
|
|
-#define TRAINER_EYE_MUS_ACE 8
|
63
|
|
-#define TRAINER_EYE_MUS_ELITE 9
|
64
|
|
-#define TRAINER_EYE_MUS_CHAMP 10
|
65
|
|
-#define TRAINER_EYE_MUS_TT_GRUNT_M 11
|
66
|
|
-#define TRAINER_EYE_MUS_TT_GRUNT_F 12
|
67
|
|
-#define TRAINER_EYE_MUS_TT_ADMIN 13
|
68
|
|
-#define TRAINER_EYE_MUS_TT_BOSS_1 14
|
69
|
|
-#define TRAINER_EYE_MUS_TT_BOSS_2 15
|
70
|
|
-
|
71
|
|
-/*Flag to deactivate transparent textboxes*/
|
72
|
|
-#define FLAG_ACTIVATE 0x900
|
73
|
|
-#define FLAG_WALK_SCRIPT 0x901
|
74
|
|
-#define FLAG_DEOXYS_AURA 0x902
|
75
|
|
-
|
76
|
|
-/*Effect IDs controlling various in-battle item effects etc.*/
|
77
|
|
-#define ITEM_EFFECT_SMOOTH_ROCK 0x48
|
78
|
|
-#define ITEM_EFFECT_DAMP_ROCK 0x49
|
79
|
|
-#define ITEM_EFFECT_HEAT_ROCK 0x4A
|
80
|
|
-#define ITEM_EFFECT_ICY_ROCK 0x4B
|
81
|
|
-#define ITEM_EFFECT_FLAME_ORB 0x4C
|
82
|
|
-#define ITEM_EFFECT_TOXIC_ORB 0x4D
|
83
|
|
-#define ITEM_EFFECT_EXPERT_BELT 0x4E
|
84
|
|
-
|
85
|
|
-/*Battlescript command definitions (Do not edit unless changing the command table [bs_command_table.S])*/
|
86
|
|
-#define BS_ATTACKSTRING 0x02
|
87
|
|
-#define BS_PPREDUCE 0x03
|
88
|
|
-
|
89
|
|
-#define BS_ATTACKANIMATION 0x09
|
90
|
|
-#define BS_WAITANIMATION 0x0A
|
91
|
|
-#define BS_PRINTSTRING 0x10
|
92
|
|
-#define BS_WAITMESSAGE 0x12
|
93
|
|
-#define BS_JUMPIFSTATUS 0x1C
|
94
|
|
-#define BS_JUMPIFABILITY 0x1E
|
95
|
|
-#define BS_JUMPIFSTAT 0x20
|
96
|
|
-#define BS_JUMPIFWORD 0x2B
|
97
|
|
-#define BS_GOTO 0x28
|
98
|
|
-#define BS_JUMPIFARRAYNOTEQUAL 0x2D
|
99
|
|
-#define BS_SETBYTE 0x2E
|
100
|
|
-#define BS_ORWORD 0x35
|
101
|
|
-#define BS_PAUSE 0x39
|
102
|
|
-#define BS_WAITSTATE 0x3A
|
103
|
|
-#define BS_RETURN 0x3C
|
104
|
|
-#define BS_END3 0x3F
|
105
|
|
-#define BS_CALL 0x41
|
106
|
|
-#define BS_PLAYANIMATION 0x45
|
107
|
|
-#define BS_PLAYSTATANIM 0x48
|
108
|
|
-#define BS_SWITCH1 0x4C
|
109
|
|
-#define BS_SWITCH2 0x4D
|
110
|
|
-#define BS_SWITCH3 0x4E
|
111
|
|
-#define BS_NOP3 0x83
|
112
|
|
-#define BS_STATBUFFCHANGE 0x89
|
113
|
|
-#define BS_CASTFORMSWITCH 0xE7
|
114
|
|
-#define BS_CALLASM 0xF8
|
115
|
|
-#define BS_CURESTATUS 0xF9
|
116
|
|
-#define BS_SETWORD 0xFA
|
117
|
|
-
|
118
|
|
-/*For hacking the miracle eye command into set foresight*/
|
119
|
|
-/*Comment out the first define to deactivate the miracleeye injection in the command table*/
|
120
|
|
-
|
121
|
|
-/*Some move effect IDs important for correct implementation*/
|
122
|
|
-#define MOVE_EFFECT_SACRED_SWORD 0xFF
|
123
|
|
-
|
124
|
|
-#endif
|
|
1
|
+#include "pkmn_types.h"
|
|
2
|
+
|
|
3
|
+#ifndef CONFIG_S_
|
|
4
|
+#define CONFIG_S_
|
|
5
|
+
|
|
6
|
+#define MAGIC_BOUNCE_FLAG 0x0203FFFD
|
|
7
|
+#define OBJ_1_TEMP 0x0203FFFE
|
|
8
|
+#define OBJ_2_TEMP 0x0203FFFF
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+/*Variables regarding battle background loading*/
|
|
12
|
+#define NORMAL_VAR 0x4000
|
|
13
|
+#define SEA_VAR 0x4001
|
|
14
|
+
|
|
15
|
+/*Variables and Tags regarding mugshots*/
|
|
16
|
+#define MUGHSOT_1_TABLE 0x5000
|
|
17
|
+#define MUGSHOT_1_X 0x5001
|
|
18
|
+#define MUGSHOT_1_Y 0x5002
|
|
19
|
+#define MUGSHOT_1_TAG 0x1337
|
|
20
|
+
|
|
21
|
+#define MUGHSOT_2_TABLE 0x5003
|
|
22
|
+#define MUGSHOT_2_X 0x5004
|
|
23
|
+#define MUGSHOT_2_Y 0x5005
|
|
24
|
+#define MUGSHOT_2_TAG 0x1338
|
|
25
|
+
|
|
26
|
+/*Variable for special control*/
|
|
27
|
+#define CALLASM_VAR 0x5006
|
|
28
|
+
|
|
29
|
+/*Variables for camera control*/
|
|
30
|
+#define CAMERA_VAR_X 0x5007
|
|
31
|
+#define CAMERA_VAR_Y 0x5008
|
|
32
|
+
|
|
33
|
+/*Variables for walking script control*/
|
|
34
|
+#define WALK_SCRIPT_VAR 0x5009
|
|
35
|
+
|
|
36
|
+/*Variable for custom text*/
|
|
37
|
+#define TEXT_VAR 0x500C
|
|
38
|
+
|
|
39
|
+/*Variable for controlling evolutions*/
|
|
40
|
+#define EVO_VAR 0x500D
|
|
41
|
+
|
|
42
|
+#define HEALING_BANK_MAP_VAR 0x500E
|
|
43
|
+#define HEALING_X_VAR 0x500F
|
|
44
|
+#define HEALING_Y_VAR 0x5010
|
|
45
|
+
|
|
46
|
+/*Variables to control the music overrides*/
|
|
47
|
+#define VAR_FROM_1 0x51FA
|
|
48
|
+#define VAR_FROM_2 0x51FB
|
|
49
|
+#define VAR_FROM_3 0x51FC
|
|
50
|
+#define VAR_TO_1 0x51FD
|
|
51
|
+#define VAR_TO_2 0x51FE
|
|
52
|
+#define VAR_TO_3 0x51FF
|
|
53
|
+
|
|
54
|
+/*Flag to enable the music overrides*/
|
|
55
|
+#define FLAG_SKIP_BATTLE_MUSIC 0x742
|
|
56
|
+
|
|
57
|
+/*Flag to deactivate transparent textboxes*/
|
|
58
|
+#define FLAG_ACTIVATE 0x900
|
|
59
|
+#define FLAG_WALK_SCRIPT 0x901
|
|
60
|
+#define FLAG_DEOXYS_AURA 0x902
|
|
61
|
+
|
|
62
|
+/*Effect IDs controlling various in-battle item effects etc.*/
|
|
63
|
+#define ITEM_EFFECT_SMOOTH_ROCK 0x48
|
|
64
|
+#define ITEM_EFFECT_DAMP_ROCK 0x49
|
|
65
|
+#define ITEM_EFFECT_HEAT_ROCK 0x4A
|
|
66
|
+#define ITEM_EFFECT_ICY_ROCK 0x4B
|
|
67
|
+#define ITEM_EFFECT_FLAME_ORB 0x4C
|
|
68
|
+#define ITEM_EFFECT_TOXIC_ORB 0x4D
|
|
69
|
+#define ITEM_EFFECT_EXPERT_BELT 0x4E
|
|
70
|
+
|
|
71
|
+/*Battlescript command definitions (Do not edit unless changing the command table [bs_command_table.S])*/
|
|
72
|
+#define BS_ATTACKSTRING 0x02
|
|
73
|
+#define BS_PPREDUCE 0x03
|
|
74
|
+
|
|
75
|
+#define BS_ATTACKANIMATION 0x09
|
|
76
|
+#define BS_WAITANIMATION 0x0A
|
|
77
|
+#define BS_PRINTSTRING 0x10
|
|
78
|
+#define BS_WAITMESSAGE 0x12
|
|
79
|
+#define BS_JUMPIFSTATUS 0x1C
|
|
80
|
+#define BS_JUMPIFABILITY 0x1E
|
|
81
|
+#define BS_JUMPIFSTAT 0x20
|
|
82
|
+#define BS_JUMPIFWORD 0x2B
|
|
83
|
+#define BS_GOTO 0x28
|
|
84
|
+#define BS_JUMPIFARRAYNOTEQUAL 0x2D
|
|
85
|
+#define BS_SETBYTE 0x2E
|
|
86
|
+#define BS_ORWORD 0x35
|
|
87
|
+#define BS_PAUSE 0x39
|
|
88
|
+#define BS_WAITSTATE 0x3A
|
|
89
|
+#define BS_RETURN 0x3C
|
|
90
|
+#define BS_END3 0x3F
|
|
91
|
+#define BS_CALL 0x41
|
|
92
|
+#define BS_PLAYANIMATION 0x45
|
|
93
|
+#define BS_PLAYSTATANIM 0x48
|
|
94
|
+#define BS_SWITCH1 0x4C
|
|
95
|
+#define BS_SWITCH2 0x4D
|
|
96
|
+#define BS_SWITCH3 0x4E
|
|
97
|
+#define BS_NOP3 0x83
|
|
98
|
+#define BS_STATBUFFCHANGE 0x89
|
|
99
|
+#define BS_CASTFORMSWITCH 0xE7
|
|
100
|
+#define BS_CALLASM 0xF8
|
|
101
|
+#define BS_CURESTATUS 0xF9
|
|
102
|
+#define BS_SETWORD 0xFA
|
|
103
|
+
|
|
104
|
+/*For hacking the miracle eye command into set foresight*/
|
|
105
|
+/*Comment out the first define to deactivate the miracleeye injection in the command table*/
|
|
106
|
+
|
|
107
|
+/*Some move effect IDs important for correct implementation*/
|
|
108
|
+#define MOVE_EFFECT_SACRED_SWORD 0xFF
|
|
109
|
+
|
|
110
|
+#endif
|