pokered/scripts/redshouse1f.asm

70 lines
1.1 KiB
NASM
Raw Normal View History

2016-06-12 00:24:04 +00:00
RedsHouse1FScript:
2014-05-18 18:19:10 +00:00
jp EnableAutoTextBoxDrawing
2016-06-12 00:24:04 +00:00
RedsHouse1FTextPointers:
2014-05-18 18:19:10 +00:00
dw RedsHouse1FText1
dw RedsHouse1FText2
2016-06-12 06:42:19 +00:00
RedsHouse1FText1: ; Mom
2015-07-04 03:49:20 +00:00
TX_ASM
ld a, [wd72e]
2014-05-18 18:19:10 +00:00
bit 3, a
jr nz, .heal ; if player has received a Pokémon from Oak, heal team
ld hl, MomWakeUpText
call PrintText
jr .done
.heal
call MomHealPokemon
.done
jp TextScriptEnd
2016-06-12 00:24:04 +00:00
MomWakeUpText:
2014-05-18 18:19:10 +00:00
TX_FAR _MomWakeUpText
db "@"
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:
2014-05-18 18:19:10 +00:00
TX_FAR _MomHealText1
db "@"
2016-06-12 00:24:04 +00:00
MomHealText2:
2014-05-18 18:19:10 +00:00
TX_FAR _MomHealText2
db "@"
RedsHouse1FText2: ; TV
2015-07-04 03:49:20 +00:00
TX_ASM
ld a,[wSpriteStateData1 + 9]
cp SPRITE_FACING_UP
2014-05-18 18:19:10 +00:00
ld hl,TVWrongSideText
jr nz,.notUp
2014-05-18 18:19:10 +00:00
ld hl,StandByMeText
.notUp
2014-05-18 18:19:10 +00:00
call PrintText
jp TextScriptEnd
2016-06-12 00:24:04 +00:00
StandByMeText:
2014-05-18 18:19:10 +00:00
TX_FAR _StandByMeText
db "@"
2016-06-12 00:24:04 +00:00
TVWrongSideText:
2014-05-18 18:19:10 +00:00
TX_FAR _TVWrongSideText
db "@"