2017-12-05 18:55:48 +01:00
# ifndef GUARD_CONSTANTS_VARS_H
# define GUARD_CONSTANTS_VARS_H
2018-05-19 18:02:43 +02:00
# define VARS_START 0x4000
// temporary vars
// The first 0x10 vars are are temporary--they are cleared every time a map is loaded.
2019-12-11 06:36:39 +01:00
# define TEMP_VARS_START 0x4000
# define VAR_TEMP_0 (TEMP_VARS_START + 0x0)
# define VAR_TEMP_1 (TEMP_VARS_START + 0x1)
# define VAR_TEMP_2 (TEMP_VARS_START + 0x2)
# define VAR_TEMP_3 (TEMP_VARS_START + 0x3)
# define VAR_TEMP_4 (TEMP_VARS_START + 0x4)
# define VAR_TEMP_5 (TEMP_VARS_START + 0x5)
# define VAR_TEMP_6 (TEMP_VARS_START + 0x6)
# define VAR_TEMP_7 (TEMP_VARS_START + 0x7)
# define VAR_TEMP_8 (TEMP_VARS_START + 0x8)
# define VAR_TEMP_9 (TEMP_VARS_START + 0x9)
# define VAR_TEMP_A (TEMP_VARS_START + 0xA)
# define VAR_TEMP_B (TEMP_VARS_START + 0xB)
# define VAR_TEMP_C (TEMP_VARS_START + 0xC)
# define VAR_TEMP_D (TEMP_VARS_START + 0xD)
# define VAR_TEMP_E (TEMP_VARS_START + 0xE)
# define VAR_TEMP_F (TEMP_VARS_START + 0xF)
# define TEMP_VARS_END VAR_TEMP_F
2018-05-19 18:02:43 +02:00
// object gfx id vars
// These 0x10 vars are used to dynamically control a map object's sprite.
// For example, the rival's sprite id is dynamically set based on the player's gender.
2019-11-21 04:55:44 +01:00
// See VarGetObjectEventGraphicsId().
2018-05-19 18:02:43 +02:00
# define VAR_OBJ_GFX_ID_0 0x4010
# define VAR_OBJ_GFX_ID_1 0x4011
# define VAR_OBJ_GFX_ID_2 0x4012
# define VAR_OBJ_GFX_ID_3 0x4013
# define VAR_OBJ_GFX_ID_4 0x4014
# define VAR_OBJ_GFX_ID_5 0x4015
# define VAR_OBJ_GFX_ID_6 0x4016
# define VAR_OBJ_GFX_ID_7 0x4017
# define VAR_OBJ_GFX_ID_8 0x4018
# define VAR_OBJ_GFX_ID_9 0x4019
# define VAR_OBJ_GFX_ID_A 0x401A
# define VAR_OBJ_GFX_ID_B 0x401B
# define VAR_OBJ_GFX_ID_C 0x401C
# define VAR_OBJ_GFX_ID_D 0x401D
# define VAR_OBJ_GFX_ID_E 0x401E
# define VAR_OBJ_GFX_ID_F 0x401F
// general purpose vars
2019-02-25 08:20:38 +01:00
# define VAR_RECYCLE_GOODS 0x4020
# define VAR_REPEL_STEP_COUNT 0x4021
# define VAR_ICE_STEP_COUNT 0x4022
# define VAR_STARTER_MON 0x4023 // 0=Treecko, 1=Torchic, 2=Mudkip
# define VAR_MIRAGE_RND_H 0x4024
# define VAR_MIRAGE_RND_L 0x4025
# define VAR_SECRET_BASE_MAP 0x4026
# define VAR_CYCLING_ROAD_RECORD_COLLISIONS 0x4027
# define VAR_CYCLING_ROAD_RECORD_TIME_L 0x4028
# define VAR_CYCLING_ROAD_RECORD_TIME_H 0x4029
# define VAR_HAPPINESS_STEP_COUNTER 0x402A
# define VAR_POISON_STEP_COUNTER 0x402B
# define VAR_RESET_RTC_ENABLE 0x402C
# define VAR_ENIGMA_BERRY_AVAILABLE 0x402D
2019-03-26 20:11:55 +01:00
# define VAR_0x402E 0x402E
2017-12-16 16:23:05 +01:00
2019-02-25 08:20:38 +01:00
# define VAR_FRONTIER_MANIAC_FACILITY 0x402F
2019-09-13 23:03:43 +02:00
# define VAR_FRONTIER_GAMBLER_CHALLENGE 0x4030
# define VAR_FRONTIER_GAMBLER_SET_CHALLENGE 0x4031
2019-02-25 08:20:38 +01:00
# define VAR_FRONTIER_GAMBLER_AMOUNT_BET 0x4032
2019-09-13 23:03:43 +02:00
# define VAR_FRONTIER_GAMBLER_STATE 0x4033
2017-12-16 16:23:05 +01:00
2019-02-25 08:20:38 +01:00
# define VAR_DEOXYS_ROCK_STEP_COUNT 0x4034
# define VAR_DEOXYS_ROCK_LEVEL 0x4035
2019-09-17 07:49:07 +02:00
# define VAR_PC_BOX_TO_SEND_MON 0x4036
2019-12-02 01:19:47 +01:00
# define VAR_ABNORMAL_WEATHER_LOCATION 0x4037
# define VAR_ABNORMAL_WEATHER_STEP_COUNTER 0x4038
# define VAR_SHOULD_END_ABNORMAL_WEATHER 0x4039
2019-03-22 19:36:06 +01:00
# define VAR_FARAWAY_ISLAND_STEP_COUNTER 0x403A
2019-02-25 08:20:38 +01:00
# define VAR_REGICE_STEPS_1 0x403B
# define VAR_REGICE_STEPS_2 0x403C
# define VAR_REGICE_STEPS_3 0x403D
# define VAR_ALTERING_CAVE_WILD_SET 0x403E
2019-10-12 04:23:05 +02:00
# define VAR_DISTRIBUTE_EON_TICKET 0x403F // This var is read and written, but is always zero. The only way to obtain the Eon Ticket in Emerald is via Record Mixing
2019-02-25 08:20:38 +01:00
# define VAR_DAYS 0x4040
2019-11-18 18:35:59 +01:00
# define VAR_FANCLUB_FAN_COUNTER 0x4041
2019-11-17 23:34:11 +01:00
# define VAR_FANCLUB_LOSE_FAN_TIMER 0x4042
2019-02-25 08:20:38 +01:00
# define VAR_DEPT_STORE_FLOOR 0x4043
2019-03-22 17:25:51 +01:00
# define VAR_TRICK_HOUSE_LEVEL 0x4044
2019-02-27 21:18:56 +01:00
# define VAR_POKELOT_PRIZE_ITEM 0x4045
2019-02-25 08:20:38 +01:00
# define VAR_NATIONAL_DEX 0x4046
# define VAR_SEEDOT_SIZE_RECORD 0x4047
# define VAR_ASH_GATHER_COUNT 0x4048
# define VAR_BIRCH_STATE 0x4049
# define VAR_CRUISE_STEP_COUNT 0x404A
# define VAR_POKELOT_RND1 0x404B
# define VAR_POKELOT_RND2 0x404C
2019-02-27 21:18:56 +01:00
# define VAR_POKELOT_PRIZE_PLACE 0x404D
2019-02-27 20:42:32 +01:00
# define VAR_UNUSED_0x404E 0x404E // Unused Var
2019-02-25 08:20:38 +01:00
# define VAR_LOTAD_SIZE_RECORD 0x404F
2019-08-05 17:23:45 +02:00
# define VAR_LITTLEROOT_TOWN_STATE 0x4050
# define VAR_OLDALE_TOWN_STATE 0x4051
2019-08-05 17:50:29 +02:00
# define VAR_DEWFORD_TOWN_STATE 0x4052 // Unused Var
2019-08-05 17:23:45 +02:00
# define VAR_LAVARIDGE_TOWN_STATE 0x4053
2019-08-05 17:50:29 +02:00
# define VAR_CURRENT_SECRET_BASE 0x4054 // was probably allocated for VAR_FALLARBOR_TOWN_STATE at one point
# define VAR_VERDANTURF_TOWN_STATE 0x4055 // Unused Var
# define VAR_PACIFIDLOG_TOWN_STATE 0x4056 // Unused Var
2019-08-05 17:23:45 +02:00
# define VAR_PETALBURG_CITY_STATE 0x4057
# define VAR_SLATEPORT_CITY_STATE 0x4058
2019-08-05 17:50:29 +02:00
# define VAR_MAUVILLE_CITY_STATE 0x4059 // Unused Var
2019-08-05 17:23:45 +02:00
# define VAR_RUSTBORO_CITY_STATE 0x405A
2019-08-05 17:50:29 +02:00
# define VAR_FORTREE_CITY_STATE 0x405B // Unused Var
# define VAR_LILYCOVE_CITY_STATE 0x405C // Unused Var
2019-08-05 17:23:45 +02:00
# define VAR_MOSSDEEP_CITY_STATE 0x405D
# define VAR_SOOTOPOLIS_CITY_STATE 0x405E
2019-08-05 17:50:29 +02:00
# define VAR_EVER_GRANDE_CITY_STATE 0x405F // Unused Var
2019-02-25 08:20:38 +01:00
# define VAR_ROUTE101_STATE 0x4060
2019-08-05 17:50:29 +02:00
# define VAR_ROUTE102_STATE 0x4061 // Unused Var
# define VAR_ROUTE103_STATE 0x4062 // Unused Var
2019-08-03 20:12:48 +02:00
# define VAR_ROUTE104_STATE 0x4063
2019-08-05 17:50:29 +02:00
# define VAR_ROUTE105_STATE 0x4064 // Unused Var
# define VAR_ROUTE106_STATE 0x4065 // Unused Var
# define VAR_ROUTE107_STATE 0x4066 // Unused Var
# define VAR_ROUTE108_STATE 0x4067 // Unused Var
# define VAR_ROUTE109_STATE 0x4068 // Unused Var
2019-02-25 08:20:38 +01:00
# define VAR_ROUTE110_STATE 0x4069
2019-08-05 17:50:29 +02:00
# define VAR_ROUTE111_STATE 0x406A // Unused Var
# define VAR_ROUTE112_STATE 0x406B // Unused Var
# define VAR_ROUTE113_STATE 0x406C // Unused Var
# define VAR_ROUTE114_STATE 0x406D // Unused Var
# define VAR_ROUTE115_STATE 0x406E // Unused Var
2019-02-25 08:20:38 +01:00
# define VAR_ROUTE116_STATE 0x406F
2019-08-05 17:50:29 +02:00
# define VAR_ROUTE117_STATE 0x4070 // Unused Var
2019-02-25 08:20:38 +01:00
# define VAR_ROUTE118_STATE 0x4071
# define VAR_ROUTE119_STATE 0x4072
2019-08-05 17:50:29 +02:00
# define VAR_ROUTE120_STATE 0x4073 // Unused Var
2019-02-25 08:20:38 +01:00
# define VAR_ROUTE121_STATE 0x4074
2019-08-05 17:50:29 +02:00
# define VAR_ROUTE122_STATE 0x4075 // Unused Var
# define VAR_ROUTE123_STATE 0x4076 // Unused Var
# define VAR_ROUTE124_STATE 0x4077 // Unused Var
# define VAR_ROUTE125_STATE 0x4078 // Unused Var
# define VAR_ROUTE126_STATE 0x4079 // Unused Var
# define VAR_ROUTE127_STATE 0x407A // Unused Var
2019-02-25 08:20:38 +01:00
# define VAR_ROUTE128_STATE 0x407B
2019-08-05 17:50:29 +02:00
# define VAR_ROUTE129_STATE 0x407C // Unused Var
# define VAR_ROUTE130_STATE 0x407D // Unused Var
# define VAR_ROUTE131_STATE 0x407E // Unused Var
# define VAR_ROUTE132_STATE 0x407F // Unused Var
# define VAR_ROUTE133_STATE 0x4080 // Unused Var
# define VAR_ROUTE134_STATE 0x4081 // Unused Var
2019-11-08 08:03:45 +01:00
# define VAR_LITTLEROOT_HOUSES_STATE_MAY 0x4082
2019-02-27 20:42:32 +01:00
# define VAR_UNUSED_0x4083 0x4083 // Unused Var
2019-02-25 08:20:38 +01:00
# define VAR_BIRCH_LAB_STATE 0x4084
2019-10-15 10:58:52 +02:00
# define VAR_PETALBURG_GYM_STATE 0x4085 // 0-1: Wally tutorial, 2-6: 0-4 badges, 7: Defeated Norman, 8: Rematch Norman
2019-11-11 03:54:00 +01:00
# define VAR_CONTEST_HALL_STATE 0x4086
2019-02-22 10:01:38 +01:00
# define VAR_CABLE_CLUB_STATE 0x4087
2019-11-11 03:54:00 +01:00
# define VAR_CONTEST_TYPE 0x4088
2019-02-27 21:18:56 +01:00
# define VAR_SECRET_BASE_INITIALIZED 0x4089
2019-02-25 08:20:38 +01:00
# define VAR_CONTEST_PRIZE_PICKUP 0x408A
2019-02-27 20:42:32 +01:00
# define VAR_UNUSED_0x408B 0x408B // Unused Var
2019-11-08 08:03:45 +01:00
# define VAR_LITTLEROOT_HOUSES_STATE_BRENDAN 0x408C
2019-02-25 08:20:38 +01:00
# define VAR_LITTLEROOT_RIVAL_STATE 0x408D
2019-08-03 20:12:48 +02:00
# define VAR_BOARD_BRINEY_BOAT_STATE 0x408E
2019-02-25 08:20:38 +01:00
# define VAR_DEVON_CORP_3F_STATE 0x408F
# define VAR_BRINEY_HOUSE_STATE 0x4090
2019-02-27 20:42:32 +01:00
# define VAR_UNUSED_0x4091 0x4091 // Unused Var
2019-02-25 08:20:38 +01:00
# define VAR_LITTLEROOT_INTRO_STATE 0x4092
# define VAR_MAUVILLE_GYM_STATE 0x4093
# define VAR_LILYCOVE_MUSEUM_2F_STATE 0x4094
# define VAR_LILYCOVE_FAN_CLUB_STATE 0x4095
# define VAR_BRINEY_LOCATION 0x4096
2019-08-03 20:12:48 +02:00
# define VAR_INIT_SECRET_BASE 0x4097
2019-02-25 08:20:38 +01:00
# define VAR_PETALBURG_WOODS_STATE 0x4098
# define VAR_LILYCOVE_CONTEST_LOBBY_STATE 0x4099
# define VAR_RUSTURF_TUNNEL_STATE 0x409A
2019-02-27 20:42:32 +01:00
# define VAR_UNUSED_0x409B 0x409B // Unused Var
2019-02-25 08:20:38 +01:00
# define VAR_ELITE_4_STATE 0x409C
2019-02-27 20:42:32 +01:00
# define VAR_UNUSED_0x409D 0x409D // Unused Var
2019-11-01 22:50:54 +01:00
# define VAR_MOSSDEEP_SPACE_CENTER_STAIR_GUARD_STATE 0x409E
# define VAR_MOSSDEEP_SPACE_CENTER_STATE 0x409F
2019-02-25 08:20:38 +01:00
# define VAR_SLATEPORT_HARBOR_STATE 0x40A0
2019-02-27 20:42:32 +01:00
# define VAR_UNUSED_0x40A1 0x40A1 // Unused var
2019-02-25 08:20:38 +01:00
# define VAR_SEAFLOOR_CAVERN_STATE 0x40A2
# define VAR_CABLE_CAR_STATION_STATE 0x40A3
2019-10-20 09:46:05 +02:00
# define VAR_SAFARI_ZONE_STATE 0x40A4 // 0: In or out of SZ, 1: Player exiting SZ, 2: Player entering SZ
2019-11-06 23:57:45 +01:00
# define VAR_TRICK_HOUSE_BEING_WATCHED_STATE 0x40A5
# define VAR_TRICK_HOUSE_FOUND_TRICK_MASTER 0x40A6
# define VAR_TRICK_HOUSE_ENTRANCE_STATE 0x40A7
2019-02-27 20:42:32 +01:00
# define VAR_UNUSED_0x40A8 0x40A8 // Unused Var
2019-02-25 08:20:38 +01:00
# define VAR_CYCLING_CHALLENGE_STATE 0x40A9
# define VAR_SLATEPORT_MUSEUM_1F_STATE 0x40AA
# define VAR_TRICK_HOUSE_PUZZLE_1_STATE 0x40AB
# define VAR_TRICK_HOUSE_PUZZLE_2_STATE 0x40AC
# define VAR_TRICK_HOUSE_PUZZLE_3_STATE 0x40AD
# define VAR_TRICK_HOUSE_PUZZLE_4_STATE 0x40AE
# define VAR_TRICK_HOUSE_PUZZLE_5_STATE 0x40AF
# define VAR_TRICK_HOUSE_PUZZLE_6_STATE 0x40B0
# define VAR_TRICK_HOUSE_PUZZLE_7_STATE 0x40B1
# define VAR_TRICK_HOUSE_PUZZLE_8_STATE 0x40B2
# define VAR_WEATHER_INSTITUTE_STATE 0x40B3
2019-11-08 09:37:46 +01:00
# define VAR_SS_TIDAL_STATE 0x40B4
2019-11-06 23:57:45 +01:00
# define VAR_TRICK_HOUSE_ENTER_FROM_CORRIDOR 0x40B5
# define VAR_TRICK_HOUSE_PUZZLE_7_STATE_2 0x40B6 // Leftover from RS, never set
2019-02-25 08:20:38 +01:00
# define VAR_SLATEPORT_FAN_CLUB_STATE 0x40B7
2019-02-27 20:42:32 +01:00
# define VAR_UNUSED_0x40B8 0x40B8 // Unused Var
2019-02-25 08:20:38 +01:00
# define VAR_MT_PYRE_STATE 0x40B9
# define VAR_NEW_MAUVILLE_STATE 0x40BA
2019-02-27 20:42:32 +01:00
# define VAR_UNUSED_0x40BB 0x40BB // Unused Var
2019-02-25 08:20:38 +01:00
# define VAR_BRAVO_TRAINER_BATTLE_TOWER_ON 0x40BC
# define VAR_JAGGED_PASS_ASH_WEATHER 0x40BD
# define VAR_GLASS_WORKSHOP_STATE 0x40BE
# define VAR_METEOR_FALLS_STATE 0x40BF
# define VAR_SOOTOPOLIS_MYSTERY_EVENTS_STATE 0x40C0
# define VAR_TRICK_HOUSE_PRIZE_PICKUP 0x40C1
# define VAR_PACIFIDLOG_TM_RECEIVED_DAY 0x40C2
# define VAR_VICTORY_ROAD_1F_STATE 0x40C3
# define VAR_FOSSIL_RESURRECTION_STATE 0x40C4
# define VAR_WHICH_FOSSIL_REVIVED 0x40C5
# define VAR_STEVENS_HOUSE_STATE 0x40C6
2019-08-05 17:23:45 +02:00
# define VAR_OLDALE_RIVAL_STATE 0x40C7
2019-02-28 02:25:09 +01:00
# define VAR_JAGGED_PASS_STATE 0x40C8
2019-02-28 06:06:27 +01:00
# define VAR_SCOTT_PETALBURG_ENCOUNTER 0x40C9
2019-02-28 02:25:09 +01:00
# define VAR_SKY_PILLAR_STATE 0x40CA
2019-08-05 17:50:29 +02:00
# define VAR_MIRAGE_TOWER_STATE 0x40CB
2019-02-28 02:25:09 +01:00
# define VAR_FOSSIL_MANIAC_STATE 0x40CC
# define VAR_CABLE_CLUB_TUTORIAL_STATE 0x40CD
2019-02-25 08:20:38 +01:00
# define VAR_FRONTIER_BATTLE_MODE 0x40CE
# define VAR_FRONTIER_FACILITY 0x40CF
2019-02-28 02:25:09 +01:00
# define VAR_HAS_ENTERED_BATTLE_FRONTIER 0x40D0 // Var is used like a flag.
# define VAR_SCOTT_STATE 0x40D1
# define VAR_SLATEPORT_OUTSIDE_MUSEUM_STATE 0x40D2
2019-08-03 20:12:48 +02:00
# define VAR_DEX_UPGRADE_JOHTO_STARTER_STATE 0x40D3
2019-02-28 02:25:09 +01:00
# define VAR_SS_TIDAL_SCOTT_STATE 0x40D4 // Always equal to FLAG_MET_SCOTT_ON_SS_TIDAL
# define VAR_ROAMER_POKEMON 0x40D5 // 0 = Latias, 1 = Latios
2019-02-28 04:16:01 +01:00
# define VAR_TRAINER_HILL_IS_ACTIVE 0x40D6
2019-02-28 05:54:51 +01:00
# define VAR_SKY_PILLAR_RAQUAZA_CRY_DONE 0x40D7
2019-08-05 17:23:45 +02:00
# define VAR_SOOTOPOLIS_WALLACE_STATE 0x40D8
2019-02-28 05:54:51 +01:00
# define VAR_HAS_TALKED_TO_SEAFLOOR_CAVERN_ENTRANCE_GRUNT 0x40D9
2019-08-03 20:12:48 +02:00
# define VAR_REGISTER_BIRCH_STATE 0x40DA
2019-02-27 20:42:32 +01:00
# define VAR_UNUSED_0x40DB 0x40DB // Unused Var
# define VAR_UNUSED_0x40DC 0x40DC // Unused Var
2019-02-25 08:20:38 +01:00
# define VAR_EVENT_PICHU_SLOT 0x40DD
2019-02-27 20:42:32 +01:00
# define VAR_NEVER_READ_0x40DE 0x40DE // Var is written to, but never read
# define VAR_NEVER_READ_0x40DF 0x40DF // Var is written to, but never read
# define VAR_NEVER_READ_0x40E0 0x40E0 // Var is written to, but never read
# define VAR_NEVER_READ_0x40E1 0x40E1 // Var is written to, but never read
# define VAR_NEVER_READ_0x40E2 0x40E2 // Var is written to, but never read
# define VAR_NEVER_READ_0x40E3 0x40E3 // Var is written to, but never read
# define VAR_NEVER_READ_0x40E4 0x40E4 // var is written to, but never read
# define VAR_UNUSED_0x40E5 0x40E5 // Unused Var
2019-02-25 08:20:38 +01:00
# define VAR_DAILY_SLOTS 0x40E6
# define VAR_DAILY_WILDS 0x40E7
# define VAR_DAILY_BLENDER 0x40E8
# define VAR_DAILY_PLANTED_BERRIES 0x40E9
# define VAR_DAILY_PICKED_BERRIES 0x40EA
# define VAR_DAILY_ROULETTE 0x40EB
2019-02-28 05:54:51 +01:00
# define VAR_SECRET_BASE_STEP_COUNTER 0x40EC // Used by Secret Base TV programs
# define VAR_SECRET_BASE_LAST_ITEM_USED 0x40ED // Used by Secret Base TV programs
# define VAR_SECRET_BASE_LOW_TV_FLAGS 0x40EE // Used by Secret Base TV programs
# define VAR_SECRET_BASE_HIGH_TV_FLAGS 0x40EF // Used by Secret Base TV programs
# define VAR_SECRET_BASE_IS_NOT_LOCAL 0x40F0 // Set to TRUE while in another player's secret base.
2019-02-25 08:20:38 +01:00
# define VAR_DAILY_BP 0x40F1
2019-02-28 05:54:51 +01:00
# define VAR_WALLY_CALL_STEP_COUNTER 0x40F2
2019-11-12 17:07:43 +01:00
# define VAR_SCOTT_FORTREE_CALL_STEP_COUNTER 0x40F3
2019-02-28 05:54:51 +01:00
# define VAR_ROXANNE_CALL_STEP_COUNTER 0x40F4
2019-11-12 17:07:43 +01:00
# define VAR_SCOTT_BF_CALL_STEP_COUNTER 0x40F5
2019-02-28 05:54:51 +01:00
# define VAR_RIVAL_RAYQUAZA_CALL_STEP_COUNTER 0x40F6
2019-02-27 20:42:32 +01:00
# define VAR_UNUSED_0x40F7 0x40F7 // Unused Var
# define VAR_UNUSED_0x40F8 0x40F8 // Unused Var
# define VAR_UNUSED_0x40F9 0x40F9 // Unused Var
# define VAR_UNUSED_0x40FA 0x40FA // Unused Var
# define VAR_UNUSED_0x40FB 0x40FB // Unused Var
# define VAR_UNUSED_0x40FC 0x40FC // Unused Var
# define VAR_UNUSED_0x40FD 0x40FD // Unused Var
# define VAR_UNUSED_0x40FE 0x40FE // Unused Var
# define VAR_UNUSED_0x40FF 0x40FF // Unused Var
2017-12-11 19:27:51 +01:00
2019-12-19 01:12:09 +01:00
# define VARS_END 0x40FF
2020-06-24 23:00:19 +02:00
# define VARS_COUNT (VARS_END - VARS_START + 1)
2019-12-19 01:12:09 +01:00
# define SPECIAL_VARS_START 0x8000
2018-05-19 18:02:43 +02:00
// special vars
// They are commonly used as parameters to commands, or return values from commands.
2019-02-28 06:06:27 +01:00
# define VAR_0x8000 0x8000
# define VAR_0x8001 0x8001
# define VAR_0x8002 0x8002
# define VAR_0x8003 0x8003
# define VAR_0x8004 0x8004
# define VAR_0x8005 0x8005
# define VAR_0x8006 0x8006
# define VAR_0x8007 0x8007
# define VAR_0x8008 0x8008
# define VAR_0x8009 0x8009
# define VAR_0x800A 0x800A
# define VAR_0x800B 0x800B
# define VAR_FACING 0x800C
# define VAR_RESULT 0x800D
# define VAR_ITEM_ID 0x800E
# define VAR_LAST_TALKED 0x800F
# define VAR_CONTEST_RANK 0x8010
# define VAR_CONTEST_CATEGORY 0x8011
# define VAR_MON_BOX_ID 0x8012
# define VAR_MON_BOX_POS 0x8013
# define VAR_UNUSED_0x8014 0x8014
# define VAR_TRAINER_BATTLE_OPPONENT_A 0x8015 // Alias of gTrainerBattleOpponent_A
2017-12-05 18:55:48 +01:00
2019-12-19 01:12:09 +01:00
# define SPECIAL_VARS_END 0x8015
2017-12-05 18:55:48 +01:00
# endif // GUARD_CONSTANTS_VARS_H