kep-hack/scripts/CeladonUniversityInside.asm
May Evans a85c26b7d3 LOTS of things
- Replaces the Old Rod with the Candy Sack, an item to evolve Meltan into Melmetal. Meltan and Melmetal aren't in yet.
- Improves Gym Leader and Elite Four AI by a lot. They still use items, they're just better. Fixes XSpecial use while we're at it; before, it didn't actually increase the stat...
- The Scarlet Book now takes up both shelves, one section for each Paradox Pokemon. I also moved the bookshelf so it looks nicer.
- Text in Celadon University has been reduced significantly, taking up less memory and being a bit more RBY-like. It has also been made more accurate (thanks to Daiginjo for translating my booklet!)
- The Magikarp researcher in Celadon University now gives TM Dragon Rage (no longer unused!)
- Added a guard for Mt. Moon Crater.
- Removed TrainerNamePointers, Blank Leader Name Code, and Dakutens/Hakutens using a guide published by YakiNeen.
- PP no longer uses a shitty graphic and is instead properly implemented into the font, optimising the status screen. Also displays in-battle which is kinda cool.
- Lorelei, Bruno, and Agatha now play the Gym Leader theme, not just Lance.

Still unsure how to fix Celadon University's trainers, all I know is a lot of the information should be taken from the Oak fight I did. The code is radically different and doesn't call trainer headers at all. You'll likely want to start from scratch.

The Mt. Moon Crater Guard's text is a little wonky, not sure what's up there. May have been from the way I accessed Mt. Moon in testing. Anyway, if you want to mess around feel free.
2023-02-19 06:25:33 +00:00

115 lines
2.1 KiB
NASM

CeladonUniversityInside_Script:
jp EnableAutoTextBoxDrawing
CeladonUniversityInside_TextPointers:
dw CeladonUniversityInsideText1
dw CeladonUniversityTrader
dw CeladonUniversityInsideText2
dw CeladonUniversityInsideText3
dw CeladonUniversityInsideText4
dw CeladonUniversityInsideBookcaseText1
dw CeladonUniversityInsideBookcaseText2
dw CeladonUniversityInsideBookcaseText3
dw SlowbroCry
dw CeladonUniversityInsideText5
dw CeladonUniversityPCScreen
CeladonUniversityInsideText1:
text_far _CeladonUniversityInsideText1
text_end
CeladonUniversityTrader:
text_asm
ld a, TRADE_WITH_SELF
ld [wWhichTrade], a
predef DoInGameTradeDialogue
jp TextScriptEnd
CeladonUniversityInsideText2:
text_far _CeladonUniversityInsideText2
text_end
CeladonUniversityInsideText3:
text_far _CeladonUniversityInsideText3
text_end
CeladonUniversityInsideText4:
text_asm
CheckEvent EVENT_GOT_TM23
jr nz, .got_item
ld hl, KHRP
call PrintText
lb bc, TM_DRAGON_RAGE, 1
call GiveItem
jr nc, .bag_full
ld hl, ReceivedTM23Text
call PrintText
SetEvent EVENT_GOT_TM23
jr .done
.bag_full
ld hl, TM23NoRoomText
call PrintText
jr .done
.got_item
ld hl, TM23ExplanationText
call PrintText
.done
jp TextScriptEnd
text_end
CeladonUniversityInsideBookcaseText1:
text_far _BookcaseText1
text_end
CeladonUniversityInsideBookcaseText2:
text_far _BookcaseText2
text_end
CeladonUniversityInsideBookcaseText3:
text_far _BookcaseText3
text_end
SlowbroCry:
text_far _SlowbroCry
text_asm
ld a, SLOWBRO
call PlayCry
call WaitForSoundToFinish
jp TextScriptEnd
CeladonUniversityInsideMagikarpText:
text_far _CeladonUniversityInsideMagikarpText
text_end
CeladonUniversityInsideText5:
text_asm
ld hl, CeladonUniversityInsideMagikarpText
call PrintText
ld a, MAGIKARP
call DisplayPokedex
jp TextScriptEnd
CeladonUniversityPCScreen:
text_far _ComputerScreen
text_end
KHRP:
text_far _KHRP
text_end
ReceivedTM23Text:
text_far _ReceivedTM23Text
sound_get_item_1
text_end
TM23ExplanationText:
text_far _TM23ExplanationText
text_end
TM23NoRoomText:
text_far _TM23NoRoomText
text_end
text_end ; unused