diff options
author | U-Fish-PC\Daniel <corrnondacqb@yahoo.com> | 2014-05-18 14:19:10 -0400 |
---|---|---|
committer | U-Fish-PC\Daniel <corrnondacqb@yahoo.com> | 2014-05-18 14:19:10 -0400 |
commit | 24c01b09bb2b617812bd826d1cf9ab5e3ec6a023 (patch) | |
tree | 07d2ed81b23de081f2003d9f8d50170344dd5ada /scripts/redshouse1f.asm | |
parent | 4e4e72d02a5a202daea3a73363d2a4c3ba34e724 (diff) |
Pull map scripts out of main.asm
Diffstat (limited to 'scripts/redshouse1f.asm')
-rwxr-xr-x | scripts/redshouse1f.asm | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/scripts/redshouse1f.asm b/scripts/redshouse1f.asm new file mode 100755 index 00000000..b787669e --- /dev/null +++ b/scripts/redshouse1f.asm @@ -0,0 +1,69 @@ +RedsHouse1FScript: ; 48168 (12:4168) + jp EnableAutoTextBoxDrawing + +RedsHouse1FTextPointers: ; 4816b (12:416b) + dw RedsHouse1FText1 + dw RedsHouse1FText2 + +RedsHouse1FText1: ; 4816f (12:416f) ; 416F Mom + db 8 + ld a, [$D72E] + 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: ; 48185 (12:4185) + TX_FAR _MomWakeUpText + db "@" + +MomHealPokemon: ; 4818a (12:418a) + ld hl, MomHealText1 + call PrintText + call GBFadeOut2 + call ReloadMapData + PREDEF HealPartyPredef + ld a, MUSIC_PKMN_HEALED + ld [$C0EE], a + call PlaySound ; play sound? +.next + ld a, [$C026] + cp MUSIC_PKMN_HEALED + jr z, .next + ld a, [$D35B] + ld [$C0EE], a + call PlaySound + call GBFadeIn2 + ld hl, MomHealText2 + jp PrintText + +MomHealText1: ; 481bc (12:41bc) + TX_FAR _MomHealText1 + db "@" +MomHealText2: ; 481c1 (12:41c1) + TX_FAR _MomHealText2 + db "@" + +RedsHouse1FText2: ; 0x481c6 TV + db 8 + ld a,[$C109] + cp 4 + ld hl,TVWrongSideText + jr nz,.done ; if player is not facing up + ld hl,StandByMeText +.done + call PrintText + jp TextScriptEnd + +StandByMeText: ; 481da (12:41da) + TX_FAR _StandByMeText + db "@" + +TVWrongSideText: ; 481df (12:41df) + TX_FAR _TVWrongSideText + db "@" |