-
Notifications
You must be signed in to change notification settings - Fork 2
/
npc_cmds.h
214 lines (212 loc) · 6.45 KB
/
npc_cmds.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
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
#pragma once
#include "npc_interp.h"
enum pokescrcmd {
npc_cmd_nop_00 = 0x0,
npc_cmd_nop_01 = 0x1,
npc_cmd_end = 0x2,
npc_cmd_return_ = 0x3,
npc_cmd_call = 0x4,
npc_cmd_goto_ = 0x5,
npc_cmd_if_jump = 0x6,
npc_cmd_if_call = 0x7,
npc_cmd_jumpstd = 0x8,
npc_cmd_callstd = 0x9,
npc_cmd_jumpstd_if = 0xA,
npc_cmd_callstd_if = 0xB,
npc_cmd_execute_RAM_script = 0xC,
npc_cmd_endscript_killram = 0xD,
npc_cmd_setu8 = 0xE,
npc_cmd_u32_var_to_const = 0xF,
npc_cmd_u8_var_to_const = 0x10,
npc_cmd_u8_ptr_to_const = 0x11,
npc_cmd_u32_var_to_ptr = 0x12,
npc_cmd_u8_var_to_ptr = 0x13,
npc_cmd_u32_var_to_var = 0x14,
npc_cmd_u8_ptr_to_ptr = 0x15,
npc_cmd_u16_gvar_to_const = 0x16,
npc_cmd_u16_gvar_add_const = 0x17,
npc_cmd_u16_gvar_sub_const = 0x18,
npc_cmd_u16_gvar_gvar = 0x19,
npc_cmd_u16_gvar_gvar_ = 0x1A,
npc_cmd_cmp_u8_var_var = 0x1B,
npc_cmd_cmp_u8_var_const = 0x1C,
npc_cmd_cmp_u8_var_ptr = 0x1D,
npc_cmd_cmp_u8_ptr_var = 0x1E,
npc_cmd_cmp_u8_ptr_const = 0x1F,
npc_cmd_cmp_u8_ptr_ptr = 0x20,
npc_cmd_cmp_u16_gvar_const = 0x21,
npc_cmd_cmp_u16_gvar_gvar = 0x22,
npc_cmd_execute_ASM = 0x23,
npc_cmd_execute_ASM_2 = 0x24,
npc_cmd_special_call = 0x25,
npc_cmd_special_setvar = 0x26,
npc_cmd_set_to_waitstate = 0x27,
npc_cmd_pause = 0x28,
npc_cmd_setflag = 0x29,
npc_cmd_clearflag = 0x2A,
npc_cmd_checkflag = 0x2B,
npc_cmd_nop_2C = 0x2C,
npc_cmd_nop_2D = 0x2D,
npc_cmd_kill_LASTRESULT = 0x2E,
npc_cmd_play_music = 0x2F,
npc_cmd_check_music = 0x30,
npc_cmd_play_fanfare = 0x31,
npc_cmd_wait_fanfare = 0x32,
npc_cmd_unknown_34 = 0x34,
npc_cmd_fade_to_default = 0x35,
npc_cmd_fade_to_music = 0x36,
npc_cmd_fadeout = 0x37,
npc_cmd_fadein = 0x38,
npc_cmd_warp_sfx = 0x39,
npc_cmd_warp_new_music = 0x3A,
npc_cmd_warp_keep_music = 0x3B,
npc_cmd_warp_v3 = 0x3C,
npc_cmd_warp_v4 = 0x3D,
npc_cmd_set_new_map = 0x3E,
npc_cmd_set_new_map_DMA = 0x3F,
npc_cmd_set_new_map_2 = 0x40,
npc_cmd_set_new_map_3 = 0x41,
npc_cmd_get_current_hero_pos = 0x42,
npc_cmd_get_teampkmn_amount = 0x43,
npc_cmd_add_item_silently = 0x44,
npc_cmd_remove_item = 0x45,
npc_cmd_check_item_amount = 0x46,
npc_cmd_check_item = 0x47,
npc_cmd_get_item_type = 0x48,
npc_cmd_add_item_pc = 0x49,
npc_cmd_check_item_pc = 0x4A,
npc_cmd_nop_para_u16_4B = 0x4B,
npc_cmd_nop_para_u16_4C = 0x4C,
npc_cmd_nop_para_u16_4D = 0x4D,
npc_cmd_nop_para_u16_4E = 0x4E,
npc_cmd_execute_movement = 0x4F,
npc_cmd_unknown_50 = 0x50,
npc_cmd_waitmove = 0x51,
npc_cmd_waitmove_set_coords = 0x52,
npc_cmd_hide_sprite_set_coords = 0x54,
npc_cmd_show_sprite_set_coords = 0x56,
npc_cmd_move_sprites = 0x57,
npc_cmd_unknown_58 = 0x58,
npc_cmd_unknown_59 = 0x59,
npc_cmd_face_player = 0x5A,
npc_cmd_set_sprite_direction = 0x5B,
npc_cmd_trainer_battle = 0x5C,
npc_cmd_trainer_battle_repeat = 0x5D,
npc_cmd_end_battle_missing_start_message = 0x5E,
npc_cmd_end_battle_missing_win_message = 0x5F,
npc_cmd_check_trainer_flag = 0x60,
npc_cmd_set_trainer_flag = 0x61,
npc_cmd_unset_trainer_flag = 0x62,
npc_cmd_new_sprite_location_permanent = 0x63,
npc_cmd_set_sprite_top_left_corner = 0x64,
npc_cmd_set_sprite_behaviour = 0x65,
npc_cmd_check_text = 0x66,
npc_cmd_execute_box = 0x67,
npc_cmd_close_box = 0x68,
npc_cmd_lockall = 0x69,
npc_cmd_lockdown = 0x6A,
npc_cmd_release = 0x6B,
npc_cmd_release_2 = 0x6C,
npc_cmd_lock_player_movement = 0x6D,
npc_cmd_release_player = 0x6E,
npc_cmd_multiple_choice = 0x6F,
npc_cmd_multiple_choice_no_cancel = 0x70,
npc_cmd_multiple_choice_dunno = 0x71,
npc_cmd_nop_72 = 0x72,
npc_cmd_nop_73 = 0x73,
npc_cmd_nop_74 = 0x74,
npc_cmd_open_picture_box = 0x75,
npc_cmd_close_picture_box = 0x76,
npc_cmd_nop_parau8_77 = 0x77,
npc_cmd_braille_msgbox = 0x78,
npc_cmd_give_pokemon = 0x79,
npc_cmd_create_egg = 0x7A,
npc_cmd_change_pokedata_AP = 0x7B,
npc_cmd_check_attack_number = 0x7C,
npc_cmd_load_pokename = 0x7D,
npc_cmd_load_first_pokenames = 0x7E,
npc_cmd_load_pokename_team = 0x7F,
npc_cmd_load_item_name = 0x80,
npc_cmd_nop_halfword_81 = 0x81,
npc_cmd_load_textvar_var = 0x83,
npc_cmd_load_textvar_std_expression = 0x84,
npc_cmd_load_textvar_pointer = 0x85,
npc_cmd_open_shop = 0x86,
npc_cmd_open_casino_game1 = 0x89,
npc_cmd_nop_8A = 0x8A,
npc_cmd_set_choose_state = 0x8B,
npc_cmd_nop_8C = 0x8C,
npc_cmd_nop_8D = 0x8D,
npc_cmd_nop_8E = 0x8E,
npc_cmd_get_random_val = 0x8F,
npc_cmd_add_money = 0x90,
npc_cmd_substract_money = 0x91,
npc_cmd_check_money = 0x92,
npc_cmd_display_money = 0x93,
npc_cmd_hide_money = 0x94,
npc_cmd_update_money = 0x95,
npc_cmd_nop_96 = 0x96,
npc_cmd_screen_special_effect = 0x97,
npc_cmd_refade_with_timer = 0x98,
npc_cmd_set_sav1_flash_level = 0x99,
npc_cmd_unknown_9A = 0x9A,
npc_cmd_unknown_9B = 0x9B,
npc_cmd_execute_HM = 0x9C,
npc_cmd_set_HM_animation_data = 0x9D,
npc_cmd_checkarray_HM_animation = 0x9E,
npc_cmd_changeposition_fly = 0x9F,
npc_cmd_checkgender = 0xA0,
npc_cmd_play_cry = 0xA1,
npc_cmd_set_standard_weather_data = 0xA3,
npc_cmd_set_weather_data = 0xA4,
npc_cmd_execute_weather = 0xA5,
npc_cmd_unknown_A6 = 0xA6,
npc_cmd_set_new_map_footer = 0xA7,
npc_cmd_unknown_A8 = 0xA8,
npc_cmd_unknown_A9 = 0xA9,
npc_cmd_create_new_sprite = 0xAA,
npc_cmd_unknown_AB = 0xAB,
npc_cmd_open_door = 0xAC,
npc_cmd_close_door = 0xAD,
npc_cmd_wait_door = 0xAE,
npc_cmd_open_door_nosound = 0xAF,
npc_cmd_unknown_B0 = 0xB0,
npc_cmd_nop_B1 = 0xB1,
npc_cmd_nop_B2 = 0xB2,
npc_cmd_get_coin_amount = 0xB3,
npc_cmd_add_coins = 0xB4,
npc_cmd_substract_coins = 0xB5,
npc_cmd_load_battle = 0xB6,
npc_cmd_start_wild_battle = 0xB7,
npc_cmd_set_virtual_address = 0xB8,
npc_cmd_virtual_jump = 0xB9,
npc_cmd_virtual_call = 0xBA,
npc_cmd_virtual_if_jump = 0xBB,
npc_cmd_virtual_if_call = 0xBC,
npc_cmd_virtual_message = 0xBD,
npc_cmd_virtual_load_text = 0xBE,
npc_cmd_virtual_load_textbuffer = 0xBF,
npc_cmd_display_coins = 0xC0,
npc_cmd_hide_coins = 0xC1,
npc_cmd_update_coins = 0xC2,
npc_cmd_unknown_C3 = 0xC3,
npc_cmd_unknown_C4 = 0xC4,
npc_cmd_unknown_C5 = 0xC5,
npc_cmd_load_textvar_box_label = 0xC6,
npc_cmd_change_text_color = 0xC7,
npc_cmd_unknown_C8 = 0xC8,
npc_cmd_unknown_C9 = 0xC9,
npc_cmd_message_design_sign = 0xCA,
npc_cmd_message_design_person = 0xCB,
npc_cmd_compare_secret_game_data = 0xCC,
npc_cmd_set_obedient_bit = 0xCD,
npc_cmd_check_obedient_bit = 0xCE,
npc_cmd_execute_RAM_script_DMA = 0xCF,
npc_cmd_set_worldmap_flag = 0xD0,
npc_cmd_warp_v5 = 0xD1,
npc_cmd_change_catch_location = 0xD2,
npc_cmd_unknown_D3 = 0xD3,
npc_cmd_load_item_string_plur_sensitive = 0xD4,
npc_cmd_max = 0xD5
};
extern sbptr npc_cmds[];