pokered/scripts/PokemonFanClub.asm

174 lines
2.6 KiB
NASM
Raw Normal View History

PokemonFanClub_Script:
2014-05-18 18:19:10 +00:00
jp EnableAutoTextBoxDrawing
FanClubBikeInBag:
; check if any bike paraphernalia in bag
2015-07-21 01:32:02 +00:00
CheckEvent EVENT_GOT_BIKE_VOUCHER
2014-05-18 18:19:10 +00:00
ret nz
ld b, BICYCLE
call IsItemInBag
ret nz
ld b, BIKE_VOUCHER
jp IsItemInBag
PokemonFanClub_TextPointers:
2014-05-18 18:19:10 +00:00
dw FanClubText1
dw FanClubText2
dw FanClubText3
dw FanClubText4
dw FanClubText5
dw FanClubText6
dw FanClubText7
dw FanClubText8
FanClubText1:
; pikachu fan
text_asm
2015-07-21 17:36:03 +00:00
CheckEvent EVENT_PIKACHU_FAN_BOAST
2014-05-18 18:19:10 +00:00
jr nz, .mineisbetter
ld hl, .normaltext
call PrintText
2015-07-21 17:36:03 +00:00
SetEvent EVENT_SEEL_FAN_BOAST
2014-05-18 18:19:10 +00:00
jr .done
.mineisbetter
ld hl, .bettertext
call PrintText
2015-07-21 17:36:03 +00:00
ResetEvent EVENT_PIKACHU_FAN_BOAST
2014-05-18 18:19:10 +00:00
.done
jp TextScriptEnd
.normaltext
text_far PikachuFanText
text_end
2014-05-18 18:19:10 +00:00
.bettertext
text_far PikachuFanBetterText
text_end
2014-05-18 18:19:10 +00:00
FanClubText2:
; seel fan
text_asm
2015-07-21 17:36:03 +00:00
CheckEvent EVENT_SEEL_FAN_BOAST
2014-05-18 18:19:10 +00:00
jr nz, .mineisbetter
ld hl, .normaltext
call PrintText
2015-07-21 17:36:03 +00:00
SetEvent EVENT_PIKACHU_FAN_BOAST
2014-05-18 18:19:10 +00:00
jr .done
.mineisbetter
ld hl, .bettertext
call PrintText
2015-07-21 17:36:03 +00:00
ResetEvent EVENT_SEEL_FAN_BOAST
2014-05-18 18:19:10 +00:00
.done
jp TextScriptEnd
.normaltext
text_far SeelFanText
text_end
2014-05-18 18:19:10 +00:00
.bettertext
text_far SeelFanBetterText
text_end
2014-05-18 18:19:10 +00:00
FanClubText3:
; pikachu
text_asm
2014-05-18 18:19:10 +00:00
ld hl, .text
call PrintText
ld a, PIKACHU
call PlayCry
call WaitForSoundToFinish
jp TextScriptEnd
.text
text_far FanClubPikachuText
text_end
2014-05-18 18:19:10 +00:00
FanClubText4:
; seel
text_asm
2014-05-18 18:19:10 +00:00
ld hl, .text
call PrintText
ld a, SEEL
call PlayCry
call WaitForSoundToFinish
jp TextScriptEnd
.text
text_far FanClubSeelText
text_end
2014-05-18 18:19:10 +00:00
FanClubText5:
; chair
text_asm
2014-05-18 18:19:10 +00:00
call FanClubBikeInBag
jr nz, .nothingleft
ld hl, .meetchairtext
call PrintText
call YesNoChoice
ld a, [wCurrentMenuItem]
2014-05-18 18:19:10 +00:00
and a
jr nz, .nothanks
; tell the story
ld hl, .storytext
call PrintText
2015-08-05 21:20:29 +00:00
lb bc, BIKE_VOUCHER, 1
2014-05-18 18:19:10 +00:00
call GiveItem
jr nc, .BagFull
ld hl, .receivedvouchertext
call PrintText
2015-07-21 01:32:02 +00:00
SetEvent EVENT_GOT_BIKE_VOUCHER
2014-05-18 18:19:10 +00:00
jr .done
.BagFull
ld hl, .bagfulltext
call PrintText
jr .done
.nothanks
ld hl, .nostorytext
call PrintText
jr .done
.nothingleft
ld hl, .finaltext
call PrintText
.done
jp TextScriptEnd
.meetchairtext
text_far FanClubMeetChairText
text_end
2014-05-18 18:19:10 +00:00
.storytext
text_far FanClubChairStoryText
text_end
2014-05-18 18:19:10 +00:00
.receivedvouchertext
text_far ReceivedBikeVoucherText
sound_get_key_item
text_far ExplainBikeVoucherText
text_end
2014-05-18 18:19:10 +00:00
.nostorytext
text_far FanClubNoStoryText
text_end
2014-05-18 18:19:10 +00:00
.finaltext
text_far FanClubChairFinalText
text_end
2014-05-18 18:19:10 +00:00
.bagfulltext
text_far FanClubBagFullText
text_end
2014-05-18 18:19:10 +00:00
2016-06-12 00:24:04 +00:00
FanClubText6:
text_far _FanClubText6
text_end
2014-05-18 18:19:10 +00:00
2016-06-12 00:24:04 +00:00
FanClubText7:
text_far _FanClubText7
text_end
2014-05-18 18:19:10 +00:00
2016-06-12 00:24:04 +00:00
FanClubText8:
text_far _FanClubText8
text_end