Path: blob/master/engine/events/hidden_objects/bills_house_pc.asm
1271 views
BillsHousePC:1call EnableAutoTextBoxDrawing2ld a, [wSpritePlayerStateData1FacingDirection]3cp SPRITE_FACING_UP4ret nz5CheckEvent EVENT_LEFT_BILLS_HOUSE_AFTER_HELPING6jr nz, .displayBillsHousePokemonList7CheckEventReuseA EVENT_USED_CELL_SEPARATOR_ON_BILL8jr nz, .displayBillsHouseMonitorText9CheckEventReuseA EVENT_BILL_SAID_USE_CELL_SEPARATOR10jr nz, .doCellSeparator11.displayBillsHouseMonitorText12tx_pre_jump BillsHouseMonitorText13.doCellSeparator14ld a, $115ld [wDoNotWaitForButtonPressAfterDisplayingText], a16tx_pre BillsHouseInitiatedText17ld c, 3218call DelayFrames19ld a, SFX_TINK20call PlaySound21call WaitForSoundToFinish22ld c, 8023call DelayFrames24ld a, SFX_SHRINK25call PlaySound26call WaitForSoundToFinish27ld c, 4828call DelayFrames29ld a, SFX_TINK30call PlaySound31call WaitForSoundToFinish32ld c, 3233call DelayFrames34ld a, SFX_GET_ITEM_135call PlaySound36call WaitForSoundToFinish37call PlayDefaultMusic38SetEvent EVENT_USED_CELL_SEPARATOR_ON_BILL39ret40.displayBillsHousePokemonList41ld a, $142ld [wDoNotWaitForButtonPressAfterDisplayingText], a43tx_pre BillsHousePokemonList44ret4546BillsHouseMonitorText::47text_far _BillsHouseMonitorText48text_end4950BillsHouseInitiatedText::51text_far _BillsHouseInitiatedText52text_promptbutton53text_asm54ld a, SFX_STOP_ALL_MUSIC55ld [wNewSoundID], a56call PlaySound57ld c, 1658call DelayFrames59ld a, SFX_SWITCH60call PlaySound61call WaitForSoundToFinish62ld c, 6063call DelayFrames64jp TextScriptEnd6566BillsHousePokemonList::67text_asm68call SaveScreenTilesToBuffer169ld hl, BillsHousePokemonListText170call PrintText71xor a72ld [wMenuItemOffset], a ; not used73ld [wCurrentMenuItem], a74ld [wLastMenuItem], a75ld a, PAD_A | PAD_B76ld [wMenuWatchedKeys], a77ld a, 478ld [wMaxMenuItem], a79ld a, 280ld [wTopMenuItemY], a81ld a, 182ld [wTopMenuItemX], a83.billsPokemonLoop84ld hl, wStatusFlags585set BIT_NO_TEXT_DELAY, [hl]86hlcoord 0, 087ld b, 1088ld c, 989call TextBoxBorder90hlcoord 2, 291ld de, BillsMonListText92call PlaceString93ld hl, BillsHousePokemonListText294call PrintText95call SaveScreenTilesToBuffer296call HandleMenuInput97bit B_PAD_B, a98jr nz, .cancel99ld a, [wCurrentMenuItem]100add EEVEE101cp EEVEE102jr z, .displayPokedex103cp FLAREON104jr z, .displayPokedex105cp JOLTEON106jr z, .displayPokedex107cp VAPOREON108jr z, .displayPokedex109jr .cancel110.displayPokedex111call DisplayPokedex112call LoadScreenTilesFromBuffer2113jr .billsPokemonLoop114.cancel115ld hl, wStatusFlags5116res BIT_NO_TEXT_DELAY, [hl]117call LoadScreenTilesFromBuffer2118jp TextScriptEnd119120BillsHousePokemonListText1:121text_far _BillsHousePokemonListText1122text_end123124BillsMonListText:125db "EEVEE"126next "FLAREON"127next "JOLTEON"128next "VAPOREON"129next "CANCEL@"130131BillsHousePokemonListText2:132text_far _BillsHousePokemonListText2133text_end134135136