mirror of
https://github.com/thornAvery/kep-hack.git
synced 2026-02-21 14:48:43 +13:00
Merge branch 'master' of https://github.com/pret/pokered
This commit is contained in:
commit
b1108ba91e
1427 changed files with 13219 additions and 8377 deletions
66
scripts/RedsHouse1F.asm
Executable file
66
scripts/RedsHouse1F.asm
Executable file
|
|
@ -0,0 +1,66 @@
|
|||
RedsHouse1F_Script:
|
||||
jp EnableAutoTextBoxDrawing
|
||||
|
||||
RedsHouse1F_TextPointers:
|
||||
dw RedsHouse1FText1
|
||||
dw RedsHouse1FText2
|
||||
|
||||
RedsHouse1FText1: ; Mom
|
||||
TX_ASM
|
||||
ld a, [wd72e]
|
||||
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
|
||||
|
||||
MomWakeUpText:
|
||||
TX_FAR _MomWakeUpText
|
||||
db "@"
|
||||
|
||||
MomHealPokemon:
|
||||
ld hl, MomHealText1
|
||||
call PrintText
|
||||
call GBFadeOutToWhite
|
||||
call ReloadMapData
|
||||
predef HealParty
|
||||
ld a, MUSIC_PKMN_HEALED
|
||||
ld [wNewSoundID], a
|
||||
call PlayMusic
|
||||
call WaitForSongToFinish
|
||||
ld a, [wMapMusicSoundID]
|
||||
ld [wNewSoundID], a
|
||||
call PlayMusic
|
||||
call GBFadeInFromWhite
|
||||
ld hl, MomHealText2
|
||||
jp PrintText
|
||||
|
||||
MomHealText1:
|
||||
TX_FAR _MomHealText1
|
||||
db "@"
|
||||
MomHealText2:
|
||||
TX_FAR _MomHealText2
|
||||
db "@"
|
||||
|
||||
RedsHouse1FText2: ; TV
|
||||
TX_ASM
|
||||
ld a, [wSpriteStateData1 + 9]
|
||||
cp SPRITE_FACING_UP
|
||||
ld hl, TVWrongSideText
|
||||
jr nz, .notUp
|
||||
ld hl, StandByMeText
|
||||
.notUp
|
||||
call PrintText
|
||||
jp TextScriptEnd
|
||||
|
||||
StandByMeText:
|
||||
TX_FAR _StandByMeText
|
||||
db "@"
|
||||
|
||||
TVWrongSideText:
|
||||
TX_FAR _TVWrongSideText
|
||||
db "@"
|
||||
Loading…
Add table
Add a link
Reference in a new issue