2019-01-01 20:06:23 +00:00
|
|
|
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
|
2014-05-26 21:04:56 +00:00
|
|
|
ld hl, wd72d
|
2014-05-18 18:19:10 +00:00
|
|
|
set 5, [hl]
|
|
|
|
ret
|
|
|
|
|
2019-01-01 20:06:23 +00:00
|
|
|
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:
|
2020-07-04 21:09:35 +00:00
|
|
|
text_asm
|
2015-07-21 17:36:03 +00:00
|
|
|
CheckEvent EVENT_GOT_HM01
|
2020-07-16 15:19:05 +00:00
|
|
|
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
|
2020-07-16 15:19:05 +00:00
|
|
|
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
|
2020-07-16 15:19:05 +00:00
|
|
|
jr .done
|
|
|
|
.bag_full
|
2014-05-18 18:19:10 +00:00
|
|
|
ld hl, HM01NoRoomText
|
|
|
|
call PrintText
|
2014-05-26 21:04:56 +00:00
|
|
|
ld hl, wd72d
|
2014-05-18 18:19:10 +00:00
|
|
|
set 5, [hl]
|
2020-07-16 15:19:05 +00:00
|
|
|
jr .done
|
|
|
|
.got_item
|
2014-05-18 18:19:10 +00:00
|
|
|
ld hl, SSAnne7Text_61932
|
|
|
|
call PrintText
|
2020-07-16 15:19:05 +00:00
|
|
|
.done
|
2014-05-18 18:19:10 +00:00
|
|
|
jp TextScriptEnd
|
|
|
|
|
2016-06-12 00:24:04 +00:00
|
|
|
SSAnne7RubText:
|
2020-07-04 21:09:35 +00:00
|
|
|
text_far _SSAnne7RubText
|
|
|
|
text_asm
|
2015-08-09 05:32:44 +00:00
|
|
|
ld a, [wAudioROMBank]
|
2015-07-22 15:22:46 +00:00
|
|
|
cp BANK(Audio3_UpdateMusic)
|
2015-08-09 05:32:44 +00:00
|
|
|
ld [wAudioSavedROMBank], a
|
2015-07-03 19:38:12 +00:00
|
|
|
jr nz, .asm_61908
|
2020-07-03 20:37:47 +00:00
|
|
|
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
|
2020-07-04 02:11:35 +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
|
2015-07-03 19:38:12 +00:00
|
|
|
jr z, .asm_61910
|
2014-09-10 03:55:19 +00:00
|
|
|
call PlayDefaultMusic
|
2015-07-21 17:36:03 +00:00
|
|
|
SetEvent EVENT_RUBBED_CAPTAINS_BACK
|
2014-05-26 21:04:56 +00:00
|
|
|
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:
|
2020-07-04 21:09:35 +00:00
|
|
|
text_far _ReceivingHM01Text
|
|
|
|
text_end
|
2014-05-18 18:19:10 +00:00
|
|
|
|
2016-06-12 00:24:04 +00:00
|
|
|
ReceivedHM01Text:
|
2020-07-04 21:09:35 +00:00
|
|
|
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:
|
2020-07-04 21:09:35 +00:00
|
|
|
text_far _SSAnne7Text_61932
|
|
|
|
text_end
|
2014-05-18 18:19:10 +00:00
|
|
|
|
2016-06-12 00:24:04 +00:00
|
|
|
HM01NoRoomText:
|
2020-07-04 21:09:35 +00:00
|
|
|
text_far _HM01NoRoomText
|
|
|
|
text_end
|
2014-05-18 18:19:10 +00:00
|
|
|
|
2016-06-12 00:24:04 +00:00
|
|
|
SSAnne7Text2:
|
2020-07-04 21:09:35 +00:00
|
|
|
text_far _SSAnne7Text2
|
|
|
|
text_end
|
2014-05-18 18:19:10 +00:00
|
|
|
|
2016-06-12 00:24:04 +00:00
|
|
|
SSAnne7Text3:
|
2020-07-04 21:09:35 +00:00
|
|
|
text_far _SSAnne7Text3
|
|
|
|
text_end
|