2020-06-20 20:03:40 -07:00
|
|
|
; wInputType::
|
2018-01-22 09:03:18 -08:00
|
|
|
AUTO_INPUT EQU $ff
|
|
|
|
|
2020-06-20 20:03:40 -07:00
|
|
|
; wDebugFlags::
|
2018-09-15 17:15:55 -07:00
|
|
|
const_def
|
|
|
|
const DEBUG_BATTLE_F
|
|
|
|
const DEBUG_FIELD_F
|
|
|
|
|
2020-06-20 20:03:40 -07:00
|
|
|
; wCurDexMode::
|
2018-01-22 09:03:18 -08:00
|
|
|
const_def
|
|
|
|
const DEXMODE_NEW
|
|
|
|
const DEXMODE_OLD
|
|
|
|
const DEXMODE_ABC
|
|
|
|
const DEXMODE_UNOWN
|
|
|
|
|
2020-06-20 20:03:40 -07:00
|
|
|
; wMonType::
|
2017-12-09 10:28:23 -08:00
|
|
|
const_def
|
|
|
|
const PARTYMON ; 0
|
|
|
|
const OTPARTYMON ; 1
|
|
|
|
const BOXMON ; 2
|
|
|
|
const TEMPMON ; 3
|
|
|
|
const WILDMON ; 4
|
2013-11-27 11:37:38 -08:00
|
|
|
|
2020-10-28 10:35:39 -07:00
|
|
|
; wGameTimerPaused::
|
|
|
|
GAME_TIMER_PAUSED_F EQU 0
|
|
|
|
GAME_TIMER_MOBILE_F EQU 7
|
|
|
|
|
|
|
|
; wJoypadDisable::
|
|
|
|
JOYPAD_DISABLE_MON_FAINT_F EQU 6
|
|
|
|
JOYPAD_DISABLE_SGB_TRANSFER_F EQU 7
|
2018-01-23 09:40:29 -08:00
|
|
|
|
2021-03-17 08:38:01 -07:00
|
|
|
; wOptions1::
|
2018-07-10 14:18:23 -07:00
|
|
|
TEXT_DELAY_MASK EQU %111
|
2018-01-31 08:38:45 -08:00
|
|
|
const_def 4
|
2017-12-11 10:47:58 -08:00
|
|
|
const NO_TEXT_SCROLL ; 4
|
|
|
|
const STEREO ; 5
|
|
|
|
const BATTLE_SHIFT ; 6
|
|
|
|
const BATTLE_SCENE ; 7
|
2017-12-09 10:28:23 -08:00
|
|
|
|
2018-07-10 14:18:23 -07:00
|
|
|
TEXT_DELAY_FAST EQU %001 ; 1
|
|
|
|
TEXT_DELAY_MED EQU %011 ; 3
|
|
|
|
TEXT_DELAY_SLOW EQU %101 ; 5
|
2017-12-11 10:47:58 -08:00
|
|
|
|
2020-06-20 20:03:40 -07:00
|
|
|
; wTextboxFrame::
|
2017-12-11 10:47:58 -08:00
|
|
|
const_def
|
|
|
|
const FRAME_1 ; 0
|
|
|
|
const FRAME_2 ; 1
|
|
|
|
const FRAME_3 ; 2
|
|
|
|
const FRAME_4 ; 3
|
|
|
|
const FRAME_5 ; 4
|
|
|
|
const FRAME_6 ; 5
|
|
|
|
const FRAME_7 ; 6
|
|
|
|
const FRAME_8 ; 7
|
2018-01-11 20:04:50 -08:00
|
|
|
NUM_FRAMES EQU const_value
|
2013-12-09 13:20:19 -08:00
|
|
|
|
2020-06-20 20:03:40 -07:00
|
|
|
; wTextboxFlags::
|
2017-12-29 10:18:17 -08:00
|
|
|
const_def
|
2017-12-29 10:29:24 -08:00
|
|
|
const FAST_TEXT_DELAY_F ; 0
|
|
|
|
const NO_TEXT_DELAY_F ; 1
|
2017-12-29 10:18:17 -08:00
|
|
|
|
2020-06-20 20:03:40 -07:00
|
|
|
; wGBPrinterBrightness::
|
2017-12-11 10:47:58 -08:00
|
|
|
GBPRINTER_LIGHTEST EQU $00
|
|
|
|
GBPRINTER_LIGHTER EQU $20
|
|
|
|
GBPRINTER_NORMAL EQU $40
|
|
|
|
GBPRINTER_DARKER EQU $60
|
|
|
|
GBPRINTER_DARKEST EQU $7f
|
2015-11-16 13:01:45 -08:00
|
|
|
|
2020-06-20 20:03:40 -07:00
|
|
|
; wOptions2::
|
2018-01-22 09:03:18 -08:00
|
|
|
const_def
|
|
|
|
const MENU_ACCOUNT ; 0
|
|
|
|
|
2020-06-20 20:03:40 -07:00
|
|
|
; wWalkingDirection::
|
2018-01-31 08:38:45 -08:00
|
|
|
const_def -1
|
2017-12-09 10:28:23 -08:00
|
|
|
const STANDING ; -1
|
|
|
|
const DOWN ; 0
|
|
|
|
const UP ; 1
|
|
|
|
const LEFT ; 2
|
|
|
|
const RIGHT ; 3
|
2018-01-11 09:00:01 -08:00
|
|
|
NUM_DIRECTIONS EQU const_value
|
2013-11-27 11:37:38 -08:00
|
|
|
|
2017-12-11 12:20:32 -08:00
|
|
|
DOWN_MASK EQU 1 << DOWN
|
|
|
|
UP_MASK EQU 1 << UP
|
|
|
|
LEFT_MASK EQU 1 << LEFT
|
|
|
|
RIGHT_MASK EQU 1 << RIGHT
|
|
|
|
|
2020-06-20 20:03:40 -07:00
|
|
|
; wFacingDirection::
|
2020-10-29 20:23:57 -07:00
|
|
|
const_def NUM_DIRECTIONS - 1, -1
|
|
|
|
shift_const FACE_DOWN ; 8
|
|
|
|
shift_const FACE_UP ; 4
|
|
|
|
shift_const FACE_LEFT ; 2
|
|
|
|
shift_const FACE_RIGHT ; 1
|
2013-11-27 11:37:38 -08:00
|
|
|
FACE_CURRENT EQU 0
|
2018-01-22 09:03:18 -08:00
|
|
|
|
2020-06-20 20:03:40 -07:00
|
|
|
; wPokemonWithdrawDepositParameter::
|
2018-01-22 09:03:18 -08:00
|
|
|
PC_WITHDRAW EQU 0
|
|
|
|
PC_DEPOSIT EQU 1
|
2018-02-25 17:39:54 -08:00
|
|
|
REMOVE_PARTY EQU 0
|
|
|
|
REMOVE_BOX EQU 1
|
2018-01-22 09:03:18 -08:00
|
|
|
DAY_CARE_WITHDRAW EQU 2
|
|
|
|
DAY_CARE_DEPOSIT EQU 3
|
|
|
|
|
2020-06-20 20:03:40 -07:00
|
|
|
; wPlayerStepFlags::
|
2019-01-24 18:41:14 -08:00
|
|
|
const_def 4
|
|
|
|
const PLAYERSTEP_MIDAIR_F ; 4
|
|
|
|
const PLAYERSTEP_CONTINUE_F ; 5
|
|
|
|
const PLAYERSTEP_STOP_F ; 6
|
|
|
|
const PLAYERSTEP_START_F ; 7
|
|
|
|
|
2020-06-20 20:03:40 -07:00
|
|
|
; wInitListType::
|
2018-01-22 09:03:18 -08:00
|
|
|
INIT_ENEMYOT_LIST EQU 1
|
|
|
|
INIT_BAG_ITEM_LIST EQU 2
|
|
|
|
INIT_OTHER_ITEM_LIST EQU 3
|
|
|
|
INIT_PLAYEROT_LIST EQU 4
|
|
|
|
INIT_MON_LIST EQU 5
|
2013-11-27 11:37:38 -08:00
|
|
|
|
2020-06-20 20:03:40 -07:00
|
|
|
; wTimeOfDay::
|
2017-12-09 10:28:23 -08:00
|
|
|
const_def
|
2017-12-10 22:02:28 -08:00
|
|
|
const MORN_F ; 0
|
|
|
|
const DAY_F ; 1
|
|
|
|
const NITE_F ; 2
|
|
|
|
const DARKNESS_F ; 3
|
2018-01-11 09:00:01 -08:00
|
|
|
NUM_DAYTIMES EQU const_value
|
2017-12-10 22:02:28 -08:00
|
|
|
|
|
|
|
MORN EQU 1 << MORN_F
|
|
|
|
DAY EQU 1 << DAY_F
|
|
|
|
NITE EQU 1 << NITE_F
|
|
|
|
DARKNESS EQU 1 << DARKNESS_F
|
2013-11-27 11:37:38 -08:00
|
|
|
|
2018-01-15 19:00:56 -08:00
|
|
|
ANYTIME EQU MORN | DAY | NITE
|
|
|
|
|
2020-08-11 11:12:59 -07:00
|
|
|
; wTimeOfDayPalset::
|
|
|
|
DARKNESS_PALSET EQU (DARKNESS_F << 6) | (DARKNESS_F << 4) | (DARKNESS_F << 2) | DARKNESS_F
|
|
|
|
|
2020-06-20 20:03:40 -07:00
|
|
|
; wBattleAnimFlags::
|
2019-02-16 03:55:15 -08:00
|
|
|
const_def
|
|
|
|
const BATTLEANIM_STOP_F ; 0
|
|
|
|
const BATTLEANIM_IN_SUBROUTINE_F ; 1
|
|
|
|
const BATTLEANIM_IN_LOOP_F ; 2
|
|
|
|
const BATTLEANIM_KEEPSPRITES_F ; 3
|
|
|
|
|
2020-06-20 20:03:40 -07:00
|
|
|
; wPlayerSpriteSetupFlags::
|
2018-01-22 11:34:55 -08:00
|
|
|
PLAYERSPRITESETUP_FACING_MASK EQU %11
|
|
|
|
PLAYERSPRITESETUP_FEMALE_TO_MALE_F EQU 2
|
|
|
|
PLAYERSPRITESETUP_CUSTOM_FACING_F EQU 5
|
|
|
|
PLAYERSPRITESETUP_SKIP_RELOAD_GFX_F EQU 6
|
|
|
|
PLAYERSPRITESETUP_RESET_ACTION_F EQU 7
|
|
|
|
|
2020-06-20 20:03:40 -07:00
|
|
|
; wPlayerGender::
|
2018-01-22 11:34:55 -08:00
|
|
|
PLAYERGENDER_FEMALE_F EQU 0
|
|
|
|
|
2020-06-20 20:03:40 -07:00
|
|
|
; wMapStatus::
|
2019-01-24 18:41:14 -08:00
|
|
|
const_def
|
|
|
|
const MAPSTATUS_START ; 0
|
|
|
|
const MAPSTATUS_ENTER ; 1
|
|
|
|
const MAPSTATUS_HANDLE ; 2
|
|
|
|
const MAPSTATUS_DONE ; 3
|
|
|
|
|
2020-06-20 20:03:40 -07:00
|
|
|
; wMapEventStatus::
|
2019-01-24 18:41:14 -08:00
|
|
|
const_def
|
|
|
|
const MAPEVENTS_ON ; 0
|
|
|
|
const MAPEVENTS_OFF ; 1
|
|
|
|
|
2020-06-20 20:03:40 -07:00
|
|
|
; wScriptFlags::
|
2013-11-27 11:37:38 -08:00
|
|
|
SCRIPT_RUNNING EQU 2
|
|
|
|
|
2020-06-20 20:03:40 -07:00
|
|
|
; wScriptMode::
|
2019-01-24 18:41:14 -08:00
|
|
|
const_def
|
|
|
|
const SCRIPT_OFF
|
|
|
|
const SCRIPT_READ
|
|
|
|
const SCRIPT_WAIT_MOVEMENT
|
|
|
|
const SCRIPT_WAIT
|
2013-11-27 11:37:38 -08:00
|
|
|
|
2020-06-20 20:03:40 -07:00
|
|
|
; wSpawnAfterChampion::
|
2018-01-22 09:03:18 -08:00
|
|
|
SPAWN_LANCE EQU 1
|
|
|
|
SPAWN_RED EQU 2
|
|
|
|
|
2020-06-20 20:03:40 -07:00
|
|
|
; wCurDay::
|
2017-12-09 10:28:23 -08:00
|
|
|
const_def
|
|
|
|
const SUNDAY ; 0
|
|
|
|
const MONDAY ; 1
|
|
|
|
const TUESDAY ; 2
|
|
|
|
const WEDNESDAY ; 3
|
|
|
|
const THURSDAY ; 4
|
|
|
|
const FRIDAY ; 5
|
|
|
|
const SATURDAY ; 6
|
2013-11-27 11:37:38 -08:00
|
|
|
|
2020-06-20 20:03:40 -07:00
|
|
|
; wStatusFlags::
|
2018-01-22 12:40:43 -08:00
|
|
|
const_def
|
2018-02-25 19:23:20 -08:00
|
|
|
const STATUSFLAGS_POKEDEX_F ; 0
|
|
|
|
const STATUSFLAGS_UNOWN_DEX_F ; 1
|
|
|
|
const STATUSFLAGS_FLASH_F ; 2
|
|
|
|
const STATUSFLAGS_CAUGHT_POKERUS_F ; 3
|
|
|
|
const STATUSFLAGS_ROCKET_SIGNAL_F ; 4
|
|
|
|
const STATUSFLAGS_NO_WILD_ENCOUNTERS_F ; 5
|
|
|
|
const STATUSFLAGS_HALL_OF_FAME_F ; 6
|
|
|
|
const STATUSFLAGS_MAIN_MENU_MOBILE_CHOICES_F ; 7
|
2018-01-22 12:40:43 -08:00
|
|
|
|
2020-06-20 20:03:40 -07:00
|
|
|
; wStatusFlags2::
|
2018-01-22 12:40:43 -08:00
|
|
|
const_def
|
|
|
|
const STATUSFLAGS2_ROCKETS_IN_RADIO_TOWER_F ; 0
|
|
|
|
const STATUSFLAGS2_SAFARI_GAME_F ; 1
|
|
|
|
const STATUSFLAGS2_BUG_CONTEST_TIMER_F ; 2
|
2018-01-31 07:55:35 -08:00
|
|
|
const STATUSFLAGS2_UNUSED_3_F ; 3
|
2018-01-22 12:40:43 -08:00
|
|
|
const STATUSFLAGS2_BIKE_SHOP_CALL_F ; 4
|
2018-01-31 07:55:35 -08:00
|
|
|
const STATUSFLAGS2_UNUSED_5_F ; 5
|
2018-01-22 12:40:43 -08:00
|
|
|
const STATUSFLAGS2_REACHED_GOLDENROD_F ; 6
|
|
|
|
const STATUSFLAGS2_ROCKETS_IN_MAHOGANY_F ; 7
|
|
|
|
|
2020-06-20 20:03:40 -07:00
|
|
|
; wMomSavingMoney::
|
2018-01-22 10:57:44 -08:00
|
|
|
MOM_SAVING_SOME_MONEY_F EQU 0
|
|
|
|
MOM_SAVING_HALF_MONEY_F EQU 1
|
|
|
|
MOM_SAVING_ALL_MONEY_F EQU 2
|
|
|
|
MOM_ACTIVE_F EQU 7
|
|
|
|
|
|
|
|
MOM_SAVING_MONEY_MASK EQU (1 << MOM_SAVING_SOME_MONEY_F) | (1 << MOM_SAVING_HALF_MONEY_F) | (1 << MOM_SAVING_ALL_MONEY_F)
|
|
|
|
|
2020-06-20 20:03:40 -07:00
|
|
|
; wJohtoBadges::
|
2017-12-08 21:50:59 -08:00
|
|
|
const_def
|
|
|
|
const ZEPHYRBADGE
|
|
|
|
const HIVEBADGE
|
|
|
|
const PLAINBADGE
|
|
|
|
const FOGBADGE
|
|
|
|
const MINERALBADGE
|
|
|
|
const STORMBADGE
|
|
|
|
const GLACIERBADGE
|
|
|
|
const RISINGBADGE
|
|
|
|
NUM_JOHTO_BADGES EQU const_value
|
|
|
|
|
2020-06-20 20:03:40 -07:00
|
|
|
; wKantoBadges::
|
2017-12-08 21:50:59 -08:00
|
|
|
const_def
|
|
|
|
const BOULDERBADGE
|
|
|
|
const CASCADEBADGE
|
|
|
|
const THUNDERBADGE
|
|
|
|
const RAINBOWBADGE
|
|
|
|
const SOULBADGE
|
|
|
|
const MARSHBADGE
|
|
|
|
const VOLCANOBADGE
|
|
|
|
const EARTHBADGE
|
|
|
|
NUM_KANTO_BADGES EQU const_value
|
|
|
|
NUM_BADGES EQU NUM_JOHTO_BADGES + NUM_KANTO_BADGES
|
|
|
|
|
2020-06-20 20:03:40 -07:00
|
|
|
; wPokegearFlags::
|
2018-01-22 09:03:18 -08:00
|
|
|
const_def
|
|
|
|
const POKEGEAR_MAP_CARD_F ; 0
|
|
|
|
const POKEGEAR_RADIO_CARD_F ; 1
|
|
|
|
const POKEGEAR_PHONE_CARD_F ; 2
|
|
|
|
const POKEGEAR_EXPN_CARD_F ; 3
|
2021-03-17 08:38:01 -07:00
|
|
|
const_skip 3
|
|
|
|
const POKEGEAR_OBTAINED_F ; 7
|
2018-01-22 09:03:18 -08:00
|
|
|
|
2020-06-20 20:03:40 -07:00
|
|
|
; wWhichRegisteredItem::
|
2018-01-22 09:03:18 -08:00
|
|
|
REGISTERED_POCKET EQU %11000000
|
|
|
|
REGISTERED_NUMBER EQU %00111111
|
|
|
|
|
2020-06-20 20:03:40 -07:00
|
|
|
; wPlayerState::
|
2018-01-22 09:03:18 -08:00
|
|
|
PLAYER_NORMAL EQU 0
|
|
|
|
PLAYER_BIKE EQU 1
|
|
|
|
PLAYER_SKATE EQU 2
|
|
|
|
PLAYER_SURF EQU 4
|
|
|
|
PLAYER_SURF_PIKA EQU 8
|
2018-01-22 10:18:23 -08:00
|
|
|
|
2020-06-20 20:03:40 -07:00
|
|
|
; wCelebiEvent::
|
2018-01-22 11:34:55 -08:00
|
|
|
CELEBIEVENT_FOREST_IS_RESTLESS_F EQU 2
|
|
|
|
|
2020-06-20 20:03:40 -07:00
|
|
|
; wBikeFlags::
|
2018-01-22 10:57:44 -08:00
|
|
|
const_def
|
|
|
|
const BIKEFLAGS_STRENGTH_ACTIVE_F ; 0
|
|
|
|
const BIKEFLAGS_ALWAYS_ON_BIKE_F ; 1
|
|
|
|
const BIKEFLAGS_DOWNHILL_F ; 2
|
|
|
|
|
2020-06-20 20:03:40 -07:00
|
|
|
; wDailyFlags1::
|
2018-01-22 12:59:24 -08:00
|
|
|
const_def
|
2018-08-06 10:43:54 -07:00
|
|
|
const DAILYFLAGS1_KURT_MAKING_BALLS_F ; 0
|
|
|
|
const DAILYFLAGS1_BUG_CONTEST_F ; 1
|
|
|
|
const DAILYFLAGS1_FISH_SWARM_F ; 2
|
|
|
|
const DAILYFLAGS1_TIME_CAPSULE_F ; 3
|
|
|
|
const DAILYFLAGS1_ALL_FRUIT_TREES_F ; 4
|
|
|
|
const DAILYFLAGS1_GOT_SHUCKIE_TODAY_F ; 5
|
|
|
|
const DAILYFLAGS1_GOLDENROD_UNDERGROUND_BARGAIN_F ; 6
|
|
|
|
const DAILYFLAGS1_TRAINER_HOUSE_F ; 7
|
|
|
|
|
2020-06-20 20:03:40 -07:00
|
|
|
; wDailyFlags2::
|
2018-01-22 12:59:24 -08:00
|
|
|
const_def
|
2018-08-06 10:43:54 -07:00
|
|
|
const DAILYFLAGS2_MT_MOON_SQUARE_CLEFAIRY_F ; 0
|
|
|
|
const DAILYFLAGS2_UNION_CAVE_LAPRAS_F ; 1
|
|
|
|
const DAILYFLAGS2_GOLDENROD_UNDERGROUND_GOT_HAIRCUT_F ; 2
|
|
|
|
const DAILYFLAGS2_GOLDENROD_DEPT_STORE_TM27_RETURN_F ; 3
|
|
|
|
const DAILYFLAGS2_DAISYS_GROOMING_F ; 4
|
|
|
|
const DAILYFLAGS2_INDIGO_PLATEAU_RIVAL_FIGHT_F ; 5
|
|
|
|
const DAILYFLAGS2_MOVE_TUTOR_F ; 6
|
|
|
|
const DAILYFLAGS2_BUENAS_PASSWORD_F ; 7
|
2018-01-22 12:59:24 -08:00
|
|
|
|
2020-06-20 20:03:40 -07:00
|
|
|
; wSwarmFlags::
|
2018-01-22 12:40:43 -08:00
|
|
|
const_def
|
|
|
|
const SWARMFLAGS_BUENAS_PASSWORD_F ; 0
|
|
|
|
const SWARMFLAGS_GOLDENROD_DEPT_STORE_SALE_F ; 1
|
|
|
|
const SWARMFLAGS_DUNSPARCE_SWARM_F ; 2
|
|
|
|
const SWARMFLAGS_YANMA_SWARM_F ; 3
|
|
|
|
const SWARMFLAGS_MOBILE_4_F ; 4
|
|
|
|
|
2020-06-20 20:03:40 -07:00
|
|
|
; wLuckyNumberShowFlag::
|
2018-01-22 11:34:55 -08:00
|
|
|
LUCKYNUMBERSHOW_GAME_OVER_F EQU 0
|
|
|
|
|
2020-06-20 20:03:40 -07:00
|
|
|
; wDayCareMan::
|
2018-01-22 10:18:23 -08:00
|
|
|
DAYCAREMAN_HAS_MON_F EQU 0
|
|
|
|
DAYCAREMAN_MONS_COMPATIBLE_F EQU 5
|
|
|
|
DAYCAREMAN_HAS_EGG_F EQU 6
|
|
|
|
DAYCAREMAN_ACTIVE_F EQU 7
|
|
|
|
|
2020-06-20 20:03:40 -07:00
|
|
|
; wDayCareLady::
|
2018-01-22 10:18:23 -08:00
|
|
|
DAYCARELADY_HAS_MON_F EQU 0
|
|
|
|
DAYCARELADY_ACTIVE_F EQU 7
|