2013-02-05 13:48:46 -08:00
|
|
|
; Currently, must be in the same bank as the sound engine.
|
|
|
|
|
2014-02-01 17:26:39 -08:00
|
|
|
PlayTrainerEncounterMusic:: ; e900a
|
2013-02-05 13:48:46 -08:00
|
|
|
; input: e = trainer type
|
|
|
|
; turn fade off
|
|
|
|
xor a
|
|
|
|
ld [MusicFade], a
|
|
|
|
; play nothing for one frame
|
|
|
|
push de
|
2015-11-02 11:37:02 -08:00
|
|
|
ld de, 0 ; id: Music_Nothing
|
2013-10-08 10:21:15 -07:00
|
|
|
call PlayMusic
|
2013-02-05 13:48:46 -08:00
|
|
|
call DelayFrame
|
|
|
|
; play new song
|
|
|
|
call MaxVolume
|
|
|
|
pop de
|
|
|
|
ld d, $00
|
|
|
|
ld hl, TrainerEncounterMusic
|
|
|
|
add hl, de
|
|
|
|
ld e, [hl]
|
2013-10-08 10:21:15 -07:00
|
|
|
call PlayMusic
|
2013-02-05 13:48:46 -08:00
|
|
|
ret
|
|
|
|
; e9027
|
|
|
|
|
|
|
|
TrainerEncounterMusic: ; e9027
|
|
|
|
db MUSIC_HIKER_ENCOUNTER
|
|
|
|
db MUSIC_YOUNGSTER_ENCOUNTER ; falkner
|
|
|
|
db MUSIC_LASS_ENCOUNTER ; whitney
|
|
|
|
db MUSIC_YOUNGSTER_ENCOUNTER ; bugsy
|
|
|
|
db MUSIC_OFFICER_ENCOUNTER ; morty
|
|
|
|
db MUSIC_OFFICER_ENCOUNTER ; pryce
|
|
|
|
db MUSIC_LASS_ENCOUNTER ; jasmine
|
|
|
|
db MUSIC_OFFICER_ENCOUNTER ; chuck
|
|
|
|
db MUSIC_BEAUTY_ENCOUNTER ; clair
|
|
|
|
db MUSIC_RIVAL_ENCOUNTER ; rival1
|
|
|
|
db MUSIC_HIKER_ENCOUNTER ; pokemon_prof
|
|
|
|
db MUSIC_HIKER_ENCOUNTER ; will
|
|
|
|
db MUSIC_HIKER_ENCOUNTER ; cal
|
|
|
|
db MUSIC_OFFICER_ENCOUNTER ; bruno
|
|
|
|
db MUSIC_HIKER_ENCOUNTER ; karen
|
|
|
|
db MUSIC_HIKER_ENCOUNTER ; koga
|
|
|
|
db MUSIC_OFFICER_ENCOUNTER ; champion
|
|
|
|
db MUSIC_YOUNGSTER_ENCOUNTER ; brock
|
|
|
|
db MUSIC_LASS_ENCOUNTER ; misty
|
|
|
|
db MUSIC_OFFICER_ENCOUNTER ; lt_surge
|
|
|
|
db MUSIC_ROCKET_ENCOUNTER ; scientist
|
|
|
|
db MUSIC_OFFICER_ENCOUNTER ; erika
|
|
|
|
db MUSIC_YOUNGSTER_ENCOUNTER ; youngster
|
|
|
|
db MUSIC_YOUNGSTER_ENCOUNTER ; schoolboy
|
|
|
|
db MUSIC_YOUNGSTER_ENCOUNTER ; bird_keeper
|
|
|
|
db MUSIC_LASS_ENCOUNTER ; lass
|
|
|
|
db MUSIC_LASS_ENCOUNTER ; janine
|
|
|
|
db MUSIC_HIKER_ENCOUNTER ; cooltrainerm
|
|
|
|
db MUSIC_BEAUTY_ENCOUNTER ; cooltrainerf
|
|
|
|
db MUSIC_BEAUTY_ENCOUNTER ; beauty
|
|
|
|
db MUSIC_POKEMANIAC_ENCOUNTER ; pokemaniac
|
|
|
|
db MUSIC_ROCKET_ENCOUNTER ; gruntm
|
|
|
|
db MUSIC_HIKER_ENCOUNTER ; gentleman
|
|
|
|
db MUSIC_BEAUTY_ENCOUNTER ; skier
|
|
|
|
db MUSIC_BEAUTY_ENCOUNTER ; teacher
|
|
|
|
db MUSIC_BEAUTY_ENCOUNTER ; sabrina
|
|
|
|
db MUSIC_YOUNGSTER_ENCOUNTER ; bug_catcher
|
|
|
|
db MUSIC_HIKER_ENCOUNTER ; fisher
|
|
|
|
db MUSIC_HIKER_ENCOUNTER ; swimmerm
|
|
|
|
db MUSIC_BEAUTY_ENCOUNTER ; swimmerf
|
|
|
|
db MUSIC_HIKER_ENCOUNTER ; sailor
|
|
|
|
db MUSIC_POKEMANIAC_ENCOUNTER ; super_nerd
|
|
|
|
db MUSIC_RIVAL_ENCOUNTER ; rival2
|
|
|
|
db MUSIC_HIKER_ENCOUNTER ; guitarist
|
|
|
|
db MUSIC_HIKER_ENCOUNTER ; hiker
|
|
|
|
db MUSIC_HIKER_ENCOUNTER ; biker
|
|
|
|
db MUSIC_OFFICER_ENCOUNTER ; blaine
|
|
|
|
db MUSIC_POKEMANIAC_ENCOUNTER ; burglar
|
|
|
|
db MUSIC_HIKER_ENCOUNTER ; firebreather
|
|
|
|
db MUSIC_POKEMANIAC_ENCOUNTER ; juggler
|
|
|
|
db MUSIC_HIKER_ENCOUNTER ; blackbelt_t
|
|
|
|
db MUSIC_ROCKET_ENCOUNTER ; executivem
|
|
|
|
db MUSIC_YOUNGSTER_ENCOUNTER ; psychic_t
|
|
|
|
db MUSIC_LASS_ENCOUNTER ; picnicker
|
|
|
|
db MUSIC_YOUNGSTER_ENCOUNTER ; camper
|
|
|
|
db MUSIC_ROCKET_ENCOUNTER ; executivef
|
|
|
|
db MUSIC_SAGE_ENCOUNTER ; sage
|
|
|
|
db MUSIC_SAGE_ENCOUNTER ; medium
|
|
|
|
db MUSIC_HIKER_ENCOUNTER ; boarder
|
|
|
|
db MUSIC_HIKER_ENCOUNTER ; pokefanm
|
|
|
|
db MUSIC_KIMONO_ENCOUNTER ; kimono_girl
|
|
|
|
db MUSIC_LASS_ENCOUNTER ; twins
|
|
|
|
db MUSIC_BEAUTY_ENCOUNTER ; pokefanf
|
|
|
|
db MUSIC_HIKER_ENCOUNTER ; red
|
|
|
|
db MUSIC_RIVAL_ENCOUNTER ; blue
|
|
|
|
db MUSIC_HIKER_ENCOUNTER ; officer
|
|
|
|
db MUSIC_ROCKET_ENCOUNTER ; gruntf
|
|
|
|
db MUSIC_HIKER_ENCOUNTER ; mysticalman
|
|
|
|
db MUSIC_HIKER_ENCOUNTER
|
|
|
|
db MUSIC_HIKER_ENCOUNTER
|
|
|
|
db MUSIC_HIKER_ENCOUNTER
|
|
|
|
; e906e
|