mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-01-23 09:16:20 -08:00
More enumeration of constants, more annotations of scripts.
This commit is contained in:
parent
67e56102ef
commit
39524cdb76
@ -2452,7 +2452,7 @@ Function3cfa4: ; 3cfa4
|
||||
and a
|
||||
ld a, b
|
||||
call z, Function3d0ea
|
||||
callab Function39939
|
||||
callab Battle_GetTrainerName
|
||||
ld hl, BattleText_0x809da
|
||||
call StdBattleTextBox
|
||||
call IsMobileBattle
|
||||
@ -2493,7 +2493,7 @@ Function3cfa4: ; 3cfa4
|
||||
call DelayFrames
|
||||
call EmptyBattleTextBox
|
||||
ld c, $3
|
||||
callba Function11c000
|
||||
callba StoreText
|
||||
call Functiona80
|
||||
ld hl, wPayDayMoney
|
||||
ld a, [hli]
|
||||
@ -2903,7 +2903,7 @@ Function3d227: ; 3d227
|
||||
call ClearPalettes
|
||||
call DelayFrame
|
||||
call Function3eda6
|
||||
call Function1c17
|
||||
call WriteBackup
|
||||
call ClearSGB
|
||||
call Function32f9
|
||||
call Function3f26d
|
||||
@ -3100,7 +3100,7 @@ LostBattle: ; 3d38e
|
||||
|
||||
call EmptyBattleTextBox
|
||||
ld c, 2
|
||||
callba Function11c000
|
||||
callba StoreText
|
||||
call Functiona80
|
||||
call ClearTileMap
|
||||
call WhiteBGMap
|
||||
@ -3644,7 +3644,7 @@ Function3d714: ; 3d714
|
||||
Function3d74b: ; 3d74b
|
||||
ld a, [CurPartyMon]
|
||||
push af
|
||||
callab Function39939
|
||||
callab Battle_GetTrainerName
|
||||
ld hl, BattleText_0x80aca
|
||||
call StdBattleTextBox
|
||||
lb bc, 1, 7
|
||||
@ -3695,7 +3695,7 @@ Function3d7a0: ; 3d7a0
|
||||
; 3d7b8
|
||||
|
||||
Function3d7b8: ; 3d7b8
|
||||
callab Function39939
|
||||
callab Battle_GetTrainerName
|
||||
ld hl, BattleText_0x80af8
|
||||
call StdBattleTextBox
|
||||
jp WaitBGMap
|
||||
@ -5312,7 +5312,7 @@ Function3e299:
|
||||
call ClearPalettes
|
||||
call DelayFrame
|
||||
call Function3eda6
|
||||
call Function1c17
|
||||
call WriteBackup
|
||||
call Function309d
|
||||
call ClearSGB
|
||||
call Function32f9
|
||||
@ -5395,7 +5395,7 @@ Function3e358: ; 3e358
|
||||
call DelayFrame
|
||||
call ClearSprites
|
||||
call Function3eda6
|
||||
call Function1c17
|
||||
call WriteBackup
|
||||
call ClearSGB
|
||||
call Function32f9
|
||||
ld a, [CurPartyMon]
|
||||
@ -5411,7 +5411,7 @@ Function3e3ad: ; 3e3ad
|
||||
jr z, .asm_3e3c1
|
||||
call Function1d6e
|
||||
call Function3e8e4
|
||||
call Function1c17
|
||||
call WriteBackup
|
||||
|
||||
.asm_3e3c1
|
||||
call Function3e7c1
|
||||
@ -9455,7 +9455,7 @@ BattleStartMessage: ; 3fc8b
|
||||
ld c, 20
|
||||
call DelayFrames
|
||||
|
||||
callba Function39939
|
||||
callba Battle_GetTrainerName
|
||||
|
||||
ld hl, WantsToBattleText
|
||||
jr .asm_3fd0e
|
||||
|
@ -9710,7 +9710,7 @@ BattleCommand67: ; 379c9
|
||||
; Return to battle scene
|
||||
call ClearPalettes
|
||||
callba Function3ed9f
|
||||
call Function1c17
|
||||
call WriteBackup
|
||||
call ClearSprites
|
||||
hlcoord 1, 0
|
||||
lb bc, 4, 10
|
||||
@ -9779,7 +9779,7 @@ BatonPass_LinkPlayerSwitch: ; 37a67
|
||||
call Function1d6e
|
||||
ld hl, Function3e8e4
|
||||
call CallBattleCore
|
||||
call Function1c17
|
||||
call WriteBackup
|
||||
|
||||
xor a
|
||||
ld [wd0ec], a
|
||||
@ -9810,7 +9810,7 @@ BatonPass_LinkEnemySwitch: ; 37a82
|
||||
add NUM_MOVES
|
||||
ld [wBattleAction], a
|
||||
.asm_37aa8
|
||||
jp Function1c17
|
||||
jp WriteBackup
|
||||
; 37aab
|
||||
|
||||
|
||||
|
@ -19,6 +19,7 @@ INCLUDE "constants/engine_flags.asm"
|
||||
INCLUDE "constants/music_constants.asm"
|
||||
INCLUDE "constants/sfx_constants.asm"
|
||||
INCLUDE "constants/animation_constants.asm"
|
||||
INCLUDE "constants/phone_constants.asm"
|
||||
INCLUDE "constants/gfx_constants.asm"
|
||||
INCLUDE "constants/pokemon_data_constants.asm"
|
||||
INCLUDE "constants/misc_constants.asm"
|
||||
|
@ -81,7 +81,7 @@
|
||||
const ENGINE_LUCKY_NUMBER_SHOW
|
||||
const ENGINE_4F
|
||||
const ENGINE_KURT_MAKING_BALLS
|
||||
const ENGINE_51
|
||||
const ENGINE_DAILY_BUG_CONTEST
|
||||
const ENGINE_SPECIAL_WILDDATA
|
||||
const ENGINE_TIME_CAPSULE
|
||||
const ENGINE_ALL_FRUIT_TREES
|
||||
|
@ -777,7 +777,7 @@
|
||||
const EVENT_WAREHOUSE_LAYOUT_2
|
||||
const EVENT_WAREHOUSE_LAYOUT_3
|
||||
const EVENT_WAREHOUSE_BLOCKED_OFF
|
||||
const EVENT_308
|
||||
const EVENT_LEFT_MONS_WITH_CONTEST_OFFICER
|
||||
const EVENT_309
|
||||
const EVENT_WILLS_ROOM_EXIT_OPEN
|
||||
const EVENT_WILLS_ROOM_ENTRANCE_CLOSED
|
||||
@ -788,10 +788,10 @@
|
||||
const EVENT_KARENS_ROOM_EXIT_OPEN
|
||||
const EVENT_LANCES_ROOM_ENTRANCE_CLOSED
|
||||
const EVENT_312
|
||||
const EVENT_313
|
||||
const EVENT_314
|
||||
const EVENT_315
|
||||
const EVENT_316
|
||||
const EVENT_CONTEST_OFFICER_HAS_SUN_STONE
|
||||
const EVENT_CONTEST_OFFICER_HAS_EVERSTONE
|
||||
const EVENT_CONTEST_OFFICER_HAS_GOLD_BERRY
|
||||
const EVENT_CONTEST_OFFICER_HAS_BERRY
|
||||
const EVENT_FOUGHT_HO_OH
|
||||
const EVENT_FOUGHT_LUGIA
|
||||
const EVENT_BEAT_RIVAL_IN_MT_MOON
|
||||
@ -1848,8 +1848,8 @@
|
||||
const EVENT_734
|
||||
const EVENT_735
|
||||
const EVENT_736
|
||||
const EVENT_737
|
||||
const EVENT_738
|
||||
const EVENT_OLIVINE_PORT_SPRITES_BEFORE_HALL_OF_FAME
|
||||
const EVENT_OLIVINE_PORT_SPRITES_AFTER_HALL_OF_FAME
|
||||
const EVENT_739
|
||||
const EVENT_73A
|
||||
const EVENT_73B
|
||||
|
@ -266,6 +266,7 @@ SAFARI_BALL EQU 8 ; MOON_STONE
|
||||
MOON_STONE_RED EQU 10 ; BURN_HEAL
|
||||
FULL_HEAL_RED EQU 52 ; X_SPEED
|
||||
|
||||
MAIL_MAX_LENGTH EQU $20
|
||||
|
||||
; pockets
|
||||
ITEM EQU 1
|
||||
|
@ -473,110 +473,112 @@ MAP_N_A EQU -1
|
||||
|
||||
; sprites
|
||||
const_def
|
||||
const SPRITE_NONE
|
||||
const SPRITE_CHRIS
|
||||
const SPRITE_CHRIS_BIKE
|
||||
const SPRITE_GAMEBOY_KID
|
||||
const SPRITE_SILVER
|
||||
const SPRITE_OAK
|
||||
const SPRITE_RED
|
||||
const SPRITE_BLUE
|
||||
const SPRITE_BILL
|
||||
const SPRITE_ELDER
|
||||
const SPRITE_JANINE
|
||||
const SPRITE_KURT
|
||||
const SPRITE_MOM
|
||||
const SPRITE_BLAINE
|
||||
const SPRITE_REDS_MOM
|
||||
const SPRITE_DAISY
|
||||
const SPRITE_ELM
|
||||
const SPRITE_WILL
|
||||
const SPRITE_FALKNER
|
||||
const SPRITE_WHITNEY
|
||||
const SPRITE_BUGSY
|
||||
const SPRITE_MORTY
|
||||
const SPRITE_CHUCK
|
||||
const SPRITE_JASMINE
|
||||
const SPRITE_PRYCE
|
||||
const SPRITE_CLAIR
|
||||
const SPRITE_BROCK
|
||||
const SPRITE_KAREN
|
||||
const SPRITE_BRUNO
|
||||
const SPRITE_MISTY
|
||||
const SPRITE_LANCE
|
||||
const SPRITE_SURGE
|
||||
const SPRITE_ERIKA
|
||||
const SPRITE_KOGA
|
||||
const SPRITE_SABRINA
|
||||
const SPRITE_COOLTRAINER_M
|
||||
const SPRITE_COOLTRAINER_F
|
||||
const SPRITE_BUG_CATCHER
|
||||
const SPRITE_TWIN
|
||||
const SPRITE_YOUNGSTER
|
||||
const SPRITE_LASS
|
||||
const SPRITE_TEACHER
|
||||
const SPRITE_BUENA
|
||||
const SPRITE_SUPER_NERD
|
||||
const SPRITE_ROCKER
|
||||
const SPRITE_POKEFAN_M
|
||||
const SPRITE_POKEFAN_F
|
||||
const SPRITE_GRAMPS
|
||||
const SPRITE_GRANNY
|
||||
const SPRITE_SWIMMER_GUY
|
||||
const SPRITE_SWIMMER_GIRL
|
||||
const SPRITE_BIG_SNORLAX
|
||||
const SPRITE_SURFING_PIKACHU
|
||||
const SPRITE_ROCKET
|
||||
const SPRITE_ROCKET_GIRL
|
||||
const SPRITE_NURSE
|
||||
const SPRITE_LINK_RECEPTIONIST
|
||||
const SPRITE_CLERK
|
||||
const SPRITE_FISHER
|
||||
const SPRITE_FISHING_GURU
|
||||
const SPRITE_SCIENTIST
|
||||
const SPRITE_KIMONO_GIRL
|
||||
const SPRITE_SAGE
|
||||
const SPRITE_UNUSED_GUY
|
||||
const SPRITE_GENTLEMAN
|
||||
const SPRITE_BLACK_BELT
|
||||
const SPRITE_RECEPTIONIST
|
||||
const SPRITE_OFFICER
|
||||
const SPRITE_CAL
|
||||
const SPRITE_SLOWPOKE
|
||||
const SPRITE_CAPTAIN
|
||||
const SPRITE_BIG_LAPRAS
|
||||
const SPRITE_GYM_GUY
|
||||
const SPRITE_SAILOR
|
||||
const SPRITE_BIKER
|
||||
const SPRITE_PHARMACIST
|
||||
const SPRITE_MONSTER
|
||||
const SPRITE_FAIRY
|
||||
const SPRITE_BIRD
|
||||
const SPRITE_DRAGON
|
||||
const SPRITE_BIG_ONIX
|
||||
const SPRITE_N64
|
||||
const SPRITE_SUDOWOODO
|
||||
const SPRITE_SURF
|
||||
const SPRITE_POKE_BALL
|
||||
const SPRITE_POKEDEX
|
||||
const SPRITE_PAPER
|
||||
const SPRITE_VIRTUAL_BOY
|
||||
const SPRITE_OLD_LINK_RECEPTIONIST
|
||||
const SPRITE_ROCK
|
||||
const SPRITE_BOULDER
|
||||
const SPRITE_SNES
|
||||
const SPRITE_FAMICOM
|
||||
const SPRITE_FRUIT_TREE
|
||||
const SPRITE_GOLD_TROPHY
|
||||
const SPRITE_SILVER_TROPHY
|
||||
const SPRITE_KRIS
|
||||
const SPRITE_KRIS_BIKE
|
||||
const SPRITE_KURT_OUTSIDE
|
||||
const SPRITE_SUICUNE
|
||||
const SPRITE_ENTEI
|
||||
const SPRITE_RAIKOU
|
||||
const SPRITE_STANDING_YOUNGSTER
|
||||
const SPRITE_NONE ; 00
|
||||
const SPRITE_CHRIS ; 01
|
||||
const SPRITE_CHRIS_BIKE ; 02
|
||||
const SPRITE_GAMEBOY_KID ; 03
|
||||
const SPRITE_SILVER ; 04
|
||||
const SPRITE_OAK ; 05
|
||||
const SPRITE_RED ; 06
|
||||
const SPRITE_BLUE ; 07
|
||||
const SPRITE_BILL ; 08
|
||||
const SPRITE_ELDER ; 09
|
||||
const SPRITE_JANINE ; 0a
|
||||
const SPRITE_KURT ; 0b
|
||||
const SPRITE_MOM ; 0c
|
||||
const SPRITE_BLAINE ; 0d
|
||||
const SPRITE_REDS_MOM ; 0e
|
||||
const SPRITE_DAISY ; 0f
|
||||
const SPRITE_ELM ; 10
|
||||
const SPRITE_WILL ; 11
|
||||
const SPRITE_FALKNER ; 12
|
||||
const SPRITE_WHITNEY ; 13
|
||||
const SPRITE_BUGSY ; 14
|
||||
const SPRITE_MORTY ; 15
|
||||
const SPRITE_CHUCK ; 16
|
||||
const SPRITE_JASMINE ; 17
|
||||
const SPRITE_PRYCE ; 18
|
||||
const SPRITE_CLAIR ; 19
|
||||
const SPRITE_BROCK ; 1a
|
||||
const SPRITE_KAREN ; 1b
|
||||
const SPRITE_BRUNO ; 1c
|
||||
const SPRITE_MISTY ; 1d
|
||||
const SPRITE_LANCE ; 1e
|
||||
const SPRITE_SURGE ; 1f
|
||||
const SPRITE_ERIKA ; 20
|
||||
const SPRITE_KOGA ; 21
|
||||
const SPRITE_SABRINA ; 22
|
||||
const SPRITE_COOLTRAINER_M ; 23
|
||||
const SPRITE_COOLTRAINER_F ; 24
|
||||
const SPRITE_BUG_CATCHER ; 25
|
||||
const SPRITE_TWIN ; 26
|
||||
const SPRITE_YOUNGSTER ; 27
|
||||
const SPRITE_LASS ; 28
|
||||
const SPRITE_TEACHER ; 29
|
||||
const SPRITE_BUENA ; 2a
|
||||
const SPRITE_SUPER_NERD ; 2b
|
||||
const SPRITE_ROCKER ; 2c
|
||||
const SPRITE_POKEFAN_M ; 2d
|
||||
const SPRITE_POKEFAN_F ; 2e
|
||||
const SPRITE_GRAMPS ; 2f
|
||||
const SPRITE_GRANNY ; 30
|
||||
const SPRITE_SWIMMER_GUY ; 31
|
||||
const SPRITE_SWIMMER_GIRL ; 32
|
||||
const SPRITE_BIG_SNORLAX ; 33
|
||||
const SPRITE_SURFING_PIKACHU ; 34
|
||||
const SPRITE_ROCKET ; 35
|
||||
const SPRITE_ROCKET_GIRL ; 36
|
||||
const SPRITE_NURSE ; 37
|
||||
const SPRITE_LINK_RECEPTIONIST ; 38
|
||||
const SPRITE_CLERK ; 39
|
||||
const SPRITE_FISHER ; 3a
|
||||
const SPRITE_FISHING_GURU ; 3b
|
||||
const SPRITE_SCIENTIST ; 3c
|
||||
const SPRITE_KIMONO_GIRL ; 3d
|
||||
const SPRITE_SAGE ; 3e
|
||||
const SPRITE_UNUSED_GUY ; 3f
|
||||
const SPRITE_GENTLEMAN ; 40
|
||||
const SPRITE_BLACK_BELT ; 41
|
||||
const SPRITE_RECEPTIONIST ; 42
|
||||
const SPRITE_OFFICER ; 43
|
||||
const SPRITE_CAL ; 44
|
||||
const SPRITE_SLOWPOKE ; 45
|
||||
const SPRITE_CAPTAIN ; 46
|
||||
const SPRITE_BIG_LAPRAS ; 47
|
||||
const SPRITE_GYM_GUY ; 48
|
||||
const SPRITE_SAILOR ; 49
|
||||
const SPRITE_BIKER ; 4a
|
||||
const SPRITE_PHARMACIST ; 4b
|
||||
const SPRITE_MONSTER ; 4c
|
||||
const SPRITE_FAIRY ; 4d
|
||||
const SPRITE_BIRD ; 4e
|
||||
const SPRITE_DRAGON ; 4f
|
||||
const SPRITE_BIG_ONIX ; 50
|
||||
const SPRITE_N64 ; 51
|
||||
const SPRITE_SUDOWOODO ; 52
|
||||
const SPRITE_SURF ; 53
|
||||
const SPRITE_POKE_BALL ; 54
|
||||
const SPRITE_POKEDEX ; 55
|
||||
const SPRITE_PAPER ; 56
|
||||
const SPRITE_VIRTUAL_BOY ; 57
|
||||
const SPRITE_OLD_LINK_RECEPTIONIST ; 58
|
||||
const SPRITE_ROCK ; 59
|
||||
const SPRITE_BOULDER ; 5a
|
||||
const SPRITE_SNES ; 5b
|
||||
const SPRITE_FAMICOM ; 5c
|
||||
const SPRITE_FRUIT_TREE ; 5d
|
||||
const SPRITE_GOLD_TROPHY ; 5e
|
||||
const SPRITE_SILVER_TROPHY ; 5f
|
||||
const SPRITE_KRIS ; 60
|
||||
const SPRITE_KRIS_BIKE ; 61
|
||||
const SPRITE_KURT_OUTSIDE ; 62
|
||||
const SPRITE_SUICUNE ; 63
|
||||
const SPRITE_ENTEI ; 64
|
||||
const SPRITE_RAIKOU ; 65
|
||||
const SPRITE_STANDING_YOUNGSTER ; 66
|
||||
|
||||
const_value SET $80
|
||||
|
||||
SPRITE_POKEMON EQU const_value
|
||||
const SPRITE_UNOWN
|
||||
const SPRITE_GEODUDE
|
||||
@ -663,20 +665,20 @@ const_value SET 1
|
||||
|
||||
; object struct
|
||||
const_def
|
||||
const OBJECT_00
|
||||
const OBJECT_01
|
||||
const OBJECT_SPRITE
|
||||
const OBJECT_MAP_OBJECT_INDEX
|
||||
const OBJECT_SPRITE_TILE
|
||||
const OBJECT_03
|
||||
const OBJECT_04
|
||||
const OBJECT_FLAGS
|
||||
const OBJECT_PALETTE
|
||||
const OBJECT_07
|
||||
const OBJECT_08
|
||||
const OBJECT_DIRECTION_WALKING
|
||||
const OBJECT_FACING
|
||||
const OBJECT_09
|
||||
const OBJECT_STEP_DURATION
|
||||
const OBJECT_11
|
||||
const OBJECT_12
|
||||
const OBJECT_FACING
|
||||
const OBJECT_FACING_STEP
|
||||
const OBJECT_STANDING_TILE
|
||||
const OBJECT_NEXT_TILE
|
||||
const OBJECT_MAP_X
|
||||
@ -697,3 +699,43 @@ const_value SET 1
|
||||
const OBJECT_31
|
||||
const OBJECT_32
|
||||
; 33-39 are not used
|
||||
|
||||
|
||||
const_def
|
||||
const MAPOBJECT_VRAM_ID ; 0
|
||||
const MAPOBJECT_SPRITE ; 1
|
||||
const MAPOBJECT_Y_COORD ; 2
|
||||
const MAPOBJECT_X_COORD ; 3
|
||||
const MAPOBJECT_FACING ; 4
|
||||
const MAPOBJECT_MOVEMENT ; 5
|
||||
const MAPOBJECT_HOUR ; 6
|
||||
const MAPOBJECT_TIMEOFDAY ; 7
|
||||
const MAPOBJECT_COLOR ; 8
|
||||
const MAPOBJECT_RANGE ; 9
|
||||
const MAPOBJECT_POINTER_LO ; a
|
||||
const MAPOBJECT_POINTER_HI ; b
|
||||
const MAPOBJECT_FLAG_LO ; c
|
||||
const MAPOBJECT_FLAG_HI ; d
|
||||
const MAPOBJECT_E
|
||||
const MAPOBJECT_F
|
||||
|
||||
MAPOBJECT_NOT_VISIBLE EQU -1
|
||||
MAPOBJECT_SCREEN_HEIGHT EQU 11
|
||||
MAPOBJECT_SCREEN_WIDTH EQU 12
|
||||
OBJECT_STRUCT_3_DATA_WIDTH EQU 6
|
||||
OBJECT_STRUCT_3_DATA_HEIGHT EQU 37
|
||||
|
||||
|
||||
const_def
|
||||
const EMOTE_SHOCK ; 0
|
||||
const EMOTE_QUESTION ; 1
|
||||
const EMOTE_HAPPY ; 2
|
||||
const EMOTE_SAD ; 3
|
||||
const EMOTE_HEART ; 4
|
||||
const EMOTE_BOLT ; 5
|
||||
const EMOTE_SLEEP ; 6
|
||||
const EMOTE_FISH ; 7
|
||||
const EMOTE_ROD_DOWN ; 8
|
||||
const EMOTE_ROD_UP ; 9
|
||||
const EMOTE_ROD_LEFT ; a
|
||||
const EMOTE_ROD_RIGHT ; b
|
||||
|
@ -96,3 +96,4 @@ ALWAYS_USE EQU 1 << ALWAYS_USE_F
|
||||
SWITCH_SOMETIMES EQU 1 << SWITCH_SOMETIMES_F
|
||||
SWITCH_RARELY EQU 1 << SWITCH_RARELY_F
|
||||
SWITCH_OFTEN EQU 1 << SWITCH_OFTEN_F
|
||||
SPRITE_GFX_LIST_CAPACITY EQU $20
|
||||
|
@ -68,3 +68,8 @@ PLAYER_BIKE EQU 1
|
||||
PLAYER_SLIP EQU 2
|
||||
PLAYER_SURF EQU 4
|
||||
PLAYER_SURF_PIKA EQU 8
|
||||
|
||||
OBJECT_STRUCT_LENGTH EQU 40
|
||||
NUM_OBJECT_STRUCTS EQU 13
|
||||
|
||||
PARTYMON_STRUCT_LENGTH EQU 48
|
||||
|
@ -2,7 +2,7 @@ UnknownScript_0xa0b14:
|
||||
checkflag ENGINE_ROCKETS_IN_RADIO_TOWER
|
||||
iftrue UnknownScript_0xa0b73
|
||||
checkcode VAR_HOUR
|
||||
if_greater_than $11, UnknownScript_0xa0b4b
|
||||
if_greater_than 17, UnknownScript_0xa0b4b
|
||||
scall UnknownScript_0xa0b32
|
||||
jump UnknownScript_0xa0c0e
|
||||
|
||||
@ -37,7 +37,7 @@ UnknownScript_0xa0b4b:
|
||||
|
||||
UnknownScript_0xa0b4f:
|
||||
checkcode VAR_HOUR
|
||||
if_greater_than $11, UnknownScript_0xa0b6e
|
||||
if_greater_than 17, UnknownScript_0xa0b6e
|
||||
checkmorn
|
||||
iftrue UnknownScript_0xa0b64
|
||||
checkday
|
||||
@ -68,27 +68,27 @@ UnknownScript_0xa0b73:
|
||||
UnknownScript_0xa0b77:
|
||||
checkevent EVENT_BEAT_ELITE_FOUR
|
||||
iftrue UnknownScript_0xa0b82
|
||||
random $b
|
||||
random 11
|
||||
jump UnknownScript_0xa0b84
|
||||
|
||||
UnknownScript_0xa0b82:
|
||||
random $e
|
||||
random 14
|
||||
|
||||
UnknownScript_0xa0b84:
|
||||
if_equal $0, UnknownScript_0xa0bbc
|
||||
if_equal $1, UnknownScript_0xa0bc2
|
||||
if_equal $2, UnknownScript_0xa0bc8
|
||||
if_equal $3, UnknownScript_0xa0bce
|
||||
if_equal $4, UnknownScript_0xa0bd4
|
||||
if_equal $5, UnknownScript_0xa0bda
|
||||
if_equal $6, UnknownScript_0xa0be0
|
||||
if_equal $7, UnknownScript_0xa0be6
|
||||
if_equal $8, UnknownScript_0xa0bec
|
||||
if_equal $9, UnknownScript_0xa0bf2
|
||||
if_equal $a, UnknownScript_0xa0bf8
|
||||
if_equal $b, UnknownScript_0xa0bfe
|
||||
if_equal $c, UnknownScript_0xa0c04
|
||||
if_equal $d, UnknownScript_0xa0c0a
|
||||
if_equal 0, UnknownScript_0xa0bbc
|
||||
if_equal 1, UnknownScript_0xa0bc2
|
||||
if_equal 2, UnknownScript_0xa0bc8
|
||||
if_equal 3, UnknownScript_0xa0bce
|
||||
if_equal 4, UnknownScript_0xa0bd4
|
||||
if_equal 5, UnknownScript_0xa0bda
|
||||
if_equal 6, UnknownScript_0xa0be0
|
||||
if_equal 7, UnknownScript_0xa0be6
|
||||
if_equal 8, UnknownScript_0xa0bec
|
||||
if_equal 9, UnknownScript_0xa0bf2
|
||||
if_equal 10, UnknownScript_0xa0bf8
|
||||
if_equal 11, UnknownScript_0xa0bfe
|
||||
if_equal 12, UnknownScript_0xa0c04
|
||||
if_equal 13, UnknownScript_0xa0c0a
|
||||
|
||||
UnknownScript_0xa0bbc:
|
||||
writetext UnknownText_0xa0efb
|
||||
@ -149,10 +149,10 @@ UnknownScript_0xa0c0d:
|
||||
end
|
||||
|
||||
UnknownScript_0xa0c0e:
|
||||
random $3
|
||||
if_equal $0, UnknownScript_0xa0c1c
|
||||
if_equal $1, UnknownScript_0xa0c20
|
||||
if_equal $2, UnknownScript_0xa0c24
|
||||
random 3
|
||||
if_equal 0, UnknownScript_0xa0c1c
|
||||
if_equal 1, UnknownScript_0xa0c20
|
||||
if_equal 2, UnknownScript_0xa0c24
|
||||
|
||||
UnknownScript_0xa0c1c:
|
||||
writetext UnknownText_0xa1c88
|
||||
|
@ -806,8 +806,7 @@ Function9764: ; 9764
|
||||
Function976b: ; 976b
|
||||
ld l, a
|
||||
ld h, 0
|
||||
add hl, hl
|
||||
add hl, hl
|
||||
add_n_times hl, hl, 2
|
||||
ld bc, TrainerPalettes
|
||||
add hl, bc
|
||||
ret
|
||||
@ -1975,9 +1974,7 @@ Functionb1de: ; b1de
|
||||
push hl
|
||||
ld l, a
|
||||
ld h, 0
|
||||
add hl, hl
|
||||
add hl, hl
|
||||
add hl, hl
|
||||
add_n_times hl, hl, 3
|
||||
ld de, TilesetBGPalette
|
||||
add hl, de
|
||||
ld e, l
|
||||
@ -2017,9 +2014,7 @@ Functionb1de: ; b1de
|
||||
ld a, [MapGroup]
|
||||
ld l, a
|
||||
ld h, 0
|
||||
add hl, hl
|
||||
add hl, hl
|
||||
add hl, hl
|
||||
add_n_times hl, hl, 3
|
||||
ld de, RoofPals
|
||||
add hl, de
|
||||
ld a, [TimeOfDayPal]
|
||||
|
@ -24,91 +24,91 @@ OverworldLoop:: ; 966b0
|
||||
; 966cb
|
||||
|
||||
|
||||
Function966cb: ; 966cb
|
||||
ClearAllScriptFlags3: ; 966cb
|
||||
xor a
|
||||
ld [ScriptFlags3], a
|
||||
ret
|
||||
; 966d0
|
||||
|
||||
Function966d0:: ; 966d0
|
||||
SetAll_ScriptFlags3:: ; 966d0
|
||||
ld a, $ff
|
||||
ld [ScriptFlags3], a
|
||||
ret
|
||||
; 966d6
|
||||
|
||||
Function966d6: ; 966d6
|
||||
CheckBit5_ScriptFlags3: ; 966d6
|
||||
ld hl, ScriptFlags3
|
||||
bit 5, [hl]
|
||||
ret
|
||||
; 966dc
|
||||
|
||||
Function966dc: ; 966dc
|
||||
ResetBit2_ScriptFlags3: ; 966dc
|
||||
ld hl, ScriptFlags3
|
||||
res 2, [hl]
|
||||
ret
|
||||
; 966e2
|
||||
|
||||
Function966e2: ; 966e2
|
||||
ResetBit1_ScriptFlags3: ; 966e2
|
||||
ld hl, ScriptFlags3
|
||||
res 1, [hl]
|
||||
ret
|
||||
; 966e8
|
||||
|
||||
Function966e8: ; 966e8
|
||||
ResetBit0_ScriptFlags3: ; 966e8
|
||||
ld hl, ScriptFlags3
|
||||
res 0, [hl]
|
||||
ret
|
||||
; 966ee
|
||||
|
||||
Function966ee: ; 966ee
|
||||
ResetBit4_ScriptFlags3: ; 966ee
|
||||
ld hl, ScriptFlags3
|
||||
res 4, [hl]
|
||||
ret
|
||||
; 966f4
|
||||
|
||||
Function966f4: ; 966f4
|
||||
SetBit2_ScriptFlags3: ; 966f4
|
||||
ld hl, ScriptFlags3
|
||||
set 2, [hl]
|
||||
ret
|
||||
; 966fa
|
||||
|
||||
Function966fa: ; 966fa
|
||||
SetBit1_ScriptFlags3: ; 966fa
|
||||
ld hl, ScriptFlags3
|
||||
set 1, [hl]
|
||||
ret
|
||||
; 96700
|
||||
|
||||
Function96700: ; 96700
|
||||
SetBit0_ScriptFlags3: ; 96700
|
||||
ld hl, ScriptFlags3
|
||||
set 0, [hl]
|
||||
ret
|
||||
; 96706
|
||||
|
||||
Function96706: ; 96706
|
||||
SetBit4_ScriptFlags3: ; 96706
|
||||
ld hl, ScriptFlags3
|
||||
set 4, [hl]
|
||||
ret
|
||||
; 9670c
|
||||
|
||||
Function9670c: ; 9670c
|
||||
CheckBit2_ScriptFlags3: ; 9670c
|
||||
ld hl, ScriptFlags3
|
||||
bit 2, [hl]
|
||||
ret
|
||||
; 96712
|
||||
|
||||
Function96712: ; 96712
|
||||
CheckBit1_ScriptFlags3: ; 96712
|
||||
ld hl, ScriptFlags3
|
||||
bit 1, [hl]
|
||||
ret
|
||||
; 96718
|
||||
|
||||
Function96718: ; 96718
|
||||
CheckBit0_ScriptFlags3: ; 96718
|
||||
ld hl, ScriptFlags3
|
||||
bit 0, [hl]
|
||||
ret
|
||||
; 9671e
|
||||
|
||||
Function9671e: ; 9671e
|
||||
CheckBit4_ScriptFlags3: ; 9671e
|
||||
ld hl, ScriptFlags3
|
||||
bit 4, [hl]
|
||||
ret
|
||||
@ -135,20 +135,20 @@ EnterMap: ; 9673e
|
||||
ld [wd454], a
|
||||
call Function968d1
|
||||
callba RunMapSetupScript
|
||||
call Function966cb
|
||||
call ClearAllScriptFlags3
|
||||
|
||||
ld a, [$ff9f]
|
||||
cp $f7
|
||||
jr nz, .asm_9675a
|
||||
call Function966d0
|
||||
.asm_9675a
|
||||
jr nz, .dontset
|
||||
call SetAll_ScriptFlags3
|
||||
.dontset
|
||||
|
||||
ld a, [$ff9f]
|
||||
cp $f3
|
||||
jr nz, .asm_96764
|
||||
jr nz, .dontresetpoison
|
||||
xor a
|
||||
ld [PoisonStepCount], a
|
||||
.asm_96764
|
||||
.dontresetpoison
|
||||
|
||||
xor a
|
||||
ld [$ff9f], a
|
||||
@ -197,7 +197,7 @@ MapEvents: ; 96795
|
||||
|
||||
.events ; 967a1
|
||||
call PlayerEvents
|
||||
call Function966cb
|
||||
call ClearAllScriptFlags3
|
||||
callba ScriptEvents
|
||||
ret
|
||||
; 967ae
|
||||
@ -254,19 +254,19 @@ Function967e1: ; 967e1
|
||||
Function967f4: ; 967f4
|
||||
ld a, [wd150]
|
||||
bit 5, a
|
||||
jr z, .asm_96806
|
||||
jr z, .events
|
||||
bit 6, a
|
||||
jr z, .asm_9680c
|
||||
jr z, .noevents
|
||||
bit 4, a
|
||||
jr nz, .asm_9680c
|
||||
call Function966d0
|
||||
jr nz, .noevents
|
||||
call SetAll_ScriptFlags3
|
||||
|
||||
.asm_96806
|
||||
.events
|
||||
ld a, 0 ; events
|
||||
ld [MapEventStatus], a
|
||||
ret
|
||||
|
||||
.asm_9680c
|
||||
.noevents
|
||||
ld a, 1 ; no events
|
||||
ld [MapEventStatus], a
|
||||
ret
|
||||
@ -293,44 +293,44 @@ PlayerEvents: ; 9681f
|
||||
call Function968e4
|
||||
|
||||
call CheckTrainerBattle3
|
||||
jr c, .asm_96848
|
||||
jr c, .ok
|
||||
|
||||
call CheckTileEvent
|
||||
jr c, .asm_96848
|
||||
jr c, .ok
|
||||
|
||||
call Function97c30
|
||||
jr c, .asm_96848
|
||||
jr c, .ok
|
||||
|
||||
call Function968ec
|
||||
jr c, .asm_96848
|
||||
jr c, .ok
|
||||
|
||||
call Function9693a
|
||||
jr c, .asm_96848
|
||||
jr c, .ok
|
||||
|
||||
call OWPlayerInput
|
||||
jr c, .asm_96848
|
||||
jr c, .ok
|
||||
|
||||
xor a
|
||||
ret
|
||||
|
||||
|
||||
.asm_96848
|
||||
.ok
|
||||
push af
|
||||
callba Function96c56
|
||||
callba EnableScriptMode
|
||||
pop af
|
||||
|
||||
ld [ScriptRunning], a
|
||||
call Function96beb
|
||||
ld a, [ScriptRunning]
|
||||
cp 4
|
||||
jr z, .asm_96865
|
||||
jr z, .ok2
|
||||
cp 9
|
||||
jr z, .asm_96865
|
||||
jr z, .ok2
|
||||
|
||||
xor a
|
||||
ld [wc2da], a
|
||||
|
||||
.asm_96865
|
||||
.ok2
|
||||
scf
|
||||
ret
|
||||
; 96867
|
||||
@ -340,13 +340,13 @@ CheckTrainerBattle3: ; 96867
|
||||
nop
|
||||
nop
|
||||
call CheckTrainerBattle2
|
||||
jr nc, .asm_96872
|
||||
jr nc, .nope
|
||||
|
||||
ld a, 1
|
||||
scf
|
||||
ret
|
||||
|
||||
.asm_96872
|
||||
.nope
|
||||
xor a
|
||||
ret
|
||||
; 96874
|
||||
@ -355,47 +355,47 @@ CheckTrainerBattle3: ; 96867
|
||||
CheckTileEvent: ; 96874
|
||||
; Check for warps, tile triggers or wild battles.
|
||||
|
||||
call Function9670c
|
||||
jr z, .asm_96886
|
||||
call CheckBit2_ScriptFlags3
|
||||
jr z, .bit2
|
||||
|
||||
callba Function104820
|
||||
jr c, .asm_968a6
|
||||
jr c, .return4
|
||||
|
||||
call Function2238
|
||||
jr c, .asm_968aa
|
||||
jr c, .return6
|
||||
|
||||
.asm_96886
|
||||
call Function96712
|
||||
jr z, .asm_96890
|
||||
.bit2
|
||||
call CheckBit1_ScriptFlags3
|
||||
jr z, .bit1
|
||||
|
||||
call Function2ad4
|
||||
jr c, .asm_968ba
|
||||
jr c, .movement
|
||||
|
||||
.asm_96890
|
||||
call Function96718
|
||||
jr z, .asm_96899
|
||||
.bit1
|
||||
call CheckBit0_ScriptFlags3
|
||||
jr z, .bit0
|
||||
|
||||
call CountStep
|
||||
ret c
|
||||
|
||||
.asm_96899
|
||||
call Function9671e
|
||||
jr z, .asm_968a4
|
||||
.bit0
|
||||
call CheckBit4_ScriptFlags3
|
||||
jr z, .ok
|
||||
|
||||
call Function97cc0
|
||||
ret c
|
||||
jr .asm_968a4
|
||||
jr .ok
|
||||
|
||||
.asm_968a4
|
||||
.ok
|
||||
xor a
|
||||
ret
|
||||
|
||||
.asm_968a6
|
||||
.return4
|
||||
ld a, 4
|
||||
scf
|
||||
ret
|
||||
|
||||
.asm_968aa
|
||||
.return6
|
||||
ld a, [StandingTile]
|
||||
call CheckPitTile
|
||||
jr nz, .asm_968b6
|
||||
@ -408,7 +408,7 @@ CheckTileEvent: ; 96874
|
||||
scf
|
||||
ret
|
||||
|
||||
.asm_968ba
|
||||
.movement
|
||||
ld hl, MovementAnimation
|
||||
ld a, [hli]
|
||||
ld h, [hl]
|
||||
@ -450,7 +450,7 @@ Function968d8: ; 968d8
|
||||
; 968e4
|
||||
|
||||
Function968e4: ; 968e4
|
||||
call Function966d6
|
||||
call CheckBit5_ScriptFlags3
|
||||
ret z
|
||||
call Function2f3e
|
||||
ret
|
||||
@ -459,12 +459,12 @@ Function968e4: ; 968e4
|
||||
Function968ec: ; 968ec
|
||||
ld a, [wdc07]
|
||||
and a
|
||||
jr z, .asm_96938
|
||||
jr z, .nope
|
||||
|
||||
ld c, a
|
||||
call Function211b
|
||||
call CheckTriggers
|
||||
cp c
|
||||
jr nc, .asm_96938
|
||||
jr nc, .nope
|
||||
|
||||
ld e, a
|
||||
ld d, 0
|
||||
@ -472,11 +472,8 @@ Function968ec: ; 968ec
|
||||
ld a, [hli]
|
||||
ld h, [hl]
|
||||
ld l, a
|
||||
add hl, de
|
||||
add hl, de
|
||||
add hl, de
|
||||
add hl, de
|
||||
|
||||
add_n_times hl, de, 4
|
||||
|
||||
call GetMapScriptHeaderBank
|
||||
call GetFarHalfword
|
||||
call GetMapScriptHeaderBank
|
||||
@ -485,12 +482,12 @@ Function968ec: ; 968ec
|
||||
ld hl, ScriptFlags
|
||||
res 3, [hl]
|
||||
|
||||
callba Function96c56
|
||||
callba EnableScriptMode
|
||||
callba ScriptEvents
|
||||
|
||||
ld hl, ScriptFlags
|
||||
bit 3, [hl]
|
||||
jr z, .asm_96938
|
||||
jr z, .nope
|
||||
|
||||
ld hl, ScriptDelay + 2
|
||||
ld a, [hli]
|
||||
@ -501,7 +498,7 @@ Function968ec: ; 968ec
|
||||
scf
|
||||
ret
|
||||
|
||||
.asm_96938
|
||||
.nope
|
||||
xor a
|
||||
ret
|
||||
; 9693a
|
||||
@ -608,25 +605,25 @@ TryObjectEvent: ; 969b5
|
||||
.IsObject
|
||||
call PlayTalkObject
|
||||
ld a, [hConnectedMapWidth]
|
||||
call Function1ae5
|
||||
ld hl, $0001
|
||||
call GetObjectStruct
|
||||
ld hl, OBJECT_MAP_OBJECT_INDEX
|
||||
add hl, bc
|
||||
ld a, [hl]
|
||||
ld [$ffe0], a
|
||||
|
||||
ld a, [$ffe0]
|
||||
call GetMapObject
|
||||
ld hl, $0008
|
||||
ld hl, MAPOBJECT_COLOR
|
||||
add hl, bc
|
||||
ld a, [hl]
|
||||
and $f
|
||||
and %00001111
|
||||
|
||||
; Bug: If IsInArray returns nc, data at bc will be executed as code.
|
||||
push bc
|
||||
ld de, 3
|
||||
ld hl, .data_969ee
|
||||
ld hl, .pointers
|
||||
call IsInArray
|
||||
jr nc, .asm_969ec
|
||||
jr nc, .nope_bugged
|
||||
pop bc
|
||||
|
||||
inc hl
|
||||
@ -635,11 +632,11 @@ TryObjectEvent: ; 969b5
|
||||
ld l, a
|
||||
jp [hl]
|
||||
|
||||
.asm_969ec
|
||||
.nope_bugged
|
||||
xor a
|
||||
ret
|
||||
|
||||
.data_969ee
|
||||
.pointers
|
||||
dbw 0, .zero
|
||||
dbw 1, .one
|
||||
dbw 2, .two
|
||||
@ -647,11 +644,11 @@ TryObjectEvent: ; 969b5
|
||||
dbw 4, .four
|
||||
dbw 5, .five
|
||||
dbw 6, .six
|
||||
db $ff
|
||||
db -1
|
||||
; 96a04
|
||||
|
||||
.zero ; 96a04
|
||||
ld hl, $000a
|
||||
ld hl, MAPOBJECT_POINTER_LO
|
||||
add hl, bc
|
||||
ld a, [hli]
|
||||
ld h, [hl]
|
||||
@ -663,7 +660,7 @@ TryObjectEvent: ; 969b5
|
||||
; 96a12
|
||||
|
||||
.one ; 96a12
|
||||
ld hl, $000a
|
||||
ld hl, MAPOBJECT_POINTER_LO
|
||||
add hl, bc
|
||||
ld a, [hli]
|
||||
ld h, [hl]
|
||||
@ -712,7 +709,7 @@ TryReadSign: ; 96a38
|
||||
ret
|
||||
|
||||
.IsSign
|
||||
ld a, [MartPointer]
|
||||
ld a, [wd040]
|
||||
ld hl, .signs
|
||||
rst JumpTable
|
||||
ret
|
||||
@ -726,7 +723,7 @@ TryReadSign: ; 96a38
|
||||
dw .ifset
|
||||
dw .ifnotset
|
||||
dw .itemifset
|
||||
dw .asm_96aa2
|
||||
dw .copy
|
||||
; 96a59
|
||||
|
||||
.up
|
||||
@ -773,7 +770,7 @@ TryReadSign: ; 96a38
|
||||
scf
|
||||
ret
|
||||
|
||||
.asm_96aa2
|
||||
.copy
|
||||
call CheckSignFlag
|
||||
jr nz, .dontread
|
||||
call GetMapScriptHeaderBank
|
||||
@ -785,13 +782,13 @@ TryReadSign: ; 96a38
|
||||
.ifset
|
||||
call CheckSignFlag
|
||||
jr z, .dontread
|
||||
jr .asm_96ac1
|
||||
jr .thenread
|
||||
|
||||
.ifnotset
|
||||
call CheckSignFlag
|
||||
jr nz, .dontread
|
||||
|
||||
.asm_96ac1
|
||||
.thenread
|
||||
push hl
|
||||
call PlayTalkObject
|
||||
pop hl
|
||||
@ -878,8 +875,8 @@ PlayerMovement: ; 96af0
|
||||
|
||||
.three ; 96b20
|
||||
; force the player to move in some direction
|
||||
ld a, BANK(UnknownScript_0x1253d)
|
||||
ld hl, UnknownScript_0x1253d
|
||||
ld a, BANK(Script_ForcedMovement)
|
||||
ld hl, Script_ForcedMovement
|
||||
call CallScript
|
||||
; ld a, -1
|
||||
ld c, a
|
||||
@ -941,8 +938,8 @@ SelectMenuScript: ; 96b5f
|
||||
StartMenuCallback:
|
||||
SelectMenuCallback: ; 96b66
|
||||
copybytetovar $ffa0
|
||||
if_equal $80, .Script
|
||||
if_equal $ff, .Asm
|
||||
if_equal %10000000, .Script
|
||||
if_equal -1, .Asm
|
||||
end
|
||||
; 96b72
|
||||
|
||||
@ -959,13 +956,13 @@ SelectMenuCallback: ; 96b66
|
||||
CountStep: ; 96b79
|
||||
ld a, [InLinkBattle]
|
||||
and a
|
||||
jr nz, .asm_96bc9
|
||||
jr nz, .done
|
||||
|
||||
callba Function90136
|
||||
jr c, .asm_96bcb
|
||||
jr c, .setminus1
|
||||
|
||||
call Function96bd7
|
||||
jr c, .asm_96bcb
|
||||
jr c, .setminus1
|
||||
|
||||
ld hl, PoisonStepCount
|
||||
inc [hl]
|
||||
@ -981,7 +978,7 @@ CountStep: ; 96b79
|
||||
jr nz, .asm_96bab
|
||||
|
||||
callba Function16f3e
|
||||
jr nz, .asm_96bcf
|
||||
jr nz, .set8
|
||||
|
||||
.asm_96bab
|
||||
callba DaycareStep
|
||||
@ -989,25 +986,25 @@ CountStep: ; 96b79
|
||||
ld hl, PoisonStepCount
|
||||
ld a, [hl]
|
||||
cp 4
|
||||
jr c, .asm_96bc3
|
||||
jr c, .poisoned
|
||||
ld [hl], 0
|
||||
|
||||
callba Function505da
|
||||
jr c, .asm_96bcb
|
||||
jr c, .setminus1
|
||||
|
||||
.asm_96bc3
|
||||
.poisoned
|
||||
callba Function97db3
|
||||
|
||||
.asm_96bc9
|
||||
.done
|
||||
xor a
|
||||
ret
|
||||
|
||||
.asm_96bcb
|
||||
.setminus1
|
||||
ld a, -1
|
||||
scf
|
||||
ret
|
||||
|
||||
.asm_96bcf
|
||||
.set8
|
||||
ld a, 8
|
||||
scf
|
||||
ret
|
||||
@ -1015,7 +1012,7 @@ CountStep: ; 96b79
|
||||
|
||||
|
||||
Function96bd3: ; 96bd3
|
||||
ld a, $7
|
||||
ld a, 7
|
||||
scf
|
||||
ret
|
||||
; 96bd7
|
||||
@ -1038,17 +1035,15 @@ Function96beb: ; 96beb
|
||||
ld a, [ScriptRunning]
|
||||
and a
|
||||
ret z
|
||||
cp $ff
|
||||
cp -1
|
||||
ret z
|
||||
cp $a
|
||||
cp 10
|
||||
ret nc
|
||||
|
||||
ld c, a
|
||||
ld b, 0
|
||||
ld hl, ScriptPointers96c0c
|
||||
add hl, bc
|
||||
add hl, bc
|
||||
add hl, bc
|
||||
add_n_times hl, bc, 3
|
||||
ld a, [hli]
|
||||
ld [ScriptBank], a
|
||||
ld a, [hli]
|
||||
@ -1059,20 +1054,20 @@ Function96beb: ; 96beb
|
||||
; 96c0c
|
||||
|
||||
ScriptPointers96c0c: ; 96c0c
|
||||
dbw BANK(UnknownScript_0x96c2d), UnknownScript_0x96c2d
|
||||
dbw BANK(UnknownScript_0xbe675), UnknownScript_0xbe675
|
||||
dbw BANK(UnknownScript_0xbe66a), UnknownScript_0xbe66a
|
||||
dbw BANK(UnknownScript_0x122ce), UnknownScript_0x122ce
|
||||
dbw BANK(Invalid_0x96c2d), Invalid_0x96c2d
|
||||
dbw BANK(SeenByTrainerScript), SeenByTrainerScript
|
||||
dbw BANK(TalkToTrainerScript), TalkToTrainerScript
|
||||
dbw BANK(FindItemInBallScript), FindItemInBallScript
|
||||
dbw BANK(UnknownScript_0x96c4d), UnknownScript_0x96c4d
|
||||
dbw BANK(UnknownScript_0x96c34), UnknownScript_0x96c34
|
||||
dbw BANK(WarpToNewMapScript), WarpToNewMapScript
|
||||
dbw BANK(FallIntoMapScript), FallIntoMapScript
|
||||
dbw BANK(UnknownScript_0x124c8), UnknownScript_0x124c8
|
||||
dbw BANK(UnknownScript_0x96c2f), UnknownScript_0x96c2f
|
||||
dbw BANK(HatchEggScript), HatchEggScript
|
||||
dbw BANK(UnknownScript_0x96c4f), UnknownScript_0x96c4f
|
||||
dbw BANK(UnknownScript_0x96c2d), UnknownScript_0x96c2d
|
||||
dbw BANK(Invalid_0x96c2d), Invalid_0x96c2d
|
||||
; 96c2d
|
||||
|
||||
UnknownScript_0x96c2d: ; 96c2d
|
||||
Invalid_0x96c2d: ; 96c2d
|
||||
end
|
||||
; 96c2e
|
||||
|
||||
@ -1080,12 +1075,12 @@ UnknownScript_0x96c2e: ; 96c2e
|
||||
end
|
||||
; 96c2f
|
||||
|
||||
UnknownScript_0x96c2f: ; 96c2f
|
||||
callasm Function16f5e
|
||||
HatchEggScript: ; 96c2f
|
||||
callasm OverworldHatchEgg
|
||||
end
|
||||
; 96c34
|
||||
|
||||
UnknownScript_0x96c34: ; 96c34
|
||||
WarpToNewMapScript: ; 96c34
|
||||
warpsound
|
||||
newloadmap $f5
|
||||
end
|
||||
@ -1116,7 +1111,7 @@ UnknownScript_0x96c4d: ; 96c4d
|
||||
|
||||
UnknownScript_0x96c4f: ; 96c4f
|
||||
deactivatefacing $3
|
||||
callasm Function96706
|
||||
callasm SetBit4_ScriptFlags3
|
||||
end
|
||||
; 96c56
|
||||
|
||||
|
@ -125,8 +125,8 @@ Function97cc0:: ; 97cc0
|
||||
jr .asm_97cf4
|
||||
|
||||
.asm_97ced
|
||||
ld a, BANK(UnknownScript_0x135eb)
|
||||
ld hl, UnknownScript_0x135eb
|
||||
ld a, BANK(BugCatchingContestBattleScript)
|
||||
ld hl, BugCatchingContestBattleScript
|
||||
jr .asm_97cf4
|
||||
|
||||
.asm_97cf4
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -306,7 +306,7 @@ MapSetupCommands: ; 15440
|
||||
dbw BANK(Function24cd), Function24cd
|
||||
dbw BANK(Function28e3), Function28e3
|
||||
dbw BANK(Function289d), Function289d
|
||||
dbw BANK(Function2879), Function2879
|
||||
dbw BANK(BufferScreen), BufferScreen
|
||||
dbw BANK(Function1047cf), Function1047cf
|
||||
dbw BANK(LoadTilesetHeader), LoadTilesetHeader
|
||||
dbw BANK(Function104750), Function104750
|
||||
|
@ -62,7 +62,7 @@ Function10056: ; 10056 (4:4056)
|
||||
|
||||
Function10067: ; 10067 (4:4067)
|
||||
ld hl, MenuDataHeader_0x10a4f
|
||||
call Function1d3c
|
||||
call CopyMenuDataHeader
|
||||
ld a, [wd0d9]
|
||||
ld [wcf88], a
|
||||
ld a, [wd0df]
|
||||
@ -90,7 +90,7 @@ Function10094: ; 10094 (4:4094)
|
||||
|
||||
Function100a6: ; 100a6 (4:40a6)
|
||||
ld hl, MenuDataHeader_0x10a7f
|
||||
call Function1d3c
|
||||
call CopyMenuDataHeader
|
||||
ld a, [wd0da]
|
||||
ld [wcf88], a
|
||||
ld a, [wd0e0]
|
||||
@ -137,7 +137,7 @@ Function100e8: ; 100e8 (4:40e8)
|
||||
.asm_10110
|
||||
push de
|
||||
call LoadMenuDataHeader
|
||||
call Function1d81
|
||||
call InterpretMenu2
|
||||
call Function1c07
|
||||
pop hl
|
||||
ret c
|
||||
@ -220,7 +220,7 @@ Function10186: ; 10186 (4:4186)
|
||||
|
||||
Function10198: ; 10198 (4:4198)
|
||||
ld hl, MenuDataHeader_0x10aaf
|
||||
call Function1d3c
|
||||
call CopyMenuDataHeader
|
||||
ld a, [wd0db]
|
||||
ld [wcf88], a
|
||||
ld a, [wd0e1]
|
||||
@ -289,7 +289,7 @@ Function101c5: ; 101c5 (4:41c5)
|
||||
.asm_10235
|
||||
push de
|
||||
call LoadMenuDataHeader
|
||||
call Function1d81
|
||||
call InterpretMenu2
|
||||
call Function1c07
|
||||
pop hl
|
||||
ret c
|
||||
@ -709,7 +709,7 @@ Function104e9: ; 104e9 (4:44e9)
|
||||
|
||||
Function104fa: ; 104fa (4:44fa)
|
||||
ld hl, MenuDataHeader_0x10a4f
|
||||
call Function1d3c
|
||||
call CopyMenuDataHeader
|
||||
ld a, [wd0d9]
|
||||
ld [wcf88], a
|
||||
ld a, [wd0df]
|
||||
@ -737,7 +737,7 @@ Function10527: ; 10527 (4:4527)
|
||||
|
||||
Function10539: ; 10539 (4:4539)
|
||||
ld hl, MenuDataHeader_0x10a7f
|
||||
call Function1d3c
|
||||
call CopyMenuDataHeader
|
||||
ld a, [wd0da]
|
||||
ld [wcf88], a
|
||||
ld a, [wd0e0]
|
||||
@ -788,7 +788,7 @@ Function10594: ; 10594 (4:4594)
|
||||
|
||||
Function105a6: ; 105a6 (4:45a6)
|
||||
ld hl, MenuDataHeader_0x10aaf
|
||||
call Function1d3c
|
||||
call CopyMenuDataHeader
|
||||
ld a, [wd0db]
|
||||
ld [wcf88], a
|
||||
ld a, [wd0e1]
|
||||
@ -821,7 +821,7 @@ Function105dc: ; 105dc (4:45dc)
|
||||
.asm_105ed
|
||||
push de
|
||||
call LoadMenuDataHeader
|
||||
call Function1d81
|
||||
call InterpretMenu2
|
||||
call Function1c07
|
||||
pop hl
|
||||
ret c
|
||||
@ -992,7 +992,7 @@ Function106d9: ; 106d9 (4:46d9)
|
||||
xor a
|
||||
call Function10762
|
||||
ld hl, MenuDataHeader_0x10a67
|
||||
call Function1d3c
|
||||
call CopyMenuDataHeader
|
||||
ld a, [wd0d9]
|
||||
ld [wcf88], a
|
||||
ld a, [wd0df]
|
||||
@ -1008,7 +1008,7 @@ Function106ff: ; 106ff (4:46ff)
|
||||
ld a, $2
|
||||
call Function10762
|
||||
ld hl, MenuDataHeader_0x10a97
|
||||
call Function1d3c
|
||||
call CopyMenuDataHeader
|
||||
ld a, [wd0da]
|
||||
ld [wcf88], a
|
||||
ld a, [wd0e0]
|
||||
@ -1033,7 +1033,7 @@ Function1073b: ; 1073b (4:473b)
|
||||
ld a, $1
|
||||
call Function10762
|
||||
ld hl, MenuDataHeader_0x10ac7
|
||||
call Function1d3c
|
||||
call CopyMenuDataHeader
|
||||
ld a, [wd0db]
|
||||
ld [wcf88], a
|
||||
ld a, [wd0e1]
|
||||
@ -1223,7 +1223,7 @@ Function1085a: ; 1085a (4:485a)
|
||||
push hl
|
||||
call Function10762
|
||||
pop hl
|
||||
call Function1d3c
|
||||
call CopyMenuDataHeader
|
||||
call Function350c
|
||||
ret
|
||||
|
||||
|
@ -654,7 +654,7 @@ UnknownScript_0xbd3d1:
|
||||
UnknownScript_0xbd3f6:
|
||||
farscall UnknownScript_0xbde3f
|
||||
if_equal $0, UnknownScript_0xbd412
|
||||
checkflag ENGINE_51
|
||||
checkflag ENGINE_DAILY_BUG_CONTEST
|
||||
iftrue UnknownScript_0xbd412
|
||||
checkcode VAR_WEEKDAY
|
||||
if_equal $2, UnknownScript_0xbd416
|
||||
@ -680,7 +680,7 @@ UnknownScript_0xbd428:
|
||||
farscall UnknownScript_0xbe1b6
|
||||
farscall UnknownScript_0xbde3f
|
||||
if_equal $0, UnknownScript_0xbd44c
|
||||
checkflag ENGINE_51
|
||||
checkflag ENGINE_DAILY_BUG_CONTEST
|
||||
iftrue UnknownScript_0xbd44c
|
||||
checkcode VAR_WEEKDAY
|
||||
if_equal $2, UnknownScript_0xbd480
|
||||
@ -1381,7 +1381,7 @@ UnknownScript_0xbda35:
|
||||
iftrue UnknownScript_0xbda67
|
||||
farscall UnknownScript_0xbde3f
|
||||
if_equal $0, UnknownScript_0xbda5f
|
||||
checkflag ENGINE_51
|
||||
checkflag ENGINE_DAILY_BUG_CONTEST
|
||||
iftrue UnknownScript_0xbda5f
|
||||
checkcode VAR_WEEKDAY
|
||||
if_equal $2, UnknownScript_0xbda63
|
||||
@ -1403,7 +1403,7 @@ UnknownScript_0xbda6e:
|
||||
farscall UnknownScript_0xbe1b6
|
||||
farscall UnknownScript_0xbde3f
|
||||
if_equal $0, UnknownScript_0xbda92
|
||||
checkflag ENGINE_51
|
||||
checkflag ENGINE_DAILY_BUG_CONTEST
|
||||
iftrue UnknownScript_0xbda92
|
||||
checkcode VAR_WEEKDAY
|
||||
if_equal $2, UnknownScript_0xbda9e
|
||||
@ -3104,27 +3104,27 @@ String_be65b: db "Sister@"
|
||||
String_be662: db "Brother@"
|
||||
|
||||
|
||||
UnknownScript_0xbe66a:: ; 0xbe66a
|
||||
TalkToTrainerScript:: ; 0xbe66a
|
||||
faceplayer
|
||||
trainerstatus $2
|
||||
iftrue UnknownScript_0xbe698
|
||||
iftrue AlreadyBeatenTrainerScript
|
||||
loadtrainerdata
|
||||
playrammusic
|
||||
jump UnknownScript_0xbe68a
|
||||
jump StartBattleWithMapTrainerScript
|
||||
; 0xbe675
|
||||
|
||||
UnknownScript_0xbe675:: ; 0xbe675
|
||||
SeenByTrainerScript:: ; 0xbe675
|
||||
loadtrainerdata
|
||||
playrammusic
|
||||
showemote $0, $fe, 30
|
||||
showemote EMOTE_SHOCK, $fe, 30
|
||||
callasm Function831e
|
||||
applymovement2 MovementBuffer
|
||||
writepersonxy $fe
|
||||
faceperson $0, $fe
|
||||
jump UnknownScript_0xbe68a
|
||||
jump StartBattleWithMapTrainerScript
|
||||
; 0xbe68a
|
||||
|
||||
UnknownScript_0xbe68a: ; 0xbe68a
|
||||
StartBattleWithMapTrainerScript: ; 0xbe68a
|
||||
loadfont
|
||||
trainertext $0
|
||||
closetext
|
||||
@ -3135,6 +3135,6 @@ UnknownScript_0xbe68a: ; 0xbe68a
|
||||
trainerstatus $1
|
||||
loadvar wd04d, $ff
|
||||
|
||||
UnknownScript_0xbe698:
|
||||
AlreadyBeatenTrainerScript:
|
||||
scripttalkafter
|
||||
; 0xbe699
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -41,22 +41,22 @@ ENDM
|
||||
spawn BLACKTHORN, BLACKTHORN_CITY, 21, 30
|
||||
spawn MT_SILVER, SILVER_CAVE_OUTSIDE, 23, 20
|
||||
spawn FAST_SHIP, FAST_SHIP_CABINS_SW_SSW_NW, 6, 2
|
||||
const_value = -1
|
||||
spawn N_A, N_A, -1, -1
|
||||
|
||||
db -1, -1, -1, -1
|
||||
|
||||
const NUM_SPAWNS
|
||||
NUM_SPAWNS EQU const_value
|
||||
|
||||
|
||||
LoadSpawnPoint: ; 1531f
|
||||
; loads the spawn point in wd001
|
||||
push hl
|
||||
push de
|
||||
ld a, [wd001]
|
||||
cp -1
|
||||
jr z, .asm_15341
|
||||
cp SPAWN_N_A
|
||||
jr z, .spawn_n_a
|
||||
ld l, a
|
||||
ld h, 0
|
||||
add hl, hl
|
||||
add hl, hl
|
||||
add_n_times hl, hl, 2 ; multiply hl by 4
|
||||
ld de, SpawnPoints
|
||||
add hl, de
|
||||
ld a, [hli]
|
||||
@ -67,7 +67,7 @@ LoadSpawnPoint: ; 1531f
|
||||
ld [XCoord], a
|
||||
ld a, [hli]
|
||||
ld [YCoord], a
|
||||
.asm_15341
|
||||
.spawn_n_a
|
||||
pop de
|
||||
pop hl
|
||||
ret
|
||||
@ -75,32 +75,33 @@ LoadSpawnPoint: ; 1531f
|
||||
|
||||
|
||||
IsSpawnPoint: ; 15344
|
||||
; Checks if the map loaded in de is a spawn point. Returns carry if it's a spawn point.
|
||||
ld hl, SpawnPoints
|
||||
ld c, 0
|
||||
.asm_15349
|
||||
.loop
|
||||
ld a, [hl]
|
||||
cp -1
|
||||
jr z, .asm_1535f
|
||||
cp SPAWN_N_A
|
||||
jr z, .nope
|
||||
cp d
|
||||
jr nz, .asm_15356
|
||||
jr nz, .next
|
||||
inc hl
|
||||
ld a, [hld]
|
||||
cp e
|
||||
jr z, .asm_15361
|
||||
jr z, .yes
|
||||
|
||||
.asm_15356
|
||||
.next
|
||||
push bc
|
||||
ld bc, 4
|
||||
add hl, bc
|
||||
pop bc
|
||||
inc c
|
||||
jr .asm_15349
|
||||
jr .loop
|
||||
|
||||
.asm_1535f
|
||||
.nope
|
||||
and a
|
||||
ret
|
||||
|
||||
.asm_15361
|
||||
.yes
|
||||
scf
|
||||
ret
|
||||
; 15363
|
||||
|
@ -36,10 +36,10 @@ SpecialsPointers:: ; c029
|
||||
add_special Functionc2f6
|
||||
add_special Functionc309
|
||||
add_special Function1050b9
|
||||
add_special Functionc34a
|
||||
add_special Function4d9e5
|
||||
add_special BugContestJudging
|
||||
add_special CheckPartyFullAfterContest
|
||||
add_special Function13a12
|
||||
add_special Function13a31
|
||||
add_special ContestReturnMons
|
||||
add_special Function135db
|
||||
add_special Functionfbb32
|
||||
add_special Functionfbcd2
|
||||
@ -71,7 +71,7 @@ SpecialsPointers:: ; c029
|
||||
add_special WhiteBGMap
|
||||
add_special UpdateTimePals
|
||||
add_special ClearTileMap
|
||||
add_special Function1ad2
|
||||
add_special DrawOnMap
|
||||
add_special Functione4a
|
||||
add_special Functionc230
|
||||
add_special SpecialSeenMon
|
||||
@ -105,7 +105,7 @@ SpecialsPointers:: ; c029
|
||||
add_special Function88018
|
||||
add_special SpecialNameRater
|
||||
add_special Functionc2da
|
||||
add_special Function718d
|
||||
add_special GetFirstPokemonHappiness
|
||||
add_special Function71ac
|
||||
add_special Function2a4ab
|
||||
add_special Function2a51f
|
||||
@ -173,7 +173,7 @@ SpecialsPointers:: ; c029
|
||||
add_special Function10366e
|
||||
add_special Function1037eb
|
||||
add_special Function10383c
|
||||
add_special Function1060a2
|
||||
add_special Mobile_HealParty
|
||||
add_special Function14168
|
||||
add_special Function1037c2
|
||||
add_special Function10630f
|
||||
@ -358,8 +358,8 @@ UnknownText_0xc345: ; 0xc345
|
||||
db "@"
|
||||
; 0xc34a
|
||||
|
||||
Functionc34a: ; c34a
|
||||
callba Function1369d
|
||||
BugContestJudging: ; c34a
|
||||
callba _BugContestJudging
|
||||
ld a, b
|
||||
ld [ScriptVar], a
|
||||
ret
|
||||
@ -463,7 +463,7 @@ UnknownText_0xc3d6: ; 0xc3d6
|
||||
|
||||
Functionc3db: ; c3db
|
||||
call WhiteBGMap
|
||||
call Function2879
|
||||
call BufferScreen
|
||||
ret
|
||||
; c3e2
|
||||
|
||||
@ -492,17 +492,18 @@ Functionc3fc: ; c3fc
|
||||
; c403
|
||||
|
||||
|
||||
Functionc403:: ; c403
|
||||
LoadWildData:: ; c403
|
||||
ld a, c
|
||||
and a
|
||||
jr nz, .asm_c410
|
||||
jr nz, .swarm_route35
|
||||
; swarm dark cave violet entrance
|
||||
ld a, d
|
||||
ld [wdfcc], a
|
||||
ld a, e
|
||||
ld [wdfcd], a
|
||||
ret
|
||||
|
||||
.asm_c410
|
||||
.swarm_route35
|
||||
ld a, d
|
||||
ld [wdc5a], a
|
||||
ld a, e
|
||||
|
@ -46,10 +46,10 @@ StdScripts::
|
||||
dbw BANK(RematchGiftFScript), RematchGiftFScript
|
||||
dbw BANK(GymStatue1Script), GymStatue1Script
|
||||
dbw BANK(GymStatue2Script), GymStatue2Script
|
||||
dbw BANK(UnknownScript_0xbcdb9), UnknownScript_0xbcdb9
|
||||
dbw BANK(UnknownScript_0xbcdc3), UnknownScript_0xbcdc3
|
||||
dbw BANK(ReceiveItemScript), ReceiveItemScript
|
||||
dbw BANK(ReceiveTogepiEggScript), ReceiveTogepiEggScript
|
||||
dbw BANK(PCScript), PCScript
|
||||
dbw BANK(UnknownScript_0xbcdcd), UnknownScript_0xbcdcd
|
||||
dbw BANK(GameCornerCoinVendorScript), GameCornerCoinVendorScript
|
||||
dbw BANK(HappinessCheckScript), HappinessCheckScript
|
||||
|
||||
PokeCenterNurseScript:
|
||||
@ -107,12 +107,12 @@ PokeCenterNurseScript:
|
||||
|
||||
farwritetext UnknownText_0x1b01bd
|
||||
pause 20
|
||||
special Function1060a2
|
||||
special Mobile_HealParty
|
||||
spriteface $fe, LEFT
|
||||
pause 10
|
||||
special HealParty
|
||||
playmusic MUSIC_NONE
|
||||
writebyte 0
|
||||
writebyte 0 ; Machine is at a Pokemon Center
|
||||
special HealMachineAnim
|
||||
pause 30
|
||||
special RestartMapMusic
|
||||
@ -303,57 +303,57 @@ RadioTowerRocketsScript:
|
||||
|
||||
BugContestResultsWarpScript:
|
||||
special WhiteBGMap
|
||||
scall UnknownScript_0xbc380
|
||||
scall BugContestResults_EnsureNoDuplicateSprites
|
||||
setevent EVENT_747
|
||||
clearevent EVENT_748
|
||||
setevent EVENT_2D2
|
||||
warp GROUP_ROUTE_36_NATIONAL_PARK_GATE, MAP_ROUTE_36_NATIONAL_PARK_GATE, $0, $4
|
||||
applymovement $0, MovementData_0xbcea1
|
||||
applymovement $0, Movement_ContestResults_WalkAfterWarp
|
||||
|
||||
BugContestResultsScript:
|
||||
clearflag ENGINE_BUG_CONTEST_TIMER
|
||||
clearevent EVENT_2D2
|
||||
clearevent EVENT_313
|
||||
clearevent EVENT_314
|
||||
clearevent EVENT_315
|
||||
clearevent EVENT_316
|
||||
clearevent EVENT_CONTEST_OFFICER_HAS_SUN_STONE
|
||||
clearevent EVENT_CONTEST_OFFICER_HAS_EVERSTONE
|
||||
clearevent EVENT_CONTEST_OFFICER_HAS_GOLD_BERRY
|
||||
clearevent EVENT_CONTEST_OFFICER_HAS_BERRY
|
||||
loadfont
|
||||
farwritetext UnknownText_0x1b05bf
|
||||
farwritetext ContestResults_ReadyToJudgeText
|
||||
closetext
|
||||
special Functionc34a
|
||||
special BugContestJudging
|
||||
RAM2MEM $0
|
||||
if_equal $1, UnknownScript_0xbc31e
|
||||
if_equal $2, UnknownScript_0xbc332
|
||||
if_equal $3, UnknownScript_0xbc343
|
||||
farwritetext UnknownText_0x1b0681
|
||||
if_equal 1, BugContestResults_FirstPlace
|
||||
if_equal 2, BugContestResults_SecondPlace
|
||||
if_equal 3, BugContestResults_ThirdPlace
|
||||
farwritetext ContestResults_ConsolationPrizeText
|
||||
keeptextopen
|
||||
waitbutton
|
||||
verbosegiveitem BERRY, 1
|
||||
iffalse UnknownScript_0xbc375
|
||||
iffalse BugContestResults_NoRoomForBerry
|
||||
|
||||
UnknownScript_0xbc2a9:
|
||||
farwritetext UnknownText_0x1b06b7
|
||||
BugContestResults_DidNotWin
|
||||
farwritetext ContestResults_DidNotWinText
|
||||
keeptextopen
|
||||
jump UnknownScript_0xbc2b6
|
||||
jump BugContestResults_FinishUp
|
||||
; 0xbc2b1
|
||||
|
||||
UnknownScript_0xbc2b1: ; 0xbc2b1
|
||||
farwritetext UnknownText_0x1b065b
|
||||
BugContestResults_ReturnAfterWinnersPrize ; 0xbc2b1
|
||||
farwritetext ContestResults_JoinUsNextTimeText
|
||||
keeptextopen
|
||||
|
||||
UnknownScript_0xbc2b6:
|
||||
checkevent EVENT_308
|
||||
iffalse UnknownScript_0xbc2c4
|
||||
farwritetext UnknownText_0x1b06d9
|
||||
BugContestResults_FinishUp
|
||||
checkevent EVENT_LEFT_MONS_WITH_CONTEST_OFFICER
|
||||
iffalse BugContestResults_DidNotLeaveMons
|
||||
farwritetext ContestResults_ReturnPartyText
|
||||
closetext
|
||||
special Function13a31
|
||||
UnknownScript_0xbc2c4:
|
||||
special Function4d9e5
|
||||
if_equal $0, UnknownScript_0xbc2d4
|
||||
if_equal $2, UnknownScript_0xbc2d4
|
||||
farwritetext UnknownText_0x1b070d
|
||||
special ContestReturnMons
|
||||
BugContestResults_DidNotLeaveMons
|
||||
special CheckPartyFullAfterContest
|
||||
if_equal $0, BugContestResults_CleanUp
|
||||
if_equal $2, BugContestResults_CleanUp
|
||||
farwritetext ContestResults_PartyFullText
|
||||
closetext
|
||||
UnknownScript_0xbc2d4:
|
||||
BugContestResults_CleanUp
|
||||
loadmovesprites
|
||||
dotrigger $0
|
||||
domaptrigger GROUP_ROUTE_35_NATIONAL_PARK_GATE, MAP_ROUTE_35_NATIONAL_PARK_GATE, $0
|
||||
@ -377,68 +377,68 @@ UnknownScript_0xbc2d4:
|
||||
setevent EVENT_727
|
||||
setevent EVENT_728
|
||||
setevent EVENT_729
|
||||
setflag ENGINE_51
|
||||
setflag ENGINE_DAILY_BUG_CONTEST
|
||||
special PlayMapMusic
|
||||
end
|
||||
; 0xbc31e
|
||||
|
||||
UnknownScript_0xbc31e: ; 0xbc31e
|
||||
BugContestResults_FirstPlace ; 0xbc31e
|
||||
setevent EVENT_000
|
||||
itemtotext SUN_STONE, $1
|
||||
farwritetext UnknownText_0x1b0621
|
||||
farwritetext ContestResults_PlayerWonAPrizeText
|
||||
closetext
|
||||
verbosegiveitem SUN_STONE, 1
|
||||
iffalse UnknownScript_0xbc354
|
||||
jump UnknownScript_0xbc2b1
|
||||
iffalse BugContestResults_NoRoomForSunStone
|
||||
jump BugContestResults_ReturnAfterWinnersPrize
|
||||
; 0xbc332
|
||||
|
||||
UnknownScript_0xbc332: ; 0xbc332
|
||||
BugContestResults_SecondPlace ; 0xbc332
|
||||
itemtotext EVERSTONE, $1
|
||||
farwritetext UnknownText_0x1b0621
|
||||
farwritetext ContestResults_PlayerWonAPrizeText
|
||||
closetext
|
||||
verbosegiveitem EVERSTONE, 1
|
||||
iffalse UnknownScript_0xbc35f
|
||||
jump UnknownScript_0xbc2b1
|
||||
iffalse BugContestResults_NoRoomForEverstone
|
||||
jump BugContestResults_ReturnAfterWinnersPrize
|
||||
; 0xbc343
|
||||
|
||||
UnknownScript_0xbc343: ; 0xbc343
|
||||
BugContestResults_ThirdPlace ; 0xbc343
|
||||
itemtotext GOLD_BERRY, $1
|
||||
farwritetext UnknownText_0x1b0621
|
||||
farwritetext ContestResults_PlayerWonAPrizeText
|
||||
closetext
|
||||
verbosegiveitem GOLD_BERRY, 1
|
||||
iffalse UnknownScript_0xbc36a
|
||||
jump UnknownScript_0xbc2b1
|
||||
iffalse BugContestResults_NoRoomForGoldBerry
|
||||
jump BugContestResults_ReturnAfterWinnersPrize
|
||||
; 0xbc354
|
||||
|
||||
UnknownScript_0xbc354: ; 0xbc354
|
||||
BugContestResults_NoRoomForSunStone ; 0xbc354
|
||||
farwritetext UnknownText_0x1b08cc
|
||||
keeptextopen
|
||||
setevent EVENT_313
|
||||
jump UnknownScript_0xbc2b1
|
||||
setevent EVENT_CONTEST_OFFICER_HAS_SUN_STONE
|
||||
jump BugContestResults_ReturnAfterWinnersPrize
|
||||
; 0xbc35f
|
||||
|
||||
UnknownScript_0xbc35f: ; 0xbc35f
|
||||
BugContestResults_NoRoomForEverstone ; 0xbc35f
|
||||
farwritetext UnknownText_0x1b08cc
|
||||
keeptextopen
|
||||
setevent EVENT_314
|
||||
jump UnknownScript_0xbc2b1
|
||||
setevent EVENT_CONTEST_OFFICER_HAS_EVERSTONE
|
||||
jump BugContestResults_ReturnAfterWinnersPrize
|
||||
; 0xbc36a
|
||||
|
||||
UnknownScript_0xbc36a: ; 0xbc36a
|
||||
BugContestResults_NoRoomForGoldBerry ; 0xbc36a
|
||||
farwritetext UnknownText_0x1b08cc
|
||||
keeptextopen
|
||||
setevent EVENT_315
|
||||
jump UnknownScript_0xbc2b1
|
||||
setevent EVENT_CONTEST_OFFICER_HAS_GOLD_BERRY
|
||||
jump BugContestResults_ReturnAfterWinnersPrize
|
||||
; 0xbc375
|
||||
|
||||
UnknownScript_0xbc375: ; 0xbc375
|
||||
BugContestResults_NoRoomForBerry ; 0xbc375
|
||||
farwritetext UnknownText_0x1b08cc
|
||||
keeptextopen
|
||||
setevent EVENT_316
|
||||
jump UnknownScript_0xbc2a9
|
||||
setevent EVENT_CONTEST_OFFICER_HAS_BERRY
|
||||
jump BugContestResults_DidNotWin
|
||||
; 0xbc380
|
||||
|
||||
UnknownScript_0xbc380: ; 0xbc380
|
||||
BugContestResults_EnsureNoDuplicateSprites ; 0xbc380
|
||||
checkevent EVENT_716
|
||||
iftrue .skip1
|
||||
clearevent EVENT_720
|
||||
@ -561,7 +561,7 @@ InitializeEventsScript:
|
||||
setevent EVENT_731
|
||||
setevent EVENT_74A
|
||||
setevent EVENT_RED_IN_MT_SILVER
|
||||
setevent EVENT_738
|
||||
setevent EVENT_OLIVINE_PORT_SPRITES_AFTER_HALL_OF_FAME
|
||||
setevent EVENT_73A
|
||||
setevent EVENT_73B
|
||||
setevent EVENT_733
|
||||
@ -623,26 +623,26 @@ InitializeEventsScript:
|
||||
AskNumber1MScript:
|
||||
special RandomPhoneMon
|
||||
checkcode VAR_CALLERID
|
||||
if_equal $5, .Jack
|
||||
if_equal $7, .Huey
|
||||
if_equal $b, .Gaven
|
||||
if_equal $d, .Jose
|
||||
if_equal $f, .Joey
|
||||
if_equal $10, .Wade
|
||||
if_equal $11, .Ralph
|
||||
if_equal $13, .Anthony
|
||||
if_equal $14, .Todd
|
||||
if_equal $16, .Irwin
|
||||
if_equal $17, .Arnie
|
||||
if_equal $18, .Alan
|
||||
if_equal $1b, .Chad
|
||||
if_equal $1c, .Derek
|
||||
if_equal $1d, .Tully
|
||||
if_equal $1e, .Brent
|
||||
if_equal $20, .Vance
|
||||
if_equal $21, .Wilton
|
||||
if_equal $22, .Kenji
|
||||
if_equal $23, .Parry
|
||||
if_equal PHONE_SCHOOLBOY_JACK, .Jack
|
||||
if_equal PHONE_SAILOR_HUEY, .Huey
|
||||
if_equal PHONE_COOLTRAINERM_GAVEN, .Gaven
|
||||
if_equal PHONE_BIRDKEEPER_JOSE, .Jose
|
||||
if_equal PHONE_YOUNGSTER_JOEY, .Joey
|
||||
if_equal PHONE_BUG_CATCHER_WADE, .Wade
|
||||
if_equal PHONE_FISHER_RALPH, .Ralph
|
||||
if_equal PHONE_HIKER_ANTHONY, .Anthony
|
||||
if_equal PHONE_CAMPER_TODD, .Todd
|
||||
if_equal PHONE_JUGGLER_IRWIN, .Irwin
|
||||
if_equal PHONE_BUG_CATCHER_ARNIE, .Arnie
|
||||
if_equal PHONE_SCHOOLBOY_ALAN, .Alan
|
||||
if_equal PHONE_SCHOOLBOY_CHAD, .Chad
|
||||
if_equal PHONE_POKEFANM_DEREK, .Derek
|
||||
if_equal PHONE_FISHER_TULLY, .Tully
|
||||
if_equal PHONE_POKEMANIAC_BRENT, .Brent
|
||||
if_equal PHONE_BIRDKEEPER_VANCE, .Vance
|
||||
if_equal PHONE_FISHER_WILTON, .Wilton
|
||||
if_equal PHONE_BLACKBELT_KENJI, .Kenji
|
||||
if_equal PHONE_HIKER_PARRY, .Parry
|
||||
|
||||
.Jack
|
||||
farwritetext JackAskNumber1Text
|
||||
@ -708,26 +708,26 @@ AskNumber1MScript:
|
||||
AskNumber2MScript:
|
||||
special RandomPhoneMon
|
||||
checkcode VAR_CALLERID
|
||||
if_equal $5, .Jack
|
||||
if_equal $7, .Huey
|
||||
if_equal $b, .Gaven
|
||||
if_equal $d, .Jose
|
||||
if_equal $f, .Joey
|
||||
if_equal $10, .Wade
|
||||
if_equal $11, .Ralph
|
||||
if_equal $13, .Anthony
|
||||
if_equal $14, .Todd
|
||||
if_equal $16, .Irwin
|
||||
if_equal $17, .Arnie
|
||||
if_equal $18, .Alan
|
||||
if_equal $1b, .Chad
|
||||
if_equal $1c, .Derek
|
||||
if_equal $1d, .Tully
|
||||
if_equal $1e, .Brent
|
||||
if_equal $20, .Vance
|
||||
if_equal $21, .Wilton
|
||||
if_equal $22, .Kenji
|
||||
if_equal $23, .Parry
|
||||
if_equal PHONE_SCHOOLBOY_JACK, .Jack
|
||||
if_equal PHONE_SAILOR_HUEY, .Huey
|
||||
if_equal PHONE_COOLTRAINERM_GAVEN, .Gaven
|
||||
if_equal PHONE_BIRDKEEPER_JOSE, .Jose
|
||||
if_equal PHONE_YOUNGSTER_JOEY, .Joey
|
||||
if_equal PHONE_BUG_CATCHER_WADE, .Wade
|
||||
if_equal PHONE_FISHER_RALPH, .Ralph
|
||||
if_equal PHONE_HIKER_ANTHONY, .Anthony
|
||||
if_equal PHONE_CAMPER_TODD, .Todd
|
||||
if_equal PHONE_JUGGLER_IRWIN, .Irwin
|
||||
if_equal PHONE_BUG_CATCHER_ARNIE, .Arnie
|
||||
if_equal PHONE_SCHOOLBOY_ALAN, .Alan
|
||||
if_equal PHONE_SCHOOLBOY_CHAD, .Chad
|
||||
if_equal PHONE_POKEFANM_DEREK, .Derek
|
||||
if_equal PHONE_FISHER_TULLY, .Tully
|
||||
if_equal PHONE_POKEMANIAC_BRENT, .Brent
|
||||
if_equal PHONE_BIRDKEEPER_VANCE, .Vance
|
||||
if_equal PHONE_FISHER_WILTON, .Wilton
|
||||
if_equal PHONE_BLACKBELT_KENJI, .Kenji
|
||||
if_equal PHONE_HIKER_PARRY, .Parry
|
||||
|
||||
.Jack
|
||||
farwritetext JackAskNumber2Text
|
||||
@ -799,26 +799,26 @@ RegisteredNumberMScript:
|
||||
|
||||
NumberAcceptedMScript:
|
||||
checkcode VAR_CALLERID
|
||||
if_equal $5, .Jack
|
||||
if_equal $7, .Huey
|
||||
if_equal $b, .Gaven
|
||||
if_equal $d, .Jose
|
||||
if_equal $f, .Joey
|
||||
if_equal $10, .Wade
|
||||
if_equal $11, .Ralph
|
||||
if_equal $13, .Anthony
|
||||
if_equal $14, .Todd
|
||||
if_equal $16, .Irwin
|
||||
if_equal $17, .Arnie
|
||||
if_equal $18, .Alan
|
||||
if_equal $1b, .Chad
|
||||
if_equal $1c, .Derek
|
||||
if_equal $1d, .Tully
|
||||
if_equal $1e, .Brent
|
||||
if_equal $20, .Vance
|
||||
if_equal $21, .Wilton
|
||||
if_equal $22, .Kenji
|
||||
if_equal $23, .Parry
|
||||
if_equal PHONE_SCHOOLBOY_JACK, .Jack
|
||||
if_equal PHONE_SAILOR_HUEY, .Huey
|
||||
if_equal PHONE_COOLTRAINERM_GAVEN, .Gaven
|
||||
if_equal PHONE_BIRDKEEPER_JOSE, .Jose
|
||||
if_equal PHONE_YOUNGSTER_JOEY, .Joey
|
||||
if_equal PHONE_BUG_CATCHER_WADE, .Wade
|
||||
if_equal PHONE_FISHER_RALPH, .Ralph
|
||||
if_equal PHONE_HIKER_ANTHONY, .Anthony
|
||||
if_equal PHONE_CAMPER_TODD, .Todd
|
||||
if_equal PHONE_JUGGLER_IRWIN, .Irwin
|
||||
if_equal PHONE_BUG_CATCHER_ARNIE, .Arnie
|
||||
if_equal PHONE_SCHOOLBOY_ALAN, .Alan
|
||||
if_equal PHONE_SCHOOLBOY_CHAD, .Chad
|
||||
if_equal PHONE_POKEFANM_DEREK, .Derek
|
||||
if_equal PHONE_FISHER_TULLY, .Tully
|
||||
if_equal PHONE_POKEMANIAC_BRENT, .Brent
|
||||
if_equal PHONE_BIRDKEEPER_VANCE, .Vance
|
||||
if_equal PHONE_FISHER_WILTON, .Wilton
|
||||
if_equal PHONE_BLACKBELT_KENJI, .Kenji
|
||||
if_equal PHONE_HIKER_PARRY, .Parry
|
||||
|
||||
.Jack
|
||||
farwritetext JackNumberAcceptedText
|
||||
@ -923,26 +923,26 @@ NumberAcceptedMScript:
|
||||
|
||||
NumberDeclinedMScript:
|
||||
checkcode VAR_CALLERID
|
||||
if_equal $5, .Jack
|
||||
if_equal $7, .Huey
|
||||
if_equal $b, .Gaven
|
||||
if_equal $d, .Jose
|
||||
if_equal $f, .Joey
|
||||
if_equal $10, .Wade
|
||||
if_equal $11, .Ralph
|
||||
if_equal $13, .Anthony
|
||||
if_equal $14, .Todd
|
||||
if_equal $16, .Irwin
|
||||
if_equal $17, .Arnie
|
||||
if_equal $18, .Alan
|
||||
if_equal $1b, .Chad
|
||||
if_equal $1c, .Derek
|
||||
if_equal $1d, .Tully
|
||||
if_equal $1e, .Brent
|
||||
if_equal $20, .Vance
|
||||
if_equal $21, .Wilton
|
||||
if_equal $22, .Kenji
|
||||
if_equal $23, .Parry
|
||||
if_equal PHONE_SCHOOLBOY_JACK, .Jack
|
||||
if_equal PHONE_SAILOR_HUEY, .Huey
|
||||
if_equal PHONE_COOLTRAINERM_GAVEN, .Gaven
|
||||
if_equal PHONE_BIRDKEEPER_JOSE, .Jose
|
||||
if_equal PHONE_YOUNGSTER_JOEY, .Joey
|
||||
if_equal PHONE_BUG_CATCHER_WADE, .Wade
|
||||
if_equal PHONE_FISHER_RALPH, .Ralph
|
||||
if_equal PHONE_HIKER_ANTHONY, .Anthony
|
||||
if_equal PHONE_CAMPER_TODD, .Todd
|
||||
if_equal PHONE_JUGGLER_IRWIN, .Irwin
|
||||
if_equal PHONE_BUG_CATCHER_ARNIE, .Arnie
|
||||
if_equal PHONE_SCHOOLBOY_ALAN, .Alan
|
||||
if_equal PHONE_SCHOOLBOY_CHAD, .Chad
|
||||
if_equal PHONE_POKEFANM_DEREK, .Derek
|
||||
if_equal PHONE_FISHER_TULLY, .Tully
|
||||
if_equal PHONE_POKEMANIAC_BRENT, .Brent
|
||||
if_equal PHONE_BIRDKEEPER_VANCE, .Vance
|
||||
if_equal PHONE_FISHER_WILTON, .Wilton
|
||||
if_equal PHONE_BLACKBELT_KENJI, .Kenji
|
||||
if_equal PHONE_HIKER_PARRY, .Parry
|
||||
|
||||
.Jack
|
||||
farwritetext JackNumberDeclinedText
|
||||
@ -1047,26 +1047,26 @@ NumberDeclinedMScript:
|
||||
|
||||
PhoneFullMScript:
|
||||
checkcode VAR_CALLERID
|
||||
if_equal $5, .Jack
|
||||
if_equal $7, .Huey
|
||||
if_equal $b, .Gaven
|
||||
if_equal $d, .Jose
|
||||
if_equal $f, .Joey
|
||||
if_equal $10, .Wade
|
||||
if_equal $11, .Ralph
|
||||
if_equal $13, .Anthony
|
||||
if_equal $14, .Todd
|
||||
if_equal $16, .Irwin
|
||||
if_equal $17, .Arnie
|
||||
if_equal $18, .Alan
|
||||
if_equal $1b, .Chad
|
||||
if_equal $1c, .Derek
|
||||
if_equal $1d, .Tully
|
||||
if_equal $1e, .Brent
|
||||
if_equal $20, .Vance
|
||||
if_equal $21, .Wilton
|
||||
if_equal $22, .Kenji
|
||||
if_equal $23, .Parry
|
||||
if_equal PHONE_SCHOOLBOY_JACK, .Jack
|
||||
if_equal PHONE_SAILOR_HUEY, .Huey
|
||||
if_equal PHONE_COOLTRAINERM_GAVEN, .Gaven
|
||||
if_equal PHONE_BIRDKEEPER_JOSE, .Jose
|
||||
if_equal PHONE_YOUNGSTER_JOEY, .Joey
|
||||
if_equal PHONE_BUG_CATCHER_WADE, .Wade
|
||||
if_equal PHONE_FISHER_RALPH, .Ralph
|
||||
if_equal PHONE_HIKER_ANTHONY, .Anthony
|
||||
if_equal PHONE_CAMPER_TODD, .Todd
|
||||
if_equal PHONE_JUGGLER_IRWIN, .Irwin
|
||||
if_equal PHONE_BUG_CATCHER_ARNIE, .Arnie
|
||||
if_equal PHONE_SCHOOLBOY_ALAN, .Alan
|
||||
if_equal PHONE_SCHOOLBOY_CHAD, .Chad
|
||||
if_equal PHONE_POKEFANM_DEREK, .Derek
|
||||
if_equal PHONE_FISHER_TULLY, .Tully
|
||||
if_equal PHONE_POKEMANIAC_BRENT, .Brent
|
||||
if_equal PHONE_BIRDKEEPER_VANCE, .Vance
|
||||
if_equal PHONE_FISHER_WILTON, .Wilton
|
||||
if_equal PHONE_BLACKBELT_KENJI, .Kenji
|
||||
if_equal PHONE_HIKER_PARRY, .Parry
|
||||
|
||||
.Jack
|
||||
farwritetext JackPhoneFullText
|
||||
@ -1171,23 +1171,23 @@ PhoneFullMScript:
|
||||
|
||||
RematchMScript:
|
||||
checkcode VAR_CALLERID
|
||||
if_equal $5, .Jack
|
||||
if_equal $7, .Huey
|
||||
if_equal $b, .Gaven
|
||||
if_equal $d, .Jose
|
||||
if_equal $f, .Joey
|
||||
if_equal $10, .Wade
|
||||
if_equal $11, .Ralph
|
||||
if_equal $13, .Anthony
|
||||
if_equal $14, .Todd
|
||||
if_equal $17, .Arnie
|
||||
if_equal $18, .Alan
|
||||
if_equal $1b, .Chad
|
||||
if_equal $1d, .Tully
|
||||
if_equal $1e, .Brent
|
||||
if_equal $20, .Vance
|
||||
if_equal $21, .Wilton
|
||||
if_equal $23, .Parry
|
||||
if_equal PHONE_SCHOOLBOY_JACK, .Jack
|
||||
if_equal PHONE_SAILOR_HUEY, .Huey
|
||||
if_equal PHONE_COOLTRAINERM_GAVEN, .Gaven
|
||||
if_equal PHONE_BIRDKEEPER_JOSE, .Jose
|
||||
if_equal PHONE_YOUNGSTER_JOEY, .Joey
|
||||
if_equal PHONE_BUG_CATCHER_WADE, .Wade
|
||||
if_equal PHONE_FISHER_RALPH, .Ralph
|
||||
if_equal PHONE_HIKER_ANTHONY, .Anthony
|
||||
if_equal PHONE_CAMPER_TODD, .Todd
|
||||
if_equal PHONE_BUG_CATCHER_ARNIE, .Arnie
|
||||
if_equal PHONE_SCHOOLBOY_ALAN, .Alan
|
||||
if_equal PHONE_SCHOOLBOY_CHAD, .Chad
|
||||
if_equal PHONE_FISHER_TULLY, .Tully
|
||||
if_equal PHONE_POKEMANIAC_BRENT, .Brent
|
||||
if_equal PHONE_BIRDKEEPER_VANCE, .Vance
|
||||
if_equal PHONE_FISHER_WILTON, .Wilton
|
||||
if_equal PHONE_HIKER_PARRY, .Parry
|
||||
|
||||
.Jack
|
||||
farwritetext JackRematchText
|
||||
@ -1277,13 +1277,13 @@ RematchMScript:
|
||||
|
||||
GiftMScript:
|
||||
checkcode VAR_CALLERID
|
||||
if_equal $d, .Jose
|
||||
if_equal $10, .Wade
|
||||
if_equal $18, .Alan
|
||||
if_equal $1c, .Derek
|
||||
if_equal $1d, .Tully
|
||||
if_equal $21, .Wilton
|
||||
if_equal $22, .Kenji
|
||||
if_equal PHONE_BIRDKEEPER_JOSE, .Jose
|
||||
if_equal PHONE_BUG_CATCHER_WADE, .Wade
|
||||
if_equal PHONE_SCHOOLBOY_ALAN, .Alan
|
||||
if_equal PHONE_POKEFANM_DEREK, .Derek
|
||||
if_equal PHONE_FISHER_TULLY, .Tully
|
||||
if_equal PHONE_FISHER_WILTON, .Wilton
|
||||
if_equal PHONE_BLACKBELT_KENJI, .Kenji
|
||||
|
||||
.Jose
|
||||
farwritetext JoseGiftText
|
||||
@ -1316,17 +1316,17 @@ GiftMScript:
|
||||
|
||||
PackFullMScript:
|
||||
checkcode VAR_CALLERID
|
||||
if_equal $7, .Huey
|
||||
if_equal $d, .Jose
|
||||
if_equal $f, .Joey
|
||||
if_equal $10, .Wade
|
||||
if_equal $18, .Alan
|
||||
if_equal $1c, .Derek
|
||||
if_equal $1d, .Tully
|
||||
if_equal $20, .Vance
|
||||
if_equal $21, .Wilton
|
||||
if_equal $22, .Kenji
|
||||
if_equal $23, .Parry
|
||||
if_equal PHONE_SAILOR_HUEY, .Huey
|
||||
if_equal PHONE_BIRDKEEPER_JOSE, .Jose
|
||||
if_equal PHONE_YOUNGSTER_JOEY, .Joey
|
||||
if_equal PHONE_BUG_CATCHER_WADE, .Wade
|
||||
if_equal PHONE_SCHOOLBOY_ALAN, .Alan
|
||||
if_equal PHONE_POKEFANM_DEREK, .Derek
|
||||
if_equal PHONE_FISHER_TULLY, .Tully
|
||||
if_equal PHONE_BIRDKEEPER_VANCE, .Vance
|
||||
if_equal PHONE_FISHER_WILTON, .Wilton
|
||||
if_equal PHONE_BLACKBELT_KENJI, .Kenji
|
||||
if_equal PHONE_HIKER_PARRY, .Parry
|
||||
|
||||
.Huey
|
||||
farwritetext HueyPackFullText
|
||||
@ -1387,10 +1387,10 @@ PackFullMScript:
|
||||
RematchGiftMScript:
|
||||
loadfont
|
||||
checkcode VAR_CALLERID
|
||||
if_equal $7, .Huey
|
||||
if_equal $f, .Joey
|
||||
if_equal $20, .Vance
|
||||
if_equal $23, .Parry
|
||||
if_equal PHONE_SAILOR_HUEY, .Huey
|
||||
if_equal PHONE_YOUNGSTER_JOEY, .Joey
|
||||
if_equal PHONE_BIRDKEEPER_VANCE, .Vance
|
||||
if_equal PHONE_HIKER_PARRY, .Parry
|
||||
|
||||
.Huey
|
||||
farwritetext HueyRematchGiftText
|
||||
@ -1411,14 +1411,14 @@ RematchGiftMScript:
|
||||
|
||||
AskNumber1FScript:
|
||||
checkcode VAR_CALLERID
|
||||
if_equal $6, .Beverly
|
||||
if_equal $c, .Beth
|
||||
if_equal $e, .Reena
|
||||
if_equal $12, .Liz
|
||||
if_equal $15, .Gina
|
||||
if_equal $1a, .Dana
|
||||
if_equal $1f, .Tiffany
|
||||
if_equal $24, .Erin
|
||||
if_equal PHONE_POKEFAN_BEVERLY, .Beverly
|
||||
if_equal PHONE_COOLTRAINERF_BETH, .Beth
|
||||
if_equal PHONE_COOLTRAINERF_REENA, .Reena
|
||||
if_equal PHONE_PICNICKER_LIZ, .Liz
|
||||
if_equal PHONE_PICNICKER_GINA, .Gina
|
||||
if_equal PHONE_LASS_DANA, .Dana
|
||||
if_equal PHONE_PICNICKER_TIFFANY, .Tiffany
|
||||
if_equal PHONE_PICNICKER_ERIN, .Erin
|
||||
|
||||
.Beverly
|
||||
farwritetext BeverlyAskNumber1Text
|
||||
@ -1447,14 +1447,14 @@ AskNumber1FScript:
|
||||
|
||||
AskNumber2FScript:
|
||||
checkcode VAR_CALLERID
|
||||
if_equal $6, .Beverly
|
||||
if_equal $c, .Beth
|
||||
if_equal $e, .Reena
|
||||
if_equal $12, .Liz
|
||||
if_equal $15, .Gina
|
||||
if_equal $1a, .Dana
|
||||
if_equal $1f, .Tiffany
|
||||
if_equal $24, .Erin
|
||||
if_equal PHONE_POKEFAN_BEVERLY, .Beverly
|
||||
if_equal PHONE_COOLTRAINERF_BETH, .Beth
|
||||
if_equal PHONE_COOLTRAINERF_REENA, .Reena
|
||||
if_equal PHONE_PICNICKER_LIZ, .Liz
|
||||
if_equal PHONE_PICNICKER_GINA, .Gina
|
||||
if_equal PHONE_LASS_DANA, .Dana
|
||||
if_equal PHONE_PICNICKER_TIFFANY, .Tiffany
|
||||
if_equal PHONE_PICNICKER_ERIN, .Erin
|
||||
|
||||
.Beverly
|
||||
farwritetext BeverlyAskNumber2Text
|
||||
@ -1490,14 +1490,14 @@ RegisteredNumberFScript:
|
||||
|
||||
NumberAcceptedFScript: ; 0xbcbd3
|
||||
checkcode VAR_CALLERID
|
||||
if_equal $6, .Beverly
|
||||
if_equal $c, .Beth
|
||||
if_equal $e, .Reena
|
||||
if_equal $12, .Liz
|
||||
if_equal $15, .Gina
|
||||
if_equal $1a, .Dana
|
||||
if_equal $1f, .Tiffany
|
||||
if_equal $24, .Erin
|
||||
if_equal PHONE_POKEFAN_BEVERLY, .Beverly
|
||||
if_equal PHONE_COOLTRAINERF_BETH, .Beth
|
||||
if_equal PHONE_COOLTRAINERF_REENA, .Reena
|
||||
if_equal PHONE_PICNICKER_LIZ, .Liz
|
||||
if_equal PHONE_PICNICKER_GINA, .Gina
|
||||
if_equal PHONE_LASS_DANA, .Dana
|
||||
if_equal PHONE_PICNICKER_TIFFANY, .Tiffany
|
||||
if_equal PHONE_PICNICKER_ERIN, .Erin
|
||||
|
||||
.Beverly
|
||||
farwritetext BeverlyNumberAcceptedText
|
||||
@ -1542,14 +1542,14 @@ NumberAcceptedFScript: ; 0xbcbd3
|
||||
|
||||
NumberDeclinedFScript:
|
||||
checkcode VAR_CALLERID
|
||||
if_equal $6, .Beverly
|
||||
if_equal $c, .Beth
|
||||
if_equal $e, .Reena
|
||||
if_equal $12, .Liz
|
||||
if_equal $15, .Gina
|
||||
if_equal $1a, .Dana
|
||||
if_equal $1f, .Tiffany
|
||||
if_equal $24, .Erin
|
||||
if_equal PHONE_POKEFAN_BEVERLY, .Beverly
|
||||
if_equal PHONE_COOLTRAINERF_BETH, .Beth
|
||||
if_equal PHONE_COOLTRAINERF_REENA, .Reena
|
||||
if_equal PHONE_PICNICKER_LIZ, .Liz
|
||||
if_equal PHONE_PICNICKER_GINA, .Gina
|
||||
if_equal PHONE_LASS_DANA, .Dana
|
||||
if_equal PHONE_PICNICKER_TIFFANY, .Tiffany
|
||||
if_equal PHONE_PICNICKER_ERIN, .Erin
|
||||
|
||||
.Beverly
|
||||
farwritetext BeverlyNumberDeclinedText
|
||||
@ -1594,14 +1594,14 @@ NumberDeclinedFScript:
|
||||
|
||||
PhoneFullFScript:
|
||||
checkcode VAR_CALLERID
|
||||
if_equal $6, .Beverly
|
||||
if_equal $c, .Beth
|
||||
if_equal $e, .Reena
|
||||
if_equal $12, .Liz
|
||||
if_equal $15, .Gina
|
||||
if_equal $1a, .Dana
|
||||
if_equal $1f, .Tiffany
|
||||
if_equal $24, .Erin
|
||||
if_equal PHONE_POKEFAN_BEVERLY, .Beverly
|
||||
if_equal PHONE_COOLTRAINERF_BETH, .Beth
|
||||
if_equal PHONE_COOLTRAINERF_REENA, .Reena
|
||||
if_equal PHONE_PICNICKER_LIZ, .Liz
|
||||
if_equal PHONE_PICNICKER_GINA, .Gina
|
||||
if_equal PHONE_LASS_DANA, .Dana
|
||||
if_equal PHONE_PICNICKER_TIFFANY, .Tiffany
|
||||
if_equal PHONE_PICNICKER_ERIN, .Erin
|
||||
|
||||
.Beverly
|
||||
farwritetext BeverlyPhoneFullText
|
||||
@ -1646,13 +1646,13 @@ PhoneFullFScript:
|
||||
|
||||
RematchFScript:
|
||||
checkcode VAR_CALLERID
|
||||
if_equal $c, .Beth
|
||||
if_equal $e, .Reena
|
||||
if_equal $12, .Liz
|
||||
if_equal $15, .Gina
|
||||
if_equal $1a, .Dana
|
||||
if_equal $1f, .Tiffany
|
||||
if_equal $24, .Erin
|
||||
if_equal PHONE_COOLTRAINERF_BETH, .Beth
|
||||
if_equal PHONE_COOLTRAINERF_REENA, .Reena
|
||||
if_equal PHONE_PICNICKER_LIZ, .Liz
|
||||
if_equal PHONE_PICNICKER_GINA, .Gina
|
||||
if_equal PHONE_LASS_DANA, .Dana
|
||||
if_equal PHONE_PICNICKER_TIFFANY, .Tiffany
|
||||
if_equal PHONE_PICNICKER_ERIN, .Erin
|
||||
|
||||
.Beth
|
||||
farwritetext BethRematchText
|
||||
@ -1692,10 +1692,10 @@ RematchFScript:
|
||||
|
||||
GiftFScript:
|
||||
checkcode VAR_CALLERID
|
||||
if_equal $6, .Beverly
|
||||
if_equal $15, .Gina
|
||||
if_equal $1a, .Dana
|
||||
if_equal $1f, .Tiffany
|
||||
if_equal PHONE_POKEFAN_BEVERLY, .Beverly
|
||||
if_equal PHONE_PICNICKER_GINA, .Gina
|
||||
if_equal PHONE_LASS_DANA, .Dana
|
||||
if_equal PHONE_PICNICKER_TIFFANY, .Tiffany
|
||||
|
||||
.Beverly
|
||||
farwritetext BeverlyGiftText
|
||||
@ -1716,11 +1716,11 @@ GiftFScript:
|
||||
|
||||
PackFullFScript:
|
||||
checkcode VAR_CALLERID
|
||||
if_equal $6, .Beverly
|
||||
if_equal $15, .Gina
|
||||
if_equal $1a, .Dana
|
||||
if_equal $1f, .Tiffany
|
||||
if_equal $24, .Erin
|
||||
if_equal PHONE_POKEFAN_BEVERLY, .Beverly
|
||||
if_equal PHONE_PICNICKER_GINA, .Gina
|
||||
if_equal PHONE_LASS_DANA, .Dana
|
||||
if_equal PHONE_PICNICKER_TIFFANY, .Tiffany
|
||||
if_equal PHONE_PICNICKER_ERIN, .Erin
|
||||
|
||||
.Beverly
|
||||
farwritetext BeverlyPackFullText
|
||||
@ -1750,7 +1750,7 @@ PackFullFScript:
|
||||
|
||||
RematchGiftFScript:
|
||||
checkcode VAR_CALLERID
|
||||
if_equal $24, .Erin
|
||||
if_equal PHONE_PICNICKER_ERIN, .Erin
|
||||
|
||||
.Erin
|
||||
loadfont
|
||||
@ -1761,7 +1761,7 @@ RematchGiftFScript:
|
||||
GymStatue1Script:
|
||||
mapnametotext $0
|
||||
loadfont
|
||||
farwritetext UnknownText_0x1b074e
|
||||
farwritetext GymStatue_CityGymText
|
||||
closetext
|
||||
loadmovesprites
|
||||
end
|
||||
@ -1769,114 +1769,114 @@ GymStatue1Script:
|
||||
GymStatue2Script:
|
||||
mapnametotext $0
|
||||
loadfont
|
||||
farwritetext UnknownText_0x1b074e
|
||||
farwritetext GymStatue_CityGymText
|
||||
keeptextopen
|
||||
farwritetext UnknownText_0x1b075c
|
||||
farwritetext GymStatue_WinningTrainersText
|
||||
closetext
|
||||
loadmovesprites
|
||||
end
|
||||
|
||||
UnknownScript_0xbcdb9: ; 0xbcdb9
|
||||
ReceiveItemScript: ; 0xbcdb9
|
||||
waitbutton
|
||||
farwritetext UnknownText_0x1b0648
|
||||
farwritetext ReceivedItemText
|
||||
playsound SFX_ITEM
|
||||
waitbutton
|
||||
end
|
||||
; 0xbcdc3
|
||||
|
||||
UnknownScript_0xbcdc3: ; 0xbcdc3
|
||||
ReceiveTogepiEggScript: ; 0xbcdc3
|
||||
waitbutton
|
||||
farwritetext UnknownText_0x1b0648
|
||||
farwritetext ReceivedItemText
|
||||
playsound SFX_GET_EGG_FROM_DAYCARE_LADY
|
||||
waitbutton
|
||||
end
|
||||
; 0xbcdcd
|
||||
|
||||
UnknownScript_0xbcdcd: ; 0xbcdcd
|
||||
GameCornerCoinVendorScript: ; 0xbcdcd
|
||||
faceplayer
|
||||
loadfont
|
||||
farwritetext UnknownText_0x1b077f
|
||||
farwritetext CoinVendor_WelcomeText
|
||||
keeptextopen
|
||||
checkitem COIN_CASE
|
||||
iftrue UnknownScript_0xbcde0
|
||||
farwritetext UnknownText_0x1b079c
|
||||
iftrue CoinVendor_IntroScript
|
||||
farwritetext CoinVendor_NoCoinCaseText
|
||||
closetext
|
||||
loadmovesprites
|
||||
end
|
||||
; 0xbcde0
|
||||
|
||||
UnknownScript_0xbcde0: ; 0xbcde0
|
||||
farwritetext UnknownText_0x1b07e3
|
||||
CoinVendor_IntroScript: ; 0xbcde0
|
||||
farwritetext CoinVendor_IntroText
|
||||
|
||||
UnknownScript_0xbcde4: ; 0xbcde4
|
||||
CoinVendor_SellCoinsMenuScript: ; 0xbcde4
|
||||
special Function24b4e
|
||||
loadmenudata MenuDataHeader_0xbce54
|
||||
loadmenudata CoinVendor_MenuDataHeader
|
||||
interpretmenu2
|
||||
writebackup
|
||||
if_equal $1, UnknownScript_0xbcdf7
|
||||
if_equal $2, UnknownScript_0xbce1b
|
||||
jump UnknownScript_0xbce4d
|
||||
if_equal $1, CoinVendor_Buy50CoinsScript
|
||||
if_equal $2, CoinVendor_Buy500CoinsScript
|
||||
jump CoinVendor_CancelScript
|
||||
; 0xbcdf7
|
||||
|
||||
UnknownScript_0xbcdf7: ; 0xbcdf7
|
||||
CoinVendor_Buy50CoinsScript: ; 0xbcdf7
|
||||
checkcoins 9949
|
||||
if_equal $0, UnknownScript_0xbce46
|
||||
if_equal $0, CoinVendor_CoinCaseFullScript
|
||||
checkmoney $0, 1000
|
||||
if_equal $2, UnknownScript_0xbce3f
|
||||
if_equal $2, CoinVendor_NotEnoughMoneyScript
|
||||
givecoins 50
|
||||
takemoney $0, 1000
|
||||
waitbutton
|
||||
playsound SFX_TRANSACTION
|
||||
farwritetext UnknownText_0x1b0830
|
||||
farwritetext CoinVendor_Buy50CoinsText
|
||||
closetext
|
||||
jump UnknownScript_0xbcde4
|
||||
jump CoinVendor_SellCoinsMenuScript
|
||||
; 0xbce1b
|
||||
|
||||
UnknownScript_0xbce1b: ; 0xbce1b
|
||||
CoinVendor_Buy500CoinsScript: ; 0xbce1b
|
||||
checkcoins 9499
|
||||
if_equal $0, UnknownScript_0xbce46
|
||||
if_equal $0, CoinVendor_CoinCaseFullScript
|
||||
checkmoney $0, 10000
|
||||
if_equal $2, UnknownScript_0xbce3f
|
||||
if_equal $2, CoinVendor_NotEnoughMoneyScript
|
||||
givecoins 500
|
||||
takemoney $0, 10000
|
||||
waitbutton
|
||||
playsound SFX_TRANSACTION
|
||||
farwritetext UnknownText_0x1b084f
|
||||
farwritetext CoinVendor_Buy500CoinsText
|
||||
closetext
|
||||
jump UnknownScript_0xbcde4
|
||||
jump CoinVendor_SellCoinsMenuScript
|
||||
; 0xbce3f
|
||||
|
||||
UnknownScript_0xbce3f: ; 0xbce3f
|
||||
farwritetext UnknownText_0x1b086f
|
||||
CoinVendor_NotEnoughMoneyScript: ; 0xbce3f
|
||||
farwritetext CoinVendor_NotEnoughMoneyText
|
||||
closetext
|
||||
loadmovesprites
|
||||
end
|
||||
; 0xbce46
|
||||
|
||||
UnknownScript_0xbce46: ; 0xbce46
|
||||
farwritetext UnknownText_0x1b088c
|
||||
CoinVendor_CoinCaseFullScript: ; 0xbce46
|
||||
farwritetext CoinVendor_CoinCaseFullText
|
||||
closetext
|
||||
loadmovesprites
|
||||
end
|
||||
; 0xbce4d
|
||||
|
||||
UnknownScript_0xbce4d: ; 0xbce4d
|
||||
farwritetext UnknownText_0x1b08ad
|
||||
CoinVendor_CancelScript: ; 0xbce4d
|
||||
farwritetext CoinVendor_CancelText
|
||||
closetext
|
||||
loadmovesprites
|
||||
end
|
||||
; 0xbce54
|
||||
|
||||
|
||||
MenuDataHeader_0xbce54: ; 0xbce54
|
||||
CoinVendor_MenuDataHeader: ; 0xbce54
|
||||
db $40 ; flags
|
||||
db 04, 00 ; start coords
|
||||
db 11, 15 ; end coords
|
||||
dw MenuData2_0xbce5c
|
||||
dw CoinVendor_MenuData2
|
||||
db 1 ; default option
|
||||
; 0xbce5c
|
||||
|
||||
MenuData2_0xbce5c: ; 0xbce5c
|
||||
CoinVendor_MenuData2: ; 0xbce5c
|
||||
db $80 ; flags
|
||||
db 3 ; items
|
||||
db " 50 : ¥1000@"
|
||||
@ -1888,7 +1888,7 @@ MenuData2_0xbce5c: ; 0xbce5c
|
||||
HappinessCheckScript:
|
||||
faceplayer
|
||||
loadfont
|
||||
special Function718d
|
||||
special GetFirstPokemonHappiness
|
||||
if_less_than 50, .Unhappy
|
||||
if_less_than 150, .KindaHappy
|
||||
farwritetext HappinessText3
|
||||
@ -1908,7 +1908,7 @@ HappinessCheckScript:
|
||||
loadmovesprites
|
||||
end
|
||||
|
||||
MovementData_0xbcea1: ; bcea1
|
||||
Movement_ContestResults_WalkAfterWarp: ; bcea1
|
||||
step_right
|
||||
step_down
|
||||
turn_head_up
|
||||
|
4
home.asm
4
home.asm
@ -1235,7 +1235,7 @@ Function3574:: ; 3574
|
||||
call Function35de
|
||||
jr nc, .asm_3597
|
||||
call Function2631
|
||||
callba Function96c56
|
||||
callba EnableScriptMode
|
||||
scf
|
||||
ret
|
||||
|
||||
@ -1402,7 +1402,7 @@ CheckTrainerBattle:: ; 360d
|
||||
jr z, .next
|
||||
|
||||
; Is facing the player...
|
||||
call Function1ae5
|
||||
call GetObjectStruct
|
||||
call FacingPlayerDistance_bc
|
||||
jr nc, .next
|
||||
|
||||
|
@ -310,7 +310,7 @@ BattleTextBox:: ; 3ac3
|
||||
push hl
|
||||
call SpeechTextBox
|
||||
call MobileTextBorder
|
||||
call Function1ad2
|
||||
call DrawOnMap
|
||||
call Function321c
|
||||
pop hl
|
||||
call PrintTextBoxText
|
||||
|
@ -312,7 +312,7 @@ Functiona36:: ; a36
|
||||
jr Functiona36
|
||||
; a46
|
||||
|
||||
Functiona46:: ; a46
|
||||
CloseText:: ; a46
|
||||
ld a, [hOAMUpdate]
|
||||
push af
|
||||
ld a, 1
|
||||
@ -387,7 +387,7 @@ Functionaa5:: ; aa5
|
||||
ret
|
||||
; aaf
|
||||
|
||||
Functionaaf:: ; aaf
|
||||
KeepTextOpen:: ; aaf
|
||||
ld a, [InLinkBattle]
|
||||
and a
|
||||
jr nz, .asm_ac1
|
||||
|
32
home/map.asm
32
home/map.asm
@ -8,7 +8,7 @@ Function210f:: ; 210f
|
||||
ret
|
||||
; 211b
|
||||
|
||||
Function211b:: ; 211b
|
||||
CheckTriggers:: ; 211b
|
||||
push hl
|
||||
ld hl, BikeFlags + 2
|
||||
ld a, [hli]
|
||||
@ -17,7 +17,7 @@ Function211b:: ; 211b
|
||||
or h
|
||||
ld a, [hl]
|
||||
jr nz, .asm_2128
|
||||
ld a, $ff
|
||||
ld a, -1
|
||||
|
||||
.asm_2128
|
||||
pop hl
|
||||
@ -702,7 +702,7 @@ Function24cd:: ; 24cd
|
||||
ld bc, OverworldMapEnd - OverworldMap
|
||||
ld a, 0
|
||||
call ByteFill
|
||||
call Function24e4
|
||||
call ChangeMap
|
||||
call FillMapConnections
|
||||
ld a, $1
|
||||
call Function263b
|
||||
@ -711,7 +711,7 @@ Function24cd:: ; 24cd
|
||||
|
||||
|
||||
|
||||
Function24e4:: ; 24e4
|
||||
ChangeMap:: ; 24e4
|
||||
ld a, [hROMBank]
|
||||
push af
|
||||
|
||||
@ -938,7 +938,7 @@ FillEastConnectionStrip:: ; 25f6
|
||||
ret
|
||||
; 261b
|
||||
|
||||
Function261b:: ; 261b
|
||||
LoadMapStatus:: ; 261b
|
||||
ld [MapStatus], a
|
||||
ret
|
||||
; 261f
|
||||
@ -1027,7 +1027,7 @@ Function2674:: ; 2674
|
||||
ld a, [hl]
|
||||
push af
|
||||
set 1, [hl]
|
||||
callba Function96c56
|
||||
callba EnableScriptMode
|
||||
callba ScriptEvents
|
||||
pop af
|
||||
ld [ScriptFlags], a
|
||||
@ -1036,7 +1036,7 @@ Function2674:: ; 2674
|
||||
ret
|
||||
; 269a
|
||||
|
||||
Function269a:: ; 269a
|
||||
MapTextbox:: ; 269a
|
||||
ld a, [hROMBank]
|
||||
push af
|
||||
|
||||
@ -1059,7 +1059,7 @@ Function269a:: ; 269a
|
||||
ret
|
||||
; 26b7
|
||||
|
||||
Function26b7:: ; 26b7
|
||||
Call_a_de:: ; 26b7
|
||||
; Call a:de.
|
||||
|
||||
ld [hBuffer], a
|
||||
@ -1079,7 +1079,7 @@ Function26b7:: ; 26b7
|
||||
ret
|
||||
; 26c7
|
||||
|
||||
Function26c7:: ; 26c7
|
||||
GetMovementData:: ; 26c7
|
||||
ld a, [hROMBank]
|
||||
push af
|
||||
ld a, b
|
||||
@ -1412,7 +1412,7 @@ Function2821:: ; 2821
|
||||
ret
|
||||
; 2879
|
||||
|
||||
Function2879:: ; 2879
|
||||
BufferScreen:: ; 2879
|
||||
ld hl, wd194
|
||||
ld a, [hli]
|
||||
ld h, [hl]
|
||||
@ -1733,7 +1733,7 @@ GetFacingTileCoord:: ; 2a07
|
||||
|
||||
|
||||
Function2a3c:: ; 2a3c
|
||||
call Function2a66
|
||||
call GetBlockLocation
|
||||
ld a, [hl]
|
||||
and a
|
||||
jr z, .asm_2a63
|
||||
@ -1766,7 +1766,7 @@ Function2a3c:: ; 2a3c
|
||||
ret
|
||||
; 2a66
|
||||
|
||||
Function2a66:: ; 2a66
|
||||
GetBlockLocation:: ; 2a66
|
||||
ld a, [MapWidth]
|
||||
add $6
|
||||
ld c, a
|
||||
@ -1878,7 +1878,7 @@ Function2ae7:: ; 2ae7
|
||||
ld a, [hli]
|
||||
ld h, [hl]
|
||||
ld l, a
|
||||
call Function211b
|
||||
call CheckTriggers
|
||||
ld b, a
|
||||
ld a, [MapX]
|
||||
sub $4
|
||||
@ -1941,7 +1941,7 @@ FadeToMenu:: ; 2b29
|
||||
Function2b3c:: ; 2b3c
|
||||
call WhiteBGMap
|
||||
call Function2bae
|
||||
call Function1ad2
|
||||
call DrawOnMap
|
||||
call Function1d7d
|
||||
call Functiond90
|
||||
jr Function2b5c
|
||||
@ -1951,7 +1951,7 @@ Function2b4d:: ; 2b4d
|
||||
call WhiteBGMap
|
||||
call Function1d7d
|
||||
call Function2bae
|
||||
call Function1ad2
|
||||
call DrawOnMap
|
||||
call Functiond90
|
||||
; 2b5c
|
||||
|
||||
@ -1978,7 +1978,7 @@ Function2b74:: ; 0x2b74
|
||||
call TextBox
|
||||
ld hl, VramState
|
||||
set 0, [hl]
|
||||
call Function1ad2
|
||||
call DrawOnMap
|
||||
call Function3200
|
||||
ld b, $9
|
||||
call GetSGBLayout
|
||||
|
@ -19,33 +19,33 @@ Function180e:: ; 180e
|
||||
push hl
|
||||
push bc
|
||||
ld hl, UsedSprites + 2
|
||||
ld c, $1f
|
||||
ld c, SPRITE_GFX_LIST_CAPACITY - 1
|
||||
ld b, a
|
||||
ld a, [hConnectionStripLength]
|
||||
cp $0
|
||||
jr z, .asm_182b
|
||||
jr z, .nope
|
||||
ld a, b
|
||||
.asm_181d
|
||||
.loop
|
||||
cp [hl]
|
||||
jr z, .asm_1830
|
||||
jr z, .found
|
||||
inc hl
|
||||
inc hl
|
||||
dec c
|
||||
jr nz, .asm_181d
|
||||
jr nz, .loop
|
||||
ld a, [UsedSprites + 1]
|
||||
scf
|
||||
jr .asm_1833
|
||||
jr .done
|
||||
|
||||
.asm_182b
|
||||
.nope
|
||||
ld a, [UsedSprites + 1]
|
||||
jr .asm_1833
|
||||
jr .done
|
||||
|
||||
.asm_1830
|
||||
.found
|
||||
inc hl
|
||||
xor a
|
||||
ld a, [hl]
|
||||
|
||||
.asm_1833
|
||||
.done
|
||||
pop bc
|
||||
pop hl
|
||||
ret
|
||||
@ -125,20 +125,20 @@ Function1875:: ; 1875
|
||||
ld d, a
|
||||
and $f0
|
||||
cp $10
|
||||
jr z, .asm_1882
|
||||
jr z, .ok_10
|
||||
cp $20
|
||||
jr z, .asm_1888
|
||||
jr z, .ok_20
|
||||
scf
|
||||
ret
|
||||
|
||||
.asm_1882
|
||||
.ok_10
|
||||
ld a, d
|
||||
and 7
|
||||
ret z
|
||||
scf
|
||||
ret
|
||||
|
||||
.asm_1888
|
||||
.ok_20
|
||||
ld a, d
|
||||
and 7
|
||||
ret z
|
||||
@ -223,7 +223,7 @@ CheckStandingOnEntrance:: ; 18c3
|
||||
GetMapObject:: ; 18d2
|
||||
; Return the location of map object a in bc.
|
||||
ld hl, MapObjects
|
||||
ld bc, $10
|
||||
ld bc, OBJECT_LENGTH
|
||||
call AddNTimes
|
||||
ld b, h
|
||||
ld c, l
|
||||
@ -232,93 +232,94 @@ GetMapObject:: ; 18d2
|
||||
|
||||
|
||||
Function18de:: ; 18de
|
||||
; Sets carry if the object is not visible on the screen.
|
||||
ld [hConnectionStripLength], a
|
||||
call GetMapObject
|
||||
ld hl, $0000
|
||||
ld hl, MAPOBJECT_VRAM_ID
|
||||
add hl, bc
|
||||
ld a, [hl]
|
||||
cp $ff
|
||||
jr z, .asm_18f3
|
||||
cp MAPOBJECT_NOT_VISIBLE
|
||||
jr z, .not_visible
|
||||
ld [hConnectedMapWidth], a
|
||||
call Function1ae5
|
||||
call GetObjectStruct
|
||||
and a
|
||||
ret
|
||||
|
||||
.asm_18f3
|
||||
.not_visible
|
||||
scf
|
||||
ret
|
||||
; 18f5
|
||||
|
||||
Function18f5:: ; 18f5
|
||||
ld hl, $0006
|
||||
ld hl, MAPOBJECT_HOUR
|
||||
add hl, bc
|
||||
ld a, [hl]
|
||||
cp $ff
|
||||
jr nz, .asm_1921
|
||||
ld hl, $0007
|
||||
cp -1
|
||||
jr nz, .check_hour
|
||||
ld hl, MAPOBJECT_TIMEOFDAY
|
||||
add hl, bc
|
||||
ld a, [hl]
|
||||
cp $ff
|
||||
jr z, .asm_191c
|
||||
ld hl, .data_191e
|
||||
cp -1
|
||||
jr z, .timeofday_always
|
||||
ld hl, .TimeOfDayValues_191e
|
||||
ld a, [TimeOfDay]
|
||||
add l
|
||||
ld l, a
|
||||
jr nc, .asm_1912
|
||||
jr nc, .ok
|
||||
inc h
|
||||
|
||||
.asm_1912
|
||||
.ok
|
||||
ld a, [hl]
|
||||
ld hl, $0007
|
||||
ld hl, MAPOBJECT_TIMEOFDAY
|
||||
add hl, bc
|
||||
and [hl]
|
||||
jr nz, .asm_191c
|
||||
jr nz, .timeofday_always
|
||||
scf
|
||||
ret
|
||||
|
||||
.asm_191c
|
||||
.timeofday_always
|
||||
and a
|
||||
ret
|
||||
|
||||
.data_191e
|
||||
db $1
|
||||
db $2
|
||||
db $4
|
||||
.TimeOfDayValues_191e
|
||||
db 1 << MORN ; 1
|
||||
db 1 << DAY ; 2
|
||||
db 1 << NITE ; 4
|
||||
|
||||
.asm_1921
|
||||
ld hl, $0006
|
||||
.check_hour
|
||||
ld hl, MAPOBJECT_HOUR
|
||||
add hl, bc
|
||||
ld d, [hl]
|
||||
ld hl, $0007
|
||||
ld hl, MAPOBJECT_TIMEOFDAY
|
||||
add hl, bc
|
||||
ld e, [hl]
|
||||
ld hl, hHours
|
||||
ld a, d
|
||||
cp e
|
||||
jr z, .asm_1949
|
||||
jr c, .asm_193f
|
||||
jr z, .yes
|
||||
jr c, .check_timeofday
|
||||
ld a, [hl]
|
||||
cp d
|
||||
jr nc, .asm_1949
|
||||
jr nc, .yes
|
||||
cp e
|
||||
jr c, .asm_1949
|
||||
jr z, .asm_1949
|
||||
jr .asm_194b
|
||||
jr c, .yes
|
||||
jr z, .yes
|
||||
jr .no
|
||||
|
||||
.asm_193f
|
||||
.check_timeofday
|
||||
ld a, e
|
||||
cp [hl]
|
||||
jr c, .asm_194b
|
||||
jr c, .no
|
||||
ld a, [hl]
|
||||
cp d
|
||||
jr nc, .asm_1949
|
||||
jr .asm_194b
|
||||
jr nc, .yes
|
||||
jr .no
|
||||
|
||||
.asm_1949
|
||||
.yes
|
||||
and a
|
||||
ret
|
||||
|
||||
.asm_194b
|
||||
.no
|
||||
scf
|
||||
ret
|
||||
; 194d
|
||||
@ -344,16 +345,16 @@ Function1956:: ; 1956
|
||||
Function1967:: ; 1967
|
||||
ld [hConnectionStripLength], a
|
||||
call GetMapObject
|
||||
ld hl, $0000
|
||||
ld hl, MAPOBJECT_VRAM_ID
|
||||
add hl, bc
|
||||
ld a, [hl]
|
||||
cp $ff
|
||||
cp MAPOBJECT_NOT_VISIBLE
|
||||
ret z
|
||||
ld [hl], $ff
|
||||
ld [hl], MAPOBJECT_NOT_VISIBLE
|
||||
push af
|
||||
call Function1985
|
||||
pop af
|
||||
call Function1ae5
|
||||
call GetObjectStruct
|
||||
callba Function4357
|
||||
ret
|
||||
; 1985
|
||||
@ -361,14 +362,14 @@ Function1967:: ; 1967
|
||||
Function1985:: ; 1985
|
||||
ld hl, wd4cd
|
||||
cp [hl]
|
||||
jr z, .asm_1990
|
||||
jr z, .ok
|
||||
ld hl, wd4ce
|
||||
cp [hl]
|
||||
ret nz
|
||||
|
||||
.asm_1990
|
||||
.ok
|
||||
callba Function581f
|
||||
ld a, $ff
|
||||
ld a, -1
|
||||
ld [wd4cd], a
|
||||
ld [wd4ce], a
|
||||
ret
|
||||
@ -385,41 +386,41 @@ Function19a6:: ; 19a6
|
||||
call GetMapObject
|
||||
ld d, b
|
||||
ld e, c
|
||||
ld a, $ff
|
||||
ld a, MAPOBJECT_NOT_VISIBLE
|
||||
ld [de], a
|
||||
inc de
|
||||
pop hl
|
||||
ld bc, $000f
|
||||
ld bc, OBJECT_LENGTH - 1
|
||||
call CopyBytes
|
||||
ret
|
||||
; 19b8
|
||||
|
||||
Function19b8:: ; 19b8
|
||||
call GetMapObject
|
||||
ld hl, $0000
|
||||
ld hl, MAPOBJECT_VRAM_ID
|
||||
add hl, bc
|
||||
ld a, [hl]
|
||||
push af
|
||||
ld [hl], $ff
|
||||
ld [hl], MAPOBJECT_NOT_VISIBLE
|
||||
inc hl
|
||||
ld bc, $000f
|
||||
ld bc, OBJECT_LENGTH - 1
|
||||
xor a
|
||||
call ByteFill
|
||||
pop af
|
||||
cp $ff
|
||||
cp MAPOBJECT_NOT_VISIBLE
|
||||
ret z
|
||||
cp $d
|
||||
ret nc
|
||||
ld b, a
|
||||
ld a, [wd4cd]
|
||||
cp b
|
||||
jr nz, .asm_19de
|
||||
ld a, $ff
|
||||
jr nz, .ok
|
||||
ld a, -1
|
||||
ld [wd4cd], a
|
||||
|
||||
.asm_19de
|
||||
.ok
|
||||
ld a, b
|
||||
call Function1ae5
|
||||
call GetObjectStruct
|
||||
callba Function4357
|
||||
ret
|
||||
; 19e9
|
||||
@ -437,12 +438,12 @@ Function19e9:: ; 19e9
|
||||
ld a, [wc2e2]
|
||||
call Function18de
|
||||
ret c
|
||||
ld hl, $0003
|
||||
ld hl, OBJECT_03
|
||||
add hl, bc
|
||||
ld [hl], $14
|
||||
ld hl, $0009
|
||||
ld hl, OBJECT_09
|
||||
add hl, bc
|
||||
ld [hl], $0
|
||||
ld [hl], 0
|
||||
ld hl, VramState
|
||||
set 7, [hl]
|
||||
and a
|
||||
@ -455,24 +456,24 @@ Function1a13:: ; 1a13
|
||||
push bc
|
||||
push de
|
||||
ld hl, ObjectStructs
|
||||
ld de, $0028
|
||||
ld c, $d
|
||||
.asm_1a1d
|
||||
ld de, OBJECT_STRUCT_LENGTH
|
||||
ld c, NUM_OBJECT_STRUCTS
|
||||
.loop
|
||||
ld a, [hl]
|
||||
and a
|
||||
jr z, .asm_1a28
|
||||
jr z, .empty
|
||||
add hl, de
|
||||
dec c
|
||||
jr nz, .asm_1a1d
|
||||
jr nz, .loop
|
||||
xor a
|
||||
jr .asm_1a2c
|
||||
jr .done
|
||||
|
||||
.asm_1a28
|
||||
.empty
|
||||
ld a, $d
|
||||
sub c
|
||||
scf
|
||||
|
||||
.asm_1a2c
|
||||
.done
|
||||
pop de
|
||||
pop bc
|
||||
ret
|
||||
@ -481,23 +482,18 @@ Function1a13:: ; 1a13
|
||||
|
||||
|
||||
Function1a2f:: ; 1a2f
|
||||
ld hl, $0003
|
||||
ld hl, OBJECT_03
|
||||
add hl, bc
|
||||
ld a, [hl]
|
||||
cp $25
|
||||
jr c, .asm_1a39
|
||||
cp OBJECT_STRUCT_3_DATA_HEIGHT
|
||||
jr c, .ok
|
||||
xor a
|
||||
|
||||
.asm_1a39
|
||||
ld hl, Data4273
|
||||
.ok
|
||||
ld hl, ObjectStruct3_Data
|
||||
ld e, a
|
||||
ld d, 0
|
||||
add hl, de
|
||||
add hl, de
|
||||
add hl, de
|
||||
add hl, de
|
||||
add hl, de
|
||||
add hl, de
|
||||
add_n_times hl, de, OBJECT_STRUCT_3_DATA_WIDTH
|
||||
ld a, [hl]
|
||||
ret
|
||||
; 1a47
|
||||
@ -507,14 +503,9 @@ Function1a47:: ; 1a47
|
||||
push de
|
||||
ld e, a
|
||||
ld d, 0
|
||||
ld hl, Data4273 + 1
|
||||
add hl, de
|
||||
add hl, de
|
||||
add hl, de
|
||||
add hl, de
|
||||
add hl, de
|
||||
add hl, de
|
||||
ld a, BANK(Data4273)
|
||||
ld hl, ObjectStruct3_Data + 1
|
||||
add_n_times hl, de, OBJECT_STRUCT_3_DATA_WIDTH
|
||||
ld a, BANK(ObjectStruct3_Data)
|
||||
call GetFarByte
|
||||
add a
|
||||
add a
|
||||
@ -529,7 +520,7 @@ Function1a61:: ; 1a61
|
||||
ld l, a
|
||||
ld a, [hROMBank]
|
||||
push af
|
||||
ld a, BANK(Data4273)
|
||||
ld a, BANK(ObjectStruct3_Data)
|
||||
rst Bankswitch
|
||||
ld a, l
|
||||
push bc
|
||||
@ -544,19 +535,14 @@ Function1a61:: ; 1a61
|
||||
; 1a71
|
||||
|
||||
Function1a71:: ; 1a71
|
||||
ld hl, $0003
|
||||
ld hl, OBJECT_03
|
||||
add hl, de
|
||||
ld [hl], a
|
||||
push de
|
||||
ld e, a
|
||||
ld d, 0
|
||||
ld hl, Data4273 + 1
|
||||
add hl, de
|
||||
add hl, de
|
||||
add hl, de
|
||||
add hl, de
|
||||
add hl, de
|
||||
add hl, de
|
||||
ld hl, ObjectStruct3_Data + 1
|
||||
add_n_times hl, de, OBJECT_STRUCT_3_DATA_WIDTH
|
||||
ld b, h
|
||||
ld c, l
|
||||
pop de
|
||||
@ -565,27 +551,27 @@ Function1a71:: ; 1a71
|
||||
rlca
|
||||
rlca
|
||||
and $c
|
||||
ld hl, $0008
|
||||
ld hl, OBJECT_FACING
|
||||
add hl, de
|
||||
ld [hl], a
|
||||
ld a, [bc]
|
||||
inc bc
|
||||
ld hl, $000b
|
||||
ld hl, OBJECT_11
|
||||
add hl, de
|
||||
ld [hl], a
|
||||
ld a, [bc]
|
||||
inc bc
|
||||
ld hl, $0004
|
||||
ld hl, OBJECT_04
|
||||
add hl, de
|
||||
ld [hl], a
|
||||
ld a, [bc]
|
||||
inc bc
|
||||
ld hl, $0005
|
||||
ld hl, OBJECT_FLAGS
|
||||
add hl, de
|
||||
ld [hl], a
|
||||
ld a, [bc]
|
||||
inc bc
|
||||
ld hl, $0006
|
||||
ld hl, OBJECT_PALETTE
|
||||
add hl, de
|
||||
ld [hl], a
|
||||
ret
|
||||
@ -599,12 +585,12 @@ Function1aae:: ; 1aae
|
||||
|
||||
ld a, [hli]
|
||||
ld d, [hl]
|
||||
ld hl, $001b
|
||||
ld hl, OBJECT_27
|
||||
add hl, bc
|
||||
add [hl]
|
||||
ld e, a
|
||||
ld a, d
|
||||
adc $0
|
||||
adc 0
|
||||
ld d, a
|
||||
inc [hl]
|
||||
ld a, [de]
|
||||
@ -616,20 +602,20 @@ Function1aae:: ; 1aae
|
||||
ret
|
||||
; 1ac6
|
||||
|
||||
Function1ac6:: ; 1ac6
|
||||
SetVramState_Bit0:: ; 1ac6
|
||||
ld hl, VramState
|
||||
set 0, [hl]
|
||||
ret
|
||||
; 1acc
|
||||
|
||||
Function1acc:: ; 1acc
|
||||
ResetVramState_Bit0:: ; 1acc
|
||||
ld hl, VramState
|
||||
res 0, [hl]
|
||||
ret
|
||||
; 1ad2
|
||||
|
||||
|
||||
Function1ad2:: ; 1ad2
|
||||
DrawOnMap:: ; 1ad2
|
||||
ld a, [VramState]
|
||||
bit 0, a
|
||||
ret z
|
||||
@ -639,8 +625,8 @@ Function1ad2:: ; 1ad2
|
||||
; 1ae5
|
||||
|
||||
|
||||
Function1ae5:: ; 1ae5
|
||||
ld bc, $0028
|
||||
GetObjectStruct:: ; 1ae5
|
||||
ld bc, OBJECT_STRUCT_LENGTH
|
||||
ld hl, ObjectStructs
|
||||
call AddNTimes
|
||||
ld b, h
|
||||
@ -648,23 +634,23 @@ Function1ae5:: ; 1ae5
|
||||
ret
|
||||
; 1af1
|
||||
|
||||
Function1af1:: ; 1af1
|
||||
ld hl, $0000
|
||||
GetObjectSprite:: ; 1af1
|
||||
ld hl, OBJECT_SPRITE
|
||||
add hl, bc
|
||||
ld a, [hl]
|
||||
and a
|
||||
ret
|
||||
; 1af8
|
||||
|
||||
Function1af8:: ; 1af8
|
||||
SetSpriteDirection:: ; 1af8
|
||||
push af
|
||||
ld hl, $0008
|
||||
ld hl, OBJECT_FACING
|
||||
add hl, bc
|
||||
ld a, [hl]
|
||||
and $f3
|
||||
and %11110011
|
||||
ld e, a
|
||||
pop af
|
||||
and $c
|
||||
and %00001100
|
||||
or e
|
||||
ld [hl], a
|
||||
ret
|
||||
@ -672,9 +658,9 @@ Function1af8:: ; 1af8
|
||||
|
||||
|
||||
GetSpriteDirection:: ; 1b07
|
||||
ld hl, $0008
|
||||
ld hl, OBJECT_FACING
|
||||
add hl, bc
|
||||
ld a, [hl]
|
||||
and $c
|
||||
and %00001100
|
||||
ret
|
||||
; 1b0f
|
||||
|
@ -2,11 +2,11 @@
|
||||
|
||||
|
||||
LoadMenuDataHeader:: ; 0x1d35
|
||||
call Function1d3c
|
||||
call CopyMenuDataHeader
|
||||
call Function1c00
|
||||
ret
|
||||
|
||||
Function1d3c:: ; 0x1d3c
|
||||
CopyMenuDataHeader:: ; 0x1d3c
|
||||
ld de, wcf81
|
||||
ld bc, $0010
|
||||
call CopyBytes
|
||||
@ -48,7 +48,7 @@ MenuDataHeader_0x1d5f:: ; 1d5f
|
||||
|
||||
Function1d67:: ; 1d67
|
||||
call Function1d4f
|
||||
call Function1c17
|
||||
call WriteBackup
|
||||
ret
|
||||
; 1d6e
|
||||
|
||||
@ -71,11 +71,11 @@ Function1d7d:: ; 1d7d
|
||||
ret
|
||||
; 1d81
|
||||
|
||||
Function1d81:: ; 0x1d81
|
||||
InterpretMenu2:: ; 0x1d81
|
||||
xor a
|
||||
ld [hBGMapMode], a
|
||||
call Function1cbb
|
||||
call Function1ad2
|
||||
call DrawOnMap
|
||||
call Function1c89
|
||||
call Function321c
|
||||
call Function1c66
|
||||
@ -97,8 +97,8 @@ Function1d81:: ; 0x1d81
|
||||
|
||||
Function1dab:: ; 1dab
|
||||
call LoadMenuDataHeader
|
||||
call Function1d81
|
||||
call Function1c17
|
||||
call InterpretMenu2
|
||||
call WriteBackup
|
||||
ld a, [wcfa9]
|
||||
ret
|
||||
; 1db8
|
||||
@ -138,7 +138,7 @@ _YesNoBox:: ; 1dd9
|
||||
; Return nc (yes) or c (no).
|
||||
push bc
|
||||
ld hl, YesNoMenuDataHeader
|
||||
call Function1d3c
|
||||
call CopyMenuDataHeader
|
||||
pop bc
|
||||
ld a, b
|
||||
cp $e
|
||||
@ -158,11 +158,11 @@ _YesNoBox:: ; 1dd9
|
||||
call Function1c00
|
||||
|
||||
Function1dfe:: ; 1dfe
|
||||
call Function1d81
|
||||
call InterpretMenu2
|
||||
push af
|
||||
ld c, $f
|
||||
call DelayFrames
|
||||
call Function1c17
|
||||
call WriteBackup
|
||||
pop af
|
||||
jr c, .asm_1e16
|
||||
ld a, [wcfa9]
|
||||
@ -201,7 +201,7 @@ Function1e2e:: ; 1e2e
|
||||
|
||||
Function1e35:: ; 1e35
|
||||
push de
|
||||
call Function1d3c
|
||||
call CopyMenuDataHeader
|
||||
pop de
|
||||
ld a, [wcf83]
|
||||
ld h, a
|
||||
@ -540,7 +540,7 @@ PlayClickSFX:: ; 2009
|
||||
|
||||
Function2012:: ; 2012
|
||||
call Function1d4f
|
||||
call Functiona46
|
||||
call CloseText
|
||||
call Function1c07
|
||||
ret
|
||||
; 201c
|
||||
@ -559,7 +559,7 @@ Function201c:: ; 201c
|
||||
ret
|
||||
; 202a
|
||||
|
||||
Function202a:: ; 202a
|
||||
InterpretMenu:: ; 202a
|
||||
ld a, [hROMBank]
|
||||
ld [wcf94], a
|
||||
callba Function2400e
|
||||
|
@ -203,11 +203,11 @@ Function1c10:: ; 0x1c10
|
||||
callab Function2446d
|
||||
ret
|
||||
|
||||
Function1c17:: ; 0x1c17
|
||||
WriteBackup:: ; 0x1c17
|
||||
push af
|
||||
call Function1c07
|
||||
call Function321c
|
||||
call Function1ad2
|
||||
call DrawOnMap
|
||||
pop af
|
||||
ret
|
||||
|
||||
|
@ -169,7 +169,7 @@ Function1052:: ; 1052
|
||||
|
||||
|
||||
PrintText:: ; 1057
|
||||
call Function106c
|
||||
call SetUpTextBox
|
||||
Function105a:: ; 105a
|
||||
push hl
|
||||
hlcoord TEXTBOX_INNERX, TEXTBOX_INNERY
|
||||
@ -183,10 +183,10 @@ PrintTextBoxText:: ; 1065
|
||||
ret
|
||||
; 106c
|
||||
|
||||
Function106c:: ; 106c
|
||||
SetUpTextBox:: ; 106c
|
||||
push hl
|
||||
call SpeechTextBox
|
||||
call Function1ad2
|
||||
call DrawOnMap
|
||||
call Function321c
|
||||
pop hl
|
||||
ret
|
||||
@ -385,7 +385,7 @@ Char3F:: ; 121b
|
||||
ld de, String12a2
|
||||
call PlaceString
|
||||
push bc
|
||||
callab Function39939
|
||||
callab Battle_GetTrainerName
|
||||
pop hl
|
||||
ld de, StringBuffer1
|
||||
jr Function126a
|
||||
@ -517,7 +517,7 @@ Paragraph:: ; 12f2
|
||||
.asm_1301
|
||||
|
||||
call Function13b6
|
||||
call Functionaaf
|
||||
call KeepTextOpen
|
||||
hlcoord TEXTBOX_INNERX, TEXTBOX_INNERY
|
||||
lb bc, TEXTBOX_INNERH - 1, TEXTBOX_INNERW
|
||||
call ClearBox
|
||||
@ -540,7 +540,7 @@ Char4B:: ; 131f
|
||||
call Function13b6
|
||||
|
||||
push de
|
||||
call Functionaaf
|
||||
call KeepTextOpen
|
||||
pop de
|
||||
|
||||
ld a, [InLinkBattle]
|
||||
@ -590,7 +590,7 @@ PromptText:: ; 135a
|
||||
.ok
|
||||
|
||||
call Function13b6
|
||||
call Functionaaf
|
||||
call KeepTextOpen
|
||||
ld a, [InLinkBattle]
|
||||
cp $3
|
||||
jr z, DoneText
|
||||
@ -904,7 +904,7 @@ Text_06:: ; 149f
|
||||
push hl
|
||||
call Function13c7
|
||||
push bc
|
||||
call Functionaaf
|
||||
call KeepTextOpen
|
||||
pop bc
|
||||
call Function13cd
|
||||
pop hl
|
||||
@ -1066,7 +1066,7 @@ Text_0D:: ; 1562
|
||||
; display arrow
|
||||
push hl
|
||||
push bc
|
||||
call Functionaaf
|
||||
call KeepTextOpen
|
||||
pop bc
|
||||
pop hl
|
||||
ret
|
||||
|
@ -83,7 +83,7 @@ Function2e31:: ; 2e31
|
||||
ld [hBGMapMode], a
|
||||
ld a, $1
|
||||
ld [hOAMUpdate], a
|
||||
call Function1ad2
|
||||
call DrawOnMap
|
||||
xor a
|
||||
ld [hOAMUpdate], a
|
||||
call DelayFrame
|
||||
|
@ -136,3 +136,9 @@ bcd: MACRO
|
||||
shift
|
||||
endr
|
||||
ENDM
|
||||
|
||||
add_n_times: MACRO
|
||||
rept \3
|
||||
add \1, \2
|
||||
endr
|
||||
ENDM
|
||||
|
@ -164,6 +164,7 @@ endc
|
||||
ENDM
|
||||
|
||||
mapgroup: MACRO
|
||||
; map id, height, width
|
||||
\1\@ EQUS "GROUP_\1"
|
||||
\1\@2 EQUS "MAP_\1"
|
||||
\1\@ EQU const_value
|
||||
|
@ -1,285 +1,370 @@
|
||||
enum_start
|
||||
|
||||
enum movement_turn_head_down
|
||||
turn_head_down: macro
|
||||
db $00
|
||||
db movement_turn_head_down ; $00
|
||||
endm
|
||||
|
||||
enum movement_turn_head_up
|
||||
turn_head_up: macro
|
||||
db $01
|
||||
db movement_turn_head_up ; $01
|
||||
endm
|
||||
|
||||
enum movement_turn_head_left
|
||||
turn_head_left: macro
|
||||
db $02
|
||||
db movement_turn_head_left ; $02
|
||||
endm
|
||||
|
||||
enum movement_turn_head_right
|
||||
turn_head_right: macro
|
||||
db $03
|
||||
db movement_turn_head_right ; $03
|
||||
endm
|
||||
|
||||
enum movement_half_step_down
|
||||
half_step_down: macro
|
||||
db $04
|
||||
db movement_half_step_down ; $04
|
||||
endm
|
||||
|
||||
enum movement_half_step_up
|
||||
half_step_up: macro
|
||||
db $05
|
||||
db movement_half_step_up ; $05
|
||||
endm
|
||||
|
||||
enum movement_half_step_left
|
||||
half_step_left: macro
|
||||
db $06
|
||||
db movement_half_step_left ; $06
|
||||
endm
|
||||
|
||||
enum movement_half_step_right
|
||||
half_step_right: macro
|
||||
db $07
|
||||
db movement_half_step_right ; $07
|
||||
endm
|
||||
|
||||
enum movement_slow_step_down
|
||||
slow_step_down: macro
|
||||
db $08
|
||||
db movement_slow_step_down ; $08
|
||||
endm
|
||||
|
||||
enum movement_slow_step_up
|
||||
slow_step_up: macro
|
||||
db $09
|
||||
db movement_slow_step_up ; $09
|
||||
endm
|
||||
|
||||
enum movement_slow_step_left
|
||||
slow_step_left: macro
|
||||
db $0a
|
||||
db movement_slow_step_left ; $0a
|
||||
endm
|
||||
|
||||
enum movement_slow_step_right
|
||||
slow_step_right: macro
|
||||
db $0b
|
||||
db movement_slow_step_right ; $0b
|
||||
endm
|
||||
|
||||
enum movement_step_down
|
||||
step_down: macro
|
||||
db $0c
|
||||
db movement_step_down ; $0c
|
||||
endm
|
||||
|
||||
enum movement_step_up
|
||||
step_up: macro
|
||||
db $0d
|
||||
db movement_step_up ; $0d
|
||||
endm
|
||||
|
||||
enum movement_step_left
|
||||
step_left: macro
|
||||
db $0e
|
||||
db movement_step_left ; $0e
|
||||
endm
|
||||
|
||||
enum movement_step_right
|
||||
step_right: macro
|
||||
db $0f
|
||||
db movement_step_right ; $0f
|
||||
endm
|
||||
|
||||
enum movement_big_step_down
|
||||
big_step_down: macro
|
||||
db $10
|
||||
db movement_big_step_down ; $10
|
||||
endm
|
||||
|
||||
enum movement_big_step_up
|
||||
big_step_up: macro
|
||||
db $11
|
||||
db movement_big_step_up ; $11
|
||||
endm
|
||||
|
||||
enum movement_big_step_left
|
||||
big_step_left: macro
|
||||
db $12
|
||||
db movement_big_step_left ; $12
|
||||
endm
|
||||
|
||||
enum movement_big_step_right
|
||||
big_step_right: macro
|
||||
db $13
|
||||
db movement_big_step_right ; $13
|
||||
endm
|
||||
|
||||
enum movement_slow_slide_step_down
|
||||
slow_slide_step_down: macro
|
||||
db $14
|
||||
db movement_slow_slide_step_down ; $14
|
||||
endm
|
||||
|
||||
enum movement_slow_slide_step_up
|
||||
slow_slide_step_up: macro
|
||||
db $15
|
||||
db movement_slow_slide_step_up ; $15
|
||||
endm
|
||||
|
||||
enum movement_slow_slide_step_left
|
||||
slow_slide_step_left: macro
|
||||
db $16
|
||||
db movement_slow_slide_step_left ; $16
|
||||
endm
|
||||
|
||||
enum movement_slow_slide_step_right
|
||||
slow_slide_step_right: macro
|
||||
db $17
|
||||
db movement_slow_slide_step_right ; $17
|
||||
endm
|
||||
|
||||
enum movement_slide_step_down
|
||||
slide_step_down: macro
|
||||
db $18
|
||||
db movement_slide_step_down ; $18
|
||||
endm
|
||||
|
||||
enum movement_slide_step_up
|
||||
slide_step_up: macro
|
||||
db $19
|
||||
db movement_slide_step_up ; $19
|
||||
endm
|
||||
|
||||
enum movement_slide_step_left
|
||||
slide_step_left: macro
|
||||
db $1a
|
||||
db movement_slide_step_left ; $1a
|
||||
endm
|
||||
|
||||
enum movement_slide_step_right
|
||||
slide_step_right: macro
|
||||
db $1b
|
||||
db movement_slide_step_right ; $1b
|
||||
endm
|
||||
|
||||
enum movement_fast_slide_step_down
|
||||
fast_slide_step_down: macro
|
||||
db $1c
|
||||
db movement_fast_slide_step_down ; $1c
|
||||
endm
|
||||
|
||||
enum movement_fast_slide_step_up
|
||||
fast_slide_step_up: macro
|
||||
db $1d
|
||||
db movement_fast_slide_step_up ; $1d
|
||||
endm
|
||||
|
||||
enum movement_fast_slide_step_left
|
||||
fast_slide_step_left: macro
|
||||
db $1e
|
||||
db movement_fast_slide_step_left ; $1e
|
||||
endm
|
||||
|
||||
enum movement_fast_slide_step_right
|
||||
fast_slide_step_right: macro
|
||||
db $1f
|
||||
db movement_fast_slide_step_right ; $1f
|
||||
endm
|
||||
|
||||
enum movement_turn_away_down
|
||||
turn_away_down: macro
|
||||
db $20
|
||||
db movement_turn_away_down ; $20
|
||||
endm
|
||||
|
||||
enum movement_turn_away_up
|
||||
turn_away_up: macro
|
||||
db $21
|
||||
db movement_turn_away_up ; $21
|
||||
endm
|
||||
|
||||
enum movement_turn_away_left
|
||||
turn_away_left: macro
|
||||
db $22
|
||||
db movement_turn_away_left ; $22
|
||||
endm
|
||||
|
||||
enum movement_turn_away_right
|
||||
turn_away_right: macro
|
||||
db $23
|
||||
db movement_turn_away_right ; $23
|
||||
endm
|
||||
|
||||
enum movement_turn_in_down
|
||||
turn_in_down: macro
|
||||
db $24
|
||||
db movement_turn_in_down ; $24
|
||||
endm
|
||||
|
||||
enum movement_turn_in_up
|
||||
turn_in_up: macro
|
||||
db $25
|
||||
db movement_turn_in_up ; $25
|
||||
endm
|
||||
|
||||
enum movement_turn_in_left
|
||||
turn_in_left: macro
|
||||
db $26
|
||||
db movement_turn_in_left ; $26
|
||||
endm
|
||||
|
||||
enum movement_turn_in_right
|
||||
turn_in_right: macro
|
||||
db $27
|
||||
db movement_turn_in_right ; $27
|
||||
endm
|
||||
|
||||
enum movement_turn_waterfall_down
|
||||
turn_waterfall_down: macro
|
||||
db $28
|
||||
db movement_turn_waterfall_down ; $28
|
||||
endm
|
||||
|
||||
enum movement_turn_waterfall_up
|
||||
turn_waterfall_up: macro
|
||||
db $29
|
||||
db movement_turn_waterfall_up ; $29
|
||||
endm
|
||||
|
||||
enum movement_turn_waterfall_left
|
||||
turn_waterfall_left: macro
|
||||
db $2a
|
||||
db movement_turn_waterfall_left ; $2a
|
||||
endm
|
||||
|
||||
enum movement_turn_waterfall_right
|
||||
turn_waterfall_right: macro
|
||||
db $2b
|
||||
db movement_turn_waterfall_right ; $2b
|
||||
endm
|
||||
|
||||
enum movement_slow_jump_step_down
|
||||
slow_jump_step_down: macro
|
||||
db $2c
|
||||
db movement_slow_jump_step_down ; $2c
|
||||
endm
|
||||
|
||||
enum movement_slow_jump_step_up
|
||||
slow_jump_step_up: macro
|
||||
db $2d
|
||||
db movement_slow_jump_step_up ; $2d
|
||||
endm
|
||||
|
||||
enum movement_slow_jump_step_left
|
||||
slow_jump_step_left: macro
|
||||
db $2e
|
||||
db movement_slow_jump_step_left ; $2e
|
||||
endm
|
||||
|
||||
enum movement_slow_jump_step_right
|
||||
slow_jump_step_right: macro
|
||||
db $2f
|
||||
db movement_slow_jump_step_right ; $2f
|
||||
endm
|
||||
|
||||
enum movement_jump_step_down
|
||||
jump_step_down: macro
|
||||
db $30
|
||||
db movement_jump_step_down ; $30
|
||||
endm
|
||||
|
||||
enum movement_jump_step_up
|
||||
jump_step_up: macro
|
||||
db $31
|
||||
db movement_jump_step_up ; $31
|
||||
endm
|
||||
|
||||
enum movement_jump_step_left
|
||||
jump_step_left: macro
|
||||
db $32
|
||||
db movement_jump_step_left ; $32
|
||||
endm
|
||||
|
||||
enum movement_jump_step_right
|
||||
jump_step_right: macro
|
||||
db $33
|
||||
db movement_jump_step_right ; $33
|
||||
endm
|
||||
|
||||
enum movement_fast_jump_step_down
|
||||
fast_jump_step_down: macro
|
||||
db $34
|
||||
db movement_fast_jump_step_down ; $34
|
||||
endm
|
||||
|
||||
enum movement_fast_jump_step_up
|
||||
fast_jump_step_up: macro
|
||||
db $35
|
||||
db movement_fast_jump_step_up ; $35
|
||||
endm
|
||||
|
||||
enum movement_fast_jump_step_left
|
||||
fast_jump_step_left: macro
|
||||
db $36
|
||||
db movement_fast_jump_step_left ; $36
|
||||
endm
|
||||
|
||||
enum movement_fast_jump_step_right
|
||||
fast_jump_step_right: macro
|
||||
db $37
|
||||
db movement_fast_jump_step_right ; $37
|
||||
endm
|
||||
|
||||
__enum__ = $3a
|
||||
|
||||
enum movement_remove_fixed_facing
|
||||
remove_fixed_facing: macro
|
||||
db $3a
|
||||
db movement_remove_fixed_facing ; $3a
|
||||
endm
|
||||
|
||||
enum movement_fix_facing
|
||||
fix_facing: macro
|
||||
db $3b
|
||||
db movement_fix_facing ; $3b
|
||||
endm
|
||||
|
||||
__enum__ = $3d
|
||||
|
||||
enum movement_hide_person
|
||||
hide_person: macro
|
||||
db $3d
|
||||
db movement_hide_person ; $3d
|
||||
endm
|
||||
|
||||
enum movement_show_person
|
||||
show_person: macro
|
||||
db $3e
|
||||
db movement_show_person ; $3e
|
||||
endm
|
||||
|
||||
__enum__ = $45
|
||||
|
||||
enum movement_accelerate_last
|
||||
accelerate_last: macro
|
||||
db $45
|
||||
db movement_accelerate_last ; $45
|
||||
endm
|
||||
|
||||
enum movement_step_sleep
|
||||
step_sleep: macro
|
||||
db $46
|
||||
db movement_step_sleep ; $46
|
||||
db \1 ; duration
|
||||
endm
|
||||
|
||||
enum movement_step_end
|
||||
step_end: macro
|
||||
db $47
|
||||
db movement_step_end ; $47
|
||||
endm
|
||||
|
||||
__enum__ = $49
|
||||
|
||||
enum movement_remove_person
|
||||
remove_person: macro
|
||||
db $49
|
||||
db movement_remove_person ; $49
|
||||
endm
|
||||
|
||||
__enum__ = $4c
|
||||
|
||||
enum movement_teleport_from
|
||||
teleport_from: macro
|
||||
db $4c
|
||||
db movement_teleport_from ; $4c
|
||||
endm
|
||||
|
||||
enum movement_teleport_to
|
||||
teleport_to: macro
|
||||
db $4d
|
||||
db movement_teleport_to ; $4d
|
||||
endm
|
||||
|
||||
enum movement_skyfall
|
||||
skyfall: macro
|
||||
db $4e
|
||||
db movement_skyfall ; $4e
|
||||
endm
|
||||
|
||||
enum movement_step_wait5
|
||||
step_wait5: macro
|
||||
db $4f
|
||||
db movement_step_wait5 ; $4f
|
||||
endm
|
||||
|
||||
__enum__ = $53
|
||||
|
||||
enum movement_hide_emote
|
||||
hide_emote: macro
|
||||
db $53
|
||||
db movement_hide_emote ; $53
|
||||
endm
|
||||
|
||||
enum movement_show_emote
|
||||
show_emote: macro
|
||||
db $54
|
||||
db movement_show_emote ; $54
|
||||
endm
|
||||
|
||||
enum movement_step_shake
|
||||
step_shake: macro
|
||||
db $55
|
||||
db movement_step_shake ; $55
|
||||
db \1 ; displacement
|
||||
endm
|
||||
|
@ -29,7 +29,7 @@ AzaleaTown_MapScriptHeader:
|
||||
UnknownScript_0x198018:
|
||||
moveperson $b, $b, $b
|
||||
spriteface $0, RIGHT
|
||||
showemote $0, $0, 15
|
||||
showemote EMOTE_SHOCK, $0, 15
|
||||
special Functionc48f
|
||||
pause 15
|
||||
appear $b
|
||||
@ -39,7 +39,7 @@ UnknownScript_0x198018:
|
||||
|
||||
UnknownScript_0x198034:
|
||||
spriteface $0, RIGHT
|
||||
showemote $0, $0, 15
|
||||
showemote EMOTE_SHOCK, $0, 15
|
||||
special Functionc48f
|
||||
pause 15
|
||||
appear $b
|
||||
|
@ -37,7 +37,7 @@ UnknownScript_0x185bf8:
|
||||
|
||||
UnknownScript_0x185c0d:
|
||||
spriteface $3, DOWN
|
||||
showemote $0, $3, 15
|
||||
showemote EMOTE_SHOCK, $3, 15
|
||||
applymovement $3, MovementData_0x185cd3
|
||||
loadfont
|
||||
writetext UnknownText_0x185ecc
|
||||
@ -48,7 +48,7 @@ UnknownScript_0x185c0d:
|
||||
end
|
||||
|
||||
UnknownScript_0x185c25:
|
||||
showemote $0, $4, 15
|
||||
showemote EMOTE_SHOCK, $4, 15
|
||||
special Functionc48f
|
||||
pause 15
|
||||
spriteface $4, RIGHT
|
||||
@ -101,7 +101,7 @@ UnknownScript_0x185c80:
|
||||
special Functionc48f
|
||||
pause 15
|
||||
earthquake 50
|
||||
showemote $0, $0, 15
|
||||
showemote EMOTE_SHOCK, $0, 15
|
||||
playsound SFX_ENTER_DOOR
|
||||
waitbutton
|
||||
changeblock $a, $8, $25
|
||||
@ -109,7 +109,7 @@ UnknownScript_0x185c80:
|
||||
pause 15
|
||||
applymovement $0, MovementData_0x185cd1
|
||||
playsound SFX_KINESIS
|
||||
showemote $0, $4, 20
|
||||
showemote EMOTE_SHOCK, $4, 20
|
||||
loadfont
|
||||
writetext UnknownText_0x185e75
|
||||
closetext
|
||||
|
@ -108,7 +108,7 @@ UnknownScript_0x184072:
|
||||
waitbutton
|
||||
playsound SFX_TRANSACTION
|
||||
waitbutton
|
||||
showemote $0, $7, 15
|
||||
showemote EMOTE_SHOCK, $7, 15
|
||||
spriteface $7, LEFT
|
||||
loadfont
|
||||
writetext UnknownText_0x1842ee
|
||||
|
@ -25,7 +25,7 @@ UnknownScript_0x1883de:
|
||||
writetext UnknownText_0x1884fb
|
||||
closetext
|
||||
loadmovesprites
|
||||
showemote $0, $2, 15
|
||||
showemote EMOTE_SHOCK, $2, 15
|
||||
applymovement $2, MovementData_0x1884f7
|
||||
loadfont
|
||||
writetext UnknownText_0x188574
|
||||
|
@ -102,7 +102,7 @@ UnknownScript_0x19c0aa:
|
||||
|
||||
UnknownScript_0x19c0ae:
|
||||
spriteface $0, RIGHT
|
||||
showemote $0, $0, 15
|
||||
showemote EMOTE_SHOCK, $0, 15
|
||||
special Functionc48f
|
||||
pause 15
|
||||
appear $3
|
||||
|
@ -29,7 +29,7 @@ UnknownScript_0x1a001d:
|
||||
|
||||
UnknownScript_0x1a001e:
|
||||
spriteface $0, UP
|
||||
showemote $0, $0, 15
|
||||
showemote EMOTE_SHOCK, $0, 15
|
||||
pause 15
|
||||
playsound SFX_WARP_FROM
|
||||
applymovement $d, MovementData_0x1a00da
|
||||
|
@ -116,7 +116,7 @@ UnknownScript_0x18d100:
|
||||
closetext
|
||||
loadmovesprites
|
||||
playsound SFX_ENTER_DOOR
|
||||
showemote $0, $0, 15
|
||||
showemote EMOTE_SHOCK, $0, 15
|
||||
playmusic MUSIC_CLAIR
|
||||
appear $5
|
||||
waitbutton
|
||||
@ -147,7 +147,7 @@ UnknownScript_0x18d100:
|
||||
writetext UnknownText_0x18d520
|
||||
closetext
|
||||
loadmovesprites
|
||||
showemote $0, $5, 15
|
||||
showemote EMOTE_SHOCK, $5, 15
|
||||
loadfont
|
||||
writetext UnknownText_0x18d9ae
|
||||
closetext
|
||||
|
@ -42,7 +42,7 @@ UnknownScript_0x18c8b8:
|
||||
writetext UnknownText_0x18c9b8
|
||||
pause 30
|
||||
loadmovesprites
|
||||
showemote $0, $0, 15
|
||||
showemote EMOTE_SHOCK, $0, 15
|
||||
spriteface $0, LEFT
|
||||
playmusic MUSIC_CLAIR
|
||||
applymovement $3, MovementData_0x18c9ae
|
||||
|
278
maps/ElmsLab.asm
278
maps/ElmsLab.asm
@ -15,10 +15,10 @@ ElmsLab_MapScriptHeader:
|
||||
|
||||
; callbacks
|
||||
|
||||
dbw 2, UnknownScript_0x78b83
|
||||
dbw 2, ElmsLab_PutElmAtLaptop
|
||||
|
||||
UnknownScript_0x78b7a:
|
||||
priorityjump UnknownScript_0x78b8c
|
||||
priorityjump ElmsLab_AutowalkUpToElm
|
||||
end
|
||||
|
||||
UnknownScript_0x78b7e:
|
||||
@ -36,50 +36,50 @@ UnknownScript_0x78b81:
|
||||
UnknownScript_0x78b82:
|
||||
end
|
||||
|
||||
UnknownScript_0x78b83:
|
||||
ElmsLab_PutElmAtLaptop:
|
||||
checktriggers
|
||||
iftrue UnknownScript_0x78b8b
|
||||
iftrue .Skip
|
||||
moveperson $2, $3, $4
|
||||
UnknownScript_0x78b8b:
|
||||
.Skip:
|
||||
return
|
||||
|
||||
UnknownScript_0x78b8c:
|
||||
applymovement $0, MovementData_0x78f67
|
||||
showemote $0, $2, 15
|
||||
ElmsLab_AutowalkUpToElm:
|
||||
applymovement $0, ElmsLab_WalkUpToElmMovement
|
||||
showemote EMOTE_SHOCK, $2, 15
|
||||
spriteface $2, RIGHT
|
||||
loadfont
|
||||
writetext UnknownText_0x78fb6
|
||||
UnknownScript_0x78b9b:
|
||||
writetext ElmText_Intro
|
||||
ElmsLab_RefuseLoop:
|
||||
yesorno
|
||||
iftrue UnknownScript_0x78ba5
|
||||
writetext UnknownText_0x7911a
|
||||
jump UnknownScript_0x78b9b
|
||||
iftrue ElmsLab_ElmGetsEmail
|
||||
writetext ElmText_Refused
|
||||
jump ElmsLab_RefuseLoop
|
||||
|
||||
UnknownScript_0x78ba5:
|
||||
writetext UnknownText_0x790fa
|
||||
ElmsLab_ElmGetsEmail:
|
||||
writetext ElmText_Accepted
|
||||
keeptextopen
|
||||
writetext UnknownText_0x7913a
|
||||
writetext ElmText_ResearchAmbitions
|
||||
closetext
|
||||
loadmovesprites
|
||||
playsound SFX_GLASS_TING
|
||||
pause 30
|
||||
showemote $0, $2, 10
|
||||
showemote EMOTE_SHOCK, $2, 10
|
||||
spriteface $2, DOWN
|
||||
loadfont
|
||||
writetext UnknownText_0x791ae
|
||||
writetext ElmText_GotAnEmail
|
||||
closetext
|
||||
loadmovesprites
|
||||
loadfont
|
||||
spriteface $2, RIGHT
|
||||
writetext UnknownText_0x791df
|
||||
writetext ElmText_MissionFromMrPokemon
|
||||
closetext
|
||||
loadmovesprites
|
||||
applymovement $2, MovementData_0x78fa0
|
||||
applymovement $2, ElmsLab_ElmToDefaultPositionMovement1
|
||||
spriteface $0, UP
|
||||
applymovement $2, MovementData_0x78fa2
|
||||
applymovement $2, ElmsLab_ElmToDefaultPositionMovement2
|
||||
spriteface $0, RIGHT
|
||||
loadfont
|
||||
writetext UnknownText_0x792ff
|
||||
writetext ElmText_ChooseAPokemon
|
||||
closetext
|
||||
dotrigger $1
|
||||
loadmovesprites
|
||||
@ -89,21 +89,21 @@ ProfElmScript:
|
||||
faceplayer
|
||||
loadfont
|
||||
checkevent EVENT_GOT_SS_TICKET_FROM_ELM
|
||||
iftrue UnknownScript_0x78bee
|
||||
iftrue ElmCheckMasterBall
|
||||
checkevent EVENT_BEAT_ELITE_FOUR
|
||||
iftrue ElmGiveTicketScript
|
||||
UnknownScript_0x78bee:
|
||||
ElmCheckMasterBall:
|
||||
checkevent EVENT_GOT_MASTER_BALL_FROM_ELM
|
||||
iftrue UnknownScript_0x78bfa
|
||||
iftrue ElmCheckEverstone
|
||||
checkflag ENGINE_RISINGBADGE
|
||||
iftrue ElmGiveMasterBallScript
|
||||
UnknownScript_0x78bfa:
|
||||
ElmCheckEverstone:
|
||||
checkevent EVENT_GOT_EVERSTONE_FROM_ELM
|
||||
iftrue UnknownScript_0x78e16
|
||||
iftrue ElmScript_CallYou
|
||||
checkevent EVENT_SHOWED_TOGEPI_TO_ELM
|
||||
iftrue UnknownScript_0x78e03
|
||||
iftrue ElmGiveEverstoneScript
|
||||
checkevent EVENT_TOLD_ELM_ABOUT_TOGEPI_OVER_THE_PHONE
|
||||
iffalse UnknownScript_0x78c35
|
||||
iffalse ElmCheckTogepiEgg
|
||||
writebyte TOGEPI
|
||||
special Functionc284
|
||||
iftrue ShowElmTogepiScript
|
||||
@ -115,21 +115,21 @@ UnknownScript_0x78bfa:
|
||||
loadmovesprites
|
||||
end
|
||||
|
||||
UnknownScript_0x78c22:
|
||||
ElmEggHatchedScript:
|
||||
writebyte TOGEPI
|
||||
special Functionc284
|
||||
iftrue ShowElmTogepiScript
|
||||
writebyte TOGETIC
|
||||
special Functionc284
|
||||
iftrue ShowElmTogepiScript
|
||||
jump UnknownScript_0x78c41
|
||||
jump ElmCheckGotEggAgain
|
||||
|
||||
UnknownScript_0x78c35:
|
||||
ElmCheckTogepiEgg:
|
||||
checkevent EVENT_GOT_TOGEPI_EGG_FROM_ELMS_AIDE
|
||||
iffalse UnknownScript_0x78c41
|
||||
iffalse ElmCheckGotEggAgain
|
||||
checkevent EVENT_TOGEPI_HATCHED
|
||||
iftrue UnknownScript_0x78c22
|
||||
UnknownScript_0x78c41:
|
||||
iftrue ElmEggHatchedScript
|
||||
ElmCheckGotEggAgain:
|
||||
checkevent EVENT_GOT_TOGEPI_EGG_FROM_ELMS_AIDE ; why are we checking it again?
|
||||
iftrue ElmWaitingEggHatchScript
|
||||
checkflag ENGINE_ZEPHYRBADGE
|
||||
@ -140,7 +140,7 @@ UnknownScript_0x78c41:
|
||||
iftrue ElmAfterTheftScript
|
||||
checkevent EVENT_GOT_A_POKEMON_FROM_ELM
|
||||
iftrue ElmDescribesMrPokemonScript
|
||||
writetext UnknownText_0x79375
|
||||
writetext ElmText_LetYourMonBattleIt
|
||||
closetext
|
||||
loadmovesprites
|
||||
end
|
||||
@ -300,15 +300,15 @@ ElmsLabHealingMachine:
|
||||
.CanHeal
|
||||
writetext ElmsLabHealingMachineText2
|
||||
yesorno
|
||||
iftrue UnknownScript_0x78d8a
|
||||
iftrue ElmsLabHealingMachine_HealParty
|
||||
loadmovesprites
|
||||
end
|
||||
|
||||
UnknownScript_0x78d8a:
|
||||
special Function1060a2
|
||||
ElmsLabHealingMachine_HealParty:
|
||||
special Mobile_HealParty
|
||||
special HealParty
|
||||
playmusic MUSIC_NONE
|
||||
writebyte $1
|
||||
writebyte 1 ; Machine is in Elm's Lab
|
||||
special HealMachineAnim
|
||||
pause 30
|
||||
special RestartMapMusic
|
||||
@ -369,28 +369,28 @@ ShowElmTogepiScript:
|
||||
writetext ShowElmTogepiText1
|
||||
closetext
|
||||
loadmovesprites
|
||||
showemote $0, $2, 15
|
||||
showemote EMOTE_SHOCK, $2, 15
|
||||
setevent EVENT_SHOWED_TOGEPI_TO_ELM
|
||||
loadfont
|
||||
writetext ShowElmTogepiText2
|
||||
keeptextopen
|
||||
writetext ShowElmTogepiText3
|
||||
keeptextopen
|
||||
UnknownScript_0x78e03:
|
||||
ElmGiveEverstoneScript:
|
||||
writetext ElmGiveEverstoneText1
|
||||
keeptextopen
|
||||
verbosegiveitem EVERSTONE, 1
|
||||
iffalse UnknownScript_0x78e1a
|
||||
iffalse ElmScript_NoRoomForEverstone
|
||||
writetext ElmGiveEverstoneText2
|
||||
closetext
|
||||
loadmovesprites
|
||||
setevent EVENT_GOT_EVERSTONE_FROM_ELM
|
||||
end
|
||||
|
||||
UnknownScript_0x78e16:
|
||||
writetext UnknownText_0x79c37
|
||||
ElmScript_CallYou:
|
||||
writetext ElmText_CallYou
|
||||
closetext
|
||||
UnknownScript_0x78e1a:
|
||||
ElmScript_NoRoomForEverstone:
|
||||
loadmovesprites
|
||||
end
|
||||
|
||||
@ -419,95 +419,95 @@ ElmGiveTicketScript:
|
||||
ElmJumpBackScript1:
|
||||
loadmovesprites
|
||||
checkcode VAR_FACING
|
||||
if_equal $0, UnknownScript_0x78e6d
|
||||
if_equal $1, UnknownScript_0x78e67
|
||||
if_equal $2, UnknownScript_0x78e73
|
||||
if_equal $3, UnknownScript_0x78e79
|
||||
if_equal DOWN, ElmJumpDownScript
|
||||
if_equal UP, ElmJumpUpScript
|
||||
if_equal LEFT, ElmJumpLeftScript
|
||||
if_equal RIGHT, ElmJumpRightScript
|
||||
end
|
||||
|
||||
ElmJumpBackScript2:
|
||||
loadmovesprites
|
||||
checkcode VAR_FACING
|
||||
if_equal $0, UnknownScript_0x78e67
|
||||
if_equal $1, UnknownScript_0x78e6d
|
||||
if_equal $2, UnknownScript_0x78e79
|
||||
if_equal $3, UnknownScript_0x78e73
|
||||
if_equal DOWN, ElmJumpUpScript
|
||||
if_equal UP, ElmJumpDownScript
|
||||
if_equal LEFT, ElmJumpRightScript
|
||||
if_equal RIGHT, ElmJumpLeftScript
|
||||
end
|
||||
|
||||
UnknownScript_0x78e67:
|
||||
applymovement $2, MovementData_0x78f90
|
||||
ElmJumpUpScript:
|
||||
applymovement $2, ElmJumpUpMovement
|
||||
loadfont
|
||||
end
|
||||
|
||||
UnknownScript_0x78e6d:
|
||||
applymovement $2, MovementData_0x78f94
|
||||
ElmJumpDownScript:
|
||||
applymovement $2, ElmJumpDownMovement
|
||||
loadfont
|
||||
end
|
||||
|
||||
UnknownScript_0x78e73:
|
||||
applymovement $2, MovementData_0x78f98
|
||||
ElmJumpLeftScript:
|
||||
applymovement $2, ElmJumpLeftMovement
|
||||
loadfont
|
||||
end
|
||||
|
||||
UnknownScript_0x78e79:
|
||||
applymovement $2, MovementData_0x78f9c
|
||||
ElmJumpRightScript:
|
||||
applymovement $2, ElmJumpRightMovement
|
||||
loadfont
|
||||
end
|
||||
|
||||
UnknownScript_0x78e7f:
|
||||
applymovement $3, MovementData_0x78f7e
|
||||
AideScript_WalkPotions1:
|
||||
applymovement $3, AideWalksRight1
|
||||
spriteface $0, DOWN
|
||||
scall UnknownScript_0x78e9d
|
||||
applymovement $3, MovementData_0x78f87
|
||||
scall AideScript_GivePotions
|
||||
applymovement $3, AideWalksLeft1
|
||||
end
|
||||
|
||||
UnknownScript_0x78e8e:
|
||||
applymovement $3, MovementData_0x78f82
|
||||
AideScript_WalkPotions2:
|
||||
applymovement $3, AideWalksRight2
|
||||
spriteface $0, DOWN
|
||||
scall UnknownScript_0x78e9d
|
||||
applymovement $3, MovementData_0x78f8b
|
||||
scall AideScript_GivePotions
|
||||
applymovement $3, AideWalksLeft2
|
||||
end
|
||||
|
||||
UnknownScript_0x78e9d:
|
||||
AideScript_GivePotions:
|
||||
loadfont
|
||||
writetext UnknownText_0x79f38
|
||||
writetext AideText_GiveYouPotions
|
||||
keeptextopen
|
||||
verbosegiveitem POTION, 1
|
||||
writetext UnknownText_0x79f65
|
||||
writetext AideText_AlwaysBusy
|
||||
closetext
|
||||
loadmovesprites
|
||||
dotrigger $2
|
||||
end
|
||||
|
||||
UnknownScript_0x78ead:
|
||||
applymovement $3, MovementData_0x78f7e
|
||||
AideScript_WalkBalls1:
|
||||
applymovement $3, AideWalksRight1
|
||||
spriteface $0, DOWN
|
||||
scall UnknownScript_0x78ecb
|
||||
applymovement $3, MovementData_0x78f87
|
||||
scall AideScript_GiveYouBalls
|
||||
applymovement $3, AideWalksLeft1
|
||||
end
|
||||
|
||||
UnknownScript_0x78ebc:
|
||||
applymovement $3, MovementData_0x78f82
|
||||
AideScript_WalkBalls2:
|
||||
applymovement $3, AideWalksRight2
|
||||
spriteface $0, DOWN
|
||||
scall UnknownScript_0x78ecb
|
||||
applymovement $3, MovementData_0x78f8b
|
||||
scall AideScript_GiveYouBalls
|
||||
applymovement $3, AideWalksLeft2
|
||||
end
|
||||
|
||||
UnknownScript_0x78ecb:
|
||||
AideScript_GiveYouBalls:
|
||||
loadfont
|
||||
writetext UnknownText_0x7a078
|
||||
writetext AideText_GiveYouBalls
|
||||
keeptextopen
|
||||
itemtotext POKE_BALL, $1
|
||||
scall UnknownScript_0x78ee2
|
||||
scall AideScript_ReceiveTheBalls
|
||||
giveitem POKE_BALL, $5
|
||||
writetext UnknownText_0x7a09a
|
||||
writetext AideText_ExplainBalls
|
||||
keeptextopen
|
||||
itemnotify
|
||||
loadmovesprites
|
||||
dotrigger $2
|
||||
end
|
||||
|
||||
UnknownScript_0x78ee2:
|
||||
AideScript_ReceiveTheBalls:
|
||||
jumpstd receiveitem
|
||||
end
|
||||
|
||||
@ -515,49 +515,49 @@ ElmsAideScript:
|
||||
faceplayer
|
||||
loadfont
|
||||
checkevent EVENT_GOT_TOGEPI_EGG_FROM_ELMS_AIDE
|
||||
iftrue UnknownScript_0x78f0c
|
||||
iftrue AideScript_AfterTheft
|
||||
checkevent EVENT_GAVE_MYSTERY_EGG_TO_ELM
|
||||
iftrue UnknownScript_0x78f06
|
||||
iftrue AideScript_ExplainBalls
|
||||
checkevent EVENT_GOT_MYSTERY_EGG_FROM_MR_POKEMON
|
||||
iftrue UnknownScript_0x78f00
|
||||
writetext UnknownText_0x79f65
|
||||
iftrue AideScript_TheftTestimony
|
||||
writetext AideText_AlwaysBusy
|
||||
closetext
|
||||
loadmovesprites
|
||||
end
|
||||
|
||||
UnknownScript_0x78f00:
|
||||
writetext UnknownText_0x79f95
|
||||
AideScript_TheftTestimony:
|
||||
writetext AideText_TheftTestimony
|
||||
closetext
|
||||
loadmovesprites
|
||||
end
|
||||
|
||||
UnknownScript_0x78f06:
|
||||
writetext UnknownText_0x7a09a
|
||||
AideScript_ExplainBalls:
|
||||
writetext AideText_ExplainBalls
|
||||
closetext
|
||||
loadmovesprites
|
||||
end
|
||||
|
||||
UnknownScript_0x78f0c:
|
||||
writetext UnknownText_0x79c65
|
||||
AideScript_AfterTheft:
|
||||
writetext AideText_AfterTheft
|
||||
closetext
|
||||
loadmovesprites
|
||||
end
|
||||
|
||||
UnknownScript_0x78f12:
|
||||
applymovement $0, MovementData_0x78f72
|
||||
MeetCopScript2:
|
||||
applymovement $0, MeetCopScript2_StepLeft
|
||||
|
||||
MeetCopScript:
|
||||
applymovement $0, MovementData_0x78f74
|
||||
applymovement $0, MeetCopScript_WalkUp
|
||||
CopScript:
|
||||
spriteface $7, LEFT
|
||||
loadfont
|
||||
writetext UnknownText_0x7a0f0
|
||||
writetext ElmsLabOfficerText1
|
||||
keeptextopen
|
||||
special SpecialNameRival
|
||||
writetext UnknownText_0x7a1c0
|
||||
writetext ElmsLabOfficerText2
|
||||
closetext
|
||||
loadmovesprites
|
||||
applymovement $7, MovementData_0x78f78
|
||||
applymovement $7, OfficerLeavesMovement
|
||||
disappear $7
|
||||
dotrigger $2
|
||||
end
|
||||
@ -607,7 +607,7 @@ ElmsLabTrashcan2:
|
||||
ElmsLabBookshelf:
|
||||
jumpstd difficultbookshelf
|
||||
|
||||
MovementData_0x78f67:
|
||||
ElmsLab_WalkUpToElmMovement:
|
||||
step_up
|
||||
step_up
|
||||
step_up
|
||||
@ -622,17 +622,17 @@ MovementData_0x78f70:
|
||||
step_up
|
||||
step_end
|
||||
|
||||
MovementData_0x78f72:
|
||||
MeetCopScript2_StepLeft:
|
||||
step_left
|
||||
step_end
|
||||
|
||||
MovementData_0x78f74:
|
||||
MeetCopScript_WalkUp:
|
||||
step_up
|
||||
step_up
|
||||
turn_head_right
|
||||
step_end
|
||||
|
||||
MovementData_0x78f78:
|
||||
OfficerLeavesMovement:
|
||||
step_down
|
||||
step_down
|
||||
step_down
|
||||
@ -640,61 +640,61 @@ MovementData_0x78f78:
|
||||
step_down
|
||||
step_end
|
||||
|
||||
MovementData_0x78f7e:
|
||||
AideWalksRight1:
|
||||
step_right
|
||||
step_right
|
||||
turn_head_up
|
||||
step_end
|
||||
|
||||
MovementData_0x78f82:
|
||||
AideWalksRight2:
|
||||
step_right
|
||||
step_right
|
||||
step_right
|
||||
turn_head_up
|
||||
step_end
|
||||
|
||||
MovementData_0x78f87:
|
||||
AideWalksLeft1:
|
||||
step_left
|
||||
step_left
|
||||
turn_head_down
|
||||
step_end
|
||||
|
||||
MovementData_0x78f8b:
|
||||
AideWalksLeft2:
|
||||
step_left
|
||||
step_left
|
||||
step_left
|
||||
turn_head_down
|
||||
step_end
|
||||
|
||||
MovementData_0x78f90:
|
||||
ElmJumpUpMovement:
|
||||
fix_facing
|
||||
big_step_up
|
||||
remove_fixed_facing
|
||||
step_end
|
||||
|
||||
MovementData_0x78f94:
|
||||
ElmJumpDownMovement:
|
||||
fix_facing
|
||||
big_step_down
|
||||
remove_fixed_facing
|
||||
step_end
|
||||
|
||||
MovementData_0x78f98:
|
||||
ElmJumpLeftMovement:
|
||||
fix_facing
|
||||
big_step_left
|
||||
remove_fixed_facing
|
||||
step_end
|
||||
|
||||
MovementData_0x78f9c:
|
||||
ElmJumpRightMovement:
|
||||
fix_facing
|
||||
big_step_right
|
||||
remove_fixed_facing
|
||||
step_end
|
||||
|
||||
MovementData_0x78fa0:
|
||||
ElmsLab_ElmToDefaultPositionMovement1:
|
||||
step_up
|
||||
step_end
|
||||
|
||||
MovementData_0x78fa2:
|
||||
ElmsLab_ElmToDefaultPositionMovement2:
|
||||
step_right
|
||||
step_right
|
||||
step_up
|
||||
@ -722,7 +722,7 @@ AfterChikoritaMovement:
|
||||
turn_head_up
|
||||
step_end
|
||||
|
||||
UnknownText_0x78fb6:
|
||||
ElmText_Intro:
|
||||
text "ELM: <PLAY_G>!"
|
||||
line "There you are!"
|
||||
|
||||
@ -761,19 +761,19 @@ UnknownText_0x78fb6:
|
||||
line "caught."
|
||||
done
|
||||
|
||||
UnknownText_0x790fa:
|
||||
ElmText_Accepted:
|
||||
text "Thanks, <PLAY_G>!"
|
||||
|
||||
para "You're a great"
|
||||
line "help!"
|
||||
done
|
||||
|
||||
UnknownText_0x7911a:
|
||||
ElmText_Refused:
|
||||
text "But… Please, I"
|
||||
line "need your help!"
|
||||
done
|
||||
|
||||
UnknownText_0x7913a:
|
||||
ElmText_ResearchAmbitions:
|
||||
text "When I announce my"
|
||||
line "findings, I'm sure"
|
||||
|
||||
@ -787,7 +787,7 @@ UnknownText_0x7913a:
|
||||
line "it!"
|
||||
done
|
||||
|
||||
UnknownText_0x791ae:
|
||||
ElmText_GotAnEmail:
|
||||
text "Oh, hey! I got an"
|
||||
line "e-mail!"
|
||||
|
||||
@ -797,7 +797,7 @@ UnknownText_0x791ae:
|
||||
para "Okay…"
|
||||
done
|
||||
|
||||
UnknownText_0x791df:
|
||||
ElmText_MissionFromMrPokemon:
|
||||
text "Hey, listen."
|
||||
|
||||
para "I have an acquain-"
|
||||
@ -830,7 +830,7 @@ UnknownText_0x791df:
|
||||
line "go in our place?"
|
||||
done
|
||||
|
||||
UnknownText_0x792ff:
|
||||
ElmText_ChooseAPokemon:
|
||||
text "I want you to"
|
||||
line "raise one of the"
|
||||
|
||||
@ -844,7 +844,7 @@ UnknownText_0x792ff:
|
||||
para "Go on. Pick one!"
|
||||
done
|
||||
|
||||
UnknownText_0x79375:
|
||||
ElmText_LetYourMonBattleIt:
|
||||
text "If a wild #MON"
|
||||
line "appears, let your"
|
||||
cont "#MON battle it!"
|
||||
@ -1125,13 +1125,13 @@ ElmGiveEverstoneText2:
|
||||
cont "to evolve."
|
||||
done
|
||||
|
||||
UnknownText_0x79c37:
|
||||
ElmText_CallYou:
|
||||
text "ELM: <PLAY_G>, I'll"
|
||||
line "call you if any-"
|
||||
cont "thing comes up."
|
||||
done
|
||||
|
||||
UnknownText_0x79c65:
|
||||
AideText_AfterTheft:
|
||||
text "…sigh… That"
|
||||
line "stolen #MON."
|
||||
|
||||
@ -1208,25 +1208,25 @@ ElmGiveTicketText2:
|
||||
line "PROF.OAK in KANTO!"
|
||||
done
|
||||
|
||||
UnknownText_0x79f0b:
|
||||
ElmsLabSignpostText_Egg:
|
||||
text "It's the #MON"
|
||||
line "EGG being studied"
|
||||
cont "by PROF.ELM."
|
||||
done
|
||||
|
||||
UnknownText_0x79f38:
|
||||
AideText_GiveYouPotions:
|
||||
text "<PLAY_G>, I want"
|
||||
line "you to have this"
|
||||
cont "for your errand."
|
||||
done
|
||||
|
||||
UnknownText_0x79f65:
|
||||
AideText_AlwaysBusy:
|
||||
text "There are only two"
|
||||
line "of us, so we're"
|
||||
cont "always busy."
|
||||
done
|
||||
|
||||
UnknownText_0x79f95:
|
||||
AideText_TheftTestimony:
|
||||
text "There was a loud"
|
||||
line "noise outside…"
|
||||
|
||||
@ -1251,14 +1251,14 @@ UnknownText_0x79f95:
|
||||
line "itself."
|
||||
done
|
||||
|
||||
UnknownText_0x7a078:
|
||||
AideText_GiveYouBalls:
|
||||
text "<PLAY_G>!"
|
||||
|
||||
para "Use these on your"
|
||||
line "#DEX quest!"
|
||||
done
|
||||
|
||||
UnknownText_0x7a09a:
|
||||
AideText_ExplainBalls:
|
||||
text "To add to your"
|
||||
line "#DEX, you have"
|
||||
cont "to catch #MON."
|
||||
@ -1268,7 +1268,7 @@ UnknownText_0x7a09a:
|
||||
cont "to get them."
|
||||
done
|
||||
|
||||
UnknownText_0x7a0f0:
|
||||
ElmsLabOfficerText1:
|
||||
text "I heard a #MON"
|
||||
line "was stolen here…"
|
||||
|
||||
@ -1289,7 +1289,7 @@ UnknownText_0x7a0f0:
|
||||
line "get his name?"
|
||||
done
|
||||
|
||||
UnknownText_0x7a1c0:
|
||||
ElmsLabOfficerText2:
|
||||
text "OK! So <RIVAL>"
|
||||
line "was his name."
|
||||
|
||||
@ -1381,11 +1381,11 @@ ElmsLab_MapEventHeader:
|
||||
xy_trigger 1, $6, $4, $0, LabTryToLeaveScript, $0, $0
|
||||
xy_trigger 1, $6, $5, $0, LabTryToLeaveScript, $0, $0
|
||||
xy_trigger 3, $5, $4, $0, MeetCopScript, $0, $0
|
||||
xy_trigger 3, $5, $5, $0, UnknownScript_0x78f12, $0, $0
|
||||
xy_trigger 5, $8, $4, $0, UnknownScript_0x78e7f, $0, $0
|
||||
xy_trigger 5, $8, $5, $0, UnknownScript_0x78e8e, $0, $0
|
||||
xy_trigger 6, $8, $4, $0, UnknownScript_0x78ead, $0, $0
|
||||
xy_trigger 6, $8, $5, $0, UnknownScript_0x78ebc, $0, $0
|
||||
xy_trigger 3, $5, $5, $0, MeetCopScript2, $0, $0
|
||||
xy_trigger 5, $8, $4, $0, AideScript_WalkPotions1, $0, $0
|
||||
xy_trigger 5, $8, $5, $0, AideScript_WalkPotions2, $0, $0
|
||||
xy_trigger 6, $8, $4, $0, AideScript_WalkBalls1, $0, $0
|
||||
xy_trigger 6, $8, $5, $0, AideScript_WalkBalls2, $0, $0
|
||||
|
||||
; signposts
|
||||
db 16
|
||||
|
@ -45,7 +45,7 @@ TwinScript_0x75ebb:
|
||||
spriteface $4, UP
|
||||
special Function8c0ab
|
||||
spriteface $3, DOWN
|
||||
showemote $0, $3, 15
|
||||
showemote EMOTE_SHOCK, $3, 15
|
||||
applymovement $4, MovementData_0x7600c
|
||||
spriteface $3, RIGHT
|
||||
checkflag ENGINE_PLAYER_IS_FEMALE
|
||||
|
@ -129,7 +129,7 @@ FastShipBed:
|
||||
loadmovesprites
|
||||
special Function8c0b6
|
||||
special Functiond91
|
||||
special Function1060a2
|
||||
special Mobile_HealParty
|
||||
special HealParty
|
||||
playmusic MUSIC_HEAL
|
||||
pause 60
|
||||
|
@ -60,7 +60,7 @@ ReceptionistScript_0x560ce:
|
||||
if_not_equal SUNDAY, UnknownScript_0x56112
|
||||
checkflag ENGINE_GOLDENROD_MALL_5F_HAPPINESS_EVENT
|
||||
iftrue UnknownScript_0x56112
|
||||
special Function718d
|
||||
special GetFirstPokemonHappiness
|
||||
writetext UnknownText_0x56143
|
||||
keeptextopen
|
||||
if_greater_than $95, UnknownScript_0x560ee
|
||||
|
@ -114,7 +114,7 @@ LassCarrieScript:
|
||||
end
|
||||
|
||||
WhitneyCriesScript:
|
||||
showemote $0, $4, 15
|
||||
showemote EMOTE_SHOCK, $4, 15
|
||||
applymovement $4, BridgetWalksUpMovement
|
||||
spriteface $0, DOWN
|
||||
loadfont
|
||||
|
@ -8,7 +8,7 @@ GoldenrodHappinessRater_MapScriptHeader:
|
||||
TeacherScript_0x54953:
|
||||
faceplayer
|
||||
loadfont
|
||||
special Function718d
|
||||
special GetFirstPokemonHappiness
|
||||
writetext UnknownText_0x549a3
|
||||
keeptextopen
|
||||
if_greater_than $f9, UnknownScript_0x54973
|
||||
|
@ -3,50 +3,50 @@ HallOfFame_MapScriptHeader:
|
||||
db 2
|
||||
|
||||
; triggers
|
||||
dw UnknownScript_0x18144f, $0000
|
||||
dw UnknownScript_0x181453, $0000
|
||||
dw .Trigger1, $0000
|
||||
dw .Trigger2, $0000
|
||||
|
||||
; callback count
|
||||
db 0
|
||||
|
||||
UnknownScript_0x18144f:
|
||||
priorityjump UnknownScript_0x181454
|
||||
.Trigger1:
|
||||
priorityjump HallOfFameScript
|
||||
end
|
||||
|
||||
UnknownScript_0x181453:
|
||||
.Trigger2:
|
||||
end
|
||||
|
||||
UnknownScript_0x181454:
|
||||
HallOfFameScript:
|
||||
follow $2, $0
|
||||
applymovement $2, MovementData_0x181499
|
||||
applymovement $2, HallOfFame_WalkUpWithLance
|
||||
stopfollow
|
||||
spriteface $0, RIGHT
|
||||
loadfont
|
||||
writetext UnknownText_0x1814a6
|
||||
writetext HallOfFame_LanceText
|
||||
closetext
|
||||
loadmovesprites
|
||||
spriteface $2, UP
|
||||
applymovement $0, MovementData_0x1814a4
|
||||
applymovement $0, HallOfFame_SlowlyApproachMachine
|
||||
dotrigger $1
|
||||
pause 15
|
||||
writebyte $2
|
||||
writebyte 2 ; Machine is in the Hall of Fame
|
||||
special HealMachineAnim
|
||||
setevent EVENT_BEAT_ELITE_FOUR
|
||||
setevent EVENT_TELEPORT_GUY
|
||||
setevent EVENT_RIVAL_SPROUT_TOWER
|
||||
clearevent EVENT_RED_IN_MT_SILVER
|
||||
setevent EVENT_737
|
||||
clearevent EVENT_738
|
||||
setevent EVENT_OLIVINE_PORT_SPRITES_BEFORE_HALL_OF_FAME
|
||||
clearevent EVENT_OLIVINE_PORT_SPRITES_AFTER_HALL_OF_FAME
|
||||
domaptrigger GROUP_SPROUT_TOWER_3F, MAP_SPROUT_TOWER_3F, $1
|
||||
special HealParty
|
||||
checkevent EVENT_GOT_SS_TICKET_FROM_ELM
|
||||
iftrue UnknownScript_0x181497
|
||||
iftrue HallOfFame_SkipPhoneCall
|
||||
specialphonecall $5
|
||||
UnknownScript_0x181497:
|
||||
HallOfFame_SkipPhoneCall:
|
||||
halloffame
|
||||
end
|
||||
|
||||
MovementData_0x181499:
|
||||
HallOfFame_WalkUpWithLance:
|
||||
step_up
|
||||
step_up
|
||||
step_up
|
||||
@ -59,11 +59,11 @@ MovementData_0x181499:
|
||||
turn_head_left
|
||||
step_end
|
||||
|
||||
MovementData_0x1814a4:
|
||||
HallOfFame_SlowlyApproachMachine:
|
||||
slow_step_up
|
||||
step_end
|
||||
|
||||
UnknownText_0x1814a6:
|
||||
HallOfFame_LanceText:
|
||||
text "LANCE: It's been a"
|
||||
line "long time since I"
|
||||
cont "last came here."
|
||||
@ -126,4 +126,4 @@ HallOfFame_MapEventHeader:
|
||||
|
||||
; people-events
|
||||
db 1
|
||||
person_event SPRITE_LANCE, 16, 8, $7, $0, 255, 255, $0, 0, ObjectEvent, -1
|
||||
person_event SPRITE_LANCE, 16, 8, UP << 2 | $3, $0, -1, -1, PAL_OW_RED << 4 | $0, 0, ObjectEvent, -1
|
||||
|
@ -467,7 +467,7 @@ UnknownScript_0x6ee42:
|
||||
closetext
|
||||
loadmovesprites
|
||||
pause 20
|
||||
showemote $0, $0, 20
|
||||
showemote EMOTE_SHOCK, $0, 20
|
||||
special Functionc48f
|
||||
applymovement $0, MovementData_0x6ef58
|
||||
pause 30
|
||||
|
@ -54,7 +54,7 @@ UnknownScript_0x180053:
|
||||
moveperson $5, $11, $9
|
||||
appear $5
|
||||
spriteface $0, DOWN
|
||||
showemote $0, $0, 15
|
||||
showemote EMOTE_SHOCK, $0, 15
|
||||
special Functionc48f
|
||||
pause 15
|
||||
applymovement $5, MovementData_0x180164
|
||||
@ -75,7 +75,7 @@ UnknownScript_0x180094:
|
||||
if_equal SATURDAY, UnknownScript_0x18012b
|
||||
appear $5
|
||||
spriteface $0, DOWN
|
||||
showemote $0, $0, 15
|
||||
showemote EMOTE_SHOCK, $0, 15
|
||||
special Functionc48f
|
||||
pause 15
|
||||
applymovement $5, MovementData_0x18016b
|
||||
|
@ -20,7 +20,7 @@ UnknownScript_0x7a4d8:
|
||||
|
||||
UnknownScript_0x7a4db:
|
||||
playmusic MUSIC_MOM
|
||||
showemote $0, $2, 15
|
||||
showemote EMOTE_SHOCK, $2, 15
|
||||
spriteface $0, LEFT
|
||||
checkevent EVENT_000
|
||||
iffalse UnknownScript_0x7a4f2
|
||||
|
@ -295,7 +295,7 @@ UnknownScript_0x18e378:
|
||||
clearevent EVENT_GAVE_GS_BALL_TO_KURT
|
||||
special Functionc48f
|
||||
pause 20
|
||||
showemote $0, $2, 30
|
||||
showemote EMOTE_SHOCK, $2, 30
|
||||
checkcode VAR_FACING
|
||||
if_equal $1, UnknownScript_0x18e3a2
|
||||
spriteface $0, DOWN
|
||||
|
@ -75,7 +75,7 @@ LanceScript_0x180e7b:
|
||||
setevent EVENT_LANCES_ROOM_ENTRANCE_CLOSED
|
||||
musicfadeout MUSIC_BEAUTY_ENCOUNTER, $10
|
||||
pause 30
|
||||
showemote $0, $2, 15
|
||||
showemote EMOTE_SHOCK, $2, 15
|
||||
spriteface $2, DOWN
|
||||
pause 10
|
||||
spriteface $0, DOWN
|
||||
@ -119,7 +119,7 @@ LanceScript_0x180e7b:
|
||||
playsound SFX_EXIT_BUILDING
|
||||
disappear $0
|
||||
applymovement $3, MovementData_0x180f57
|
||||
showemote $0, $3, 15
|
||||
showemote EMOTE_SHOCK, $3, 15
|
||||
loadfont
|
||||
writetext UnknownText_0x1813c5
|
||||
pause 30
|
||||
|
@ -85,7 +85,7 @@ UnknownScript_0x6c38f:
|
||||
loadfont
|
||||
writetext UnknownText_0x6c59e
|
||||
closetext
|
||||
showemote $0, $2, 10
|
||||
showemote EMOTE_SHOCK, $2, 10
|
||||
playsound SFX_UNKNOWN_2A
|
||||
changeblock $6, $2, $1e
|
||||
reloadmappart
|
||||
|
@ -23,7 +23,7 @@ MahoganyTown_MapScriptHeader:
|
||||
return
|
||||
|
||||
UnknownScript_0x190013:
|
||||
showemote $0, $2, 15
|
||||
showemote EMOTE_SHOCK, $2, 15
|
||||
applymovement $2, MovementData_0x1900a9
|
||||
follow $0, $2
|
||||
applymovement $0, MovementData_0x1900a7
|
||||
|
@ -43,7 +43,7 @@ UnknownScript_0x1935f4:
|
||||
special RestartMapMusic
|
||||
refreshscreen $0
|
||||
UnknownScript_0x19360d:
|
||||
special Function1060a2
|
||||
special Mobile_HealParty
|
||||
special HealParty
|
||||
special Function10383c
|
||||
iftrue UnknownScript_0x193624
|
||||
|
@ -18,7 +18,7 @@ UnknownScript_0x7408d:
|
||||
|
||||
UnknownScript_0x7408e:
|
||||
spriteface $0, RIGHT
|
||||
showemote $0, $0, 15
|
||||
showemote EMOTE_SHOCK, $0, 15
|
||||
special Functionc48f
|
||||
pause 15
|
||||
applymovement $2, MovementData_0x740f9
|
||||
|
@ -59,7 +59,7 @@ UnknownScript_0x7709a:
|
||||
stopfollow
|
||||
spriteface $2, DOWN
|
||||
pause 10
|
||||
showemote $0, $2, 15
|
||||
showemote EMOTE_SHOCK, $2, 15
|
||||
spriteface $2, DOWN
|
||||
cry CLEFAIRY
|
||||
pause 15
|
||||
|
@ -17,7 +17,7 @@ UnknownScript_0x196e55:
|
||||
end
|
||||
|
||||
UnknownScript_0x196e56:
|
||||
showemote $0, $2, 15
|
||||
showemote EMOTE_SHOCK, $2, 15
|
||||
spriteface $2, DOWN
|
||||
loadfont
|
||||
writetext UnknownText_0x196f66
|
||||
@ -111,7 +111,7 @@ UnknownScript_0x196ec9:
|
||||
special Function8c0b6
|
||||
special Functiond91
|
||||
playmusic MUSIC_HEAL
|
||||
special Function1060a2
|
||||
special Mobile_HealParty
|
||||
special HealParty
|
||||
pause 60
|
||||
special Function8c0ab
|
||||
|
@ -24,7 +24,7 @@ OlivineCity_MapScriptHeader:
|
||||
|
||||
UnknownScript_0x1a8833:
|
||||
spriteface $0, LEFT
|
||||
showemote $0, $0, 15
|
||||
showemote EMOTE_SHOCK, $0, 15
|
||||
special Functionc48f
|
||||
pause 15
|
||||
playsound SFX_ENTER_DOOR
|
||||
@ -48,7 +48,7 @@ UnknownScript_0x1a8833:
|
||||
|
||||
UnknownScript_0x1a886b:
|
||||
spriteface $0, LEFT
|
||||
showemote $0, $0, 15
|
||||
showemote EMOTE_SHOCK, $0, 15
|
||||
special Functionc48f
|
||||
pause 15
|
||||
playsound SFX_ENTER_DOOR
|
||||
|
@ -399,9 +399,9 @@ OlivinePort_MapEventHeader:
|
||||
; people-events
|
||||
db 7
|
||||
person_event SPRITE_SAILOR, 27, 11, $7, $0, 255, 255, $0, 0, SailorScript_0x748c0, EVENT_72A
|
||||
person_event SPRITE_SAILOR, 19, 11, $7, $0, 255, 255, $0, 0, SailorScript_0x749fe, EVENT_737
|
||||
person_event SPRITE_SAILOR, 19, 10, $9, $0, 255, 255, $0, 0, SailorScript_0x7499c, EVENT_738
|
||||
person_event SPRITE_FISHING_GURU, 18, 8, $7, $0, 255, 255, $0, 0, FishingGuruScript_0x74a01, EVENT_737
|
||||
person_event SPRITE_FISHING_GURU, 18, 17, $7, $0, 255, 255, $0, 0, FishingGuruScript_0x74a0c, EVENT_737
|
||||
person_event SPRITE_YOUNGSTER, 19, 8, $6, $0, 255, 255, $0, 0, YoungsterScript_0x74a17, EVENT_738
|
||||
person_event SPRITE_COOLTRAINER_F, 19, 15, $6, $0, 255, 255, $0, 0, CooltrainerFScript_0x74a22, EVENT_738
|
||||
person_event SPRITE_SAILOR, 19, 11, $7, $0, 255, 255, $0, 0, SailorScript_0x749fe, EVENT_OLIVINE_PORT_SPRITES_BEFORE_HALL_OF_FAME
|
||||
person_event SPRITE_SAILOR, 19, 10, $9, $0, 255, 255, $0, 0, SailorScript_0x7499c, EVENT_OLIVINE_PORT_SPRITES_AFTER_HALL_OF_FAME
|
||||
person_event SPRITE_FISHING_GURU, 18, 8, $7, $0, 255, 255, $0, 0, FishingGuruScript_0x74a01, EVENT_OLIVINE_PORT_SPRITES_BEFORE_HALL_OF_FAME
|
||||
person_event SPRITE_FISHING_GURU, 18, 17, $7, $0, 255, 255, $0, 0, FishingGuruScript_0x74a0c, EVENT_OLIVINE_PORT_SPRITES_BEFORE_HALL_OF_FAME
|
||||
person_event SPRITE_YOUNGSTER, 19, 8, $6, $0, 255, 255, $0, 0, YoungsterScript_0x74a17, EVENT_OLIVINE_PORT_SPRITES_AFTER_HALL_OF_FAME
|
||||
person_event SPRITE_COOLTRAINER_F, 19, 15, $6, $0, 255, 255, $0, 0, CooltrainerFScript_0x74a22, EVENT_OLIVINE_PORT_SPRITES_AFTER_HALL_OF_FAME
|
||||
|
@ -440,7 +440,7 @@ UnknownScript_0x192b12:
|
||||
writetext UnknownText_0x19329a
|
||||
closetext
|
||||
loadmovesprites
|
||||
showemote $0, $0, 15
|
||||
showemote EMOTE_SHOCK, $0, 15
|
||||
applymovement $0, MovementData_0x192ce5
|
||||
end
|
||||
|
||||
@ -549,7 +549,7 @@ UnknownScript_0x192c20:
|
||||
writetext UnknownText_0x19329a
|
||||
closetext
|
||||
loadmovesprites
|
||||
showemote $0, $0, 15
|
||||
showemote EMOTE_SHOCK, $0, 15
|
||||
applymovement $0, MovementData_0x192d2d
|
||||
end
|
||||
|
||||
|
@ -17,7 +17,7 @@ UnknownScript_0x188dc4:
|
||||
|
||||
UnknownScript_0x188dc5:
|
||||
playsound SFX_CALL
|
||||
showemote $0, $2, 15
|
||||
showemote EMOTE_SHOCK, $2, 15
|
||||
waitbutton
|
||||
pause 30
|
||||
applymovement $2, MovementData_0x188ed5
|
||||
|
@ -320,7 +320,7 @@ UnknownScript_0x5d8a4:
|
||||
pause 15
|
||||
checkevent EVENT_BUENA_OFFERED_HER_PHONE_NUMBER_NO_BLUE_CARD
|
||||
iftrue UnknownScript_0x5d8cc
|
||||
showemote $0, $b, 15
|
||||
showemote EMOTE_SHOCK, $b, 15
|
||||
setevent EVENT_BUENA_OFFERED_HER_PHONE_NUMBER_NO_BLUE_CARD
|
||||
setevent EVENT_BUENA_OFFERED_HER_PHONE_NUMBER
|
||||
loadfont
|
||||
|
@ -21,7 +21,7 @@ UnknownScript_0x60010:
|
||||
|
||||
UnknownScript_0x60011:
|
||||
spriteface $2, UP
|
||||
showemote $0, $2, 15
|
||||
showemote EMOTE_SHOCK, $2, 15
|
||||
loadfont
|
||||
writetext UnknownText_0x60128
|
||||
closetext
|
||||
|
@ -20,7 +20,7 @@ UnknownScript_0x733ed:
|
||||
end
|
||||
|
||||
UnknownScript_0x733f3:
|
||||
showemote $0, $2, 15
|
||||
showemote EMOTE_SHOCK, $2, 15
|
||||
spriteface $0, UP
|
||||
loadfont
|
||||
writetext UnknownText_0x73496
|
||||
|
@ -20,7 +20,7 @@ UnknownScript_0x73611:
|
||||
end
|
||||
|
||||
UnknownScript_0x73617:
|
||||
showemote $0, $2, 15
|
||||
showemote EMOTE_SHOCK, $2, 15
|
||||
spriteface $0, UP
|
||||
loadfont
|
||||
writetext UnknownText_0x7364d
|
||||
|
@ -18,7 +18,7 @@ UnknownScript_0x19ee9f:
|
||||
UnknownScript_0x19eea0:
|
||||
showemote $4, $2, 15
|
||||
pause 30
|
||||
showemote $0, $3, 10
|
||||
showemote EMOTE_SHOCK, $3, 10
|
||||
spriteface $2, DOWN
|
||||
applymovement $3, MovementData_0x19efe8
|
||||
disappear $3
|
||||
@ -44,7 +44,7 @@ UnknownScript_0x19eea0:
|
||||
UnknownScript_0x19eee0:
|
||||
showemote $4, $2, 15
|
||||
pause 30
|
||||
showemote $0, $3, 10
|
||||
showemote EMOTE_SHOCK, $3, 10
|
||||
spriteface $2, DOWN
|
||||
applymovement $3, MovementData_0x19efea
|
||||
disappear $3
|
||||
|
@ -13,7 +13,7 @@ TeacherScript_0x7b125:
|
||||
loadmovesprites
|
||||
special Function8c0b6
|
||||
special Functiond91
|
||||
special Function1060a2
|
||||
special Mobile_HealParty
|
||||
playmusic MUSIC_HEAL
|
||||
special HealParty
|
||||
pause 60
|
||||
|
@ -17,13 +17,13 @@ UnknownScript_0x1a0872:
|
||||
|
||||
UnknownScript_0x1a0873:
|
||||
spriteface $a, LEFT
|
||||
showemote $0, $a, 15
|
||||
showemote EMOTE_SHOCK, $a, 15
|
||||
applymovement $a, MovementData_0x1a0a66
|
||||
jump UnknownScript_0x1a088c
|
||||
|
||||
UnknownScript_0x1a0881:
|
||||
spriteface $a, LEFT
|
||||
showemote $0, $a, 15
|
||||
showemote EMOTE_SHOCK, $a, 15
|
||||
applymovement $a, MovementData_0x1a0a69
|
||||
UnknownScript_0x1a088c:
|
||||
spriteface $0, RIGHT
|
||||
|
@ -10,7 +10,7 @@ SandstormHouseWoman:
|
||||
loadfont
|
||||
checkevent EVENT_GOT_TM37_SANDSTORM
|
||||
iftrue .AlreadyGotItem
|
||||
special Function718d
|
||||
special GetFirstPokemonHappiness
|
||||
writetext SandstormHouseWomanText1
|
||||
keeptextopen
|
||||
if_greater_than $95, .Loyal
|
||||
|
@ -35,7 +35,7 @@ TuscanyCallback:
|
||||
|
||||
UnknownScript_0x1a0f6d:
|
||||
spriteface $2, UP
|
||||
showemote $0, $2, 15
|
||||
showemote EMOTE_SHOCK, $2, 15
|
||||
applymovement $2, MovementData_0x1a108d
|
||||
spriteface $0, LEFT
|
||||
setevent EVENT_DUDE_TALKED_TO_YOU
|
||||
@ -60,7 +60,7 @@ UnknownScript_0x1a0f6d:
|
||||
|
||||
UnknownScript_0x1a0fa3:
|
||||
spriteface $2, UP
|
||||
showemote $0, $2, 15
|
||||
showemote EMOTE_SHOCK, $2, 15
|
||||
applymovement $2, MovementData_0x1a1094
|
||||
spriteface $0, LEFT
|
||||
setevent EVENT_DUDE_TALKED_TO_YOU
|
||||
|
@ -24,7 +24,7 @@ UnknownScript_0x62d38:
|
||||
UnknownScript_0x62d3d:
|
||||
checkevent EVENT_FOREST_IS_RESTLESS
|
||||
iffalse UnknownScript_0x62d62
|
||||
showemote $0, $5, 20
|
||||
showemote EMOTE_SHOCK, $5, 20
|
||||
spriteface $5, LEFT
|
||||
spriteface $0, RIGHT
|
||||
follow $0, $5
|
||||
|
@ -88,7 +88,7 @@ OfficerScript_0x6a204:
|
||||
if_equal FRIDAY, UnknownScript_0x6a2c7
|
||||
faceplayer
|
||||
loadfont
|
||||
checkflag ENGINE_51
|
||||
checkflag ENGINE_DAILY_BUG_CONTEST
|
||||
iftrue UnknownScript_0x6a2c1
|
||||
scall UnknownScript_0x6a2de
|
||||
writetext UnknownText_0x6a2eb
|
||||
@ -97,7 +97,7 @@ OfficerScript_0x6a204:
|
||||
checkcode VAR_PARTYCOUNT
|
||||
if_greater_than $1, UnknownScript_0x6a271
|
||||
special Function13a12
|
||||
clearevent EVENT_308
|
||||
clearevent EVENT_LEFT_MONS_WITH_CONTEST_OFFICER
|
||||
UnknownScript_0x6a234:
|
||||
setflag ENGINE_BUG_CONTEST_TIMER
|
||||
special PlayMapMusic
|
||||
@ -142,7 +142,7 @@ UnknownScript_0x6a27d: ; 6a27d
|
||||
iffalse UnknownScript_0x6a2a9
|
||||
special Function13a12
|
||||
iftrue UnknownScript_0x6a2af
|
||||
setevent EVENT_308
|
||||
setevent EVENT_LEFT_MONS_WITH_CONTEST_OFFICER
|
||||
writetext UnknownText_0x6a537
|
||||
keeptextopen
|
||||
writetext UnknownText_0x6a56b
|
||||
@ -193,7 +193,7 @@ UnknownScript_0x6a2c7:
|
||||
OfficerScript_0x6a2ca:
|
||||
faceplayer
|
||||
loadfont
|
||||
checkflag ENGINE_51
|
||||
checkflag ENGINE_DAILY_BUG_CONTEST
|
||||
iftrue UnknownScript_0x6a2c1
|
||||
writetext UnknownText_0x6a894
|
||||
closetext
|
||||
|
@ -30,7 +30,7 @@ ArthurCallback:
|
||||
return
|
||||
|
||||
UnknownScript_0x19401b:
|
||||
showemote $0, $0, 15
|
||||
showemote EMOTE_SHOCK, $0, 15
|
||||
pause 15
|
||||
playsound SFX_WARP_FROM
|
||||
spriteface $0, UP
|
||||
|
@ -129,7 +129,7 @@ UnknownScript_0x6abd4:
|
||||
iftrue UnknownScript_0x6abdc
|
||||
appear $c
|
||||
UnknownScript_0x6abdc:
|
||||
special Function1ad2
|
||||
special DrawOnMap
|
||||
end
|
||||
|
||||
OfficerScript_0x6abe0:
|
||||
@ -140,7 +140,7 @@ OfficerScript_0x6abe0:
|
||||
if_equal FRIDAY, UnknownScript_0x6acf1
|
||||
faceplayer
|
||||
loadfont
|
||||
checkflag ENGINE_51
|
||||
checkflag ENGINE_DAILY_BUG_CONTEST
|
||||
iftrue UnknownScript_0x6ac91
|
||||
scall UnknownScript_0x6ad02
|
||||
writetext UnknownText_0x6add5
|
||||
@ -149,7 +149,7 @@ OfficerScript_0x6abe0:
|
||||
checkcode VAR_PARTYCOUNT
|
||||
if_greater_than $1, UnknownScript_0x6ac41
|
||||
special Function13a12
|
||||
clearevent EVENT_308
|
||||
clearevent EVENT_LEFT_MONS_WITH_CONTEST_OFFICER
|
||||
UnknownScript_0x6ac10:
|
||||
setflag ENGINE_BUG_CONTEST_TIMER
|
||||
special PlayMapMusic
|
||||
@ -185,7 +185,7 @@ UnknownScript_0x6ac4d:
|
||||
iffalse UnknownScript_0x6ac79
|
||||
special Function13a12
|
||||
iftrue UnknownScript_0x6ac7f
|
||||
setevent EVENT_308
|
||||
setevent EVENT_LEFT_MONS_WITH_CONTEST_OFFICER
|
||||
writetext UnknownText_0x6b021
|
||||
keeptextopen
|
||||
writetext UnknownText_0x6b055
|
||||
@ -225,13 +225,13 @@ UnknownScript_0x6ac8b:
|
||||
end
|
||||
|
||||
UnknownScript_0x6ac91:
|
||||
checkevent EVENT_313
|
||||
checkevent EVENT_CONTEST_OFFICER_HAS_SUN_STONE
|
||||
iftrue UnknownScript_0x6acaf
|
||||
checkevent EVENT_314
|
||||
checkevent EVENT_CONTEST_OFFICER_HAS_EVERSTONE
|
||||
iftrue UnknownScript_0x6acbe
|
||||
checkevent EVENT_315
|
||||
checkevent EVENT_CONTEST_OFFICER_HAS_GOLD_BERRY
|
||||
iftrue UnknownScript_0x6accd
|
||||
checkevent EVENT_316
|
||||
checkevent EVENT_CONTEST_OFFICER_HAS_BERRY
|
||||
iftrue UnknownScript_0x6acdc
|
||||
writetext UnknownText_0x6b32b
|
||||
closetext
|
||||
@ -243,7 +243,7 @@ UnknownScript_0x6acaf:
|
||||
keeptextopen
|
||||
verbosegiveitem SUN_STONE, 1
|
||||
iffalse UnknownScript_0x6aceb
|
||||
clearevent EVENT_313
|
||||
clearevent EVENT_CONTEST_OFFICER_HAS_SUN_STONE
|
||||
loadmovesprites
|
||||
end
|
||||
|
||||
@ -252,7 +252,7 @@ UnknownScript_0x6acbe:
|
||||
keeptextopen
|
||||
verbosegiveitem EVERSTONE, 1
|
||||
iffalse UnknownScript_0x6aceb
|
||||
clearevent EVENT_314
|
||||
clearevent EVENT_CONTEST_OFFICER_HAS_EVERSTONE
|
||||
loadmovesprites
|
||||
end
|
||||
|
||||
@ -261,7 +261,7 @@ UnknownScript_0x6accd:
|
||||
keeptextopen
|
||||
verbosegiveitem GOLD_BERRY, 1
|
||||
iffalse UnknownScript_0x6aceb
|
||||
clearevent EVENT_315
|
||||
clearevent EVENT_CONTEST_OFFICER_HAS_GOLD_BERRY
|
||||
loadmovesprites
|
||||
end
|
||||
|
||||
@ -270,7 +270,7 @@ UnknownScript_0x6acdc:
|
||||
keeptextopen
|
||||
verbosegiveitem BERRY, 1
|
||||
iffalse UnknownScript_0x6aceb
|
||||
clearevent EVENT_316
|
||||
clearevent EVENT_CONTEST_OFFICER_HAS_BERRY
|
||||
loadmovesprites
|
||||
end
|
||||
|
||||
@ -286,7 +286,7 @@ UnknownScript_0x6acf1:
|
||||
OfficerScript_0x6acf4:
|
||||
faceplayer
|
||||
loadfont
|
||||
checkflag ENGINE_51
|
||||
checkflag ENGINE_DAILY_BUG_CONTEST
|
||||
iftrue UnknownScript_0x6ac91
|
||||
writetext UnknownText_0x6b370
|
||||
closetext
|
||||
|
@ -16,7 +16,7 @@ UnknownScript_0x1a9217:
|
||||
end
|
||||
|
||||
UnknownScript_0x1a9218:
|
||||
showemote $0, $0, 15
|
||||
showemote EMOTE_SHOCK, $0, 15
|
||||
pause 15
|
||||
playsound SFX_WARP_FROM
|
||||
applymovement $a, MovementData_0x1a9356
|
||||
|
@ -40,10 +40,10 @@ UnknownScript_0x19abda:
|
||||
|
||||
UnknownScript_0x19abea:
|
||||
applymovement $0, MovementData_0x19aca2
|
||||
showemote $0, $4, 15
|
||||
showemote EMOTE_SHOCK, $4, 15
|
||||
applymovement $4, MovementData_0x19acbb
|
||||
spriteface $3, UP
|
||||
showemote $0, $3, 15
|
||||
showemote EMOTE_SHOCK, $3, 15
|
||||
applymovement $3, MovementData_0x19aca4
|
||||
loadfont
|
||||
writetext UnknownText_0x19acd2
|
||||
@ -72,10 +72,10 @@ UnknownScript_0x19ac28:
|
||||
end
|
||||
|
||||
UnknownScript_0x19ac38:
|
||||
showemote $0, $3, 15
|
||||
showemote EMOTE_SHOCK, $3, 15
|
||||
applymovement $3, MovementData_0x19acaf
|
||||
spriteface $4, DOWN
|
||||
showemote $0, $4, 15
|
||||
showemote EMOTE_SHOCK, $4, 15
|
||||
applymovement $4, MovementData_0x19acc7
|
||||
loadfont
|
||||
writetext UnknownText_0x19acd2
|
||||
|
@ -42,7 +42,7 @@ UnknownScript_0x58dca:
|
||||
UnknownScript_0x58dd3:
|
||||
pause 30
|
||||
earthquake 30
|
||||
showemote $0, $0, 20
|
||||
showemote EMOTE_SHOCK, $0, 20
|
||||
pause 30
|
||||
playsound SFX_STRENGTH
|
||||
changeblock $4, $0, $30
|
||||
@ -66,7 +66,7 @@ UnknownScript_0x58df7:
|
||||
setflag ENGINE_UNLOCKED_UNOWNS_3
|
||||
domaptrigger GROUP_RUINS_OF_ALPH_INNER_CHAMBER, MAP_RUINS_OF_ALPH_INNER_CHAMBER, $1
|
||||
earthquake 30
|
||||
showemote $0, $0, 15
|
||||
showemote EMOTE_SHOCK, $0, 15
|
||||
changeblock $2, $2, $18
|
||||
changeblock $4, $2, $19
|
||||
reloadmappart
|
||||
|
@ -43,7 +43,7 @@ UnknownScript_0x5858d:
|
||||
UnknownScript_0x58596:
|
||||
pause 30
|
||||
earthquake 30
|
||||
showemote $0, $0, 20
|
||||
showemote EMOTE_SHOCK, $0, 20
|
||||
pause 30
|
||||
playsound SFX_STRENGTH
|
||||
changeblock $4, $0, $30
|
||||
@ -67,7 +67,7 @@ UnknownScript_0x585ba:
|
||||
setflag ENGINE_UNLOCKED_UNOWNS_4
|
||||
domaptrigger GROUP_RUINS_OF_ALPH_INNER_CHAMBER, MAP_RUINS_OF_ALPH_INNER_CHAMBER, $1
|
||||
earthquake 30
|
||||
showemote $0, $0, 15
|
||||
showemote EMOTE_SHOCK, $0, 15
|
||||
changeblock $2, $2, $18
|
||||
changeblock $4, $2, $19
|
||||
reloadmappart
|
||||
|
@ -44,7 +44,7 @@ UnknownScript_0x58748:
|
||||
UnknownScript_0x58751:
|
||||
pause 30
|
||||
earthquake 30
|
||||
showemote $0, $0, 20
|
||||
showemote EMOTE_SHOCK, $0, 20
|
||||
pause 30
|
||||
playsound SFX_STRENGTH
|
||||
changeblock $4, $0, $30
|
||||
@ -72,7 +72,7 @@ UnknownScript_0x58778:
|
||||
setevent EVENT_74E
|
||||
domaptrigger GROUP_RUINS_OF_ALPH_INNER_CHAMBER, MAP_RUINS_OF_ALPH_INNER_CHAMBER, $1
|
||||
earthquake 30
|
||||
showemote $0, $0, 15
|
||||
showemote EMOTE_SHOCK, $0, 15
|
||||
changeblock $2, $2, $18
|
||||
changeblock $4, $2, $19
|
||||
reloadmappart
|
||||
|
@ -43,7 +43,7 @@ UnknownScript_0x58c09:
|
||||
UnknownScript_0x58c12:
|
||||
pause 30
|
||||
earthquake 30
|
||||
showemote $0, $0, 20
|
||||
showemote EMOTE_SHOCK, $0, 20
|
||||
pause 30
|
||||
playsound SFX_STRENGTH
|
||||
changeblock $4, $0, $30
|
||||
@ -67,7 +67,7 @@ UnknownScript_0x58c36:
|
||||
setflag ENGINE_UNLOCKED_UNOWNS_2
|
||||
domaptrigger GROUP_RUINS_OF_ALPH_INNER_CHAMBER, MAP_RUINS_OF_ALPH_INNER_CHAMBER, $1
|
||||
earthquake 30
|
||||
showemote $0, $0, 15
|
||||
showemote EMOTE_SHOCK, $0, 15
|
||||
changeblock $2, $2, $18
|
||||
changeblock $4, $2, $19
|
||||
reloadmappart
|
||||
|
@ -17,7 +17,7 @@ UnknownScript_0x184946:
|
||||
|
||||
UnknownScript_0x184947:
|
||||
spriteface $0, UP
|
||||
showemote $0, $0, 15
|
||||
showemote EMOTE_SHOCK, $0, 15
|
||||
special Functionc48f
|
||||
playsound SFX_TACKLE
|
||||
playsound SFX_ELEVATOR
|
||||
@ -32,7 +32,7 @@ UnknownScript_0x184947:
|
||||
writetext UnknownText_0x184a27
|
||||
closetext
|
||||
loadmovesprites
|
||||
showemote $0, $8, 15
|
||||
showemote EMOTE_SHOCK, $8, 15
|
||||
spriteface $8, DOWN
|
||||
pause 15
|
||||
applymovement $8, MovementData_0x184a24
|
||||
|
@ -25,7 +25,7 @@ SecurityCamera1a:
|
||||
scall PlaySecurityCameraSounds
|
||||
checkevent EVENT_6DA
|
||||
iftrue NoSecurityCamera
|
||||
showemote $0, $0, 15
|
||||
showemote EMOTE_SHOCK, $0, 15
|
||||
playmusic MUSIC_ROCKET_ENCOUNTER
|
||||
moveperson $2, $13, $2
|
||||
appear $2
|
||||
@ -34,7 +34,7 @@ SecurityCamera1a:
|
||||
scall TrainerCameraGrunt1
|
||||
if_equal $1, NoSecurityCamera
|
||||
scall PlaySecurityCameraSounds
|
||||
showemote $0, $0, 15
|
||||
showemote EMOTE_SHOCK, $0, 15
|
||||
playmusic MUSIC_ROCKET_ENCOUNTER
|
||||
moveperson $2, $13, $2
|
||||
appear $2
|
||||
@ -50,7 +50,7 @@ SecurityCamera1b:
|
||||
scall PlaySecurityCameraSounds
|
||||
checkevent EVENT_6DA
|
||||
iftrue NoSecurityCamera
|
||||
showemote $0, $0, 15
|
||||
showemote EMOTE_SHOCK, $0, 15
|
||||
playmusic MUSIC_ROCKET_ENCOUNTER
|
||||
moveperson $2, $13, $3
|
||||
appear $2
|
||||
@ -59,7 +59,7 @@ SecurityCamera1b:
|
||||
scall TrainerCameraGrunt1
|
||||
if_equal $1, NoSecurityCamera
|
||||
scall PlaySecurityCameraSounds
|
||||
showemote $0, $0, 15
|
||||
showemote EMOTE_SHOCK, $0, 15
|
||||
playmusic MUSIC_ROCKET_ENCOUNTER
|
||||
moveperson $2, $13, $3
|
||||
appear $2
|
||||
@ -75,7 +75,7 @@ SecurityCamera2a:
|
||||
scall PlaySecurityCameraSounds
|
||||
checkevent EVENT_6DA
|
||||
iftrue NoSecurityCamera
|
||||
showemote $0, $0, 15
|
||||
showemote EMOTE_SHOCK, $0, 15
|
||||
playmusic MUSIC_ROCKET_ENCOUNTER
|
||||
moveperson $2, $4, $7
|
||||
appear $2
|
||||
@ -84,7 +84,7 @@ SecurityCamera2a:
|
||||
scall TrainerCameraGrunt1
|
||||
if_equal $1, NoSecurityCamera
|
||||
scall PlaySecurityCameraSounds
|
||||
showemote $0, $0, 15
|
||||
showemote EMOTE_SHOCK, $0, 15
|
||||
playmusic MUSIC_ROCKET_ENCOUNTER
|
||||
spriteface $0, RIGHT
|
||||
moveperson $2, $c, $5
|
||||
@ -101,7 +101,7 @@ SecurityCamera2b:
|
||||
scall PlaySecurityCameraSounds
|
||||
checkevent EVENT_6DA
|
||||
iftrue NoSecurityCamera
|
||||
showemote $0, $0, 15
|
||||
showemote EMOTE_SHOCK, $0, 15
|
||||
playmusic MUSIC_ROCKET_ENCOUNTER
|
||||
moveperson $2, $4, $8
|
||||
appear $2
|
||||
@ -110,7 +110,7 @@ SecurityCamera2b:
|
||||
scall TrainerCameraGrunt1
|
||||
if_equal $1, NoSecurityCamera
|
||||
scall PlaySecurityCameraSounds
|
||||
showemote $0, $0, 15
|
||||
showemote EMOTE_SHOCK, $0, 15
|
||||
playmusic MUSIC_ROCKET_ENCOUNTER
|
||||
spriteface $0, RIGHT
|
||||
moveperson $2, $c, $5
|
||||
@ -127,7 +127,7 @@ SecurityCamera3a:
|
||||
scall PlaySecurityCameraSounds
|
||||
checkevent EVENT_6DA
|
||||
iftrue NoSecurityCamera
|
||||
showemote $0, $0, 15
|
||||
showemote EMOTE_SHOCK, $0, 15
|
||||
playmusic MUSIC_ROCKET_ENCOUNTER
|
||||
moveperson $2, $13, $6
|
||||
appear $2
|
||||
@ -136,7 +136,7 @@ SecurityCamera3a:
|
||||
scall TrainerCameraGrunt1
|
||||
if_equal $1, NoSecurityCamera
|
||||
scall PlaySecurityCameraSounds
|
||||
showemote $0, $0, 15
|
||||
showemote EMOTE_SHOCK, $0, 15
|
||||
playmusic MUSIC_ROCKET_ENCOUNTER
|
||||
spriteface $0, RIGHT
|
||||
moveperson $2, $19, $b
|
||||
@ -153,7 +153,7 @@ SecurityCamera3b:
|
||||
scall PlaySecurityCameraSounds
|
||||
checkevent EVENT_6DA
|
||||
iftrue NoSecurityCamera
|
||||
showemote $0, $0, 15
|
||||
showemote EMOTE_SHOCK, $0, 15
|
||||
playmusic MUSIC_ROCKET_ENCOUNTER
|
||||
moveperson $2, $13, $7
|
||||
appear $2
|
||||
@ -162,7 +162,7 @@ SecurityCamera3b:
|
||||
scall TrainerCameraGrunt1
|
||||
if_equal $1, NoSecurityCamera
|
||||
scall PlaySecurityCameraSounds
|
||||
showemote $0, $0, 15
|
||||
showemote EMOTE_SHOCK, $0, 15
|
||||
playmusic MUSIC_ROCKET_ENCOUNTER
|
||||
spriteface $0, RIGHT
|
||||
moveperson $2, $19, $c
|
||||
@ -179,7 +179,7 @@ SecurityCamera4:
|
||||
scall PlaySecurityCameraSounds
|
||||
checkevent EVENT_6DA
|
||||
iftrue NoSecurityCamera
|
||||
showemote $0, $0, 15
|
||||
showemote EMOTE_SHOCK, $0, 15
|
||||
playmusic MUSIC_ROCKET_ENCOUNTER
|
||||
moveperson $2, $11, $10
|
||||
appear $2
|
||||
@ -188,7 +188,7 @@ SecurityCamera4:
|
||||
scall TrainerCameraGrunt1
|
||||
if_equal $1, NoSecurityCamera
|
||||
scall PlaySecurityCameraSounds
|
||||
showemote $0, $0, 15
|
||||
showemote EMOTE_SHOCK, $0, 15
|
||||
playmusic MUSIC_ROCKET_ENCOUNTER
|
||||
spriteface $0, RIGHT
|
||||
moveperson $2, $19, $b
|
||||
@ -205,7 +205,7 @@ SecurityCamera5:
|
||||
scall PlaySecurityCameraSounds
|
||||
checkevent EVENT_6DA
|
||||
iftrue NoSecurityCamera
|
||||
showemote $0, $0, 15
|
||||
showemote EMOTE_SHOCK, $0, 15
|
||||
playmusic MUSIC_ROCKET_ENCOUNTER
|
||||
moveperson $2, $3, $10
|
||||
appear $2
|
||||
@ -214,7 +214,7 @@ SecurityCamera5:
|
||||
scall TrainerCameraGrunt1
|
||||
if_equal $1, NoSecurityCamera
|
||||
scall PlaySecurityCameraSounds
|
||||
showemote $0, $0, 15
|
||||
showemote EMOTE_SHOCK, $0, 15
|
||||
playmusic MUSIC_ROCKET_ENCOUNTER
|
||||
spriteface $0, RIGHT
|
||||
moveperson $2, $e, $10
|
||||
|
@ -53,7 +53,7 @@ UnknownScript_0x6cfac:
|
||||
closetext
|
||||
loadmovesprites
|
||||
spriteface $0, DOWN
|
||||
showemote $0, $0, 15
|
||||
showemote EMOTE_SHOCK, $0, 15
|
||||
applymovement $0, MovementData_0x6d21f
|
||||
playmusic MUSIC_ROCKET_ENCOUNTER
|
||||
applymovement $3, MovementData_0x6d224
|
||||
@ -156,7 +156,7 @@ UnknownScript_0x6d091:
|
||||
closetext
|
||||
loadmovesprites
|
||||
special Function8c084
|
||||
special Function1060a2
|
||||
special Mobile_HealParty
|
||||
playsound SFX_FULL_HEAL
|
||||
special HealParty
|
||||
special Function8c079
|
||||
|
@ -54,7 +54,7 @@ LanceScript_0x6dffc:
|
||||
|
||||
UnknownScript_0x6e019:
|
||||
spriteface $0, LEFT
|
||||
showemote $0, $0, 15
|
||||
showemote EMOTE_SHOCK, $0, 15
|
||||
special Functionc48f
|
||||
appear $a
|
||||
applymovement $a, MovementData_0x6e164
|
||||
@ -83,7 +83,7 @@ UnknownScript_0x6e052:
|
||||
applymovement $0, MovementData_0x6e13a
|
||||
UnknownScript_0x6e056:
|
||||
pause 30
|
||||
showemote $0, $3, 15
|
||||
showemote EMOTE_SHOCK, $3, 15
|
||||
playmusic MUSIC_ROCKET_ENCOUNTER
|
||||
spriteface $3, DOWN
|
||||
loadfont
|
||||
|
@ -79,7 +79,7 @@ TeacherScript_0x7ca7d:
|
||||
|
||||
UnknownScript_0x7ca80:
|
||||
spriteface $0, RIGHT
|
||||
showemote $0, $0, 15
|
||||
showemote EMOTE_SHOCK, $0, 15
|
||||
special Functionc48f
|
||||
pause 15
|
||||
playsound SFX_EXIT_BUILDING
|
||||
@ -98,7 +98,7 @@ UnknownScript_0x7ca80:
|
||||
|
||||
UnknownScript_0x7caaa:
|
||||
spriteface $0, RIGHT
|
||||
showemote $0, $0, 15
|
||||
showemote EMOTE_SHOCK, $0, 15
|
||||
special Functionc48f
|
||||
pause 15
|
||||
playsound SFX_EXIT_BUILDING
|
||||
|
@ -18,7 +18,7 @@ UnknownScript_0x74491:
|
||||
UnknownScript_0x74492:
|
||||
moveperson $2, $12, $b
|
||||
spriteface $0, DOWN
|
||||
showemote $0, $0, 15
|
||||
showemote EMOTE_SHOCK, $0, 15
|
||||
special Functionc48f
|
||||
pause 15
|
||||
appear $2
|
||||
@ -32,7 +32,7 @@ UnknownScript_0x74492:
|
||||
|
||||
UnknownScript_0x744b5:
|
||||
spriteface $0, DOWN
|
||||
showemote $0, $0, 15
|
||||
showemote EMOTE_SHOCK, $0, 15
|
||||
special Functionc48f
|
||||
pause 15
|
||||
appear $2
|
||||
|
@ -52,7 +52,7 @@ SageScript_0x985a0:
|
||||
UnknownScript_0x985a3:
|
||||
spriteface $4, UP
|
||||
spriteface $0, DOWN
|
||||
showemote $0, $4, 20
|
||||
showemote EMOTE_SHOCK, $4, 20
|
||||
follow $0, $4
|
||||
applymovement $0, MovementData_0x98622
|
||||
stopfollow
|
||||
@ -140,7 +140,7 @@ SageKojiScript:
|
||||
checkevent EVENT_KOJI_ALLOWS_YOU_PASSAGE_TO_TIN_TOWER
|
||||
iftrue UnknownScript_0x9861b
|
||||
pause 10
|
||||
showemote $0, $7, 20
|
||||
showemote EMOTE_SHOCK, $7, 20
|
||||
loadfont
|
||||
writetext UnknownText_0x98c6c
|
||||
keeptextopen
|
||||
|
@ -326,7 +326,7 @@ Function100232: ; 100232
|
||||
push de
|
||||
callba Function106464
|
||||
call Function3f20
|
||||
call Function1ad2
|
||||
call DrawOnMap
|
||||
hlcoord 1, 2
|
||||
pop de
|
||||
call PlaceString
|
||||
@ -796,7 +796,7 @@ Function1004f4: ; 1004f4
|
||||
Function100504: ; 100504
|
||||
push de
|
||||
call Function3f20
|
||||
call Function1ad2
|
||||
call DrawOnMap
|
||||
pop de
|
||||
hlcoord 4, 2
|
||||
call PlaceString
|
||||
@ -829,7 +829,7 @@ Jumptable_10052a: ; 10052a
|
||||
|
||||
Function100534: ; 100534
|
||||
call Function100513
|
||||
call Function1ad2
|
||||
call DrawOnMap
|
||||
call Function321c
|
||||
ld a, [wcd28]
|
||||
inc a
|
||||
@ -1828,7 +1828,7 @@ Function100b7a: ; 100b7a
|
||||
rst FarCall
|
||||
callba Function24085
|
||||
callba MobileTextBorder
|
||||
call Function1ad2
|
||||
call DrawOnMap
|
||||
call Function321c
|
||||
callba Function2411a
|
||||
ld hl, wcfa5
|
||||
@ -2078,11 +2078,11 @@ Function100d22: ; 100d22
|
||||
|
||||
Function100d67: ; 100d67
|
||||
ld hl, MenuDataHeader_100d88
|
||||
call Function1d3c
|
||||
call CopyMenuDataHeader
|
||||
xor a
|
||||
ld [hBGMapMode], a
|
||||
call Function1cbb
|
||||
call Function1ad2
|
||||
call DrawOnMap
|
||||
call Function1c89
|
||||
call WaitBGMap
|
||||
call Function1c66
|
||||
@ -2809,7 +2809,7 @@ Jumptable_101247: ; 101247
|
||||
; 101251
|
||||
|
||||
Function101251: ; 101251
|
||||
call Function1ad2
|
||||
call DrawOnMap
|
||||
call ResetWindow
|
||||
ld hl, UnknownText_0x1021f4
|
||||
call Function1021e0
|
||||
@ -2826,7 +2826,7 @@ Function101265: ; 101265
|
||||
; 10126c
|
||||
|
||||
Function10126c: ; 10126c
|
||||
call Function1ad2
|
||||
call DrawOnMap
|
||||
callba Script_reloadmappart
|
||||
ld hl, UnknownText_0x1021f4
|
||||
call Function1021e0
|
||||
@ -3015,7 +3015,7 @@ Function1013aa: ; 1013aa
|
||||
call Function1d7d
|
||||
call Function2bae
|
||||
callba Function106464
|
||||
call Function1ad2
|
||||
call DrawOnMap
|
||||
call Function2b5c
|
||||
ret
|
||||
; 1013c0
|
||||
@ -4171,7 +4171,7 @@ Function101b70: ; 101b70
|
||||
call Function101ee4
|
||||
ld hl, wcd29
|
||||
set 5, [hl]
|
||||
call Function1ad2
|
||||
call DrawOnMap
|
||||
ld a, [wcd25]
|
||||
inc a
|
||||
ld [wcd25], a
|
||||
@ -7316,7 +7316,7 @@ Function103309: ; 103309
|
||||
ld a, [hl]
|
||||
ld [wd1ee], a
|
||||
call Function1034be
|
||||
call Function1ad2
|
||||
call DrawOnMap
|
||||
callba Function104000
|
||||
ld a, $1
|
||||
ld [wd1f0], a
|
||||
@ -7685,8 +7685,8 @@ Function103612: ; 103612
|
||||
ld [wcf88], a
|
||||
|
||||
.asm_103622
|
||||
call Function1d81
|
||||
call Function1c17
|
||||
call InterpretMenu2
|
||||
call WriteBackup
|
||||
jr c, .asm_10363b
|
||||
ld a, [wcfa9]
|
||||
ld [ScriptVar], a
|
||||
@ -7773,7 +7773,7 @@ Function10366e: ; 10366e
|
||||
jr c, .asm_1036f4
|
||||
ld hl, MenuDataHeader_103747
|
||||
call LoadMenuDataHeader
|
||||
call Function1d81
|
||||
call InterpretMenu2
|
||||
call Function1c07
|
||||
jr c, .asm_1036f4
|
||||
ld a, [wcfa9]
|
||||
|
@ -5919,7 +5919,7 @@ Function11636e: ; 11636e
|
||||
call ByteFill
|
||||
ld a, $90
|
||||
ld [hWY], a
|
||||
call Function1ad2
|
||||
call DrawOnMap
|
||||
pop af
|
||||
ld [rSVBK], a
|
||||
callba Function104061
|
||||
@ -5962,7 +5962,7 @@ Function1163c0: ; 1163c0
|
||||
call DelayFrame
|
||||
ld a, $90
|
||||
ld [hWY], a
|
||||
call Function1ad2
|
||||
call DrawOnMap
|
||||
callba Function14157
|
||||
pop af
|
||||
ld [rSVBK], a
|
||||
@ -9861,7 +9861,7 @@ Function118982:
|
||||
push af
|
||||
ld a, $1
|
||||
ld [rSVBK], a
|
||||
call Function1c17
|
||||
call WriteBackup
|
||||
pop af
|
||||
ld [rSVBK], a
|
||||
ld a, [wcd38]
|
||||
@ -9885,7 +9885,7 @@ Function118982:
|
||||
push af
|
||||
ld a, $1
|
||||
ld [rSVBK], a
|
||||
call Function1c17
|
||||
call WriteBackup
|
||||
pop af
|
||||
ld [rSVBK], a
|
||||
ld a, $7
|
||||
@ -13714,7 +13714,7 @@ Function11a5b9: ; 11a5b9
|
||||
ld c, $12
|
||||
call Function3eea
|
||||
callba Function104061
|
||||
call Function1ad2
|
||||
call DrawOnMap
|
||||
ld c, $0
|
||||
callba Function115e18
|
||||
ld a, $1
|
||||
@ -14130,7 +14130,7 @@ Function11a9ce: ; 11a9ce
|
||||
callba Function106464
|
||||
call Functiond90
|
||||
callba Function2b5c
|
||||
call Function1ad2
|
||||
call DrawOnMap
|
||||
ret
|
||||
; 11a9f0
|
||||
|
||||
@ -16469,7 +16469,7 @@ Unknown_11bb7d:
|
||||
|
||||
SECTION "bank47", ROMX, BANK[$47]
|
||||
|
||||
Function11c000:: ; 11c000
|
||||
StoreText:: ; 11c000
|
||||
ld a, [rSVBK]
|
||||
push af
|
||||
ld a, $3
|
||||
@ -22777,7 +22777,7 @@ Function17024d: ; 17024d
|
||||
ld [wcfc0], a
|
||||
xor a
|
||||
ld [InLinkBattle], a
|
||||
callba Function1060a2
|
||||
callba Mobile_HealParty
|
||||
callba HealParty
|
||||
call Function1702b7
|
||||
call Function170bf7
|
||||
|
@ -442,12 +442,12 @@ Function17d224: ; 17d224
|
||||
.asm_17d23c
|
||||
call LoadMenuDataHeader
|
||||
call Function17d246
|
||||
call Function1c17
|
||||
call WriteBackup
|
||||
ret
|
||||
; 17d246
|
||||
|
||||
Function17d246: ; 17d246
|
||||
call Function1d81
|
||||
call InterpretMenu2
|
||||
jr c, .asm_17d264
|
||||
ld a, [ScriptVar]
|
||||
cp $5
|
||||
@ -1909,13 +1909,13 @@ Function17dc1f: ; 17dc1f
|
||||
ld [wc70f], a
|
||||
ld hl, wc708
|
||||
call LoadMenuDataHeader
|
||||
call Function1d81
|
||||
call InterpretMenu2
|
||||
jr nc, .asm_17dc6e
|
||||
ld a, $2
|
||||
ld [wcfa9], a
|
||||
|
||||
.asm_17dc6e
|
||||
call Function1c17
|
||||
call WriteBackup
|
||||
pop af
|
||||
ld [rSVBK], a
|
||||
ld a, [wcfa9]
|
||||
@ -2701,7 +2701,7 @@ Function17e133: ; 17e133
|
||||
ld a, [hli]
|
||||
ld [ScriptVar], a
|
||||
push hl
|
||||
callba Function4a843
|
||||
callba MobileCheckOwnMonAnywhere
|
||||
pop hl
|
||||
jr c, .asm_17e159
|
||||
inc hl
|
||||
|
@ -230,7 +230,7 @@ MartSignText:
|
||||
para "#MON MART"
|
||||
done
|
||||
|
||||
UnknownText_0x1b05bf: ; 0x1b05bf
|
||||
ContestResults_ReadyToJudgeText: ; 0x1b05bf
|
||||
text "We will now judge"
|
||||
line "the #MON you've"
|
||||
cont "caught."
|
||||
@ -246,7 +246,7 @@ UnknownText_0x1b05bf: ; 0x1b05bf
|
||||
done
|
||||
; 0x1b0621
|
||||
|
||||
UnknownText_0x1b0621: ; 0x1b0621
|
||||
ContestResults_PlayerWonAPrizeText: ; 0x1b0621
|
||||
text "<PLAYER>, the No.@"
|
||||
text_from_ram StringBuffer3
|
||||
text ""
|
||||
@ -257,7 +257,7 @@ UnknownText_0x1b0621: ; 0x1b0621
|
||||
done
|
||||
; 0x1b0648
|
||||
|
||||
UnknownText_0x1b0648: ; 0x1b0648
|
||||
ReceivedItemText: ; 0x1b0648
|
||||
text "<PLAYER> received"
|
||||
line "@"
|
||||
text_from_ram StringBuffer4
|
||||
@ -265,26 +265,26 @@ UnknownText_0x1b0648: ; 0x1b0648
|
||||
done
|
||||
; 0x1b065b
|
||||
|
||||
UnknownText_0x1b065b: ; 0x1b065b
|
||||
ContestResults_JoinUsNextTimeText: ; 0x1b065b
|
||||
text "Please join us for"
|
||||
line "the next Contest!"
|
||||
done
|
||||
; 0x1b0681
|
||||
|
||||
UnknownText_0x1b0681: ; 0x1b0681
|
||||
ContestResults_ConsolationPrizeText: ; 0x1b0681
|
||||
text "Everyone else gets"
|
||||
line "a BERRY as a con-"
|
||||
cont "solation prize!"
|
||||
done
|
||||
; 0x1b06b7
|
||||
|
||||
UnknownText_0x1b06b7: ; 0x1b06b7
|
||||
ContestResults_DidNotWinText: ; 0x1b06b7
|
||||
text "We hope you do"
|
||||
line "better next time."
|
||||
done
|
||||
; 0x1b06d9
|
||||
|
||||
UnknownText_0x1b06d9: ; 0x1b06d9
|
||||
ContestResults_ReturnPartyText: ; 0x1b06d9
|
||||
text "We'll return the"
|
||||
line "#MON we kept"
|
||||
|
||||
@ -293,7 +293,7 @@ UnknownText_0x1b06d9: ; 0x1b06d9
|
||||
done
|
||||
; 0x1b070d
|
||||
|
||||
UnknownText_0x1b070d: ; 0x1b070d
|
||||
ContestResults_PartyFullText: ; 0x1b070d
|
||||
text "Your party's full,"
|
||||
line "so the #MON was"
|
||||
|
||||
@ -302,14 +302,14 @@ UnknownText_0x1b070d: ; 0x1b070d
|
||||
done
|
||||
; 0x1b074e
|
||||
|
||||
UnknownText_0x1b074e: ; 0x1b074e
|
||||
GymStatue_CityGymText: ; 0x1b074e
|
||||
text_from_ram StringBuffer3
|
||||
text ""
|
||||
line "#MON GYM"
|
||||
done
|
||||
; 0x1b075c
|
||||
|
||||
UnknownText_0x1b075c: ; 0x1b075c
|
||||
GymStatue_WinningTrainersText: ; 0x1b075c
|
||||
text "LEADER: @"
|
||||
text_from_ram StringBuffer4
|
||||
text ""
|
||||
@ -318,13 +318,13 @@ UnknownText_0x1b075c: ; 0x1b075c
|
||||
done
|
||||
; 0x1b077f
|
||||
|
||||
UnknownText_0x1b077f: ; 0x1b077f
|
||||
CoinVendor_WelcomeText: ; 0x1b077f
|
||||
text "Welcome to the"
|
||||
line "GAME CORNER."
|
||||
done
|
||||
; 0x1b079c
|
||||
|
||||
UnknownText_0x1b079c: ; 0x1b079c
|
||||
CoinVendor_NoCoinCaseText: ; 0x1b079c
|
||||
text "Do you need game"
|
||||
line "coins?"
|
||||
|
||||
@ -334,7 +334,7 @@ UnknownText_0x1b079c: ; 0x1b079c
|
||||
done
|
||||
; 0x1b07e3
|
||||
|
||||
UnknownText_0x1b07e3: ; 0x1b07e3
|
||||
CoinVendor_IntroText: ; 0x1b07e3
|
||||
text "Do you need some"
|
||||
line "game coins?"
|
||||
|
||||
@ -344,31 +344,31 @@ UnknownText_0x1b07e3: ; 0x1b07e3
|
||||
done
|
||||
; 0x1b0830
|
||||
|
||||
UnknownText_0x1b0830: ; 0x1b0830
|
||||
CoinVendor_Buy50CoinsText: ; 0x1b0830
|
||||
text "Thank you!"
|
||||
line "Here are 50 coins."
|
||||
done
|
||||
; 0x1b084f
|
||||
|
||||
UnknownText_0x1b084f: ; 0x1b084f
|
||||
CoinVendor_Buy500CoinsText: ; 0x1b084f
|
||||
text "Thank you! Here"
|
||||
line "are 500 coins."
|
||||
done
|
||||
; 0x1b086f
|
||||
|
||||
UnknownText_0x1b086f: ; 0x1b086f
|
||||
CoinVendor_NotEnoughMoneyText: ; 0x1b086f
|
||||
text "You don't have"
|
||||
line "enough money."
|
||||
done
|
||||
; 0x1b088c
|
||||
|
||||
UnknownText_0x1b088c: ; 0x1b088c
|
||||
CoinVendor_CoinCaseFullText: ; 0x1b088c
|
||||
text "Whoops! Your COIN"
|
||||
line "CASE is full."
|
||||
done
|
||||
; 0x1b08ad
|
||||
|
||||
UnknownText_0x1b08ad: ; 0x1b08ad
|
||||
CoinVendor_CancelText: ; 0x1b08ad
|
||||
text "No coins for you?"
|
||||
line "Come again!"
|
||||
done
|
||||
|
@ -1139,7 +1139,7 @@ UnknownText_0x1c10dd: ; 1c10dd
|
||||
prompt
|
||||
; 1c10fa
|
||||
|
||||
UnknownText_0x1c10fa: ; 1c10fa
|
||||
ContestJudging_FirstPlaceText: ; 1c10fa
|
||||
text "This Bug-Catching"
|
||||
line "Contest winner is@"
|
||||
interpret_data
|
||||
@ -1154,7 +1154,7 @@ UnknownText_0x1c10fa: ; 1c10fa
|
||||
db "@"
|
||||
; 1c113f
|
||||
|
||||
UnknownText_0x1c113f: ; 1c113f
|
||||
ContestJudging_FirstPlaceScoreText: ; 1c113f
|
||||
text ""
|
||||
para "The winning score"
|
||||
line "was @"
|
||||
@ -1163,7 +1163,7 @@ UnknownText_0x1c113f: ; 1c113f
|
||||
prompt
|
||||
; 1c1166
|
||||
|
||||
UnknownText_0x1c1166: ; 1c1166
|
||||
ContestJudging_SecondPlaceText: ; 1c1166
|
||||
text "Placing second was"
|
||||
line "@"
|
||||
text_from_ram wd016
|
||||
@ -1175,7 +1175,7 @@ UnknownText_0x1c1166: ; 1c1166
|
||||
db "@"
|
||||
; 1c1196
|
||||
|
||||
UnknownText_0x1c1196: ; 1c1196
|
||||
ContestJudging_SecondPlaceScoreText: ; 1c1196
|
||||
text ""
|
||||
para "The score was"
|
||||
line "@"
|
||||
@ -1184,7 +1184,7 @@ UnknownText_0x1c1196: ; 1c1196
|
||||
prompt
|
||||
; 1c11b5
|
||||
|
||||
UnknownText_0x1c11b5: ; 1c11b5
|
||||
ContestJudging_ThirdPlaceText: ; 1c11b5
|
||||
text "Placing third was"
|
||||
line "@"
|
||||
text_from_ram wd016
|
||||
@ -1196,7 +1196,7 @@ UnknownText_0x1c11b5: ; 1c11b5
|
||||
db "@"
|
||||
; 1c11e4
|
||||
|
||||
UnknownText_0x1c11e4: ; 1c11e4
|
||||
ContestJudging_ThirdPlaceScoreText: ; 1c11e4
|
||||
text ""
|
||||
para "The score was"
|
||||
line "@"
|
||||
|
34
wram.asm
34
wram.asm
@ -1320,10 +1320,15 @@ SECTION "WRAM 1", WRAMX, BANK [1]
|
||||
wd000:: ds 1
|
||||
wd001:: ds 1
|
||||
wd002::
|
||||
PhoneScriptBank::
|
||||
DefaultFlypoint:: ; d002
|
||||
ds 1
|
||||
wd003:: ds 1
|
||||
wd004:: ds 1
|
||||
wd003::
|
||||
PhoneCallerLo::
|
||||
ds 1
|
||||
wd004::
|
||||
PhoneCallerHi::
|
||||
ds 1
|
||||
wd005::
|
||||
StartFlypoint:: ; d005
|
||||
ds 1
|
||||
@ -1952,7 +1957,6 @@ wd4cf:: ds 1
|
||||
wd4d0:: ds 1
|
||||
wd4d1:: ds 5
|
||||
|
||||
|
||||
ObjectStructs::
|
||||
|
||||
PlayerStruct:: ; d4d6
|
||||
@ -2002,29 +2006,29 @@ PlayerSpriteY:: ; d4ee
|
||||
ds 15
|
||||
|
||||
ObjectStruct1:: ; d4fe
|
||||
ds 40
|
||||
ds OBJECT_STRUCT_LENGTH
|
||||
ObjectStruct2:: ; d526
|
||||
ds 40
|
||||
ds OBJECT_STRUCT_LENGTH
|
||||
ObjectStruct3:: ; d54e
|
||||
ds 40
|
||||
ds OBJECT_STRUCT_LENGTH
|
||||
ObjectStruct4:: ; d576
|
||||
ds 40
|
||||
ds OBJECT_STRUCT_LENGTH
|
||||
ObjectStruct5:: ; d59e
|
||||
ds 40
|
||||
ds OBJECT_STRUCT_LENGTH
|
||||
ObjectStruct6:: ; d5c6
|
||||
ds 40
|
||||
ds OBJECT_STRUCT_LENGTH
|
||||
ObjectStruct7:: ; d5ee
|
||||
ds 40
|
||||
ds OBJECT_STRUCT_LENGTH
|
||||
ObjectStruct8:: ; d616
|
||||
ds 40
|
||||
ds OBJECT_STRUCT_LENGTH
|
||||
ObjectStruct9:: ; d63e
|
||||
ds 40
|
||||
ds OBJECT_STRUCT_LENGTH
|
||||
ObjectStruct10:: ; d666
|
||||
ds 40
|
||||
ds OBJECT_STRUCT_LENGTH
|
||||
ObjectStruct11:: ; d68e
|
||||
ds 40
|
||||
ds OBJECT_STRUCT_LENGTH
|
||||
ObjectStruct12:: ; d6b6
|
||||
ds 40
|
||||
ds OBJECT_STRUCT_LENGTH
|
||||
; d6de
|
||||
|
||||
wd6de::
|
||||
|
Loading…
x
Reference in New Issue
Block a user