forked from pret/pokeplatinum
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbtlcmd.h
165 lines (152 loc) · 4.23 KB
/
btlcmd.h
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
#ifndef POKEPLATINUM_BATTLE_BTLCMD_H
#define POKEPLATINUM_BATTLE_BTLCMD_H
enum BattleScriptVars {
BTLVAR_BATTLE_TYPE = 0,
BTLVAR_CRITICAL_BOOSTS,
BTLVAR_SIDE_EFFECT_FLAGS_DIRECT,
BTLVAR_SIDE_EFFECT_FLAGS_INDIRECT,
BTLVAR_SIDE_EFFECT_FLAGS_ABILITY,
BTLVAR_SIDE_EFFECT_TYPE,
BTLVAR_BATTLE_CTX_STATUS,
BTLVAR_FIELD_CONDITIONS,
BTLVAR_POWER_MULTI,
BTLVAR_CALC_TEMP,
BTLVAR_MOVE_STATUS_FLAGS,
BTLVAR_SIDE_CONDITIONS_ATTACKER,
BTLVAR_SIDE_CONDITIONS_DEFENDER,
BTLVAR_SIDE_CONDITIONS_EFFECT_MON,
BTLVAR_DAMAGE,
BTLVAR_ATTACKER,
BTLVAR_DEFENDER,
BTLVAR_SIDE_EFFECT_MON,
BTLVAR_FAINTED_MON,
BTLVAR_SWITCHED_MON,
BTLVAR_MSG_BATTLER_TEMP,
BTLVAR_ATTACKER_STORED_DAMAGE,
BTLVAR_MSG_TEMP,
BTLVAR_PAY_DAY_COUNT,
BTLVAR_CURRENT_MOVE,
BTLVAR_TOTAL_TURNS,
BTLVAR_MSG_ATTACKER,
BTLVAR_MSG_DEFENDER,
BTLVAR_MOVE_TEMP,
BTLVAR_LAST_BATTLER_ID,
BTLVAR_MOVE_POWER,
BTLVAR_AFTER_MOVE_MESSAGE_TYPE,
BTLVAR_HP_CALC_TEMP,
BTLVAR_RESULT_MASK,
BTLVAR_SIDE_EFFECT_PARAM,
BTLVAR_MSG_MOVE_TEMP,
BTLVAR_MSG_ITEM_TEMP,
BTLVAR_MSG_ABILITY_TEMP,
BTLVAR_WEATHER_TURNS,
BTLVAR_BATTLER_SPEED_TEMP,
BTLVAR_MULTI_HIT_LOOP,
BTLVAR_ATTACKER_PHYSICAL_DAMAGE_MASK,
BTLVAR_ATTACKER_SPECIAL_DAMAGE_MASK,
BTLVAR_SCRIPT_TEMP,
BTLVAR_CRITICAL_MUL,
BTLVAR_ATTACKER_LAST_DAMAGE_TAKEN,
BTLVAR_DEFENDER_LAST_DAMAGE_TAKEN,
BTLVAR_ATTACKER_SELF_TURN_STATUS_FLAGS,
BTLVAR_DEFENDER_SELF_TURN_STATUS_FLAGS,
BTLVAR_SIDE_EFFECT_MON_SELF_TURN_STATUS_FLAGS,
BTLVAR_FLING_TEMP,
BTLVAR_FLING_SCRIPT,
BTLVAR_BATTLE_SYS_STATUS,
BTLVAR_ATTACKER_LOCKED_MOVE,
BTLVAR_HIT_DAMAGE,
BTLVAR_NUM_SAFARI_BALLS,
BTLVAR_SWITCHED_MON_TEMP,
BTLVAR_MOVE_TYPE,
BTLVAR_MOVE_EFFECT_CHANCE,
BTLVAR_REGULATION_FLAG,
BTLVAR_BATTLE_CTX_STATUS_2,
BTLVAR_TURN_ORDER_COUNTER,
BTLVAR_MAX_BATTLERS,
BTLVAR_ATTACKER_TEMP,
BTLVAR_DEFENDER_TEMP,
BTLVAR_DEFENDER_PHYSICAL_DAMAGE_TAKEN,
BTLVAR_MSG_BATTLER_TEMP_ASSURANCE_DAMAGE_MASK,
BTLVAR_DEFENDER_ASSURANCE_DAMAGE_MASK,
BTLVAR_ATTACKER_SHELL_BELL_DAMAGE_DEALT,
BTLVAR_WAITING_BATTLERS,
};
#define BTLSCR_ALL_BATTLERS 0
#define BTLSCR_ATTACKER 1
#define BTLSCR_DEFENDER 2
#define BTLSCR_PLAYER 3
#define BTLSCR_ENEMY 4
#define BTLSCR_FAINTED_MON 5
#define BTLSCR_SWITCHED_MON 6
#define BTLSCR_SIDE_EFFECT_MON 7
#define BTLSCR_ABILITY_MON 8
#define BTLSCR_PLAYER_SLOT_1 9
#define BTLSCR_ENEMY_SLOT_1 10
#define BTLSCR_PLAYER_SLOT_2 11
#define BTLSCR_ENEMY_SLOT_2 12
// 13 undefined
#define BTLSCR_MSG_ATTACKER 14
#define BTLSCR_MSG_DEFENDER 15
#define BTLSCR_ATTACKER_PARTNER 16
#define BTLSCR_DEFENDER_PARTNER 17
#define BTLSCR_FORCED_OUT 18
#define BTLSCR_ATTACKER_ENEMY 19
#define BTLSCR_DEFENDER_ENEMY 20
#define BTLSCR_MSG_BATTLER_TEMP 21
#define BTLSCR_SWITCHED_MON_AFTER 22
#define BTLSCR_MSG_TEMP (0xFF)
#define WEATHER_EFFECT_HYDRATION 1
#define WEATHER_EFFECT_SOLAR_POWER 2
enum OpCode {
IFOP_EQU = 0,
IFOP_NEQ,
IFOP_GT,
IFOP_LTE,
IFOP_FLAG_SET,
IFOP_FLAG_NOT,
IFOP_AND,
VALOP_SET,
VALOP_ADD,
VALOP_SUB,
VALOP_FLAG_ON,
VALOP_FLAG_OFF,
VALOP_MUL,
VALOP_DIV,
VALOP_LSH,
VALOP_RSH,
VALOP_FLAG_INDEX,
VALOP_GET,
VALOP_SUB_TO_ZERO,
VALOP_XOR,
VALOP_AND,
};
enum CheckAbilityOp {
CHECK_ABILITY_HAVE,
CHECK_ABILITY_NONE,
};
enum StatusEffect {
STATUS_EFFECT_LEVEL_UP = 8,
STATUS_EFFECT_STAGE_UP = 12,
STATUS_EFFECT_STAGE_DOWN,
STATUS_EFFECT_CHANGE_FORM_OUT = 15,
STATUS_EFFECT_CHANGE_FORM_IN,
STATUS_EFFECT_ITEM_ESCAPE,
STATUS_EFFECT_WEATHER_FOG,
STATUS_EFFECT_WEATHER_RAIN,
STATUS_EFFECT_WEATHER_HAIL,
STATUS_EFFECT_WEATHER_SAND,
STATUS_EFFECT_WEATHER_SUN,
STATUS_EFFECT_SUBSTITUTE_ON = 25,
STATUS_EFFECT_SUBSTITUTE_OFF,
};
enum MessageStatusCondition {
MSGCOND_SLEEP = 0,
MSGCOND_POISON,
MSGCOND_BURN,
MSGCOND_PARALYSIS,
MSGCOND_FREEZE,
MSGCOND_CONFUSION,
MSGCOND_INFATUATION,
};
#endif // POKEPLATINUM_BATTLE_BTLCMD_H