pokered/scripts/RedsHouse1F.asm

70 lines
1.1 KiB
NASM
Raw Normal View History

RedsHouse1F_Script:
2014-05-18 18:19:10 +00:00
jp EnableAutoTextBoxDrawing
RedsHouse1F_TextPointers:
dw RedsHouse1FMomText
dw RedsHouse1FTVText
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
2014-05-18 18:19:10 +00:00
ld hl, MomWakeUpText
call PrintText
jr .done
.heal
call MomHealPokemon
.done
jp TextScriptEnd
2016-06-12 00:24:04 +00:00
MomWakeUpText:
text_far _MomWakeUpText
text_end
2014-05-18 18:19:10 +00:00
2016-06-12 00:24:04 +00:00
MomHealPokemon:
2014-05-18 18:19:10 +00:00
ld hl, MomHealText1
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
2014-05-18 18:19:10 +00:00
ld hl, MomHealText2
jp PrintText
2016-06-12 00:24:04 +00:00
MomHealText1:
text_far _MomHealText1
text_end
2016-06-12 00:24:04 +00:00
MomHealText2:
text_far _MomHealText2
text_end
2014-05-18 18:19:10 +00:00
RedsHouse1FTVText:
text_asm
ld a, [wSpritePlayerStateData1FacingDirection]
cp SPRITE_FACING_UP
ld hl, TVWrongSideText
jr nz, .got_text
ld hl, StandByMeText
.got_text
2014-05-18 18:19:10 +00:00
call PrintText
jp TextScriptEnd
2016-06-12 00:24:04 +00:00
StandByMeText:
text_far _StandByMeText
text_end
2014-05-18 18:19:10 +00:00
2016-06-12 00:24:04 +00:00
TVWrongSideText:
text_far _TVWrongSideText
text_end