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:
text_asm
2015-07-21 17:36:03 +00:00
CheckEvent EVENT_GOT_HM01
jr nz, .got_item
2014-05-18 18:19:10 +00:00
ld hl, SSAnne7RubText
call PrintText
ld hl, ReceivingHM01Text
call PrintText
2020-07-06 02:52:27 +00:00
lb bc, HM_CUT, 1
2014-05-18 18:19:10 +00:00
call GiveItem
jr nc, .bag_full
2014-05-18 18:19:10 +00:00
ld hl, ReceivedHM01Text
call PrintText
2015-07-21 17:36:03 +00:00
SetEvent EVENT_GOT_HM01
jr .done
.bag_full
2014-05-18 18:19:10 +00:00
ld hl, HM01NoRoomText
call PrintText
ld hl, wd72d
2014-05-18 18:19:10 +00:00
set 5, [hl]
jr .done
.got_item
2014-05-18 18:19:10 +00:00
ld hl, SSAnne7Text_61932
call PrintText
.done
2014-05-18 18:19:10 +00:00
jp TextScriptEnd
2016-06-12 00:24:04 +00:00
SSAnne7RubText:
text_far _SSAnne7RubText
text_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
ld a, SFX_STOP_ALL_MUSIC
2015-08-09 05:32:44 +00:00
ld [wNewSoundID], a
2014-05-18 18:19:10 +00:00
call PlaySound
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:
text_far _ReceivingHM01Text
text_end
2014-05-18 18:19:10 +00:00
2016-06-12 00:24:04 +00:00
ReceivedHM01Text:
text_far _ReceivedHM01Text
sound_get_key_item
text_end
2014-05-18 18:19:10 +00:00
2016-06-12 00:24:04 +00:00
SSAnne7Text_61932:
text_far _SSAnne7Text_61932
text_end
2014-05-18 18:19:10 +00:00
2016-06-12 00:24:04 +00:00
HM01NoRoomText:
text_far _HM01NoRoomText
text_end
2014-05-18 18:19:10 +00:00
2016-06-12 00:24:04 +00:00
SSAnne7Text2:
text_far _SSAnne7Text2
text_end
2014-05-18 18:19:10 +00:00
2016-06-12 00:24:04 +00:00
SSAnne7Text3:
text_far _SSAnne7Text3
text_end