aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/VermilionCity_2.asm
diff options
context:
space:
mode:
authordannye <33dannye@gmail.com>2023-11-20 00:33:27 -0600
committerdannye <33dannye@gmail.com>2023-11-20 20:23:27 -0600
commit298e99d3776580585c3f434e5d93137ae431bdd3 (patch)
treea808c4ffd0fd0f9bd28972bae5236e0d3345c8e5 /scripts/VermilionCity_2.asm
parentAdd sound bits documentation for wOptions (#110) (diff)
parentName 2 unnamed labels I missed in SeafoamIslandsB4F and PokemonMansion3F (#437) (diff)
downloadpokeyellow-298e99d3776580585c3f434e5d93137ae431bdd3.tar.gz
pokeyellow-298e99d3776580585c3f434e5d93137ae431bdd3.tar.xz
pokeyellow-298e99d3776580585c3f434e5d93137ae431bdd3.zip
Merge branch 'master' of https://github.com/pret/pokered
Diffstat (limited to 'scripts/VermilionCity_2.asm')
-rw-r--r--scripts/VermilionCity_2.asm111
1 files changed, 111 insertions, 0 deletions
diff --git a/scripts/VermilionCity_2.asm b/scripts/VermilionCity_2.asm
new file mode 100644
index 00000000..52721a55
--- /dev/null
+++ b/scripts/VermilionCity_2.asm
@@ -0,0 +1,111 @@
+VermilionCityPrintOfficerJennyText::
+ CheckEvent EVENT_GOT_SQUIRTLE_FROM_OFFICER_JENNY
+ jr nz, .asm_f1a69
+ ld a, [wBeatGymFlags]
+ bit 2, a ; THUNDERBADGE
+ jr nz, .asm_f1a24
+ ld hl, OfficerJennyText1
+ call PrintText
+ ret
+
+.asm_f1a24
+ ld hl, OfficerJennyText2
+ call PrintText
+ call YesNoChoice
+ ld a, [wCurrentMenuItem]
+ and a
+ jr nz, .asm_f1a62
+ ld a, SQUIRTLE
+ ld [wd11e], a
+ ld [wcf91], a
+ call GetMonName
+ ld a, $1
+ ld [wDoNotWaitForButtonPressAfterDisplayingText], a
+ lb bc, SQUIRTLE, 10
+ call GivePokemon
+ ret nc
+ ld a, [wAddedToParty]
+ and a
+ call z, WaitForTextScrollButtonPress
+ ld a, $1
+ ld [wDoNotWaitForButtonPressAfterDisplayingText], a
+ ld hl, OfficerJennyText3
+ call PrintText
+ SetEvent EVENT_GOT_SQUIRTLE_FROM_OFFICER_JENNY
+ ret
+
+.asm_f1a62
+ ld hl, OfficerJennyText4
+ call PrintText
+ ret
+
+.asm_f1a69
+ ld hl, OfficerJennyText5
+ call PrintText
+ ret
+
+OfficerJennyText1:
+ text_far _OfficerJennyText1
+ text_end
+
+OfficerJennyText2:
+ text_far _OfficerJennyText2
+ text_end
+
+OfficerJennyText3:
+ text_far _OfficerJennyText3
+ text_waitbutton
+ text_end
+
+OfficerJennyText4:
+ text_far _OfficerJennyText4
+ text_end
+
+OfficerJennyText5:
+ text_far _OfficerJennyText5
+ text_end
+
+VermilionCityPrintSignText::
+ ld hl, .text
+ call PrintText
+ ret
+
+.text
+ text_far _VermilionCitySignText
+ text_end
+
+VermilionCityPrintNoticeSignText::
+ ld hl, .text
+ call PrintText
+ ret
+
+.text
+ text_far _VermilionCityNoticeSignText
+ text_end
+
+VermilionCityPrintPokemonFanClubSignText::
+ ld hl, .text
+ call PrintText
+ ret
+
+.text
+ text_far _VermilionCityPokemonFanClubSignText
+ text_end
+
+VermilionCityPrintGymSignText::
+ ld hl, .text
+ call PrintText
+ ret
+
+.text
+ text_far _VermilionCityGymSignText
+ text_end
+
+VermilionCityPrintHarborSignText::
+ ld hl, .text
+ call PrintText
+ ret
+
+.text
+ text_far _VermilionCityHarborSignText
+ text_end