ref: 07dd7056372288de7bb5b64f9416d741adb3b499
dir: /scripts/pewterpokecenter.asm/
PewterPokecenterScript: ; 5c587 (17:4587) call Serial_TryEstablishingExternallyClockedConnection 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) TX_ASM ld a, $1 ld [wDoNotWaitForButtonPressAfterDisplayingText], a ld hl, PewterPokecenterText5 call PrintText ld a, $ff call PlaySound ld c, 32 call DelayFrames ld hl, JigglypuffFacingDirections ld de, wTrainerFacingDirection ld bc, $0004 call CopyData ld a, [wSpriteStateData1 + $32] ld hl, wTrainerFacingDirection .asm_5c5c3 cp [hl] inc hl jr nz, .asm_5c5c3 dec hl push hl ld c, BANK(Music_JigglypuffSong) ld a, MUSIC_JIGGLYPUFF_SONG call PlayMusic pop hl .asm_5c5d1 ld a, [hl] ld [wSpriteStateData1 + $32], a push hl ld hl, wTrainerFacingDirection ld de, wTrainerEngageDistance ld bc, $0004 call CopyData ld a, [wTrainerEngageDistance] ld [wcd42], a pop hl ld c, 24 call DelayFrames ld a, [wc026] ld b, a ld a, [wc027] or b jr nz, .asm_5c5d1 ld c, 48 call DelayFrames call PlayDefaultMusic jp TextScriptEnd PewterPokecenterText5: ; 5c603 (17:4603) TX_FAR _PewterPokecenterText5 db "@" JigglypuffFacingDirections: ; 5c608 (17:4608) db $30 | SPRITE_FACING_DOWN db $30 | SPRITE_FACING_LEFT db $30 | SPRITE_FACING_UP db $30 | SPRITE_FACING_RIGHT PewterPokecenterText4: ; 5c60c (17:460c) db $f6