pokered/scripts/RedsHouse1F.asm

71 lines
1.4 KiB
NASM
Raw Normal View History

RedsHouse1F_Script:
2014-05-18 18:19:10 +00:00
jp EnableAutoTextBoxDrawing
RedsHouse1F_TextPointers:
def_text_pointers
dw_const RedsHouse1FMomText, TEXT_REDSHOUSE1F_MOM
dw_const RedsHouse1FTVText, TEXT_REDSHOUSE1F_TV
2014-05-18 18:19:10 +00:00
RedsHouse1FMomText:
text_asm
ld a, [wd72e]
bit 3, a ; received a Pokémon from Oak?
jr nz, .heal
ld hl, .WakeUpText
2014-05-18 18:19:10 +00:00
call PrintText
jr .done
.heal
call RedsHouse1FMomHealScript
2014-05-18 18:19:10 +00:00
.done
jp TextScriptEnd
.WakeUpText:
text_far _RedsHouse1FMomWakeUpText
text_end
2014-05-18 18:19:10 +00:00
RedsHouse1FMomHealScript:
ld hl, RedsHouse1FMomYouShouldRestText
2014-05-18 18:19:10 +00:00
call PrintText
2014-09-13 07:50:56 +00:00
call GBFadeOutToWhite
2014-05-18 18:19:10 +00:00
call ReloadMapData
2014-06-16 20:25:46 +00:00
predef HealParty
2014-05-18 18:19:10 +00:00
ld a, MUSIC_PKMN_HEALED
2015-08-09 05:32:44 +00:00
ld [wNewSoundID], a
call PlaySound
2014-05-18 18:19:10 +00:00
.next
2015-08-09 05:32:44 +00:00
ld a, [wChannelSoundIDs]
2014-05-18 18:19:10 +00:00
cp MUSIC_PKMN_HEALED
jr z, .next
2015-08-09 05:32:44 +00:00
ld a, [wMapMusicSoundID]
ld [wNewSoundID], a
2014-05-18 18:19:10 +00:00
call PlaySound
2014-09-13 07:50:56 +00:00
call GBFadeInFromWhite
ld hl, RedsHouse1FMomLookingGreatText
2014-05-18 18:19:10 +00:00
jp PrintText
RedsHouse1FMomYouShouldRestText:
text_far _RedsHouse1FMomYouShouldRestText
text_end
RedsHouse1FMomLookingGreatText:
text_far _RedsHouse1FMomLookingGreatText
text_end
2014-05-18 18:19:10 +00:00
RedsHouse1FTVText:
text_asm
ld a, [wSpritePlayerStateData1FacingDirection]
cp SPRITE_FACING_UP
ld hl, .WrongSideText
jr nz, .got_text
ld hl, .StandByMeMovieText
.got_text
2014-05-18 18:19:10 +00:00
call PrintText
jp TextScriptEnd
.StandByMeMovieText:
text_far _RedsHouse1FTVStandByMeMovieText
text_end
2014-05-18 18:19:10 +00:00
.WrongSideText:
text_far _RedsHouse1FTVWrongSideText
text_end