pokered/scripts/SSAnneCaptainsRoom.asm

94 lines
1.5 KiB
NASM
Raw Normal View History

SSAnneCaptainsRoom_Script:
2014-05-18 18:19:10 +00:00
call SSAnne7Script_6189b
jp EnableAutoTextBoxDrawing
2016-06-12 00:24:04 +00:00
SSAnne7Script_6189b:
2015-07-21 17:36:03 +00:00
CheckEvent EVENT_RUBBED_CAPTAINS_BACK
2014-05-18 18:19:10 +00:00
ret nz
ld hl, wd72d
2014-05-18 18:19:10 +00:00
set 5, [hl]
ret
SSAnneCaptainsRoom_TextPointers:
2014-05-18 18:19:10 +00:00
dw SSAnne7Text1
dw SSAnne7Text2
dw SSAnne7Text3
2016-06-12 00:24:04 +00:00
SSAnne7Text1:
2015-07-03 19:58:50 +00:00
TX_ASM
2015-07-21 17:36:03 +00:00
CheckEvent EVENT_GOT_HM01
jr nz, .asm_797c4
2014-05-18 18:19:10 +00:00
ld hl, SSAnne7RubText
call PrintText
ld hl, ReceivingHM01Text
call PrintText
2015-08-05 21:20:29 +00:00
lb bc, HM_01, 1
2014-05-18 18:19:10 +00:00
call GiveItem
jr nc, .BagFull
ld hl, ReceivedHM01Text
call PrintText
2015-07-21 17:36:03 +00:00
SetEvent EVENT_GOT_HM01
jr .asm_0faf5
2014-05-18 18:19:10 +00:00
.BagFull
ld hl, HM01NoRoomText
call PrintText
ld hl, wd72d
2014-05-18 18:19:10 +00:00
set 5, [hl]
jr .asm_0faf5
.asm_797c4
2014-05-18 18:19:10 +00:00
ld hl, SSAnne7Text_61932
call PrintText
.asm_0faf5
2014-05-18 18:19:10 +00:00
jp TextScriptEnd
2016-06-12 00:24:04 +00:00
SSAnne7RubText:
2014-05-18 18:19:10 +00:00
TX_FAR _SSAnne7RubText
2015-07-03 19:58:50 +00:00
TX_ASM
2015-08-09 05:32:44 +00:00
ld a, [wAudioROMBank]
cp BANK(Audio3_UpdateMusic)
2015-08-09 05:32:44 +00:00
ld [wAudioSavedROMBank], a
jr nz, .asm_61908
2014-05-18 18:19:10 +00:00
ld a, $ff
2015-08-09 05:32:44 +00:00
ld [wNewSoundID], a
2014-05-18 18:19:10 +00:00
call PlaySound
2015-06-12 16:34:00 +00:00
ld a, Bank(Music_PkmnHealed)
2015-08-09 05:32:44 +00:00
ld [wAudioROMBank], a
2014-05-18 18:19:10 +00:00
.asm_61908
ld a, MUSIC_PKMN_HEALED
2015-08-09 05:32:44 +00:00
ld [wNewSoundID], a
2014-05-18 18:19:10 +00:00
call PlaySound
.asm_61910
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, .asm_61910
call PlayDefaultMusic
2015-07-21 17:36:03 +00:00
SetEvent EVENT_RUBBED_CAPTAINS_BACK
ld hl, wd72d
2014-05-18 18:19:10 +00:00
res 5, [hl]
jp TextScriptEnd
2016-06-12 00:24:04 +00:00
ReceivingHM01Text:
2014-05-18 18:19:10 +00:00
TX_FAR _ReceivingHM01Text
db "@"
2016-06-12 00:24:04 +00:00
ReceivedHM01Text:
2014-05-18 18:19:10 +00:00
TX_FAR _ReceivedHM01Text
2016-07-18 06:17:03 +00:00
TX_SFX_KEY_ITEM
db "@"
2014-05-18 18:19:10 +00:00
2016-06-12 00:24:04 +00:00
SSAnne7Text_61932:
2014-05-18 18:19:10 +00:00
TX_FAR _SSAnne7Text_61932
db "@"
2016-06-12 00:24:04 +00:00
HM01NoRoomText:
2014-05-18 18:19:10 +00:00
TX_FAR _HM01NoRoomText
db "@"
2016-06-12 00:24:04 +00:00
SSAnne7Text2:
2014-05-18 18:19:10 +00:00
TX_FAR _SSAnne7Text2
db "@"
2016-06-12 00:24:04 +00:00
SSAnne7Text3:
2014-05-18 18:19:10 +00:00
TX_FAR _SSAnne7Text3
db "@"