2014-05-18 18:19:10 +00:00
|
|
|
PewterPokecenterScript: ; 5c587 (17:4587)
|
2015-02-07 10:43:08 +00:00
|
|
|
call Serial_TryEstablishingExternallyClockedConnection
|
2014-05-18 18:19:10 +00:00
|
|
|
jp EnableAutoTextBoxDrawing
|
|
|
|
|
|
|
|
PewterPokecenterTextPointers: ; 5c58d (17:458d)
|
|
|
|
dw PewterPokecenterText1
|
|
|
|
dw PewterPokecenterText2
|
|
|
|
dw PewterPokecenterText3
|
|
|
|
dw PewterPokecenterText4
|
|
|
|
|
|
|
|
PewterPokecenterText1: ; 5c595 (17:4595)
|
|
|
|
db $ff
|
|
|
|
|
|
|
|
PewterPokecenterText2: ; 5c596 (17:4596)
|
|
|
|
TX_FAR _PewterPokecenterText1
|
|
|
|
db "@"
|
|
|
|
|
|
|
|
PewterPokecenterText3: ; 5c59b (17:459b)
|
2015-07-03 19:58:50 +00:00
|
|
|
TX_ASM
|
2014-05-18 18:19:10 +00:00
|
|
|
ld a, $1
|
2014-09-13 07:50:56 +00:00
|
|
|
ld [wDoNotWaitForButtonPressAfterDisplayingText], a
|
2014-05-18 18:19:10 +00:00
|
|
|
ld hl, PewterPokecenterText5
|
|
|
|
call PrintText
|
|
|
|
ld a, $ff
|
|
|
|
call PlaySound
|
2015-07-03 19:38:12 +00:00
|
|
|
ld c, 32
|
2014-05-18 18:19:10 +00:00
|
|
|
call DelayFrames
|
2015-06-12 16:00:48 +00:00
|
|
|
ld hl, JigglypuffFacingDirections
|
2014-05-26 21:04:56 +00:00
|
|
|
ld de, wTrainerFacingDirection
|
2014-05-18 18:19:10 +00:00
|
|
|
ld bc, $0004
|
|
|
|
call CopyData
|
2014-05-26 21:04:56 +00:00
|
|
|
ld a, [wSpriteStateData1 + $32]
|
|
|
|
ld hl, wTrainerFacingDirection
|
2014-05-18 18:19:10 +00:00
|
|
|
.asm_5c5c3
|
|
|
|
cp [hl]
|
|
|
|
inc hl
|
2015-07-03 19:38:12 +00:00
|
|
|
jr nz, .asm_5c5c3
|
2014-05-18 18:19:10 +00:00
|
|
|
dec hl
|
|
|
|
push hl
|
|
|
|
ld c, BANK(Music_JigglypuffSong)
|
|
|
|
ld a, MUSIC_JIGGLYPUFF_SONG
|
|
|
|
call PlayMusic
|
|
|
|
pop hl
|
|
|
|
.asm_5c5d1
|
|
|
|
ld a, [hl]
|
2014-05-26 21:04:56 +00:00
|
|
|
ld [wSpriteStateData1 + $32], a
|
2014-05-18 18:19:10 +00:00
|
|
|
push hl
|
2014-05-26 21:04:56 +00:00
|
|
|
ld hl, wTrainerFacingDirection
|
|
|
|
ld de, wTrainerEngageDistance
|
2014-05-18 18:19:10 +00:00
|
|
|
ld bc, $0004
|
|
|
|
call CopyData
|
2014-05-26 21:04:56 +00:00
|
|
|
ld a, [wTrainerEngageDistance]
|
|
|
|
ld [wcd42], a
|
2014-05-18 18:19:10 +00:00
|
|
|
pop hl
|
2015-07-03 19:38:12 +00:00
|
|
|
ld c, 24
|
2014-05-18 18:19:10 +00:00
|
|
|
call DelayFrames
|
2014-05-26 21:04:56 +00:00
|
|
|
ld a, [wc026]
|
2014-05-18 18:19:10 +00:00
|
|
|
ld b, a
|
2014-05-26 21:04:56 +00:00
|
|
|
ld a, [wc027]
|
2014-05-18 18:19:10 +00:00
|
|
|
or b
|
2015-07-03 19:38:12 +00:00
|
|
|
jr nz, .asm_5c5d1
|
|
|
|
ld c, 48
|
2014-05-18 18:19:10 +00:00
|
|
|
call DelayFrames
|
2014-09-10 03:55:19 +00:00
|
|
|
call PlayDefaultMusic
|
2014-05-18 18:19:10 +00:00
|
|
|
jp TextScriptEnd
|
|
|
|
|
|
|
|
PewterPokecenterText5: ; 5c603 (17:4603)
|
|
|
|
TX_FAR _PewterPokecenterText5
|
|
|
|
db "@"
|
|
|
|
|
2015-06-12 16:00:48 +00:00
|
|
|
JigglypuffFacingDirections: ; 5c608 (17:4608)
|
|
|
|
db $30 | SPRITE_FACING_DOWN
|
|
|
|
db $30 | SPRITE_FACING_LEFT
|
|
|
|
db $30 | SPRITE_FACING_UP
|
|
|
|
db $30 | SPRITE_FACING_RIGHT
|
2014-05-18 18:19:10 +00:00
|
|
|
|
|
|
|
PewterPokecenterText4: ; 5c60c (17:460c)
|
|
|
|
db $f6
|