summaryrefslogtreecommitdiff
path: root/maps
diff options
context:
space:
mode:
Diffstat (limited to 'maps')
-rw-r--r--maps/AzaleaGym.asm2
-rw-r--r--maps/AzaleaTown.asm4
-rw-r--r--maps/BattleTower1F.asm2
-rw-r--r--maps/BattleTowerBattleRoom.asm2
-rw-r--r--maps/BillsHouse.asm20
-rw-r--r--maps/BlackthornCity.asm4
-rw-r--r--maps/BlackthornGym1F.asm4
-rw-r--r--maps/BluesHouse.asm2
-rw-r--r--maps/CeladonCafe.asm2
-rw-r--r--maps/CeladonDeptStore6F.asm2
-rw-r--r--maps/CeladonGameCorner.asm2
-rw-r--r--maps/CeladonGym.asm2
-rw-r--r--maps/CeladonMansion3F.asm4
-rw-r--r--maps/CeladonMansionRoofHouse.asm4
-rw-r--r--maps/CeladonPokeCenter1F.asm2
-rw-r--r--maps/CharcoalKiln.asm2
-rw-r--r--maps/CherrygroveCity.asm6
-rw-r--r--maps/CianwoodCity.asm6
-rw-r--r--maps/CianwoodGym.asm2
-rw-r--r--maps/CianwoodPharmacy.asm2
-rw-r--r--maps/CopycatsHouse2F.asm6
-rw-r--r--maps/DanceTheatre.asm4
-rw-r--r--maps/DarkCaveBlackthornEntrance.asm2
-rw-r--r--maps/DayCare.asm2
-rw-r--r--maps/DragonShrine.asm16
-rw-r--r--maps/DragonsDenB1F.asm6
-rw-r--r--maps/EcruteakGym.asm2
-rw-r--r--maps/EcruteakItemfinderHouse.asm2
-rw-r--r--maps/EcruteakPokeCenter1F.asm2
-rw-r--r--maps/ElmsLab.asm2848
-rw-r--r--maps/FastShipB1F.asm2
-rw-r--r--maps/FastShipCabins_SE_SSE_CaptainsCabin.asm6
-rw-r--r--maps/FuchsiaGym.asm2
-rw-r--r--maps/GoldenrodBikeShop.asm2
-rw-r--r--maps/GoldenrodBillsHouse.asm6
-rw-r--r--maps/GoldenrodCity.asm4
-rw-r--r--maps/GoldenrodDeptStore5F.asm6
-rw-r--r--maps/GoldenrodDeptStore6F.asm2
-rw-r--r--maps/GoldenrodFlowerShop.asm2
-rw-r--r--maps/GoldenrodGym.asm4
-rw-r--r--maps/GoldenrodHappinessRater.asm2
-rw-r--r--maps/IlexForest.asm6
-rw-r--r--maps/KrissHouse1F.asm14
-rw-r--r--maps/KurtsHouse.asm18
-rw-r--r--maps/LakeofRage.asm8
-rw-r--r--maps/LakeofRageHiddenPowerHouse.asm2
-rw-r--r--maps/LakeofRageMagikarpHouse.asm2
-rw-r--r--maps/LavRadioTower1F.asm2
-rw-r--r--maps/MahoganyGym.asm2
-rw-r--r--maps/ManiasHouse.asm2
-rw-r--r--maps/MountMortarB1F.asm2
-rw-r--r--maps/MrPokemonsHouse.asm8
-rw-r--r--maps/MrPsychicsHouse.asm2
-rw-r--r--maps/NationalPark.asm6
-rw-r--r--maps/OaksLab.asm8
-rw-r--r--maps/OlivineCafe.asm2
-rw-r--r--maps/OlivineGoodRodHouse.asm2
-rw-r--r--maps/OlivineGym.asm2
-rw-r--r--maps/OlivineLighthouse6F.asm8
-rw-r--r--maps/OlivinePort.asm4
-rw-r--r--maps/PewterCity.asm2
-rw-r--r--maps/PokeCenter2F.asm2
-rw-r--r--maps/PokemonFanClub.asm8
-rw-r--r--maps/PowerPlant.asm4
-rw-r--r--maps/RadioTower1F.asm18
-rw-r--r--maps/RadioTower2F.asm8
-rw-r--r--maps/RadioTower3F.asm2
-rw-r--r--maps/RadioTower4F.asm2
-rw-r--r--maps/RadioTower5F.asm4
-rw-r--r--maps/Route12SuperRodHouse.asm2
-rw-r--r--maps/Route24.asm2
-rw-r--r--maps/Route25.asm2
-rw-r--r--maps/Route26.asm4
-rw-r--r--maps/Route27.asm6
-rw-r--r--maps/Route27SandstormHouse.asm4
-rw-r--r--maps/Route28FamousSpeechHouse.asm2
-rw-r--r--maps/Route29.asm4
-rw-r--r--maps/Route2NuggetSpeechHouse.asm2
-rw-r--r--maps/Route30.asm2
-rw-r--r--maps/Route30BerrySpeechHouse.asm2
-rw-r--r--maps/Route31.asm6
-rw-r--r--maps/Route32.asm12
-rw-r--r--maps/Route32PokeCenter1F.asm2
-rw-r--r--maps/Route33.asm2
-rw-r--r--maps/Route34.asm6
-rw-r--r--maps/Route34IlexForestGate.asm4
-rw-r--r--maps/Route35.asm4
-rw-r--r--maps/Route35Goldenrodgate.asm4
-rw-r--r--maps/Route35NationalParkgate.asm6
-rw-r--r--maps/Route36.asm8
-rw-r--r--maps/Route36NationalParkgate.asm14
-rw-r--r--maps/Route37.asm6
-rw-r--r--maps/Route38.asm4
-rw-r--r--maps/Route39.asm2
-rw-r--r--maps/Route39Barn.asm10
-rw-r--r--maps/Route39Farmhouse.asm4
-rw-r--r--maps/Route40.asm4
-rw-r--r--maps/Route42.asm2
-rw-r--r--maps/Route43.asm4
-rw-r--r--maps/Route43Gate.asm10
-rw-r--r--maps/Route44.asm4
-rw-r--r--maps/Route45.asm2
-rw-r--r--maps/Route46.asm2
-rw-r--r--maps/Route5CleanseTagSpeechHouse.asm2
-rw-r--r--maps/RuinsofAlphKabutoChamber.asm2
-rw-r--r--maps/RuinsofAlphOutside.asm2
-rw-r--r--maps/SilphCo1F.asm2
-rw-r--r--maps/SlowpokeWellB2F.asm2
-rw-r--r--maps/SproutTower3F.asm2
-rw-r--r--maps/TeamRocketBaseB2F.asm2
-rw-r--r--maps/TinTower1F.asm2
-rw-r--r--maps/TrainerHouseB1F.asm4
-rw-r--r--maps/UndergroundPathSwitchRoomEntrances.asm8
-rw-r--r--maps/UndergroundWarehouse.asm4
-rw-r--r--maps/VermilionCity.asm2
-rw-r--r--maps/VermilionPort.asm4
-rw-r--r--maps/VictoryRoadGate.asm2
-rw-r--r--maps/VioletGym.asm2
-rw-r--r--maps/ViridianCity.asm2
-rw-r--r--maps/WarehouseEntrance.asm4
-rw-r--r--maps/WiseTriosRoom.asm2
121 files changed, 1679 insertions, 1679 deletions
diff --git a/maps/AzaleaGym.asm b/maps/AzaleaGym.asm
index aa7756e41..51a6fff73 100644
--- a/maps/AzaleaGym.asm
+++ b/maps/AzaleaGym.asm
@@ -42,7 +42,7 @@ BugsyScript:
setevent EVENT_BEAT_BUG_CATCHER_AL
setevent EVENT_BEAT_BUG_CATCHER_JOSH
writetext BugsyText_HiveBadgeSpeech
- keeptextopen
+ buttonsound
verbosegiveitem TM_FURY_CUTTER
iffalse .NoRoomForFuryCutter
setevent EVENT_GOT_TM49_FURY_CUTTER
diff --git a/maps/AzaleaTown.asm b/maps/AzaleaTown.asm
index b001ad221..eaf8165e3 100644
--- a/maps/AzaleaTown.asm
+++ b/maps/AzaleaTown.asm
@@ -163,10 +163,10 @@ UnknownScript_0x1980e5:
applymovement PLAYER, MovementData_0x198148
loadfont
writetext UnknownText_0x1985df
- keeptextopen
+ buttonsound
spriteface AZALEATOWN_KURT_OUTSIDE, RIGHT
writetext UnknownText_0x19860b
- keeptextopen
+ buttonsound
writetext UnknownText_0x198628
waitbutton
verbosegiveitem GS_BALL
diff --git a/maps/BattleTower1F.asm b/maps/BattleTower1F.asm
index 11664ba6a..ffd7f3840 100644
--- a/maps/BattleTower1F.asm
+++ b/maps/BattleTower1F.asm
@@ -61,7 +61,7 @@ ReceptionistScript_0x9e3e2:
if_equal $3, Script_BeatenAllTrainers2 ; maps/BattleTowerBattleRoom.asm
loadfont
writetext Text_BattleTowerWelcomesYou
- keeptextopen
+ buttonsound
writebyte BATTLETOWERACTION_00 ; if new save file: bit 1, [sbe4f]
special BattleTowerAction
if_not_equal $0, Script_Menu_ChallengeExplanationCancel
diff --git a/maps/BattleTowerBattleRoom.asm b/maps/BattleTowerBattleRoom.asm
index 32389b53e..faa45fea2 100644
--- a/maps/BattleTowerBattleRoom.asm
+++ b/maps/BattleTowerBattleRoom.asm
@@ -32,7 +32,7 @@ Script_BattleRoomLoop: ; 0x9f425
applymovement BATTLETOWERBATTLEROOM_YOUNGSTER, MovementData_BattleTowerBattleRoomOpponentWalksIn
loadfont
battletowertext 1
- keeptextopen
+ buttonsound
closetext
special BattleTowerBattle ; calls predef startbattle
special FadeOutPalettes
diff --git a/maps/BillsHouse.asm b/maps/BillsHouse.asm
index 862cde5ff..264ea53fa 100644
--- a/maps/BillsHouse.asm
+++ b/maps/BillsHouse.asm
@@ -18,7 +18,7 @@ GrampsScript_0x189538:
checkevent EVENT_MET_BILLS_GRANDPA
iftrue UnknownScript_0x189553
writetext UnknownText_0x1896ce
- keeptextopen
+ buttonsound
setevent EVENT_MET_BILLS_GRANDPA
UnknownScript_0x189553:
checkevent EVENT_SHOWED_PICHU_TO_BILLS_GRANDPA
@@ -32,7 +32,7 @@ UnknownScript_0x189553:
checkevent EVENT_SHOWED_LICKITUNG_TO_BILLS_GRANDPA
iftrue UnknownScript_0x18963b
writetext UnknownText_0x1898c0
- keeptextopen
+ buttonsound
writetext UnknownText_0x189732
yesorno
iffalse UnknownScript_0x1896aa
@@ -46,7 +46,7 @@ UnknownScript_0x189553:
UnknownScript_0x189592:
writetext UnknownText_0x1898ff
- keeptextopen
+ buttonsound
writetext UnknownText_0x189732
yesorno
iffalse UnknownScript_0x1896aa
@@ -60,7 +60,7 @@ UnknownScript_0x189592:
UnknownScript_0x1895b3:
writetext UnknownText_0x189953
- keeptextopen
+ buttonsound
writetext UnknownText_0x189732
yesorno
iffalse UnknownScript_0x1896aa
@@ -76,7 +76,7 @@ UnknownScript_0x1895d4:
checkver
iftrue UnknownScript_0x1895f9
writetext UnknownText_0x1899fe
- keeptextopen
+ buttonsound
writetext UnknownText_0x189732
yesorno
iffalse UnknownScript_0x1896aa
@@ -90,7 +90,7 @@ UnknownScript_0x1895d4:
UnknownScript_0x1895f9:
writetext UnknownText_0x189a57
- keeptextopen
+ buttonsound
writetext UnknownText_0x189732
yesorno
iffalse UnknownScript_0x1896aa
@@ -104,7 +104,7 @@ UnknownScript_0x1895f9:
UnknownScript_0x18961a:
writetext UnknownText_0x189ab1
- keeptextopen
+ buttonsound
writetext UnknownText_0x189732
yesorno
iffalse UnknownScript_0x1896aa
@@ -170,7 +170,7 @@ UnknownScript_0x189697:
UnknownScript_0x1896a5:
writetext UnknownText_0x189760
- keeptextopen
+ buttonsound
end
UnknownScript_0x1896aa:
@@ -181,12 +181,12 @@ UnknownScript_0x1896aa:
UnknownScript_0x1896b0:
writetext UnknownText_0x1897a6
- keeptextopen
+ buttonsound
end
UnknownScript_0x1896b5:
writetext UnknownText_0x1897e1
- keeptextopen
+ buttonsound
end
UnknownScript_0x1896ba:
diff --git a/maps/BlackthornCity.asm b/maps/BlackthornCity.asm
index 582cc8d38..2f7f9852c 100644
--- a/maps/BlackthornCity.asm
+++ b/maps/BlackthornCity.asm
@@ -99,11 +99,11 @@ SantosScript:
checkevent EVENT_MET_SANTOS_OF_SATURDAY
iftrue .MetSantos
writetext MeetSantosText
- keeptextopen
+ buttonsound
setevent EVENT_MET_SANTOS_OF_SATURDAY
.MetSantos
writetext SantosGivesGiftText
- keeptextopen
+ buttonsound
verbosegiveitem SPELL_TAG
iffalse SantosDoneScript
setevent EVENT_GOT_SPELL_TAG_FROM_SANTOS
diff --git a/maps/BlackthornGym1F.asm b/maps/BlackthornGym1F.asm
index 83ec85cda..900176b4f 100644
--- a/maps/BlackthornGym1F.asm
+++ b/maps/BlackthornGym1F.asm
@@ -68,7 +68,7 @@ UnknownScript_0x194e69:
checkevent EVENT_GOT_TM24_DRAGONBREATH
iftrue UnknownScript_0x194e94
writetext UnknownText_0x195196
- keeptextopen
+ buttonsound
giveitem TM_DRAGONBREATH
iffalse UnknownScript_0x194e8e
itemtotext TM_DRAGONBREATH, $0
@@ -78,7 +78,7 @@ UnknownScript_0x194e69:
itemnotify
setevent EVENT_GOT_TM24_DRAGONBREATH
writetext UnknownText_0x1951d1
- keeptextopen
+ buttonsound
jump UnknownScript_0x194e94
UnknownScript_0x194e8e:
diff --git a/maps/BluesHouse.asm b/maps/BluesHouse.asm
index a37cdb837..25c9766c2 100644
--- a/maps/BluesHouse.asm
+++ b/maps/BluesHouse.asm
@@ -41,7 +41,7 @@ UnknownScript_0x19b0de:
loadfont
writetext UnknownText_0x19b296
special PlayCurMonCry
- keeptextopen
+ buttonsound
writetext UnknownText_0x19b2aa
waitbutton
closetext
diff --git a/maps/CeladonCafe.asm b/maps/CeladonCafe.asm
index 4ede9fb73..3a4044c2d 100644
--- a/maps/CeladonCafe.asm
+++ b/maps/CeladonCafe.asm
@@ -109,7 +109,7 @@ CeladonCafeTrashcan:
loadfont
itemtotext LEFTOVERS, $0
writetext FoundLeftoversText
- keeptextopen
+ buttonsound
writetext NoRoomForLeftoversText
waitbutton
closetext
diff --git a/maps/CeladonDeptStore6F.asm b/maps/CeladonDeptStore6F.asm
index 8e68a527d..bd02f2b96 100644
--- a/maps/CeladonDeptStore6F.asm
+++ b/maps/CeladonDeptStore6F.asm
@@ -68,7 +68,7 @@ CeladonVendingMachine:
pause 10
playsound SFX_ENTER_DOOR
writetext CeladonClangText
- keeptextopen
+ buttonsound
itemnotify
jump .Start
diff --git a/maps/CeladonGameCorner.asm b/maps/CeladonGameCorner.asm
index 895483c34..3a9e07870 100644
--- a/maps/CeladonGameCorner.asm
+++ b/maps/CeladonGameCorner.asm
@@ -55,7 +55,7 @@ FisherScript_0x72144:
checkevent EVENT_GOT_COINS_FROM_GAMBLER_AT_CELADON
iftrue .UnknownScript_0x72169
writetext UnknownText_0x722dc
- keeptextopen
+ buttonsound
checkitem COIN_CASE
iffalse UnknownScript_0x7217b
checkcoins 9998
diff --git a/maps/CeladonGym.asm b/maps/CeladonGym.asm
index b14acf60a..8aceb8593 100644
--- a/maps/CeladonGym.asm
+++ b/maps/CeladonGym.asm
@@ -39,7 +39,7 @@ ErikaScript_0x72a6a:
checkevent EVENT_GOT_TM19_GIGA_DRAIN
iftrue UnknownScript_0x72aae
writetext UnknownText_0x72cb0
- keeptextopen
+ buttonsound
verbosegiveitem TM_GIGA_DRAIN
iffalse UnknownScript_0x72aae
setevent EVENT_GOT_TM19_GIGA_DRAIN
diff --git a/maps/CeladonMansion3F.asm b/maps/CeladonMansion3F.asm
index fae98f99b..98e869c0a 100644
--- a/maps/CeladonMansion3F.asm
+++ b/maps/CeladonMansion3F.asm
@@ -22,12 +22,12 @@ CooltrainerMScript_0x71670:
end
UnknownScript_0x7167e:
- keeptextopen
+ buttonsound
writetext UnknownText_0x71725
playsound SFX_DEX_FANFARE_230_PLUS
waitsfx
writetext UnknownText_0x71760
- keeptextopen
+ buttonsound
special Diploma
writetext UnknownText_0x71763
waitbutton
diff --git a/maps/CeladonMansionRoofHouse.asm b/maps/CeladonMansionRoofHouse.asm
index f1d0bfac6..7e95c287a 100644
--- a/maps/CeladonMansionRoofHouse.asm
+++ b/maps/CeladonMansionRoofHouse.asm
@@ -14,7 +14,7 @@ PharmacistScript_0x71afd:
checkevent EVENT_GOT_TM03_CURSE
iftrue UnknownScript_0x71b21
writetext UnknownText_0x71b27
- keeptextopen
+ buttonsound
checknite
iftrue UnknownScript_0x71b14
writetext UnknownText_0x71b4a
@@ -24,7 +24,7 @@ PharmacistScript_0x71afd:
UnknownScript_0x71b14:
writetext UnknownText_0x71ba3
- keeptextopen
+ buttonsound
verbosegiveitem TM_CURSE
iffalse UnknownScript_0x71b25
setevent EVENT_GOT_TM03_CURSE
diff --git a/maps/CeladonPokeCenter1F.asm b/maps/CeladonPokeCenter1F.asm
index 4197b3925..9df8527f7 100644
--- a/maps/CeladonPokeCenter1F.asm
+++ b/maps/CeladonPokeCenter1F.asm
@@ -28,7 +28,7 @@ SuperNerdScript_0x71e2e:
faceplayer
loadfont
writetext UnknownText_0x71f22
- keeptextopen
+ buttonsound
writebyte SUICUNE
special SpecialMonCheck
iffalse UnknownScript_0x71e46
diff --git a/maps/CharcoalKiln.asm b/maps/CharcoalKiln.asm
index d1561a5c0..84139a4d3 100644
--- a/maps/CharcoalKiln.asm
+++ b/maps/CharcoalKiln.asm
@@ -48,7 +48,7 @@ CharcoalKilnApprentice:
.Thanks
writetext CharcoalKilnApprenticeText2
- keeptextopen
+ buttonsound
verbosegiveitem CHARCOAL
iffalse .Done
setevent EVENT_GOT_CHARCOAL_IN_CHARCOAL_KILN
diff --git a/maps/CherrygroveCity.asm b/maps/CherrygroveCity.asm
index 4acdb07de..e0a2876f2 100644
--- a/maps/CherrygroveCity.asm
+++ b/maps/CherrygroveCity.asm
@@ -72,12 +72,12 @@ CherrygroveCityGuideGent:
spriteface PLAYER, RIGHT
loadfont
writetext GuideGentGiftText
- keeptextopen
+ buttonsound
stringtotext .mapcardname, $1
scall .UnknownScript_0x19c097
setflag ENGINE_MAP_CARD
writetext GotMapCardText
- keeptextopen
+ buttonsound
writetext GuideGentPokegearText
waitbutton
closetext
@@ -219,7 +219,7 @@ MysticWaterGuy:
checkevent EVENT_GOT_MYSTIC_WATER_IN_CHERRYGROVE
iftrue UnknownScript_0x19c183
writetext UnknownText_0x19c766
- keeptextopen
+ buttonsound
verbosegiveitem MYSTIC_WATER
iffalse UnknownScript_0x19c187
setevent EVENT_GOT_MYSTIC_WATER_IN_CHERRYGROVE
diff --git a/maps/CianwoodCity.asm b/maps/CianwoodCity.asm
index e52c7aa58..acd678988 100644
--- a/maps/CianwoodCity.asm
+++ b/maps/CianwoodCity.asm
@@ -92,7 +92,7 @@ PokefanFScript_0x1a0084:
checkevent EVENT_GOT_HM02_FLY
iftrue UnknownScript_0x1a00ad
writetext UnknownText_0x1a00f1
- keeptextopen
+ buttonsound
checkevent EVENT_BEAT_CHUCK
iftrue UnknownScript_0x1a009c
writetext UnknownText_0x1a0163
@@ -102,12 +102,12 @@ PokefanFScript_0x1a0084:
UnknownScript_0x1a009c:
writetext UnknownText_0x1a01e3
- keeptextopen
+ buttonsound
verbosegiveitem HM_FLY
iffalse UnknownScript_0x1a00b1
setevent EVENT_GOT_HM02_FLY
writetext UnknownText_0x1a021d
- keeptextopen
+ buttonsound
UnknownScript_0x1a00ad:
writetext UnknownText_0x1a0277
waitbutton
diff --git a/maps/CianwoodGym.asm b/maps/CianwoodGym.asm
index 306027712..8e330aa92 100644
--- a/maps/CianwoodGym.asm
+++ b/maps/CianwoodGym.asm
@@ -59,7 +59,7 @@ ChuckScript_0x9d60f:
setevent EVENT_BEAT_BLACKBELT_NOB
setevent EVENT_BEAT_BLACKBELT_LUNG
writetext UnknownText_0x9d84d
- keeptextopen
+ buttonsound
verbosegiveitem TM_DYNAMICPUNCH
iffalse UnknownScript_0x9d67f
setevent EVENT_GOT_TM01_DYNAMICPUNCH
diff --git a/maps/CianwoodPharmacy.asm b/maps/CianwoodPharmacy.asm
index b3c5f0eb0..9d3c064cc 100644
--- a/maps/CianwoodPharmacy.asm
+++ b/maps/CianwoodPharmacy.asm
@@ -22,7 +22,7 @@ CianwoodPharmacist:
checkevent EVENT_JASMINE_EXPLAINED_AMPHYS_SICKNESS
iffalse .Mart
writetext PharmacistGiveSecretpotionText
- keeptextopen
+ buttonsound
giveitem SECRETPOTION
writetext ReceivedSecretpotionText
playsound SFX_KEY_ITEM
diff --git a/maps/CopycatsHouse2F.asm b/maps/CopycatsHouse2F.asm
index 839cc6694..8af7b5163 100644
--- a/maps/CopycatsHouse2F.asm
+++ b/maps/CopycatsHouse2F.asm
@@ -113,7 +113,7 @@ Copycat:
.Part12
loadfont
writetext UnknownText_0x18b17f
- keeptextopen
+ buttonsound
takeitem LOST_ITEM
setevent EVENT_RETURNED_LOST_ITEM_TO_COPYCAT
clearevent EVENT_COPYCATS_HOUSE_2F_DOLL
@@ -123,7 +123,7 @@ Copycat:
loadfont
.Part14
writetext UnknownText_0x18b1e2
- keeptextopen
+ buttonsound
verbosegiveitem PASS
iffalse .Part22
setevent EVENT_GOT_PASS_FROM_COPYCAT
@@ -179,7 +179,7 @@ CopycatsDodrio:
loadfont
writetext CopycatsDodrioText1
cry DODRIO
- keeptextopen
+ buttonsound
writetext CopycatsDodrioText2
waitbutton
closetext
diff --git a/maps/DanceTheatre.asm b/maps/DanceTheatre.asm
index fc2dbb921..33b53e168 100644
--- a/maps/DanceTheatre.asm
+++ b/maps/DanceTheatre.asm
@@ -75,7 +75,7 @@ GentlemanScript_0x994c6:
faceplayer
loadfont
writetext UnknownText_0x9980a
- keeptextopen
+ buttonsound
checkevent EVENT_GOT_HM03_SURF
iftrue UnknownScript_0x99515
checkevent EVENT_BEAT_KIMONO_GIRL_NAOKO
@@ -106,7 +106,7 @@ UnknownScript_0x994ff:
UnknownScript_0x99505:
writetext UnknownText_0x9991a
- keeptextopen
+ buttonsound
verbosegiveitem HM_SURF
setevent EVENT_GOT_HM03_SURF
writetext UnknownText_0x9999b
diff --git a/maps/DarkCaveBlackthornEntrance.asm b/maps/DarkCaveBlackthornEntrance.asm
index 96ca40235..715341916 100644
--- a/maps/DarkCaveBlackthornEntrance.asm
+++ b/maps/DarkCaveBlackthornEntrance.asm
@@ -16,7 +16,7 @@ PharmacistScript_0x18c720:
checkevent EVENT_GOT_BLACKGLASSES_IN_DARK_CAVE
iftrue UnknownScript_0x18c735
writetext UnknownText_0x18c73f
- keeptextopen
+ buttonsound
verbosegiveitem BLACKGLASSES
iffalse UnknownScript_0x18c739
setevent EVENT_GOT_BLACKGLASSES_IN_DARK_CAVE
diff --git a/maps/DayCare.asm b/maps/DayCare.asm
index 1eea599c5..9ee0f5b24 100644
--- a/maps/DayCare.asm
+++ b/maps/DayCare.asm
@@ -31,7 +31,7 @@ GrampsScript_0x62f8f:
checkevent EVENT_GOT_ODD_EGG
iftrue UnknownScript_0x62fbd
writetext UnknownText_0x630ce
- keeptextopen
+ buttonsound
closetext
checkcode VAR_PARTYCOUNT
if_equal $6, UnknownScript_0x62fb6
diff --git a/maps/DragonShrine.asm b/maps/DragonShrine.asm
index a865486f1..2f8edc631 100644
--- a/maps/DragonShrine.asm
+++ b/maps/DragonShrine.asm
@@ -27,11 +27,11 @@ DragonShrineTestScript:
applymovement DRAGONSHRINE_ELDER1, MovementData_0x18d2c7
loadfont
writetext UnknownText_0x18d2ea
- keeptextopen
+ buttonsound
.Question1:
setevent EVENT_RECEIVED_BALLS_FROM_KURT
writetext UnknownText_0x18d3bc
- keeptextopen
+ buttonsound
loadmenudata MenuDataHeader_0x18d215
interpretmenu2
writebackup
@@ -43,7 +43,7 @@ DragonShrineTestScript:
.Question2:
setevent EVENT_DRAGON_SHRINE_QUESTION_2
writetext UnknownText_0x18d3d3
- keeptextopen
+ buttonsound
loadmenudata MenuDataHeader_0x18d234
interpretmenu2
writebackup
@@ -53,7 +53,7 @@ DragonShrineTestScript:
.Question3:
setevent EVENT_DRAGON_SHRINE_QUESTION_3
writetext UnknownText_0x18d3f3
- keeptextopen
+ buttonsound
loadmenudata MenuDataHeader_0x18d258
interpretmenu2
writebackup
@@ -63,7 +63,7 @@ DragonShrineTestScript:
.Question4:
setevent EVENT_DRAGON_SHRINE_QUESTION_4
writetext UnknownText_0x18d420
- keeptextopen
+ buttonsound
loadmenudata MenuDataHeader_0x18d283
interpretmenu2
writebackup
@@ -73,7 +73,7 @@ DragonShrineTestScript:
.Question5:
setevent EVENT_DRAGON_SHRINE_QUESTION_5
writetext UnknownText_0x18d44a
- keeptextopen
+ buttonsound
loadmenudata MenuDataHeader_0x18d2a5
interpretmenu2
writebackup
@@ -84,7 +84,7 @@ DragonShrineTestScript:
checkevent EVENT_DRAGON_SHRINE_QUESTION_5
iftrue .PassedTheTest
writetext UnknownText_0x18d82d
- keeptextopen
+ buttonsound
checkevent EVENT_DRAGON_SHRINE_QUESTION_4
iftrue .Question5
checkevent EVENT_DRAGON_SHRINE_QUESTION_3
@@ -170,7 +170,7 @@ DragonShrineTestScript:
dotrigger $1
domaptrigger DRAGONS_DEN_B1F, $1
writetext UnknownText_0x18d9f2
- keeptextopen
+ buttonsound
writetext UnknownText_0x18da0b
waitbutton
closetext
diff --git a/maps/DragonsDenB1F.asm b/maps/DragonsDenB1F.asm
index b9b9ad2db..43dc6e5ef 100644
--- a/maps/DragonsDenB1F.asm
+++ b/maps/DragonsDenB1F.asm
@@ -59,7 +59,7 @@ UnknownScript_0x18c8b8:
applymovement DRAGONSDENB1F_CLAIR, MovementData_0x18c9ae
loadfont
writetext UnknownText_0x18c9bf
- keeptextopen
+ buttonsound
giveitem TM_DRAGONBREATH
iffalse UnknownScript_0x18c8f4
itemtotext TM_DRAGONBREATH, $0
@@ -69,7 +69,7 @@ UnknownScript_0x18c8b8:
itemnotify
setevent EVENT_GOT_TM24_DRAGONBREATH
writetext UnknownText_0x18ca0d
- keeptextopen
+ buttonsound
writetext UnknownText_0x18caf1
waitbutton
closetext
@@ -149,7 +149,7 @@ UnknownScript_0x18c970:
loadfont
itemtotext DRAGON_FANG, $0
writetext UnknownText_0x18cf41
- keeptextopen
+ buttonsound
writetext UnknownText_0x18cf51
waitbutton
closetext
diff --git a/maps/EcruteakGym.asm b/maps/EcruteakGym.asm
index eef9d753a..0c6713949 100644
--- a/maps/EcruteakGym.asm
+++ b/maps/EcruteakGym.asm
@@ -56,7 +56,7 @@ MortyScript_0x99d58:
setevent EVENT_BEAT_MEDIUM_MARTHA
setevent EVENT_BEAT_MEDIUM_GRACE
writetext UnknownText_0x9a059
- keeptextopen
+ buttonsound
verbosegiveitem TM_SHADOW_BALL
iffalse UnknownScript_0x99db5
setevent EVENT_GOT_TM30_SHADOW_BALL
diff --git a/maps/EcruteakItemfinderHouse.asm b/maps/EcruteakItemfinderHouse.asm
index 1584151d8..1fe696683 100644
--- a/maps/EcruteakItemfinderHouse.asm
+++ b/maps/EcruteakItemfinderHouse.asm
@@ -18,7 +18,7 @@ CooltrainerMScript_0x9a5fb:
yesorno
iffalse UnknownScript_0x9a61a
writetext UnknownText_0x9a6b5
- keeptextopen
+ buttonsound
verbosegiveitem ITEMFINDER
setevent EVENT_GOT_ITEMFINDER
UnknownScript_0x9a614:
diff --git a/maps/EcruteakPokeCenter1F.asm b/maps/EcruteakPokeCenter1F.asm
index 5ae580950..33ad28317 100644
--- a/maps/EcruteakPokeCenter1F.asm
+++ b/maps/EcruteakPokeCenter1F.asm
@@ -42,7 +42,7 @@ UnknownScript_0x98e64:
pause 10
loadfont
writetext UnknownText_0x98ed8
- keeptextopen
+ buttonsound
jump UnknownScript_0x98e95
UnknownScript_0x98e95:
diff --git a/maps/ElmsLab.asm b/maps/ElmsLab.asm
index ffbd6178f..e2940f58f 100644
--- a/maps/ElmsLab.asm
+++ b/maps/ElmsLab.asm
@@ -1,1424 +1,1424 @@
-const_value set 2
- const ELMSLAB_ELM
- const ELMSLAB_SCIENTIST
- const ELMSLAB_POKE_BALL1
- const ELMSLAB_POKE_BALL2
- const ELMSLAB_POKE_BALL3
- const ELMSLAB_OFFICER
-
-ElmsLab_MapScriptHeader:
-.MapTriggers:
- db 6
-
- ; triggers
- dw .Trigger0, 0
- dw .Trigger1, 0
- dw .Trigger2, 0
- dw .Trigger3, 0
- dw .Trigger4, 0
- dw .Trigger5, 0
-
-.MapCallbacks:
- db 1
-
- ; callbacks
-
- dbw 2, .Callback_MoveElm
-
-.Trigger0:
- priorityjump ElmsLab_AutowalkUpToElm
- end
-
-.Trigger1:
- end
-
-.Trigger2:
- end
-
-.Trigger3:
- end
-
-.Trigger4:
- end
-
-.Trigger5:
- end
-
-.Callback_MoveElm:
- checktriggers
- iftrue .Skip
- moveperson ELMSLAB_ELM, $3, $4
-.Skip:
- return
-
-ElmsLab_AutowalkUpToElm:
- applymovement PLAYER, ElmsLab_WalkUpToElmMovement
- showemote EMOTE_SHOCK, ELMSLAB_ELM, 15
- spriteface ELMSLAB_ELM, RIGHT
- loadfont
- writetext ElmText_Intro
-ElmsLab_RefuseLoop:
- yesorno
- iftrue ElmsLab_ElmGetsEmail
- writetext ElmText_Refused
- jump ElmsLab_RefuseLoop
-
-ElmsLab_ElmGetsEmail:
- writetext ElmText_Accepted
- keeptextopen
- writetext ElmText_ResearchAmbitions
- waitbutton
- closetext
- playsound SFX_GLASS_TING
- pause 30
- showemote EMOTE_SHOCK, ELMSLAB_ELM, 10
- spriteface ELMSLAB_ELM, DOWN
- loadfont
- writetext ElmText_GotAnEmail
- waitbutton
- closetext
- loadfont
- spriteface ELMSLAB_ELM, RIGHT
- writetext ElmText_MissionFromMrPokemon
- waitbutton
- closetext
- applymovement ELMSLAB_ELM, ElmsLab_ElmToDefaultPositionMovement1
- spriteface PLAYER, UP
- applymovement ELMSLAB_ELM, ElmsLab_ElmToDefaultPositionMovement2
- spriteface PLAYER, RIGHT
- loadfont
- writetext ElmText_ChooseAPokemon
- waitbutton
- dotrigger $1
- closetext
- end
-
-ProfElmScript:
- faceplayer
- loadfont
- checkevent EVENT_GOT_SS_TICKET_FROM_ELM
- iftrue ElmCheckMasterBall
- checkevent EVENT_BEAT_ELITE_FOUR
- iftrue ElmGiveTicketScript
-ElmCheckMasterBall:
- checkevent EVENT_GOT_MASTER_BALL_FROM_ELM
- iftrue ElmCheckEverstone
- checkflag ENGINE_RISINGBADGE
- iftrue ElmGiveMasterBallScript
-ElmCheckEverstone:
- checkevent EVENT_GOT_EVERSTONE_FROM_ELM
- iftrue ElmScript_CallYou
- checkevent EVENT_SHOWED_TOGEPI_TO_ELM
- iftrue ElmGiveEverstoneScript
- checkevent EVENT_TOLD_ELM_ABOUT_TOGEPI_OVER_THE_PHONE
- iffalse ElmCheckTogepiEgg
- writebyte TOGEPI
- special Special_FindThatSpeciesYourTrainerID
- iftrue ShowElmTogepiScript
- writebyte TOGETIC
- special Special_FindThatSpeciesYourTrainerID
- iftrue ShowElmTogepiScript
- writetext UnknownText_0x79a40
- waitbutton
- closetext
- end
-
-ElmEggHatchedScript:
- writebyte TOGEPI
- special Special_FindThatSpeciesYourTrainerID
- iftrue ShowElmTogepiScript
- writebyte TOGETIC
- special Special_FindThatSpeciesYourTrainerID
- iftrue ShowElmTogepiScript
- jump ElmCheckGotEggAgain
-
-ElmCheckTogepiEgg:
- checkevent EVENT_GOT_TOGEPI_EGG_FROM_ELMS_AIDE
- iffalse ElmCheckGotEggAgain
- checkevent EVENT_TOGEPI_HATCHED
- iftrue ElmEggHatchedScript
-ElmCheckGotEggAgain:
- checkevent EVENT_GOT_TOGEPI_EGG_FROM_ELMS_AIDE ; why are we checking it again?
- iftrue ElmWaitingEggHatchScript
- checkflag ENGINE_ZEPHYRBADGE
- iftrue ElmAideHasEggScript
- checkevent EVENT_GAVE_MYSTERY_EGG_TO_ELM
- iftrue ElmStudyingEggScript
- checkevent EVENT_GOT_MYSTERY_EGG_FROM_MR_POKEMON
- iftrue ElmAfterTheftScript
- checkevent EVENT_GOT_A_POKEMON_FROM_ELM
- iftrue ElmDescribesMrPokemonScript
- writetext ElmText_LetYourMonBattleIt
- waitbutton
- closetext
- end
-
-LabTryToLeaveScript:
- spriteface ELMSLAB_ELM, DOWN
- loadfont
- writetext LabWhereGoingText
- waitbutton
- closetext
- applymovement PLAYER, MovementData_0x78f70
- end
-
-CyndaquilPokeBallScript:
- checkevent EVENT_GOT_A_POKEMON_FROM_ELM
- iftrue LookAtElmPokeBallScript
- spriteface ELMSLAB_ELM, DOWN
- refreshscreen $0
- pokepic CYNDAQUIL
- cry CYNDAQUIL
- waitbutton
- closepokepic
- loadfont
- writetext TakeCyndaquilText
- yesorno
- iffalse DidntChooseStarterScript
- disappear ELMSLAB_POKE_BALL1
- setevent EVENT_GOT_CYNDAQUIL_FROM_ELM
- writetext ChoseStarterText
- keeptextopen
- waitsfx
- pokenamemem CYNDAQUIL, $0
- writetext ReceivedStarterText
- playsound SFX_CAUGHT_MON
- waitsfx
- keeptextopen
- givepoke CYNDAQUIL, 5, BERRY
- closetext
- checkcode VAR_FACING
- if_equal RIGHT, ElmDirectionsScript
- applymovement PLAYER, AfterCyndaquilMovement
- jump ElmDirectionsScript
-
-TotodilePokeBallScript:
- checkevent EVENT_GOT_A_POKEMON_FROM_ELM
- iftrue LookAtElmPokeBallScript
- spriteface ELMSLAB_ELM, DOWN
- refreshscreen $0
- pokepic TOTODILE
- cry TOTODILE
- waitbutton
- closepokepic
- loadfont
- writetext TakeTotodileText
- yesorno
- iffalse DidntChooseStarterScript
- disappear ELMSLAB_POKE_BALL2
- setevent EVENT_GOT_TOTODILE_FROM_ELM
- writetext ChoseStarterText
- keeptextopen
- waitsfx
- pokenamemem TOTODILE, $0
- writetext ReceivedStarterText
- playsound SFX_CAUGHT_MON
- waitsfx
- keeptextopen
- givepoke TOTODILE, 5, BERRY
- closetext
- applymovement PLAYER, AfterTotodileMovement
- jump ElmDirectionsScript
-
-ChikoritaPokeBallScript:
- checkevent EVENT_GOT_A_POKEMON_FROM_ELM
- iftrue LookAtElmPokeBallScript
- spriteface ELMSLAB_ELM, DOWN
- refreshscreen $0
- pokepic CHIKORITA
- cry CHIKORITA
- waitbutton
- closepokepic
- loadfont
- writetext TakeChikoritaText
- yesorno
- iffalse DidntChooseStarterScript
- disappear ELMSLAB_POKE_BALL3
- setevent EVENT_GOT_CHIKORITA_FROM_ELM
- writetext ChoseStarterText
- keeptextopen
- waitsfx
- pokenamemem CHIKORITA, $0
- writetext ReceivedStarterText
- playsound SFX_CAUGHT_MON
- waitsfx
- keeptextopen
- givepoke CHIKORITA, 5, BERRY
- closetext
- applymovement PLAYER, AfterChikoritaMovement
- jump ElmDirectionsScript
-
-DidntChooseStarterScript:
- writetext DidntChooseStarterText
- waitbutton
- closetext
- end
-
-ElmDirectionsScript:
- spriteface PLAYER, UP
- loadfont
- writetext ElmDirectionsText1
- waitbutton
- closetext
- addcellnum PHONE_ELM
- loadfont
- writetext GotElmsNumberText
- playsound SFX_REGISTER_PHONE_NUMBER
- waitsfx
- waitbutton
- closetext
- spriteface ELMSLAB_ELM, LEFT
- loadfont
- writetext ElmDirectionsText2
- waitbutton
- closetext
- spriteface ELMSLAB_ELM, DOWN
- loadfont
- writetext ElmDirectionsText3
- waitbutton
- closetext
- setevent EVENT_GOT_A_POKEMON_FROM_ELM
- setevent EVENT_RIVAL_CHERRYGROVE_CITY
- dotrigger $5
- domaptrigger NEW_BARK_TOWN, $1
- end
-
-ElmDescribesMrPokemonScript:
- writetext ElmDescribesMrPokemonText
- waitbutton
- closetext
- end
-
-LookAtElmPokeBallScript:
- loadfont
- writetext ElmPokeBallText
- waitbutton
- closetext
- end
-
-ElmsLabHealingMachine:
- loadfont
- checkevent EVENT_GOT_A_POKEMON_FROM_ELM
- iftrue .CanHeal
- writetext ElmsLabHealingMachineText1
- waitbutton
- closetext
- end
-
-.CanHeal
- writetext ElmsLabHealingMachineText2
- yesorno
- iftrue ElmsLabHealingMachine_HealParty
- closetext
- end
-
-ElmsLabHealingMachine_HealParty:
- special Mobile_HealParty
- special HealParty
- playmusic MUSIC_NONE
- writebyte 1 ; Machine is in Elm's Lab
- special HealMachineAnim
- pause 30
- special RestartMapMusic
- closetext
- end
-
-ElmAfterTheftDoneScript:
- waitbutton
- closetext
- end
-
-ElmAfterTheftScript:
- writetext ElmAfterTheftText1
- checkitem MYSTERY_EGG
- iffalse ElmAfterTheftDoneScript
- keeptextopen
- writetext ElmAfterTheftText2
- waitbutton
- takeitem MYSTERY_EGG
- scall ElmJumpBackScript1
- writetext ElmAfterTheftText3
- waitbutton
- scall ElmJumpBackScript2
- writetext ElmAfterTheftText4
- keeptextopen
- writetext ElmAfterTheftText5
- keeptextopen
- setevent EVENT_GAVE_MYSTERY_EGG_TO_ELM
- setflag ENGINE_BUG_CONTEST_ON
- domaptrigger ROUTE_29, $1
- clearevent EVENT_ROUTE_30_YOUNGSTER_JOEY
- setevent EVENT_ROUTE_30_BATTLE
- writetext ElmAfterTheftText6
- waitbutton
- closetext
- dotrigger $6
- end
-
-ElmStudyingEggScript:
- writetext ElmStudyingEggText
- waitbutton
- closetext
- end
-
-ElmAideHasEggScript:
- writetext ElmAideHasEggText
- waitbutton
- closetext
- end
-
-ElmWaitingEggHatchScript:
- writetext ElmWaitingEggHatchText
- waitbutton
- closetext
- end
-
-ShowElmTogepiScript:
- writetext ShowElmTogepiText1
- waitbutton
- closetext
- showemote EMOTE_SHOCK, ELMSLAB_ELM, 15
- setevent EVENT_SHOWED_TOGEPI_TO_ELM
- loadfont
- writetext ShowElmTogepiText2
- keeptextopen
- writetext ShowElmTogepiText3
- keeptextopen
-ElmGiveEverstoneScript:
- writetext ElmGiveEverstoneText1
- keeptextopen
- verbosegiveitem EVERSTONE
- iffalse ElmScript_NoRoomForEverstone
- writetext ElmGiveEverstoneText2
- waitbutton
- closetext
- setevent EVENT_GOT_EVERSTONE_FROM_ELM
- end
-
-ElmScript_CallYou:
- writetext ElmText_CallYou
- waitbutton
-ElmScript_NoRoomForEverstone:
- closetext
- end
-
-ElmGiveMasterBallScript:
- writetext ElmGiveMasterBallText1
- keeptextopen
- verbosegiveitem MASTER_BALL
- iffalse .notdone
- setevent EVENT_GOT_MASTER_BALL_FROM_ELM
- writetext ElmGiveMasterBallText2
- waitbutton
-.notdone
- closetext
- end
-
-ElmGiveTicketScript:
- writetext ElmGiveTicketText1
- keeptextopen
- verbosegiveitem S_S_TICKET
- setevent EVENT_GOT_SS_TICKET_FROM_ELM
- writetext ElmGiveTicketText2
- waitbutton
- closetext
- end
-
-ElmJumpBackScript1:
- closetext
- checkcode VAR_FACING
- if_equal DOWN, ElmJumpDownScript
- if_equal UP, ElmJumpUpScript
- if_equal LEFT, ElmJumpLeftScript
- if_equal RIGHT, ElmJumpRightScript
- end
-
-ElmJumpBackScript2:
- closetext
- checkcode VAR_FACING
- if_equal DOWN, ElmJumpUpScript
- if_equal UP, ElmJumpDownScript
- if_equal LEFT, ElmJumpRightScript
- if_equal RIGHT, ElmJumpLeftScript
- end
-
-ElmJumpUpScript:
- applymovement ELMSLAB_ELM, ElmJumpUpMovement
- loadfont
- end
-
-ElmJumpDownScript:
- applymovement ELMSLAB_ELM, ElmJumpDownMovement
- loadfont
- end
-
-ElmJumpLeftScript:
- applymovement ELMSLAB_ELM, ElmJumpLeftMovement
- loadfont
- end
-
-ElmJumpRightScript:
- applymovement ELMSLAB_ELM, ElmJumpRightMovement
- loadfont
- end
-
-AideScript_WalkPotions1:
- applymovement ELMSLAB_SCIENTIST, AideWalksRight1
- spriteface PLAYER, DOWN
- scall AideScript_GivePotions
- applymovement ELMSLAB_SCIENTIST, AideWalksLeft1
- end
-
-AideScript_WalkPotions2:
- applymovement ELMSLAB_SCIENTIST, AideWalksRight2
- spriteface PLAYER, DOWN
- scall AideScript_GivePotions
- applymovement ELMSLAB_SCIENTIST, AideWalksLeft2
- end
-
-AideScript_GivePotions:
- loadfont
- writetext AideText_GiveYouPotions
- keeptextopen
- verbosegiveitem POTION
- writetext AideText_AlwaysBusy
- waitbutton
- closetext
- dotrigger $2
- end
-
-AideScript_WalkBalls1:
- applymovement ELMSLAB_SCIENTIST, AideWalksRight1
- spriteface PLAYER, DOWN
- scall AideScript_GiveYouBalls
- applymovement ELMSLAB_SCIENTIST, AideWalksLeft1
- end
-
-AideScript_WalkBalls2:
- applymovement ELMSLAB_SCIENTIST, AideWalksRight2
- spriteface PLAYER, DOWN
- scall AideScript_GiveYouBalls
- applymovement ELMSLAB_SCIENTIST, AideWalksLeft2
- end
-
-AideScript_GiveYouBalls:
- loadfont
- writetext AideText_GiveYouBalls
- keeptextopen
- itemtotext POKE_BALL, $1
- scall AideScript_ReceiveTheBalls
- giveitem POKE_BALL, 5
- writetext AideText_ExplainBalls
- keeptextopen
- itemnotify
- closetext
- dotrigger $2
- end
-
-AideScript_ReceiveTheBalls:
- jumpstd receiveitem
- end
-
-ElmsAideScript:
- faceplayer
- loadfont
- checkevent EVENT_GOT_TOGEPI_EGG_FROM_ELMS_AIDE
- iftrue AideScript_AfterTheft
- checkevent EVENT_GAVE_MYSTERY_EGG_TO_ELM
- iftrue AideScript_ExplainBalls
- checkevent EVENT_GOT_MYSTERY_EGG_FROM_MR_POKEMON
- iftrue AideScript_TheftTestimony
- writetext AideText_AlwaysBusy
- waitbutton
- closetext
- end
-
-AideScript_TheftTestimony:
- writetext AideText_TheftTestimony
- waitbutton
- closetext
- end
-
-AideScript_ExplainBalls:
- writetext AideText_ExplainBalls
- waitbutton
- closetext
- end
-
-AideScript_AfterTheft:
- writetext AideText_AfterTheft
- waitbutton
- closetext
- end
-
-MeetCopScript2:
- applymovement PLAYER, MeetCopScript2_StepLeft
-
-MeetCopScript:
- applymovement PLAYER, MeetCopScript_WalkUp
-CopScript:
- spriteface ELMSLAB_OFFICER, LEFT
- loadfont
- writetext ElmsLabOfficerText1
- keeptextopen
- special SpecialNameRival
- writetext ElmsLabOfficerText2
- waitbutton
- closetext
- applymovement ELMSLAB_OFFICER, OfficerLeavesMovement
- disappear ELMSLAB_OFFICER
- dotrigger $2
- end
-
-ElmsLabWindow:
- loadfont
- checkflag ENGINE_FLYPOINT_VIOLET
- iftrue .Normal
- checkevent EVENT_ELM_CALLED_ABOUT_STOLEN_POKEMON
- iftrue .BreakIn
- jump .Normal
-
-.BreakIn
- writetext ElmsLabWindowText2
- waitbutton
- closetext
- end
-
-.Normal
- writetext ElmsLabWindowText1
- waitbutton
- closetext
- end
-
-ElmsLabTravelTip1:
- jumptext ElmsLabTravelTip1Text
-
-ElmsLabTravelTip2:
- jumptext ElmsLabTravelTip2Text
-
-ElmsLabTravelTip3:
- jumptext ElmsLabTravelTip3Text
-
-ElmsLabTravelTip4:
- jumptext ElmsLabTravelTip4Text
-
-ElmsLabTrashcan:
- jumptext ElmsLabTrashcanText
-
-ElmsLabPC:
- jumptext ElmsLabPCText
-
-ElmsLabTrashcan2:
-; unused
- jumpstd trashcan
-
-ElmsLabBookshelf:
- jumpstd difficultbookshelf
-
-ElmsLab_WalkUpToElmMovement:
- step_up
- step_up
- step_up
- step_up
- step_up
- step_up
- step_up
- turn_head_left
- step_end
-
-MovementData_0x78f70:
- step_up
- step_end
-
-MeetCopScript2_StepLeft:
- step_left
- step_end
-
-MeetCopScript_WalkUp:
- step_up
- step_up
- turn_head_right
- step_end
-
-OfficerLeavesMovement:
- step_down
- step_down
- step_down
- step_down
- step_down
- step_end
-
-AideWalksRight1:
- step_right
- step_right
- turn_head_up
- step_end
-
-AideWalksRight2:
- step_right
- step_right
- step_right
- turn_head_up
- step_end
-
-AideWalksLeft1:
- step_left
- step_left
- turn_head_down
- step_end
-
-AideWalksLeft2:
- step_left
- step_left
- step_left
- turn_head_down
- step_end
-
-ElmJumpUpMovement:
- fix_facing
- big_step_up
- remove_fixed_facing
- step_end
-
-ElmJumpDownMovement:
- fix_facing
- big_step_down
- remove_fixed_facing
- step_end
-
-ElmJumpLeftMovement:
- fix_facing
- big_step_left
- remove_fixed_facing
- step_end
-
-ElmJumpRightMovement:
- fix_facing
- big_step_right
- remove_fixed_facing
- step_end
-
-ElmsLab_ElmToDefaultPositionMovement1:
- step_up
- step_end
-
-ElmsLab_ElmToDefaultPositionMovement2:
- step_right
- step_right
- step_up
- turn_head_down
- step_end
-
-AfterCyndaquilMovement:
- step_left
- step_up
- turn_head_up
- step_end
-
-AfterTotodileMovement:
- step_left
- step_left
- step_up
- turn_head_up
- step_end
-
-AfterChikoritaMovement:
- step_left
- step_left
- step_left
- step_up
- turn_head_up
- step_end
-
-ElmText_Intro:
- text "ELM: <PLAY_G>!"
- line "There you are!"
-
- para "I needed to ask"
- line "you a favor."
-
- para "I'm conducting new"
- line "#MON research"
-
- para "right now. I was"
- line "wondering if you"
-
- para "could help me with"
- line "it, <PLAY_G>."
-
- para "You see…"
-
- para "I'm writing a"
- line "paper that I want"
-
- para "to present at a"
- line "conference."
-
- para "But there are some"
- line "things I don't"
-
- para "quite understand"
- line "yet."
-
- para "So!"
-
- para "I'd like you to"
- line "raise a #MON"
-
- para "that I recently"
- line "caught."
- done
-
-ElmText_Accepted:
- text "Thanks, <PLAY_G>!"
-
- para "You're a great"
- line "help!"
- done
-
-ElmText_Refused:
- text "But… Please, I"
- line "need your help!"
- done
-
-ElmText_ResearchAmbitions:
- text "When I announce my"
- line "findings, I'm sure"
-
- para "we'll delve a bit"
- line "deeper into the"
-
- para "many mysteries of"
- line "#MON."
-
- para "You can count on"
- line "it!"
- done
-
-ElmText_GotAnEmail:
- text "Oh, hey! I got an"
- line "e-mail!"
-
- para $56, $56, $56
- line "Hm… Uh-huh…"
-
- para "Okay…"
- done
-
-ElmText_MissionFromMrPokemon:
- text "Hey, listen."
-
- para "I have an acquain-"
- line "tance called MR."
- cont "#MON."
-
- para "He keeps finding"
- line "weird things and"
-
- para "raving about his"
- line "discoveries."
-
- para "Anyway, I just got"
- line "an e-mail from him"
-
- para "saying that this"
- line "time it's real."
-
- para "It is intriguing,"
- line "but we're busy"
-
- para "with our #MON"
- line "research…"
-
- para "Wait!"
-
- para "I know!"
-
- para "<PLAY_G>, can you"
- line "go in our place?"
- done
-
-ElmText_ChooseAPokemon:
- text "I want you to"
- line "raise one of the"
-
- para "#MON contained"
- line "in these BALLS."
-
- para "You'll be that"
- line "#MON's first"
- cont "partner, <PLAY_G>!"
-
- para "Go on. Pick one!"
- done
-
-ElmText_LetYourMonBattleIt:
- text "If a wild #MON"
- line "appears, let your"
- cont "#MON battle it!"
- done
-
-LabWhereGoingText:
- text "ELM: Wait! Where"
- line "are you going?"
- done
-
-TakeCyndaquilText:
- text "ELM: You'll take"
- line "CYNDAQUIL, the"
- cont "fire #MON?"
- done
-
-TakeTotodileText:
- text "ELM: Do you want"
- line "TOTODILE, the"
- cont "water #MON?"
- done
-
-TakeChikoritaText:
- text "ELM: So, you like"
- line "CHIKORITA, the"
- cont "grass #MON?"
- done
-
-DidntChooseStarterText:
- text "ELM: Think it over"
- line "carefully."
-
- para "Your partner is"
- line "important."
- done
-
-ChoseStarterText:
- text "ELM: I think"
- line "that's a great"
- cont "#MON too!"
- done
-
-ReceivedStarterText:
- text "<PLAYER> received"
- line "@"
- text_from_ram StringBuffer3
- text "!"
- done
-
-ElmDirectionsText1:
- text "MR.#MON lives a"
- line "little bit beyond"
-
- para "CHERRYGROVE, the"
- line "next city over."
-
- para "It's almost a"
- line "direct route"
-
- para "there, so you"
- line "can't miss it."
-
- para "But just in case,"
- line "here's my phone"
-
- para "number. Call me if"
- line "anything comes up!"
- done
-
-ElmDirectionsText2:
- text "If your #MON is"
- line "hurt, you should"
-
- para "heal it with this"
- line "machine."
-
- para "Feel free to use"
- line "it anytime."
- done
-
-ElmDirectionsText3:
- text "<PLAY_G>, I'm"
- line "counting on you!"
- done
-
-GotElmsNumberText:
- text "<PLAYER> got ELM's"
- line "phone number."
- done
-
-ElmDescribesMrPokemonText:
- text "MR.#MON goes"
- line "everywhere and"
- cont "finds rarities."
-
- para "Too bad they're"
- line "just rare and"
- cont "not very useful…"
- done
-
-ElmPokeBallText:
- text "It contains a"
- line "#MON caught by"
- cont "PROF.ELM."
- done
-
-ElmsLabHealingMachineText1:
- text "I wonder what this"
- line "does?"
- done
-
-ElmsLabHealingMachineText2:
- text "Would you like to"
- line "heal your #MON?"
- done
-
-ElmAfterTheftText1:
- text "ELM: <PLAY_G>, this"
- line "is terrible…"
-
- para "Oh, yes, what was"
- line "MR.#MON's big"
- cont "discovery?"
- done
-
-ElmAfterTheftText2:
- text "<PLAYER> handed"
- line "the MYSTERY EGG to"
- cont "PROF.ELM."
- done
-
-ElmAfterTheftText3:
- text "ELM: This?"
- done
-
-ElmAfterTheftText4:
- text "But… Is it a"
- line "#MON EGG?"
-
- para "If it is, it is a"
- line "great discovery!"
- done
-
-ElmAfterTheftText5:
- text "ELM: What?!?"
-
- para "PROF.OAK gave you"
- line "a #DEX?"
-
- para "<PLAY_G>, is that"
- line "true? Th-that's"
- cont "incredible!"
-
- para "He is superb at"
- line "seeing the poten-"
- cont "tial of people as"
- cont "trainers."
-
- para "Wow, <PLAY_G>. You"
- line "may have what it"
-
- para "takes to become"
- line "the CHAMPION."
-
- para "You seem to be"
- line "getting on great"
- cont "with #MON too."
-
- para "You should take"
- line "the #MON GYM"
- cont "challenge."
-
- para "The closest GYM"
- line "would be the one"
- cont "in VIOLET CITY."
- done
-
-ElmAfterTheftText6:
- text "…<PLAY_G>. The"
- line "road to the"
-
- para "championship will"
- line "be a long one."
-
- para "Before you leave,"
- line "make sure that you"
- cont "talk to your mom."
- done
-
-ElmStudyingEggText:
- text "ELM: Don't give"
- line "up! I'll call if"
-
- para "I learn anything"
- line "about that EGG!"
- done
-
-ElmAideHasEggText:
- text "ELM: <PLAY_G>?"
- line "Didn't you meet my"
- cont "assistant?"
-
- para "He should have met"
- line "you with the EGG"
-
- para "at VIOLET CITY's"
- line "#MON CENTER."
-
- para "You must have just"
- line "missed him. Try to"
- cont "catch him there."
- done
-
-ElmWaitingEggHatchText:
- text "ELM: Hey, has that"
- line "EGG changed any?"
- done
-
-UnknownText_0x79a40:
- text "<PLAY_G>? I thought"
- line "the EGG hatched."
-
- para "Where is the"
- line "#MON?"
- done
-
-ShowElmTogepiText1:
- text "ELM: <PLAY_G>, you"
- line "look great!"
- done
-
-ShowElmTogepiText2:
- text "What?"
- line "That #MON!?!"
- done
-
-ShowElmTogepiText3:
- text "The EGG hatched!"
- line "So, #MON are"
- cont "born from EGGS…"
-
- para "No, perhaps not"
- line "all #MON are."
-
- para "Wow, there's still"
- line "a lot of research"
- cont "to be done."
- done
-
-ElmGiveEverstoneText1:
- text "Thanks, <PLAY_G>!"
- line "You're helping"
-
- para "unravel #MON"
- line "mysteries for us!"
-
- para "I want you to have"
- line "this as a token of"
- cont "our appreciation."
- done
-
-ElmGiveEverstoneText2:
- text "That's an"
- line "EVERSTONE."
-
- para "Some species of"
- line "#MON evolve"
-
- para "when they grow to"
- line "certain levels."
-
- para "A #MON holding"
- line "the EVERSTONE"
- cont "won't evolve."
-
- para "Give it to a #-"
- line "MON you don't want"
- cont "to evolve."
- done
-
-ElmText_CallYou:
- text "ELM: <PLAY_G>, I'll"
- line "call you if any-"
- cont "thing comes up."
- done
-
-AideText_AfterTheft:
- text "…sigh… That"
- line "stolen #MON."
-
- para "I wonder how it's"
- line "doing."
-
- para "They say a #MON"
- line "raised by a bad"
-
- para "person turns bad"
- line "itself."
- done
-
-ElmGiveMasterBallText1:
- text "ELM: Hi, <PLAY_G>!"
- line "Thanks to you, my"
-
- para "research is going"
- line "great!"
-
- para "Take this as a"
- line "token of my"
- cont "appreciation."
- done
-
-ElmGiveMasterBallText2:
- text "The MASTER BALL is"
- line "the best!"
-
- para "It's the ultimate"
- line "BALL! It'll catch"
-
- para "any #MON with-"
- line "out fail."
-
- para "It's given only to"
- line "recognized #MON"
- cont "researchers."
-
- para "I think you can"
- line "make much better"
-
- para "use of it than I"
- line "can, <PLAY_G>!"
- done
-
-ElmGiveTicketText1:
- text "ELM: <PLAY_G>!"
- line "There you are!"
-
- para "I called because I"
- line "have something for"
- cont "you."
-
- para "See? It's an"
- line "S.S.TICKET."
-
- para "Now you can catch"
- line "#MON in KANTO."
- done
-
-ElmGiveTicketText2:
- text "The ship departs"
- line "from OLIVINE CITY."
-
- para "But you knew that"
- line "already, <PLAY_G>."
-
- para "After all, you've"
- line "traveled all over"
- cont "with your #MON."
-
- para "Give my regards to"
- line "PROF.OAK in KANTO!"
- done
-
-ElmsLabSignpostText_Egg:
- text "It's the #MON"
- line "EGG being studied"
- cont "by PROF.ELM."
- done
-
-AideText_GiveYouPotions:
- text "<PLAY_G>, I want"
- line "you to have this"
- cont "for your errand."
- done
-
-AideText_AlwaysBusy:
- text "There are only two"
- line "of us, so we're"
- cont "always busy."
- done
-
-AideText_TheftTestimony:
- text "There was a loud"
- line "noise outside…"
-
- para "When we went to"
- line "look, someone"
- cont "stole a #MON."
-
- para "It's unbelievable"
- line "that anyone would"
- cont "do that!"
-
- para "…sigh… That"
- line "stolen #MON."
-
- para "I wonder how it's"
- line "doing."
-
- para "They say a #MON"
- line "raised by a bad"
-
- para "person turns bad"
- line "itself."
- done
-
-AideText_GiveYouBalls:
- text "<PLAY_G>!"
-
- para "Use these on your"
- line "#DEX quest!"
- done
-
-AideText_ExplainBalls:
- text "To add to your"
- line "#DEX, you have"
- cont "to catch #MON."
-
- para "Throw # BALLS"
- line "at wild #MON"
- cont "to get them."
- done
-
-ElmsLabOfficerText1:
- text "I heard a #MON"
- line "was stolen here…"
-
- para "I was just getting"
- line "some information"
- cont "from PROF.ELM."
-
- para "Apparently, it was"
- line "a young male with"
- cont "long, red hair…"
-
- para "What?"
-
- para "You battled a"
- line "trainer like that?"
-
- para "Did you happen to"
- line "get his name?"
- done
-
-ElmsLabOfficerText2:
- text "OK! So <RIVAL>"
- line "was his name."
-
- para "Thanks for helping"
- line "my investigation!"
- done
-
-ElmsLabWindowText1:
- text "The window's open."
-
- para "A pleasant breeze"
- line "is blowing in."
- done
-
-ElmsLabWindowText2:
- text "He broke in"
- line "through here!"
- done
-
-ElmsLabTravelTip1Text:
- text "<PLAYER> opened a"
- line "book."
-
- para "Travel Tip 1:"
-
- para "Press START to"
- line "open the MENU."
- done
-
-ElmsLabTravelTip2Text:
- text "<PLAYER> opened a"
- line "book."
-
- para "Travel Tip 2:"
-
- para "Record your trip"
- line "with SAVE!"
- done
-
-ElmsLabTravelTip3Text:
- text "<PLAYER> opened a"
- line "book."
-
- para "Travel Tip 3:"
-
- para "Open your PACK and"
- line "press SELECT to"
- cont "move items."
- done
-
-ElmsLabTravelTip4Text:
- text "<PLAYER> opened a"
- line "book."
-
- para "Travel Tip 4:"
-
- para "Check your #MON"
- line "moves. Press the"
-
- para "A Button to switch"
- line "moves."
- done
-
-ElmsLabTrashcanText:
- text "The wrapper from"
- line "the snack PROF.ELM"
- cont "ate is in there…"
- done
-
-ElmsLabPCText:
- text "OBSERVATIONS ON"
- line "#MON EVOLUTION"
-
- para "…It says on the"
- line "screen…"
- done
-
-ElmsLab_MapEventHeader:
- ; filler
- db 0, 0
-
-.Warps:
- db 2
- warp_def $b, $4, 1, NEW_BARK_TOWN
- warp_def $b, $5, 1, NEW_BARK_TOWN
-
-.XYTriggers:
- db 8
- xy_trigger 1, $6, $4, $0, LabTryToLeaveScript, $0, $0
- xy_trigger 1, $6, $5, $0, LabTryToLeaveScript, $0, $0
- xy_trigger 3, $5, $4, $0, MeetCopScript, $0, $0
- xy_trigger 3, $5, $5, $0, MeetCopScript2, $0, $0
- xy_trigger 5, $8, $4, $0, AideScript_WalkPotions1, $0, $0
- xy_trigger 5, $8, $5, $0, AideScript_WalkPotions2, $0, $0
- xy_trigger 6, $8, $4, $0, AideScript_WalkBalls1, $0, $0
- xy_trigger 6, $8, $5, $0, AideScript_WalkBalls2, $0, $0
-
-.Signposts:
- db 16
- signpost 1, 2, SIGNPOST_READ, ElmsLabHealingMachine
- signpost 1, 6, SIGNPOST_READ, ElmsLabBookshelf
- signpost 1, 7, SIGNPOST_READ, ElmsLabBookshelf
- signpost 1, 8, SIGNPOST_READ, ElmsLabBookshelf
- signpost 1, 9, SIGNPOST_READ, ElmsLabBookshelf
- signpost 7, 0, SIGNPOST_READ, ElmsLabTravelTip1
- signpost 7, 1, SIGNPOST_READ, ElmsLabTravelTip2
- signpost 7, 2, SIGNPOST_READ, ElmsLabTravelTip3
- signpost 7, 3, SIGNPOST_READ, ElmsLabTravelTip4
- signpost 7, 6, SIGNPOST_READ, ElmsLabBookshelf
- signpost 7, 7, SIGNPOST_READ, ElmsLabBookshelf
- signpost 7, 8, SIGNPOST_READ, ElmsLabBookshelf
- signpost 7, 9, SIGNPOST_READ, ElmsLabBookshelf
- signpost 3, 9, SIGNPOST_READ, ElmsLabTrashcan
- signpost 0, 5, SIGNPOST_READ, ElmsLabWindow
- signpost 5, 3, SIGNPOST_DOWN, ElmsLabPC
-
-.PersonEvents:
- db 6
- person_event SPRITE_ELM, 2, 5, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, 0, PERSONTYPE_SCRIPT, 0, ProfElmScript, -1
- person_event SPRITE_SCIENTIST, 9, 2, SPRITEMOVEDATA_SPINRANDOM_SLOW, 0, 0, -1, -1, (1 << 3) | PAL_OW_BLUE, PERSONTYPE_SCRIPT, 0, ElmsAideScript, EVENT_ELMS_AIDE_IN_LAB
- person_event SPRITE_POKE_BALL, 3, 6, SPRITEMOVEDATA_ITEM_TREE, 0, 0, -1, -1, 0, PERSONTYPE_SCRIPT, 0, CyndaquilPokeBallScript, EVENT_CYNDAQUIL_POKEBALL_IN_ELMS_LAB
- person_event SPRITE_POKE_BALL, 3, 7, SPRITEMOVEDATA_ITEM_TREE, 0, 0, -1, -1, 0, PERSONTYPE_SCRIPT, 0, TotodilePokeBallScript, EVENT_TOTODILE_POKEBALL_IN_ELMS_LAB
- person_event SPRITE_POKE_BALL, 3, 8, SPRITEMOVEDATA_ITEM_TREE, 0, 0, -1, -1, 0, PERSONTYPE_SCRIPT, 0, ChikoritaPokeBallScript, EVENT_CHIKORITA_POKEBALL_IN_ELMS_LAB
- person_event SPRITE_OFFICER, 3, 5, SPRITEMOVEDATA_STANDING_UP, 0, 0, -1, -1, (1 << 3) | PAL_OW_BLUE, PERSONTYPE_SCRIPT, 0, CopScript, EVENT_COP_IN_ELMS_LAB
+const_value set 2
+ const ELMSLAB_ELM
+ const ELMSLAB_SCIENTIST
+ const ELMSLAB_POKE_BALL1
+ const ELMSLAB_POKE_BALL2
+ const ELMSLAB_POKE_BALL3
+ const ELMSLAB_OFFICER
+
+ElmsLab_MapScriptHeader:
+.MapTriggers:
+ db 6
+
+ ; triggers
+ dw .Trigger0, 0
+ dw .Trigger1, 0
+ dw .Trigger2, 0
+ dw .Trigger3, 0
+ dw .Trigger4, 0
+ dw .Trigger5, 0
+
+.MapCallbacks:
+ db 1
+
+ ; callbacks
+
+ dbw 2, .Callback_MoveElm
+
+.Trigger0:
+ priorityjump ElmsLab_AutowalkUpToElm
+ end
+
+.Trigger1:
+ end
+
+.Trigger2:
+ end
+
+.Trigger3:
+ end
+
+.Trigger4:
+ end
+
+.Trigger5:
+ end
+
+.Callback_MoveElm:
+ checktriggers
+ iftrue .Skip
+ moveperson ELMSLAB_ELM, $3, $4
+.Skip:
+ return
+
+ElmsLab_AutowalkUpToElm:
+ applymovement PLAYER, ElmsLab_WalkUpToElmMovement
+ showemote EMOTE_SHOCK, ELMSLAB_ELM, 15
+ spriteface ELMSLAB_ELM, RIGHT
+ loadfont
+ writetext ElmText_Intro
+ElmsLab_RefuseLoop:
+ yesorno
+ iftrue ElmsLab_ElmGetsEmail
+ writetext ElmText_Refused
+ jump ElmsLab_RefuseLoop
+
+ElmsLab_ElmGetsEmail:
+ writetext ElmText_Accepted
+ buttonsound
+ writetext ElmText_ResearchAmbitions
+ waitbutton
+ closetext
+ playsound SFX_GLASS_TING
+ pause 30
+ showemote EMOTE_SHOCK, ELMSLAB_ELM, 10
+ spriteface ELMSLAB_ELM, DOWN
+ loadfont
+ writetext ElmText_GotAnEmail
+ waitbutton
+ closetext
+ loadfont
+ spriteface ELMSLAB_ELM, RIGHT
+ writetext ElmText_MissionFromMrPokemon
+ waitbutton
+ closetext
+ applymovement ELMSLAB_ELM, ElmsLab_ElmToDefaultPositionMovement1
+ spriteface PLAYER, UP
+ applymovement ELMSLAB_ELM, ElmsLab_ElmToDefaultPositionMovement2
+ spriteface PLAYER, RIGHT
+ loadfont
+ writetext ElmText_ChooseAPokemon
+ waitbutton
+ dotrigger $1
+ closetext
+ end
+
+ProfElmScript:
+ faceplayer
+ loadfont
+ checkevent EVENT_GOT_SS_TICKET_FROM_ELM
+ iftrue ElmCheckMasterBall
+ checkevent EVENT_BEAT_ELITE_FOUR
+ iftrue ElmGiveTicketScript
+ElmCheckMasterBall:
+ checkevent EVENT_GOT_MASTER_BALL_FROM_ELM
+ iftrue ElmCheckEverstone
+ checkflag ENGINE_RISINGBADGE
+ iftrue ElmGiveMasterBallScript
+ElmCheckEverstone:
+ checkevent EVENT_GOT_EVERSTONE_FROM_ELM
+ iftrue ElmScript_CallYou
+ checkevent EVENT_SHOWED_TOGEPI_TO_ELM
+ iftrue ElmGiveEverstoneScript
+ checkevent EVENT_TOLD_ELM_ABOUT_TOGEPI_OVER_THE_PHONE
+ iffalse ElmCheckTogepiEgg
+ writebyte TOGEPI
+ special Special_FindThatSpeciesYourTrainerID
+ iftrue ShowElmTogepiScript
+ writebyte TOGETIC
+ special Special_FindThatSpeciesYourTrainerID
+ iftrue ShowElmTogepiScript
+ writetext UnknownText_0x79a40
+ waitbutton
+ closetext
+ end
+
+ElmEggHatchedScript:
+ writebyte TOGEPI
+ special Special_FindThatSpeciesYourTrainerID
+ iftrue ShowElmTogepiScript
+ writebyte TOGETIC
+ special Special_FindThatSpeciesYourTrainerID
+ iftrue ShowElmTogepiScript
+ jump ElmCheckGotEggAgain
+
+ElmCheckTogepiEgg:
+ checkevent EVENT_GOT_TOGEPI_EGG_FROM_ELMS_AIDE
+ iffalse ElmCheckGotEggAgain
+ checkevent EVENT_TOGEPI_HATCHED
+ iftrue ElmEggHatchedScript
+ElmCheckGotEggAgain:
+ checkevent EVENT_GOT_TOGEPI_EGG_FROM_ELMS_AIDE ; why are we checking it again?
+ iftrue ElmWaitingEggHatchScript
+ checkflag ENGINE_ZEPHYRBADGE
+ iftrue ElmAideHasEggScript
+ checkevent EVENT_GAVE_MYSTERY_EGG_TO_ELM
+ iftrue ElmStudyingEggScript
+ checkevent EVENT_GOT_MYSTERY_EGG_FROM_MR_POKEMON
+ iftrue ElmAfterTheftScript
+ checkevent EVENT_GOT_A_POKEMON_FROM_ELM
+ iftrue ElmDescribesMrPokemonScript
+ writetext ElmText_LetYourMonBattleIt
+ waitbutton
+ closetext
+ end
+
+LabTryToLeaveScript:
+ spriteface ELMSLAB_ELM, DOWN
+ loadfont
+ writetext LabWhereGoingText
+ waitbutton
+ closetext
+ applymovement PLAYER, MovementData_0x78f70
+ end
+
+CyndaquilPokeBallScript:
+ checkevent EVENT_GOT_A_POKEMON_FROM_ELM
+ iftrue LookAtElmPokeBallScript
+ spriteface ELMSLAB_ELM, DOWN
+ refreshscreen $0
+ pokepic CYNDAQUIL
+ cry CYNDAQUIL
+ waitbutton
+ closepokepic
+ loadfont
+ writetext TakeCyndaquilText
+ yesorno
+ iffalse DidntChooseStarterScript
+ disappear ELMSLAB_POKE_BALL1
+ setevent EVENT_GOT_CYNDAQUIL_FROM_ELM
+ writetext ChoseStarterText
+ buttonsound
+ waitsfx
+ pokenamemem CYNDAQUIL, $0
+ writetext ReceivedStarterText
+ playsound SFX_CAUGHT_MON
+ waitsfx
+ buttonsound
+ givepoke CYNDAQUIL, 5, BERRY
+ closetext
+ checkcode VAR_FACING
+ if_equal RIGHT, ElmDirectionsScript
+ applymovement PLAYER, AfterCyndaquilMovement
+ jump ElmDirectionsScript
+
+TotodilePokeBallScript:
+ checkevent EVENT_GOT_A_POKEMON_FROM_ELM
+ iftrue LookAtElmPokeBallScript
+ spriteface ELMSLAB_ELM, DOWN
+ refreshscreen $0
+ pokepic TOTODILE
+ cry TOTODILE
+ waitbutton
+ closepokepic
+ loadfont
+ writetext TakeTotodileText
+ yesorno
+ iffalse DidntChooseStarterScript
+ disappear ELMSLAB_POKE_BALL2
+ setevent EVENT_GOT_TOTODILE_FROM_ELM
+ writetext ChoseStarterText
+ buttonsound
+ waitsfx
+ pokenamemem TOTODILE, $0
+ writetext ReceivedStarterText
+ playsound SFX_CAUGHT_MON
+ waitsfx
+ buttonsound
+ givepoke TOTODILE, 5, BERRY
+ closetext
+ applymovement PLAYER, AfterTotodileMovement
+ jump ElmDirectionsScript
+
+ChikoritaPokeBallScript:
+ checkevent EVENT_GOT_A_POKEMON_FROM_ELM
+ iftrue LookAtElmPokeBallScript
+ spriteface ELMSLAB_ELM, DOWN
+ refreshscreen $0
+ pokepic CHIKORITA
+ cry CHIKORITA
+ waitbutton
+ closepokepic
+ loadfont
+ writetext TakeChikoritaText
+ yesorno
+ iffalse DidntChooseStarterScript
+ disappear ELMSLAB_POKE_BALL3
+ setevent EVENT_GOT_CHIKORITA_FROM_ELM
+ writetext ChoseStarterText
+ buttonsound
+ waitsfx
+ pokenamemem CHIKORITA, $0
+ writetext ReceivedStarterText
+ playsound SFX_CAUGHT_MON
+ waitsfx
+ buttonsound
+ givepoke CHIKORITA, 5, BERRY
+ closetext
+ applymovement PLAYER, AfterChikoritaMovement
+ jump ElmDirectionsScript
+
+DidntChooseStarterScript:
+ writetext DidntChooseStarterText
+ waitbutton
+ closetext
+ end
+
+ElmDirectionsScript:
+ spriteface PLAYER, UP
+ loadfont
+ writetext ElmDirectionsText1
+ waitbutton
+ closetext
+ addcellnum PHONE_ELM
+ loadfont
+ writetext GotElmsNumberText
+ playsound SFX_REGISTER_PHONE_NUMBER
+ waitsfx
+ waitbutton
+ closetext
+ spriteface ELMSLAB_ELM, LEFT
+ loadfont
+ writetext ElmDirectionsText2
+ waitbutton
+ closetext
+ spriteface ELMSLAB_ELM, DOWN
+ loadfont
+ writetext ElmDirectionsText3
+ waitbutton
+ closetext
+ setevent EVENT_GOT_A_POKEMON_FROM_ELM
+ setevent EVENT_RIVAL_CHERRYGROVE_CITY
+ dotrigger $5
+ domaptrigger NEW_BARK_TOWN, $1
+ end
+
+ElmDescribesMrPokemonScript:
+ writetext ElmDescribesMrPokemonText
+ waitbutton
+ closetext
+ end
+
+LookAtElmPokeBallScript:
+ loadfont
+ writetext ElmPokeBallText
+ waitbutton
+ closetext
+ end
+
+ElmsLabHealingMachine:
+ loadfont
+ checkevent EVENT_GOT_A_POKEMON_FROM_ELM
+ iftrue .CanHeal
+ writetext ElmsLabHealingMachineText1
+ waitbutton
+ closetext
+ end
+
+.CanHeal
+ writetext ElmsLabHealingMachineText2
+ yesorno
+ iftrue ElmsLabHealingMachine_HealParty
+ closetext
+ end
+
+ElmsLabHealingMachine_HealParty:
+ special Mobile_HealParty
+ special HealParty
+ playmusic MUSIC_NONE
+ writebyte 1 ; Machine is in Elm's Lab
+ special HealMachineAnim
+ pause 30
+ special RestartMapMusic
+ closetext
+ end
+
+ElmAfterTheftDoneScript:
+ waitbutton
+ closetext
+ end
+
+ElmAfterTheftScript:
+ writetext ElmAfterTheftText1
+ checkitem MYSTERY_EGG
+ iffalse ElmAfterTheftDoneScript
+ buttonsound
+ writetext ElmAfterTheftText2
+ waitbutton
+ takeitem MYSTERY_EGG
+ scall ElmJumpBackScript1
+ writetext ElmAfterTheftText3
+ waitbutton
+ scall ElmJumpBackScript2
+ writetext ElmAfterTheftText4
+ buttonsound
+ writetext ElmAfterTheftText5
+ buttonsound
+ setevent EVENT_GAVE_MYSTERY_EGG_TO_ELM
+ setflag ENGINE_BUG_CONTEST_ON
+ domaptrigger ROUTE_29, $1
+ clearevent EVENT_ROUTE_30_YOUNGSTER_JOEY
+ setevent EVENT_ROUTE_30_BATTLE
+ writetext ElmAfterTheftText6
+ waitbutton
+ closetext
+ dotrigger $6
+ end
+
+ElmStudyingEggScript:
+ writetext ElmStudyingEggText
+ waitbutton
+ closetext
+ end
+
+ElmAideHasEggScript:
+ writetext ElmAideHasEggText
+ waitbutton
+ closetext
+ end
+
+ElmWaitingEggHatchScript:
+ writetext ElmWaitingEggHatchText
+ waitbutton
+ closetext
+ end
+
+ShowElmTogepiScript:
+ writetext ShowElmTogepiText1
+ waitbutton
+ closetext
+ showemote EMOTE_SHOCK, ELMSLAB_ELM, 15
+ setevent EVENT_SHOWED_TOGEPI_TO_ELM
+ loadfont
+ writetext ShowElmTogepiText2
+ buttonsound
+ writetext ShowElmTogepiText3
+ buttonsound
+ElmGiveEverstoneScript:
+ writetext ElmGiveEverstoneText1
+ buttonsound
+ verbosegiveitem EVERSTONE
+ iffalse ElmScript_NoRoomForEverstone
+ writetext ElmGiveEverstoneText2
+ waitbutton
+ closetext
+ setevent EVENT_GOT_EVERSTONE_FROM_ELM
+ end
+
+ElmScript_CallYou:
+ writetext ElmText_CallYou
+ waitbutton
+ElmScript_NoRoomForEverstone:
+ closetext
+ end
+
+ElmGiveMasterBallScript:
+ writetext ElmGiveMasterBallText1
+ buttonsound
+ verbosegiveitem MASTER_BALL
+ iffalse .notdone
+ setevent EVENT_GOT_MASTER_BALL_FROM_ELM
+ writetext ElmGiveMasterBallText2
+ waitbutton
+.notdone
+ closetext
+ end
+
+ElmGiveTicketScript:
+ writetext ElmGiveTicketText1
+ buttonsound
+ verbosegiveitem S_S_TICKET
+ setevent EVENT_GOT_SS_TICKET_FROM_ELM
+ writetext ElmGiveTicketText2
+ waitbutton
+ closetext
+ end
+
+ElmJumpBackScript1:
+ closetext
+ checkcode VAR_FACING
+ if_equal DOWN, ElmJumpDownScript
+ if_equal UP, ElmJumpUpScript
+ if_equal LEFT, ElmJumpLeftScript
+ if_equal RIGHT, ElmJumpRightScript
+ end
+
+ElmJumpBackScript2:
+ closetext
+ checkcode VAR_FACING
+ if_equal DOWN, ElmJumpUpScript
+ if_equal UP, ElmJumpDownScript
+ if_equal LEFT, ElmJumpRightScript
+ if_equal RIGHT, ElmJumpLeftScript
+ end
+
+ElmJumpUpScript:
+ applymovement ELMSLAB_ELM, ElmJumpUpMovement
+ loadfont
+ end
+
+ElmJumpDownScript:
+ applymovement ELMSLAB_ELM, ElmJumpDownMovement
+ loadfont
+ end
+
+ElmJumpLeftScript:
+ applymovement ELMSLAB_ELM, ElmJumpLeftMovement
+ loadfont
+ end
+
+ElmJumpRightScript:
+ applymovement ELMSLAB_ELM, ElmJumpRightMovement
+ loadfont
+ end
+
+AideScript_WalkPotions1:
+ applymovement ELMSLAB_SCIENTIST, AideWalksRight1
+ spriteface PLAYER, DOWN
+ scall AideScript_GivePotions
+ applymovement ELMSLAB_SCIENTIST, AideWalksLeft1
+ end
+
+AideScript_WalkPotions2:
+ applymovement ELMSLAB_SCIENTIST, AideWalksRight2
+ spriteface PLAYER, DOWN
+ scall AideScript_GivePotions
+ applymovement ELMSLAB_SCIENTIST, AideWalksLeft2
+ end
+
+AideScript_GivePotions:
+ loadfont
+ writetext AideText_GiveYouPotions
+ buttonsound
+ verbosegiveitem POTION
+ writetext AideText_AlwaysBusy
+ waitbutton
+ closetext
+ dotrigger $2
+ end
+
+AideScript_WalkBalls1:
+ applymovement ELMSLAB_SCIENTIST, AideWalksRight1
+ spriteface PLAYER, DOWN
+ scall AideScript_GiveYouBalls
+ applymovement ELMSLAB_SCIENTIST, AideWalksLeft1
+ end
+
+AideScript_WalkBalls2:
+ applymovement ELMSLAB_SCIENTIST, AideWalksRight2
+ spriteface PLAYER, DOWN
+ scall AideScript_GiveYouBalls
+ applymovement ELMSLAB_SCIENTIST, AideWalksLeft2
+ end
+
+AideScript_GiveYouBalls:
+ loadfont
+ writetext AideText_GiveYouBalls
+ buttonsound
+ itemtotext POKE_BALL, $1
+ scall AideScript_ReceiveTheBalls
+ giveitem POKE_BALL, 5
+ writetext AideText_ExplainBalls
+ buttonsound
+ itemnotify
+ closetext
+ dotrigger $2
+ end
+
+AideScript_ReceiveTheBalls:
+ jumpstd receiveitem
+ end
+
+ElmsAideScript:
+ faceplayer
+ loadfont
+ checkevent EVENT_GOT_TOGEPI_EGG_FROM_ELMS_AIDE
+ iftrue AideScript_AfterTheft
+ checkevent EVENT_GAVE_MYSTERY_EGG_TO_ELM
+ iftrue AideScript_ExplainBalls
+ checkevent EVENT_GOT_MYSTERY_EGG_FROM_MR_POKEMON
+ iftrue AideScript_TheftTestimony
+ writetext AideText_AlwaysBusy
+ waitbutton
+ closetext
+ end
+
+AideScript_TheftTestimony:
+ writetext AideText_TheftTestimony
+ waitbutton
+ closetext
+ end
+
+AideScript_ExplainBalls:
+ writetext AideText_ExplainBalls
+ waitbutton
+ closetext
+ end
+
+AideScript_AfterTheft:
+ writetext AideText_AfterTheft
+ waitbutton
+ closetext
+ end
+
+MeetCopScript2:
+ applymovement PLAYER, MeetCopScript2_StepLeft
+
+MeetCopScript:
+ applymovement PLAYER, MeetCopScript_WalkUp
+CopScript:
+ spriteface ELMSLAB_OFFICER, LEFT
+ loadfont
+ writetext ElmsLabOfficerText1
+ buttonsound
+ special SpecialNameRival
+ writetext ElmsLabOfficerText2
+ waitbutton
+ closetext
+ applymovement ELMSLAB_OFFICER, OfficerLeavesMovement
+ disappear ELMSLAB_OFFICER
+ dotrigger $2
+ end
+
+ElmsLabWindow:
+ loadfont
+ checkflag ENGINE_FLYPOINT_VIOLET
+ iftrue .Normal
+ checkevent EVENT_ELM_CALLED_ABOUT_STOLEN_POKEMON
+ iftrue .BreakIn
+ jump .Normal
+
+.BreakIn
+ writetext ElmsLabWindowText2
+ waitbutton
+ closetext
+ end
+
+.Normal
+ writetext ElmsLabWindowText1
+ waitbutton
+ closetext
+ end
+
+ElmsLabTravelTip1:
+ jumptext ElmsLabTravelTip1Text
+
+ElmsLabTravelTip2:
+ jumptext ElmsLabTravelTip2Text
+
+ElmsLabTravelTip3:
+ jumptext ElmsLabTravelTip3Text
+
+ElmsLabTravelTip4:
+ jumptext ElmsLabTravelTip4Text
+
+ElmsLabTrashcan:
+ jumptext ElmsLabTrashcanText
+
+ElmsLabPC:
+ jumptext ElmsLabPCText
+
+ElmsLabTrashcan2:
+; unused
+ jumpstd trashcan
+
+ElmsLabBookshelf:
+ jumpstd difficultbookshelf
+
+ElmsLab_WalkUpToElmMovement:
+ step_up
+ step_up
+ step_up
+ step_up
+ step_up
+ step_up
+ step_up
+ turn_head_left
+ step_end
+
+MovementData_0x78f70:
+ step_up
+ step_end
+
+MeetCopScript2_StepLeft:
+ step_left
+ step_end
+
+MeetCopScript_WalkUp:
+ step_up
+ step_up
+ turn_head_right
+ step_end
+
+OfficerLeavesMovement:
+ step_down
+ step_down
+ step_down
+ step_down
+ step_down
+ step_end
+
+AideWalksRight1:
+ step_right
+ step_right
+ turn_head_up
+ step_end
+
+AideWalksRight2:
+ step_right
+ step_right
+ step_right
+ turn_head_up
+ step_end
+
+AideWalksLeft1:
+ step_left
+ step_left
+ turn_head_down
+ step_end
+
+AideWalksLeft2:
+ step_left
+ step_left
+ step_left
+ turn_head_down
+ step_end
+
+ElmJumpUpMovement:
+ fix_facing
+ big_step_up
+ remove_fixed_facing
+ step_end
+
+ElmJumpDownMovement:
+ fix_facing
+ big_step_down
+ remove_fixed_facing
+ step_end
+
+ElmJumpLeftMovement:
+ fix_facing
+ big_step_left
+ remove_fixed_facing
+ step_end
+
+ElmJumpRightMovement:
+ fix_facing
+ big_step_right
+ remove_fixed_facing
+ step_end
+
+ElmsLab_ElmToDefaultPositionMovement1:
+ step_up
+ step_end
+
+ElmsLab_ElmToDefaultPositionMovement2:
+ step_right
+ step_right
+ step_up
+ turn_head_down
+ step_end
+
+AfterCyndaquilMovement:
+ step_left
+ step_up
+ turn_head_up
+ step_end
+
+AfterTotodileMovement:
+ step_left
+ step_left
+ step_up
+ turn_head_up
+ step_end
+
+AfterChikoritaMovement:
+ step_left
+ step_left
+ step_left
+ step_up
+ turn_head_up
+ step_end
+
+ElmText_Intro:
+ text "ELM: <PLAY_G>!"
+ line "There you are!"
+
+ para "I needed to ask"
+ line "you a favor."
+
+ para "I'm conducting new"
+ line "#MON research"
+
+ para "right now. I was"
+ line "wondering if you"
+
+ para "could help me with"
+ line "it, <PLAY_G>."
+
+ para "You see…"
+
+ para "I'm writing a"
+ line "paper that I want"
+
+ para "to present at a"
+ line "conference."
+
+ para "But there are some"
+ line "things I don't"
+
+ para "quite understand"
+ line "yet."
+
+ para "So!"
+
+ para "I'd like you to"
+ line "raise a #MON"
+
+ para "that I recently"
+ line "caught."
+ done
+
+ElmText_Accepted:
+ text "Thanks, <PLAY_G>!"
+
+ para "You're a great"
+ line "help!"
+ done
+
+ElmText_Refused:
+ text "But… Please, I"
+ line "need your help!"
+ done
+
+ElmText_ResearchAmbitions:
+ text "When I announce my"
+ line "findings, I'm sure"
+
+ para "we'll delve a bit"
+ line "deeper into the"
+
+ para "many mysteries of"
+ line "#MON."
+
+ para "You can count on"
+ line "it!"
+ done
+
+ElmText_GotAnEmail:
+ text "Oh, hey! I got an"
+ line "e-mail!"
+
+ para $56, $56, $56
+ line "Hm… Uh-huh…"
+
+ para "Okay…"
+ done
+
+ElmText_MissionFromMrPokemon:
+ text "Hey, listen."
+
+ para "I have an acquain-"
+ line "tance called MR."
+ cont "#MON."
+
+ para "He keeps finding"
+ line "weird things and"
+
+ para "raving about his"
+ line "discoveries."
+
+ para "Anyway, I just got"
+ line "an e-mail from him"
+
+ para "saying that this"
+ line "time it's real."
+
+ para "It is intriguing,"
+ line "but we're busy"
+
+ para "with our #MON"
+ line "research…"
+
+ para "Wait!"
+
+ para "I know!"
+
+ para "<PLAY_G>, can you"
+ line "go in our place?"
+ done
+
+ElmText_ChooseAPokemon:
+ text "I want you to"
+ line "raise one of the"
+
+ para "#MON contained"
+ line "in these BALLS."
+
+ para "You'll be that"
+ line "#MON's first"
+ cont "partner, <PLAY_G>!"
+
+ para "Go on. Pick one!"
+ done
+
+ElmText_LetYourMonBattleIt:
+ text "If a wild #MON"
+ line "appears, let your"
+ cont "#MON battle it!"
+ done
+
+LabWhereGoingText:
+ text "ELM: Wait! Where"
+ line "are you going?"
+ done
+
+TakeCyndaquilText:
+ text "ELM: You'll take"
+ line "CYNDAQUIL, the"
+ cont "fire #MON?"
+ done
+
+TakeTotodileText:
+ text "ELM: Do you want"
+ line "TOTODILE, the"
+ cont "water #MON?"
+ done
+
+TakeChikoritaText:
+ text "ELM: So, you like"
+ line "CHIKORITA, the"
+ cont "grass #MON?"
+ done
+
+DidntChooseStarterText:
+ text "ELM: Think it over"
+ line "carefully."
+
+ para "Your partner is"
+ line "important."
+ done
+
+ChoseStarterText:
+ text "ELM: I think"
+ line "that's a great"
+ cont "#MON too!"
+ done
+
+ReceivedStarterText:
+ text "<PLAYER> received"
+ line "@"
+ text_from_ram StringBuffer3
+ text "!"
+ done
+
+ElmDirectionsText1:
+ text "MR.#MON lives a"
+ line "little bit beyond"
+
+ para "CHERRYGROVE, the"
+ line "next city over."
+
+ para "It's almost a"
+ line "direct route"
+
+ para "there, so you"
+ line "can't miss it."
+
+ para "But just in case,"
+ line "here's my phone"
+
+ para "number. Call me if"
+ line "anything comes up!"
+ done
+
+ElmDirectionsText2:
+ text "If your #MON is"
+ line "hurt, you should"
+
+ para "heal it with this"
+ line "machine."
+
+ para "Feel free to use"
+ line "it anytime."
+ done
+
+ElmDirectionsText3:
+ text "<PLAY_G>, I'm"
+ line "counting on you!"
+ done
+
+GotElmsNumberText:
+ text "<PLAYER> got ELM's"
+ line "phone number."
+ done
+
+ElmDescribesMrPokemonText:
+ text "MR.#MON goes"
+ line "everywhere and"
+ cont "finds rarities."
+
+ para "Too bad they're"
+ line "just rare and"
+ cont "not very useful…"
+ done
+
+ElmPokeBallText:
+ text "It contains a"
+ line "#MON caught by"
+ cont "PROF.ELM."
+ done
+
+ElmsLabHealingMachineText1:
+ text "I wonder what this"
+ line "does?"
+ done
+
+ElmsLabHealingMachineText2:
+ text "Would you like to"
+ line "heal your #MON?"
+ done
+
+ElmAfterTheftText1:
+ text "ELM: <PLAY_G>, this"
+ line "is terrible…"
+
+ para "Oh, yes, what was"
+ line "MR.#MON's big"
+ cont "discovery?"
+ done
+
+ElmAfterTheftText2:
+ text "<PLAYER> handed"
+ line "the MYSTERY EGG to"
+ cont "PROF.ELM."
+ done
+
+ElmAfterTheftText3:
+ text "ELM: This?"
+ done
+
+ElmAfterTheftText4:
+ text "But… Is it a"
+ line "#MON EGG?"
+
+ para "If it is, it is a"
+ line "great discovery!"
+ done
+
+ElmAfterTheftText5:
+ text "ELM: What?!?"
+
+ para "PROF.OAK gave you"
+ line "a #DEX?"
+
+ para "<PLAY_G>, is that"
+ line "true? Th-that's"
+ cont "incredible!"
+
+ para "He is superb at"
+ line "seeing the poten-"
+ cont "tial of people as"
+ cont "trainers."
+
+ para "Wow, <PLAY_G>. You"
+ line "may have what it"
+
+ para "takes to become"
+ line "the CHAMPION."
+
+ para "You seem to be"
+ line "getting on great"
+ cont "with #MON too."
+
+ para "You should take"
+ line "the #MON GYM"
+ cont "challenge."
+
+ para "The closest GYM"
+ line "would be the one"
+ cont "in VIOLET CITY."
+ done
+
+ElmAfterTheftText6:
+ text "…<PLAY_G>. The"
+ line "road to the"
+
+ para "championship will"
+ line "be a long one."
+
+ para "Before you leave,"
+ line "make sure that you"
+ cont "talk to your mom."
+ done
+
+ElmStudyingEggText:
+ text "ELM: Don't give"
+ line "up! I'll call if"
+
+ para "I learn anything"
+ line "about that EGG!"
+ done
+
+ElmAideHasEggText:
+ text "ELM: <PLAY_G>?"
+ line "Didn't you meet my"
+ cont "assistant?"
+
+ para "He should have met"
+ line "you with the EGG"
+
+ para "at VIOLET CITY's"
+ line "#MON CENTER."
+
+ para "You must have just"
+ line "missed him. Try to"
+ cont "catch him there."
+ done
+
+ElmWaitingEggHatchText:
+ text "ELM: Hey, has that"
+ line "EGG changed any?"
+ done
+
+UnknownText_0x79a40:
+ text "<PLAY_G>? I thought"
+ line "the EGG hatched."
+
+ para "Where is the"
+ line "#MON?"
+ done
+
+ShowElmTogepiText1:
+ text "ELM: <PLAY_G>, you"
+ line "look great!"
+ done
+
+ShowElmTogepiText2:
+ text "What?"
+ line "That #MON!?!"
+ done
+
+ShowElmTogepiText3:
+ text "The EGG hatched!"
+ line "So, #MON are"
+ cont "born from EGGS…"
+
+ para "No, perhaps not"
+ line "all #MON are."
+
+ para "Wow, there's still"
+ line "a lot of research"
+ cont "to be done."
+ done
+
+ElmGiveEverstoneText1:
+ text "Thanks, <PLAY_G>!"
+ line "You're helping"
+
+ para "unravel #MON"
+ line "mysteries for us!"
+
+ para "I want you to have"
+ line "this as a token of"
+ cont "our appreciation."
+ done
+
+ElmGiveEverstoneText2:
+ text "That's an"
+ line "EVERSTONE."
+
+ para "Some species of"
+ line "#MON evolve"
+
+ para "when they grow to"
+ line "certain levels."
+
+ para "A #MON holding"
+ line "the EVERSTONE"
+ cont "won't evolve."
+
+ para "Give it to a #-"
+ line "MON you don't want"
+ cont "to evolve."
+ done
+
+ElmText_CallYou:
+ text "ELM: <PLAY_G>, I'll"
+ line "call you if any-"
+ cont "thing comes up."
+ done
+
+AideText_AfterTheft:
+ text "…sigh… That"
+ line "stolen #MON."
+
+ para "I wonder how it's"
+ line "doing."
+
+ para "They say a #MON"
+ line "raised by a bad"
+
+ para "person turns bad"
+ line "itself."
+ done
+
+ElmGiveMasterBallText1:
+ text "ELM: Hi, <PLAY_G>!"
+ line "Thanks to you, my"
+
+ para "research is going"
+ line "great!"
+
+ para "Take this as a"
+ line "token of my"
+ cont "appreciation."
+ done
+
+ElmGiveMasterBallText2:
+ text "The MASTER BALL is"
+ line "the best!"
+
+ para "It's the ultimate"
+ line "BALL! It'll catch"
+
+ para "any #MON with-"
+ line "out fail."
+
+ para "It's given only to"
+ line "recognized #MON"
+ cont "researchers."
+
+ para "I think you can"
+ line "make much better"
+
+ para "use of it than I"
+ line "can, <PLAY_G>!"
+ done
+
+ElmGiveTicketText1:
+ text "ELM: <PLAY_G>!"
+ line "There you are!"
+
+ para "I called because I"
+ line "have something for"
+ cont "you."
+
+ para "See? It's an"
+ line "S.S.TICKET."
+
+ para "Now you can catch"
+ line "#MON in KANTO."
+ done
+
+ElmGiveTicketText2:
+ text "The ship departs"
+ line "from OLIVINE CITY."
+
+ para "But you knew that"
+ line "already, <PLAY_G>."
+
+ para "After all, you've"
+ line "traveled all over"
+ cont "with your #MON."
+
+ para "Give my regards to"
+ line "PROF.OAK in KANTO!"
+ done
+
+ElmsLabSignpostText_Egg:
+ text "It's the #MON"
+ line "EGG being studied"
+ cont "by PROF.ELM."
+ done
+
+AideText_GiveYouPotions:
+ text "<PLAY_G>, I want"
+ line "you to have this"
+ cont "for your errand."
+ done
+
+AideText_AlwaysBusy:
+ text "There are only two"
+ line "of us, so we're"
+ cont "always busy."
+ done
+
+AideText_TheftTestimony:
+ text "There was a loud"
+ line "noise outside…"
+
+ para "When we went to"
+ line "look, someone"
+ cont "stole a #MON."
+
+ para "It's unbelievable"
+ line "that anyone would"
+ cont "do that!"
+
+ para "…sigh… That"
+ line "stolen #MON."
+
+ para "I wonder how it's"
+ line "doing."
+
+ para "They say a #MON"
+ line "raised by a bad"
+
+ para "person turns bad"
+ line "itself."
+ done
+
+AideText_GiveYouBalls:
+ text "<PLAY_G>!"
+
+ para "Use these on your"
+ line "#DEX quest!"
+ done
+
+AideText_ExplainBalls:
+ text "To add to your"
+ line "#DEX, you have"
+ cont "to catch #MON."
+
+ para "Throw # BALLS"
+ line "at wild #MON"
+ cont "to get them."
+ done
+
+ElmsLabOfficerText1:
+ text "I heard a #MON"
+ line "was stolen here…"
+
+ para "I was just getting"
+ line "some information"
+ cont "from PROF.ELM."
+
+ para "Apparently, it was"
+ line "a young male with"
+ cont "long, red hair…"
+
+ para "What?"
+
+ para "You battled a"
+ line "trainer like that?"
+
+ para "Did you happen to"
+ line "get his name?"
+ done
+
+ElmsLabOfficerText2:
+ text "OK! So <RIVAL>"
+ line "was his name."
+
+ para "Thanks for helping"
+ line "my investigation!"
+ done
+
+ElmsLabWindowText1:
+ text "The window's open."
+
+ para "A pleasant breeze"
+ line "is blowing in."
+ done
+
+ElmsLabWindowText2:
+ text "He broke in"
+ line "through here!"
+ done
+
+ElmsLabTravelTip1Text:
+ text "<PLAYER> opened a"
+ line "book."
+
+ para "Travel Tip 1:"
+
+ para "Press START to"
+ line "open the MENU."
+ done
+
+ElmsLabTravelTip2Text:
+ text "<PLAYER> opened a"
+ line "book."
+
+ para "Travel Tip 2:"
+
+ para "Record your trip"
+ line "with SAVE!"
+ done
+
+ElmsLabTravelTip3Text:
+ text "<PLAYER> opened a"
+ line "book."
+
+ para "Travel Tip 3:"
+
+ para "Open your PACK and"
+ line "press SELECT to"
+ cont "move items."
+ done
+
+ElmsLabTravelTip4Text:
+ text "<PLAYER> opened a"
+ line "book."
+
+ para "Travel Tip 4:"
+
+ para "Check your #MON"
+ line "moves. Press the"
+
+ para "A Button to switch"
+ line "moves."
+ done
+
+ElmsLabTrashcanText:
+ text "The wrapper from"
+ line "the snack PROF.ELM"
+ cont "ate is in there…"
+ done
+
+ElmsLabPCText:
+ text "OBSERVATIONS ON"
+ line "#MON EVOLUTION"
+
+ para "…It says on the"
+ line "screen…"
+ done
+
+ElmsLab_MapEventHeader:
+ ; filler
+ db 0, 0
+
+.Warps:
+ db 2
+ warp_def $b, $4, 1, NEW_BARK_TOWN
+ warp_def $b, $5, 1, NEW_BARK_TOWN
+
+.XYTriggers:
+ db 8
+ xy_trigger 1, $6, $4, $0, LabTryToLeaveScript, $0, $0
+ xy_trigger 1, $6, $5, $0, LabTryToLeaveScript, $0, $0
+ xy_trigger 3, $5, $4, $0, MeetCopScript, $0, $0
+ xy_trigger 3, $5, $5, $0, MeetCopScript2, $0, $0
+ xy_trigger 5, $8, $4, $0, AideScript_WalkPotions1, $0, $0
+ xy_trigger 5, $8, $5, $0, AideScript_WalkPotions2, $0, $0
+ xy_trigger 6, $8, $4, $0, AideScript_WalkBalls1, $0, $0
+ xy_trigger 6, $8, $5, $0, AideScript_WalkBalls2, $0, $0
+
+.Signposts:
+ db 16
+ signpost 1, 2, SIGNPOST_READ, ElmsLabHealingMachine
+ signpost 1, 6, SIGNPOST_READ, ElmsLabBookshelf
+ signpost 1, 7, SIGNPOST_READ, ElmsLabBookshelf
+ signpost 1, 8, SIGNPOST_READ, ElmsLabBookshelf
+ signpost 1, 9, SIGNPOST_READ, ElmsLabBookshelf
+ signpost 7, 0, SIGNPOST_READ, ElmsLabTravelTip1
+ signpost 7, 1, SIGNPOST_READ, ElmsLabTravelTip2
+ signpost 7, 2, SIGNPOST_READ, ElmsLabTravelTip3
+ signpost 7, 3, SIGNPOST_READ, ElmsLabTravelTip4
+ signpost 7, 6, SIGNPOST_READ, ElmsLabBookshelf
+ signpost 7, 7, SIGNPOST_READ, ElmsLabBookshelf
+ signpost 7, 8, SIGNPOST_READ, ElmsLabBookshelf
+ signpost 7, 9, SIGNPOST_READ, ElmsLabBookshelf
+ signpost 3, 9, SIGNPOST_READ, ElmsLabTrashcan
+ signpost 0, 5, SIGNPOST_READ, ElmsLabWindow
+ signpost 5, 3, SIGNPOST_DOWN, ElmsLabPC
+
+.PersonEvents:
+ db 6
+ person_event SPRITE_ELM, 2, 5, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, 0, PERSONTYPE_SCRIPT, 0, ProfElmScript, -1
+ person_event SPRITE_SCIENTIST, 9, 2, SPRITEMOVEDATA_SPINRANDOM_SLOW, 0, 0, -1, -1, (1 << 3) | PAL_OW_BLUE, PERSONTYPE_SCRIPT, 0, ElmsAideScript, EVENT_ELMS_AIDE_IN_LAB
+ person_event SPRITE_POKE_BALL, 3, 6, SPRITEMOVEDATA_ITEM_TREE, 0, 0, -1, -1, 0, PERSONTYPE_SCRIPT, 0, CyndaquilPokeBallScript, EVENT_CYNDAQUIL_POKEBALL_IN_ELMS_LAB
+ person_event SPRITE_POKE_BALL, 3, 7, SPRITEMOVEDATA_ITEM_TREE, 0, 0, -1, -1, 0, PERSONTYPE_SCRIPT, 0, TotodilePokeBallScript, EVENT_TOTODILE_POKEBALL_IN_ELMS_LAB
+ person_event SPRITE_POKE_BALL, 3, 8, SPRITEMOVEDATA_ITEM_TREE, 0, 0, -1, -1, 0, PERSONTYPE_SCRIPT, 0, ChikoritaPokeBallScript, EVENT_CHIKORITA_POKEBALL_IN_ELMS_LAB
+ person_event SPRITE_OFFICER, 3, 5, SPRITEMOVEDATA_STANDING_UP, 0, 0, -1, -1, (1 << 3) | PAL_OW_BLUE, PERSONTYPE_SCRIPT, 0, CopScript, EVENT_COP_IN_ELMS_LAB
diff --git a/maps/FastShipB1F.asm b/maps/FastShipB1F.asm
index d6bf88556..1e1fdabbb 100644
--- a/maps/FastShipB1F.asm
+++ b/maps/FastShipB1F.asm
@@ -83,7 +83,7 @@ UnknownScript_0x7678d:
end
UnknownScript_0x76799:
- keeptextopen
+ buttonsound
writetext UnknownText_0x7696d
waitbutton
closetext
diff --git a/maps/FastShipCabins_SE_SSE_CaptainsCabin.asm b/maps/FastShipCabins_SE_SSE_CaptainsCabin.asm
index 7b3cf886b..7f8a8f3d7 100644
--- a/maps/FastShipCabins_SE_SSE_CaptainsCabin.asm
+++ b/maps/FastShipCabins_SE_SSE_CaptainsCabin.asm
@@ -79,7 +79,7 @@ UnknownScript_0x75f09:
applymovement FASTSHIPCABINS_SE_SSE_CAPTAINSCABIN_GENTLEMAN, MovementData_0x76010
loadfont
writetext UnknownText_0x76143
- keeptextopen
+ buttonsound
setevent EVENT_VERMILION_PORT_SAILOR_AT_GANGWAY
domaptrigger FAST_SHIP_1F, $0
jump UnknownScript_0x75f37
@@ -99,7 +99,7 @@ GentlemanScript_0x75f1f:
UnknownScript_0x75f37:
writetext UnknownText_0x7619b
- keeptextopen
+ buttonsound
verbosegiveitem METAL_COAT
iffalse UnknownScript_0x75f44
setevent EVENT_GOT_METAL_COAT_FROM_GRANDPA_ON_SS_AQUA
@@ -118,7 +118,7 @@ UnknownScript_0x75f44:
UnknownScript_0x75f58:
writetext UnknownText_0x7619b
- keeptextopen
+ buttonsound
verbosegiveitem METAL_COAT
iffalse UnknownScript_0x75f65
setevent EVENT_GOT_METAL_COAT_FROM_GRANDPA_ON_SS_AQUA
diff --git a/maps/FuchsiaGym.asm b/maps/FuchsiaGym.asm
index 5498fec5e..19e28c715 100644
--- a/maps/FuchsiaGym.asm
+++ b/maps/FuchsiaGym.asm
@@ -49,7 +49,7 @@ UnknownScript_0x195e02:
checkevent EVENT_GOT_TM06_TOXIC
iftrue UnknownScript_0x195e15
writetext UnknownText_0x196002
- keeptextopen
+ buttonsound
verbosegiveitem TM_TOXIC
iffalse UnknownScript_0x195e15
setevent EVENT_GOT_TM06_TOXIC
diff --git a/maps/GoldenrodBikeShop.asm b/maps/GoldenrodBikeShop.asm
index 503394b77..cdf0a7b04 100644
--- a/maps/GoldenrodBikeShop.asm
+++ b/maps/GoldenrodBikeShop.asm
@@ -20,7 +20,7 @@ ClerkScript_0x54750:
yesorno
iffalse UnknownScript_0x5477b
writetext UnknownText_0x547f8
- keeptextopen
+ buttonsound
waitsfx
giveitem BICYCLE
writetext UnknownText_0x54848
diff --git a/maps/GoldenrodBillsHouse.asm b/maps/GoldenrodBillsHouse.asm
index 77b087403..49bb5b9e1 100644
--- a/maps/GoldenrodBillsHouse.asm
+++ b/maps/GoldenrodBillsHouse.asm
@@ -19,7 +19,7 @@ BillsHouseBill:
yesorno
iffalse UnknownScript_0x54c19
writetext UnknownText_0x54d3f
- keeptextopen
+ buttonsound
waitsfx
checkcode VAR_PARTYCOUNT
if_equal $6, UnknownScript_0x54c13
@@ -81,7 +81,7 @@ BillsSister:
writetext UnknownText_0x54fd9
playsound SFX_REGISTER_PHONE_NUMBER
waitsfx
- keeptextopen
+ buttonsound
UnknownScript_0x54c58: ;0x54c58
writetext UnknownText_0x55069
waitbutton
@@ -96,7 +96,7 @@ UnknownScript_0x54c5e:
UnknownScript_0x54c64:
writetext UnknownText_0x55046
- keeptextopen
+ buttonsound
jump UnknownScript_0x54c5e
BillsHouseBookshelf1:
diff --git a/maps/GoldenrodCity.asm b/maps/GoldenrodCity.asm
index 40c0d286b..b0c657427 100644
--- a/maps/GoldenrodCity.asm
+++ b/maps/GoldenrodCity.asm
@@ -127,7 +127,7 @@ MoveTutor:
.TeachMove:
writetext UnknownText_0x19913a
- keeptextopen
+ buttonsound
takecoins 4000
waitsfx
playsound SFX_TRANSACTION
@@ -212,7 +212,7 @@ GrampsScript_0x198a17:
RocketScript_0x198a1a:
loadfont
writetext UnknownText_0x198d0d
- keeptextopen
+ buttonsound
faceplayer
writetext UnknownText_0x198d2a
waitbutton
diff --git a/maps/GoldenrodDeptStore5F.asm b/maps/GoldenrodDeptStore5F.asm
index 4d6c70408..29eb2ee91 100644
--- a/maps/GoldenrodDeptStore5F.asm
+++ b/maps/GoldenrodDeptStore5F.asm
@@ -70,14 +70,14 @@ ReceptionistScript_0x560ce:
iftrue .EventIsOver
special GetFirstPokemonHappiness
writetext UnknownText_0x56143
- keeptextopen
+ buttonsound
if_greater_than $95, .VeryHappy
if_greater_than $31, .SomewhatHappy
jump .NotVeryHappy
.VeryHappy:
writetext UnknownText_0x5615a
- keeptextopen
+ buttonsound
verbosegiveitem TM_RETURN
iffalse .Done
setflag ENGINE_GOLDENROD_MALL_5F_HAPPINESS_EVENT
@@ -92,7 +92,7 @@ ReceptionistScript_0x560ce:
.NotVeryHappy:
writetext UnknownText_0x561d8
- keeptextopen
+ buttonsound
verbosegiveitem TM_FRUSTRATION
iffalse .Done
setflag ENGINE_GOLDENROD_MALL_5F_HAPPINESS_EVENT
diff --git a/maps/GoldenrodDeptStore6F.asm b/maps/GoldenrodDeptStore6F.asm
index 6363558ed..e4cf46c2f 100644
--- a/maps/GoldenrodDeptStore6F.asm
+++ b/maps/GoldenrodDeptStore6F.asm
@@ -54,7 +54,7 @@ GoldenrodVendingMachine:
pause 10
playsound SFX_ENTER_DOOR
writetext GoldenrodClangText
- keeptextopen
+ buttonsound
itemnotify
jump .Start
diff --git a/maps/GoldenrodFlowerShop.asm b/maps/GoldenrodFlowerShop.asm
index f89eee61a..8ddeb016a 100644
--- a/maps/GoldenrodFlowerShop.asm
+++ b/maps/GoldenrodFlowerShop.asm
@@ -23,7 +23,7 @@ FlowerShopTeacherScript:
faceplayer
loadfont
writetext UnknownText_0x554c2
- keeptextopen
+ buttonsound
verbosegiveitem SQUIRTBOTTLE
setevent EVENT_GOT_SQUIRTBOTTLE
closetext
diff --git a/maps/GoldenrodGym.asm b/maps/GoldenrodGym.asm
index aba5a08c4..9ecce0e36 100644
--- a/maps/GoldenrodGym.asm
+++ b/maps/GoldenrodGym.asm
@@ -57,7 +57,7 @@ WhitneyScript_0x5400c:
checkflag ENGINE_PLAINBADGE
iftrue UnknownScript_0x54064
writetext UnknownText_0x54222
- keeptextopen
+ buttonsound
waitsfx
writetext UnknownText_0x54273
playsound SFX_GET_BADGE
@@ -67,7 +67,7 @@ WhitneyScript_0x5400c:
scall GoldenrodGymTriggerRockets
UnknownScript_0x54064:
writetext UnknownText_0x5428b
- keeptextopen
+ buttonsound
verbosegiveitem TM_ATTRACT
iffalse UnknownScript_0x5407b
setevent EVENT_GOT_TM45_ATTRACT
diff --git a/maps/GoldenrodHappinessRater.asm b/maps/GoldenrodHappinessRater.asm
index ac34965ba..9455ec8f7 100644
--- a/maps/GoldenrodHappinessRater.asm
+++ b/maps/GoldenrodHappinessRater.asm
@@ -15,7 +15,7 @@ TeacherScript_0x54953:
loadfont
special GetFirstPokemonHappiness
writetext UnknownText_0x549a3
- keeptextopen
+ buttonsound
if_greater_than $f9, UnknownScript_0x54973
if_greater_than $c7, UnknownScript_0x54979
if_greater_than $95, UnknownScript_0x5497f
diff --git a/maps/IlexForest.asm b/maps/IlexForest.asm
index 3e44de8a5..40289a6d8 100644
--- a/maps/IlexForest.asm
+++ b/maps/IlexForest.asm
@@ -122,7 +122,7 @@ IlexForestFarfetchdScript:
faceplayer
loadfont
writetext Text_ItsTheMissingPokemon
- keeptextopen
+ buttonsound
writetext Text_Kwaaaa
cry FARFETCH_D
waitbutton
@@ -353,7 +353,7 @@ BlackBeltScript_0x6edae:
checkevent EVENT_GOT_HM01_CUT
iftrue .AlreadyGotCut
writetext UnknownText_0x6f099
- keeptextopen
+ buttonsound
verbosegiveitem HM_CUT
setevent EVENT_GOT_HM01_CUT
writetext UnknownText_0x6f141
@@ -379,7 +379,7 @@ RockerScript_0x6edde:
checkevent EVENT_GOT_TM02_HEADBUTT
iftrue UnknownScript_0x6edf3
writetext UnknownText_0x6f21b
- keeptextopen
+ buttonsound
verbosegiveitem TM_HEADBUTT
iffalse UnknownScript_0x6edf7
setevent EVENT_GOT_TM02_HEADBUTT
diff --git a/maps/KrissHouse1F.asm b/maps/KrissHouse1F.asm
index 18b1b500b..99509db54 100644
--- a/maps/KrissHouse1F.asm
+++ b/maps/KrissHouse1F.asm
@@ -39,7 +39,7 @@ UnknownScript_0x7a4f2:
UnknownScript_0x7a4f6:
loadfont
writetext UnknownText_0x7a604
- keeptextopen
+ buttonsound
stringtotext GearName, $1
scall UnknownScript_0x7a57e
setflag ENGINE_POKEGEAR
@@ -49,7 +49,7 @@ UnknownScript_0x7a4f6:
setevent EVENT_KRISS_HOUSE_MOM_1
clearevent EVENT_KRISS_HOUSE_MOM_2
writetext UnknownText_0x7a6bd
- keeptextopen
+ buttonsound
special Special_SetDayOfWeek
UnknownScript_0x7a519:
writetext UnknownText_0x7a742
@@ -72,12 +72,12 @@ UnknownScript_0x7a531:
UnknownScript_0x7a53b:
writetext UnknownText_0x7a7cb
- keeptextopen
+ buttonsound
jump UnknownScript_0x7a549
UnknownScript_0x7a542:
writetext UnknownText_0x7a807
- keeptextopen
+ buttonsound
jump UnknownScript_0x7a549
UnknownScript_0x7a549:
@@ -166,17 +166,17 @@ NeighborScript:
.MornScript
writetext NeighborMornIntroText
- keeptextopen
+ buttonsound
jump .Main
.DayScript
writetext NeighborDayIntroText
- keeptextopen
+ buttonsound
jump .Main
.NiteScript
writetext NeighborNiteIntroText
- keeptextopen
+ buttonsound
jump .Main
.Main
diff --git a/maps/KurtsHouse.asm b/maps/KurtsHouse.asm
index 82f29c544..ec1715bf0 100644
--- a/maps/KurtsHouse.asm
+++ b/maps/KurtsHouse.asm
@@ -72,7 +72,7 @@ KurtScript_0x18e178:
.ClearedSlowpokeWell:
writetext UnknownText_0x18e615
- keeptextopen
+ buttonsound
verbosegiveitem LURE_BALL
iffalse .NoRoomForBall
setevent EVENT_KURT_GAVE_YOU_LURE_BALL
@@ -132,7 +132,7 @@ KurtScript_0x18e178:
.AskApricorn:
writetext UnknownText_0x18e736
- keeptextopen
+ buttonsound
setevent EVENT_DRAGON_SHRINE_QUESTION_2
special Special_SelectApricornForKurt
if_equal $0, .Cancel
@@ -198,7 +198,7 @@ KurtScript_0x18e178:
checkflag ENGINE_KURT_MAKING_BALLS
iftrue KurtMakingBallsScript
writetext UnknownText_0x18e7fb
- keeptextopen
+ buttonsound
verbosegiveitem2 LEVEL_BALL, VAR_KURT_APRICORNS
iffalse .NoRoomForBall
clearevent EVENT_GAVE_KURT_RED_APRICORN
@@ -208,7 +208,7 @@ KurtScript_0x18e178:
checkflag ENGINE_KURT_MAKING_BALLS
iftrue KurtMakingBallsScript
writetext UnknownText_0x18e7fb
- keeptextopen
+ buttonsound
verbosegiveitem2 LURE_BALL, VAR_KURT_APRICORNS
iffalse .NoRoomForBall
clearevent EVENT_GAVE_KURT_BLU_APRICORN
@@ -218,7 +218,7 @@ KurtScript_0x18e178:
checkflag ENGINE_KURT_MAKING_BALLS
iftrue KurtMakingBallsScript
writetext UnknownText_0x18e7fb
- keeptextopen
+ buttonsound
verbosegiveitem2 MOON_BALL, VAR_KURT_APRICORNS
iffalse .NoRoomForBall
clearevent EVENT_GAVE_KURT_YLW_APRICORN
@@ -228,7 +228,7 @@ KurtScript_0x18e178:
checkflag ENGINE_KURT_MAKING_BALLS
iftrue KurtMakingBallsScript
writetext UnknownText_0x18e7fb
- keeptextopen
+ buttonsound
verbosegiveitem2 FRIEND_BALL, VAR_KURT_APRICORNS
iffalse .NoRoomForBall
clearevent EVENT_GAVE_KURT_GRN_APRICORN
@@ -238,7 +238,7 @@ KurtScript_0x18e178:
checkflag ENGINE_KURT_MAKING_BALLS
iftrue KurtMakingBallsScript
writetext UnknownText_0x18e7fb
- keeptextopen
+ buttonsound
verbosegiveitem2 FAST_BALL, VAR_KURT_APRICORNS
iffalse .NoRoomForBall
clearevent EVENT_GAVE_KURT_WHT_APRICORN
@@ -248,7 +248,7 @@ KurtScript_0x18e178:
checkflag ENGINE_KURT_MAKING_BALLS
iftrue KurtMakingBallsScript
writetext UnknownText_0x18e7fb
- keeptextopen
+ buttonsound
verbosegiveitem2 HEAVY_BALL, VAR_KURT_APRICORNS
iffalse .NoRoomForBall
clearevent EVENT_GAVE_KURT_BLK_APRICORN
@@ -258,7 +258,7 @@ KurtScript_0x18e178:
checkflag ENGINE_KURT_MAKING_BALLS
iftrue KurtMakingBallsScript
writetext UnknownText_0x18e7fb
- keeptextopen
+ buttonsound
verbosegiveitem2 LOVE_BALL, VAR_KURT_APRICORNS
iffalse .NoRoomForBall
clearevent EVENT_GAVE_KURT_PNK_APRICORN
diff --git a/maps/LakeofRage.asm b/maps/LakeofRage.asm
index 761e4da5f..765c48807 100644
--- a/maps/LakeofRage.asm
+++ b/maps/LakeofRage.asm
@@ -53,7 +53,7 @@ LanceScript_0x70022:
iftrue UnknownScript_0x70057
loadfont
writetext UnknownText_0x70157
- keeptextopen
+ buttonsound
faceplayer
writetext UnknownText_0x701b4
yesorno
@@ -145,7 +145,7 @@ MapLakeofRageSignpost1Script:
end
UnknownScript_0x700b8:
- keeptextopen
+ buttonsound
special Special_MagikarpHouseSign
closetext
end
@@ -204,11 +204,11 @@ WesleyScript:
checkevent EVENT_MET_WESLEY_OF_WEDNESDAY
iftrue .MetWesley
writetext MeetWesleyText
- keeptextopen
+ buttonsound
setevent EVENT_MET_WESLEY_OF_WEDNESDAY
.MetWesley
writetext WesleyGivesGiftText
- keeptextopen
+ buttonsound
verbosegiveitem BLACKBELT
iffalse WesleyDoneScript
setevent EVENT_GOT_BLACKBELT_FROM_WESLEY
diff --git a/maps/LakeofRageHiddenPowerHouse.asm b/maps/LakeofRageHiddenPowerHouse.asm
index a39cd0473..ef2f95d58 100644
--- a/maps/LakeofRageHiddenPowerHouse.asm
+++ b/maps/LakeofRageHiddenPowerHouse.asm
@@ -14,7 +14,7 @@ HiddenPowerGuy:
checkevent EVENT_GOT_TM10_HIDDEN_POWER
iftrue .AlreadyGotItem
writetext HiddenPowerGuyText1
- keeptextopen
+ buttonsound
verbosegiveitem TM_HIDDEN_POWER
iffalse .Done
setevent EVENT_GOT_TM10_HIDDEN_POWER
diff --git a/maps/LakeofRageMagikarpHouse.asm b/maps/LakeofRageMagikarpHouse.asm
index 79e1346f9..bddee208f 100644
--- a/maps/LakeofRageMagikarpHouse.asm
+++ b/maps/LakeofRageMagikarpHouse.asm
@@ -52,7 +52,7 @@ UnknownScript_0x19a6e0:
UnknownScript_0x19a6fe:
writetext UnknownText_0x19a977
- keeptextopen
+ buttonsound
verbosegiveitem ELIXER
iffalse UnknownScript_0x19a711
writetext UnknownText_0x19a9c3
diff --git a/maps/LavRadioTower1F.asm b/maps/LavRadioTower1F.asm
index 88653c662..ad6de3657 100644
--- a/maps/LavRadioTower1F.asm
+++ b/maps/LavRadioTower1F.asm
@@ -35,7 +35,7 @@ GentlemanScript_0x7ee6c:
.UnknownScript_0x7ee80:
writetext UnknownText_0x7f0a1
- keeptextopen
+ buttonsound
stringtotext .expncardname, $1
scall .UnknownScript_0x7ee94
setflag ENGINE_EXPN_CARD
diff --git a/maps/MahoganyGym.asm b/maps/MahoganyGym.asm
index 14a6d89fc..0f1e54034 100644
--- a/maps/MahoganyGym.asm
+++ b/maps/MahoganyGym.asm
@@ -43,7 +43,7 @@ PryceScript_0x199a9e:
setevent EVENT_BEAT_BOARDER_BRAD
setevent EVENT_BEAT_BOARDER_DOUGLAS
writetext UnknownText_0x199d55
- keeptextopen
+ buttonsound
verbosegiveitem TM_ICY_WIND
iffalse UnknownScript_0x199af4
setevent EVENT_GOT_TM16_ICY_WIND
diff --git a/maps/ManiasHouse.asm b/maps/ManiasHouse.asm
index fdfec03be..7e95737cb 100644
--- a/maps/ManiasHouse.asm
+++ b/maps/ManiasHouse.asm
@@ -21,7 +21,7 @@ ManiaScript:
special SpecialGiveShuckle
iffalse .partyfull
writetext ManiaText_TakeCareOfShuckle
- keeptextopen
+ buttonsound
waitsfx
writetext ManiaText_GotShuckle
playsound SFX_KEY_ITEM
diff --git a/maps/MountMortarB1F.asm b/maps/MountMortarB1F.asm
index ade5f377e..7787a3ca9 100644
--- a/maps/MountMortarB1F.asm
+++ b/maps/MountMortarB1F.asm
@@ -32,7 +32,7 @@ BlackBeltScript_0x7e1f6:
loadfont
UnknownScript_0x7e217:
writetext UnknownText_0x7e2c0
- keeptextopen
+ buttonsound
waitsfx
checkcode VAR_PARTYCOUNT
if_equal $6, UnknownScript_0x7e237
diff --git a/maps/MrPokemonsHouse.asm b/maps/MrPokemonsHouse.asm
index 10a61c1f7..cc2a6e8e8 100644
--- a/maps/MrPokemonsHouse.asm
+++ b/maps/MrPokemonsHouse.asm
@@ -30,7 +30,7 @@ UnknownScript_0x196e56:
applymovement PLAYER, MovementData_0x196f5a
loadfont
writetext UnknownText_0x196fa8
- keeptextopen
+ buttonsound
waitsfx
giveitem MYSTERY_EGG
writetext UnknownText_0x196fd2
@@ -40,10 +40,10 @@ UnknownScript_0x196e56:
setevent EVENT_GOT_MYSTERY_EGG_FROM_MR_POKEMON
blackoutmod CHERRYGROVE_CITY
writetext UnknownText_0x196feb
- keeptextopen
+ buttonsound
spriteface MRPOKEMONSHOUSE_GENTLEMAN, RIGHT
writetext UnknownText_0x197092
- keeptextopen
+ buttonsound
spriteface MRPOKEMONSHOUSE_GENTLEMAN, DOWN
spriteface MRPOKEMONSHOUSE_OAK, LEFT
writetext UnknownText_0x1970b7
@@ -91,7 +91,7 @@ UnknownScript_0x196ec9:
spriteface PLAYER, RIGHT
loadfont
writetext UnknownText_0x197185
- keeptextopen
+ buttonsound
waitsfx
writetext UnknownText_0x1973cc
playsound SFX_ITEM
diff --git a/maps/MrPsychicsHouse.asm b/maps/MrPsychicsHouse.asm
index 7ac4e0769..2271cfd12 100644
--- a/maps/MrPsychicsHouse.asm
+++ b/maps/MrPsychicsHouse.asm
@@ -14,7 +14,7 @@ MrPsychic:
checkevent EVENT_GOT_TM29_PSYCHIC
iftrue .AlreadyGotItem
writetext MrPsychicText1
- keeptextopen
+ buttonsound
verbosegiveitem TM_PSYCHIC
iffalse .Done
setevent EVENT_GOT_TM29_PSYCHIC
diff --git a/maps/NationalPark.asm b/maps/NationalPark.asm
index 12dc44c27..be2d89abd 100644
--- a/maps/NationalPark.asm
+++ b/maps/NationalPark.asm
@@ -33,7 +33,7 @@ TeacherScript_0x5c008:
checkevent EVENT_GOT_QUICK_CLAW
iftrue UnknownScript_0x5c01d
writetext UnknownText_0x5c265
- keeptextopen
+ buttonsound
verbosegiveitem QUICK_CLAW
iffalse UnknownScript_0x5c021
setevent EVENT_GOT_QUICK_CLAW
@@ -85,7 +85,7 @@ SchoolboyJack1Script:
checkevent EVENT_JACK_ASKED_FOR_PHONE_NUMBER
iftrue UnknownScript_0x5c071
writetext UnknownText_0x5c4f3
- keeptextopen
+ buttonsound
setevent EVENT_JACK_ASKED_FOR_PHONE_NUMBER
scall UnknownScript_0x5c0fc
jump UnknownScript_0x5c074
@@ -215,7 +215,7 @@ PokefanfBeverly1Script:
checkevent EVENT_BEVERLY_ASKED_FOR_PHONE_NUMBER
iftrue UnknownScript_0x5c160
writetext UnknownText_0x5c5bd
- keeptextopen
+ buttonsound
setevent EVENT_BEVERLY_ASKED_FOR_PHONE_NUMBER
scall UnknownScript_0x5c18f
jump UnknownScript_0x5c163
diff --git a/maps/OaksLab.asm b/maps/OaksLab.asm
index 8f3961a7e..cfcefa9c6 100644
--- a/maps/OaksLab.asm
+++ b/maps/OaksLab.asm
@@ -22,7 +22,7 @@ Oak:
checkevent EVENT_TALKED_TO_OAK_IN_KANTO
iftrue .CheckBadges
writetext OakWelcomeKantoText
- keeptextopen
+ buttonsound
setevent EVENT_TALKED_TO_OAK_IN_KANTO
.CheckBadges
checkcode VAR_BADGES
@@ -41,18 +41,18 @@ Oak:
.OpenMtSilver
writetext OakOpenMtSilverText
- keeptextopen
+ buttonsound
setevent EVENT_OPENED_MT_SILVER
jump .CheckPokedex
.Complain
writetext OakNoKantoBadgesText
- keeptextopen
+ buttonsound
jump .CheckPokedex
.AhGood
writetext OakYesKantoBadgesText
- keeptextopen
+ buttonsound
jump .CheckPokedex
ScientistScript_0x19b40f:
diff --git a/maps/OlivineCafe.asm b/maps/OlivineCafe.asm
index 55b158dac..c0d718d0a 100644
--- a/maps/OlivineCafe.asm
+++ b/maps/OlivineCafe.asm
@@ -16,7 +16,7 @@ SailorScript_0x9c8c1:
checkevent EVENT_GOT_HM04_STRENGTH
iftrue UnknownScript_0x9c8d3
writetext UnknownText_0x9c8df
- keeptextopen
+ buttonsound
verbosegiveitem HM_STRENGTH
setevent EVENT_GOT_HM04_STRENGTH
UnknownScript_0x9c8d3:
diff --git a/maps/OlivineGoodRodHouse.asm b/maps/OlivineGoodRodHouse.asm
index bb1f3a078..57c2b1a2c 100644
--- a/maps/OlivineGoodRodHouse.asm
+++ b/maps/OlivineGoodRodHouse.asm
@@ -17,7 +17,7 @@ GoodRodGuru:
yesorno
iffalse .DontWantIt
writetext GiveGoodRodText
- keeptextopen
+ buttonsound
verbosegiveitem GOOD_ROD
writetext GaveGoodRodText
waitbutton
diff --git a/maps/OlivineGym.asm b/maps/OlivineGym.asm
index 680b8c1e0..a9d5a273e 100644
--- a/maps/OlivineGym.asm
+++ b/maps/OlivineGym.asm
@@ -33,7 +33,7 @@ JasmineScript_0x9c12f:
checkevent EVENT_GOT_TM23_IRON_TAIL
iftrue UnknownScript_0x9c172
writetext UnknownText_0x9c354
- keeptextopen
+ buttonsound
verbosegiveitem TM_IRON_TAIL
iffalse UnknownScript_0x9c176
setevent EVENT_GOT_TM23_IRON_TAIL
diff --git a/maps/OlivineLighthouse6F.asm b/maps/OlivineLighthouse6F.asm
index 82fe43e94..6edd97777 100644
--- a/maps/OlivineLighthouse6F.asm
+++ b/maps/OlivineLighthouse6F.asm
@@ -18,7 +18,7 @@ JasmineScript_0x60b91:
checkevent EVENT_JASMINE_EXPLAINED_AMPHYS_SICKNESS
iftrue UnknownScript_0x60ba5
writetext UnknownText_0x60c81
- keeptextopen
+ buttonsound
setevent EVENT_JASMINE_EXPLAINED_AMPHYS_SICKNESS
UnknownScript_0x60ba5:
writetext UnknownText_0x60d64
@@ -31,7 +31,7 @@ UnknownScript_0x60bab:
yesorno
iffalse UnknownScript_0x60c25
writetext UnknownText_0x60dc3
- keeptextopen
+ buttonsound
takeitem SECRETPOTION
writetext UnknownText_0x60dea
waitbutton
@@ -43,7 +43,7 @@ UnknownScript_0x60bab:
playmusic MUSIC_HEAL
writetext UnknownText_0x60e44
pause 60
- keeptextopen
+ buttonsound
closetext
special RestartMapMusic
cry AMPHAROS
@@ -110,7 +110,7 @@ MonsterScript_0x60c3a:
writetext UnknownText_0x60f03
writebyte AMPHAROS
special PlaySlowCry
- keeptextopen
+ buttonsound
writetext UnknownText_0x60f19
waitbutton
closetext
diff --git a/maps/OlivinePort.asm b/maps/OlivinePort.asm
index f0c583f2c..7e42d0313 100644
--- a/maps/OlivinePort.asm
+++ b/maps/OlivinePort.asm
@@ -97,7 +97,7 @@ UnknownScript_0x7494e:
yesorno
iffalse UnknownScript_0x74992
writetext UnknownText_0x74ada
- keeptextopen
+ buttonsound
checkitem S_S_TICKET
iffalse UnknownScript_0x7496d
writetext UnknownText_0x74b11
@@ -162,7 +162,7 @@ UnknownScript_0x749c0:
yesorno
iffalse UnknownScript_0x7498c
writetext UnknownText_0x74ada
- keeptextopen
+ buttonsound
checkitem S_S_TICKET
iffalse UnknownScript_0x749ec
writetext UnknownText_0x74b11
diff --git a/maps/PewterCity.asm b/maps/PewterCity.asm
index 3558cd91b..fbf07f57e 100644
--- a/maps/PewterCity.asm
+++ b/maps/PewterCity.asm
@@ -31,7 +31,7 @@ GrampsScript_0x18c00f:
checkevent EVENT_GOT_SILVER_WING
iftrue UnknownScript_0x18c023
writetext UnknownText_0x18c0c6
- keeptextopen
+ buttonsound
verbosegiveitem SILVER_WING
setevent EVENT_GOT_SILVER_WING
closetext
diff --git a/maps/PokeCenter2F.asm b/maps/PokeCenter2F.asm
index 87f064c61..0c2e6b5da 100644
--- a/maps/PokeCenter2F.asm
+++ b/maps/PokeCenter2F.asm
@@ -600,7 +600,7 @@ OfficerScript_0x192c9a:
yesorno
iffalse .RefusedGift
writetext Text_MysteryGiftDeliveryGuy_HereYouGo
- keeptextopen
+ buttonsound
waitsfx
special Special_GetMysteryGiftItem
iffalse .BagIsFull
diff --git a/maps/PokemonFanClub.asm b/maps/PokemonFanClub.asm
index 8b4135690..6c8399849 100644
--- a/maps/PokemonFanClub.asm
+++ b/maps/PokemonFanClub.asm
@@ -24,10 +24,10 @@ GentlemanScript_0x1917e9:
yesorno
iffalse UnknownScript_0x19181b
writetext UnknownText_0x191911
- keeptextopen
+ buttonsound
UnknownScript_0x191802:
writetext UnknownText_0x191a3d
- keeptextopen
+ buttonsound
verbosegiveitem RARE_CANDY
iffalse UnknownScript_0x19181f
setevent EVENT_LISTENED_TO_FAN_CLUB_PRESIDENT
@@ -73,9 +73,9 @@ UnknownScript_0x191838:
end
UnknownScript_0x191844:
- keeptextopen
+ buttonsound
writetext UnknownText_0x191c5a
- keeptextopen
+ buttonsound
waitsfx
giveitem LOST_ITEM
iffalse UnknownScript_0x191865
diff --git a/maps/PowerPlant.asm b/maps/PowerPlant.asm
index 1e36acc5e..2c474a046 100644
--- a/maps/PowerPlant.asm
+++ b/maps/PowerPlant.asm
@@ -162,7 +162,7 @@ UnknownScript_0x188e8d:
UnknownScript_0x188e93:
writetext UnknownText_0x18936e
- keeptextopen
+ buttonsound
takeitem MACHINE_PART
setevent EVENT_RETURNED_MACHINE_PART
clearevent EVENT_SAFFRON_TRAIN_STATION_POPULATION
@@ -174,7 +174,7 @@ UnknownScript_0x188eac:
checkevent EVENT_GOT_TM07_ZAP_CANNON
iftrue UnknownScript_0x188ec5
writetext UnknownText_0x1893c4
- keeptextopen
+ buttonsound
verbosegiveitem TM_ZAP_CANNON
iffalse UnknownScript_0x188ec3
setevent EVENT_GOT_TM07_ZAP_CANNON
diff --git a/maps/RadioTower1F.asm b/maps/RadioTower1F.asm
index dba53bab8..a4036f30f 100644
--- a/maps/RadioTower1F.asm
+++ b/maps/RadioTower1F.asm
@@ -33,7 +33,7 @@ GentlemanScript_0x5cd3d:
faceplayer
loadfont
writetext UnknownText_0x5ceba
- keeptextopen
+ buttonsound
special Special_CheckLuckyNumberShowFlag
iffalse .skip
special Special_ResetLuckyNumberShowFlag
@@ -42,17 +42,17 @@ GentlemanScript_0x5cd3d:
checkflag ENGINE_LUCKY_NUMBER_SHOW
iftrue .GameOver
writetext UnknownText_0x5cf3a
- keeptextopen
+ buttonsound
closetext
applymovement RADIOTOWER1F_GENTLEMAN, MovementData_0x5ce71
loadfont
writetext UnknownText_0x5cf5a
- keeptextopen
+ buttonsound
waitsfx
writetext UnknownText_0x5cf79
playsound SFX_DEX_FANFARE_20_49
waitsfx
- keeptextopen
+ buttonsound
special Special_CheckForLuckyNumberWinners
closetext
applymovement RADIOTOWER1F_GENTLEMAN, MovementData_0x5ce74
@@ -72,7 +72,7 @@ GentlemanScript_0x5cd3d:
writetext UnknownText_0x5cfb5
playsound SFX_1ST_PLACE
waitsfx
- keeptextopen
+ buttonsound
giveitem MASTER_BALL
iffalse .BagFull
itemnotify
@@ -83,7 +83,7 @@ GentlemanScript_0x5cd3d:
writetext UnknownText_0x5d023
playsound SFX_2ND_PLACE
waitsfx
- keeptextopen
+ buttonsound
giveitem EXP_SHARE
iffalse .BagFull
itemnotify
@@ -94,7 +94,7 @@ GentlemanScript_0x5cd3d:
writetext UnknownText_0x5d076
playsound SFX_3RD_PLACE
waitsfx
- keeptextopen
+ buttonsound
giveitem PP_UP
iffalse .BagFull
itemnotify
@@ -147,11 +147,11 @@ CooltrainerFScript_0x5cdd5:
playsound SFX_ELEVATOR_END
waitsfx
writetext UnknownText_0x5d37b
- keeptextopen
+ buttonsound
stringtotext RadioCardText, $1
scall UnknownScript_0x5ce3e
writetext UnknownText_0x5d3c0
- keeptextopen
+ buttonsound
setflag ENGINE_RADIO_CARD
UnknownScript_0x5ce2d:
writetext UnknownText_0x5d3e5
diff --git a/maps/RadioTower2F.asm b/maps/RadioTower2F.asm
index 6e6288f25..fc61e1558 100644
--- a/maps/RadioTower2F.asm
+++ b/maps/RadioTower2F.asm
@@ -162,7 +162,7 @@ UnknownScript_0x5d7be:
UnknownScript_0x5d800:
writetext UnknownText_0x5dcf4
- keeptextopen
+ buttonsound
setevent EVENT_MET_BUENA
verbosegiveitem BLUE_CARD
UnknownScript_0x5d80a:
@@ -286,7 +286,7 @@ UnknownScript_0x5d8d0:
writetext UnknownText_0x5e2f3
playsound SFX_REGISTER_PHONE_NUMBER
waitsfx
- keeptextopen
+ buttonsound
writetext UnknownText_0x5e310
waitbutton
closetext
@@ -315,14 +315,14 @@ ReceptionistScript_0x5d8ff:
checkitem BLUE_CARD
iffalse UnknownScript_0x5d90f
writetext UnknownText_0x5e392
- keeptextopen
+ buttonsound
special SpecialBuenaPrize
closetext
end
UnknownScript_0x5d90f:
writetext UnknownText_0x5e3d8
- keeptextopen
+ buttonsound
closetext
end
diff --git a/maps/RadioTower3F.asm b/maps/RadioTower3F.asm
index cf848c126..80e2a08e2 100644
--- a/maps/RadioTower3F.asm
+++ b/maps/RadioTower3F.asm
@@ -69,7 +69,7 @@ UnknownScript_0x5e584:
UnknownScript_0x5e58a:
writetext UnknownText_0x5e7e2
- keeptextopen
+ buttonsound
verbosegiveitem TM_SUNNY_DAY
iffalse UnknownScript_0x5e5a1
writetext UnknownText_0x5e821
diff --git a/maps/RadioTower4F.asm b/maps/RadioTower4F.asm
index 18cbb5866..cb09744cd 100644
--- a/maps/RadioTower4F.asm
+++ b/maps/RadioTower4F.asm
@@ -31,7 +31,7 @@ TeacherScript_0x5eb85:
UnknownScript_0x5eb99:
writetext UnknownText_0x5ecab
- keeptextopen
+ buttonsound
verbosegiveitem PINK_BOW
iffalse UnknownScript_0x5ebb0
writetext UnknownText_0x5ecef
diff --git a/maps/RadioTower5F.asm b/maps/RadioTower5F.asm
index 0213160bb..2a59e2443 100644
--- a/maps/RadioTower5F.asm
+++ b/maps/RadioTower5F.asm
@@ -46,7 +46,7 @@ UnknownScript_0x60011:
returnafterbattle
loadfont
writetext UnknownText_0x60246
- keeptextopen
+ buttonsound
verbosegiveitem BASEMENT_KEY
closetext
dotrigger $1
@@ -123,7 +123,7 @@ UnknownScript_0x6006e:
spriteface PLAYER, RIGHT
loadfont
writetext UnknownText_0x605b2
- keeptextopen
+ buttonsound
verbosegiveitem CLEAR_BELL
writetext UnknownText_0x6062c
waitbutton
diff --git a/maps/Route12SuperRodHouse.asm b/maps/Route12SuperRodHouse.asm
index c999cee3c..bad13a8c1 100644
--- a/maps/Route12SuperRodHouse.asm
+++ b/maps/Route12SuperRodHouse.asm
@@ -17,7 +17,7 @@ FishingGuruScript_0x7f484:
yesorno
iffalse UnknownScript_0x7f4a6
writetext UnknownText_0x7f52f
- keeptextopen
+ buttonsound
verbosegiveitem SUPER_ROD
iffalse UnknownScript_0x7f4aa
setevent EVENT_GOT_SUPER_ROD
diff --git a/maps/Route24.asm b/maps/Route24.asm
index ab73faccb..7af42679a 100644
--- a/maps/Route24.asm
+++ b/maps/Route24.asm
@@ -23,7 +23,7 @@ RocketScript_0x1adbfa:
playmusic MUSIC_ROCKET_ENCOUNTER
loadfont
writetext UnknownText_0x1addc0
- keeptextopen
+ buttonsound
special Special_RotatePalettesRightMusic
writetext UnknownText_0x1adee1
waitbutton
diff --git a/maps/Route25.asm b/maps/Route25.asm
index 5f282677e..7ff2e856a 100644
--- a/maps/Route25.asm
+++ b/maps/Route25.asm
@@ -165,7 +165,7 @@ CooltrainerMScript_0x19efac:
checkevent EVENT_CLEARED_NUGGET_BRIDGE
iftrue UnknownScript_0x19efc7
writetext UnknownText_0x19f43b
- keeptextopen
+ buttonsound
verbosegiveitem NUGGET
iffalse UnknownScript_0x19efde
setevent EVENT_CLEARED_NUGGET_BRIDGE
diff --git a/maps/Route26.asm b/maps/Route26.asm
index 8cf74d42d..9e3edd51c 100644
--- a/maps/Route26.asm
+++ b/maps/Route26.asm
@@ -40,7 +40,7 @@ CooltrainermGaven3Script:
checkevent EVENT_GAVEN_ASKED_FOR_PHONE_NUMBER
iftrue UnknownScript_0x1a4d62
writetext UnknownText_0x1a4fe4
- keeptextopen
+ buttonsound
setevent EVENT_GAVEN_ASKED_FOR_PHONE_NUMBER
scall UnknownScript_0x1a4dbf
jump UnknownScript_0x1a4d65
@@ -144,7 +144,7 @@ CooltrainerfBeth1Script:
checkevent EVENT_BETH_ASKED_FOR_PHONE_NUMBER
iftrue UnknownScript_0x1a4e1e
writetext UnknownText_0x1a51d9
- keeptextopen
+ buttonsound
setevent EVENT_BETH_ASKED_FOR_PHONE_NUMBER
scall UnknownScript_0x1a4e7b
jump UnknownScript_0x1a4e21
diff --git a/maps/Route27.asm b/maps/Route27.asm
index 926cb3841..5b97f46fe 100644
--- a/maps/Route27.asm
+++ b/maps/Route27.asm
@@ -40,7 +40,7 @@ UnknownScript_0x1a088c:
spriteface PLAYER, RIGHT
loadfont
writetext UnknownText_0x1a0a6b
- keeptextopen
+ buttonsound
writetext UnknownText_0x1a0a71
waitbutton
closetext
@@ -77,7 +77,7 @@ Bird_keeperJose2Script:
checkevent EVENT_JOSE_ASKED_FOR_PHONE_NUMBER
iftrue UnknownScript_0x1a08e8
writetext UnknownText_0x1a0e42
- keeptextopen
+ buttonsound
setevent EVENT_JOSE_ASKED_FOR_PHONE_NUMBER
scall UnknownScript_0x1a0957
jump UnknownScript_0x1a08eb
@@ -210,7 +210,7 @@ CooltrainerfReena1Script:
checkevent EVENT_REENA_ASKED_FOR_PHONE_NUMBER
iftrue UnknownScript_0x1a09d2
writetext UnknownText_0x1a0c35
- keeptextopen
+ buttonsound
setevent EVENT_REENA_ASKED_FOR_PHONE_NUMBER
scall UnknownScript_0x1a0a2f
jump UnknownScript_0x1a09d5
diff --git a/maps/Route27SandstormHouse.asm b/maps/Route27SandstormHouse.asm
index 101d7c421..c6225549c 100644
--- a/maps/Route27SandstormHouse.asm
+++ b/maps/Route27SandstormHouse.asm
@@ -15,13 +15,13 @@ SandstormHouseWoman:
iftrue .AlreadyGotItem
special GetFirstPokemonHappiness
writetext SandstormHouseWomanText1
- keeptextopen
+ buttonsound
if_greater_than $95, .Loyal
jump .Disloyal
.Loyal
writetext SandstormHouseWomanLoyalText
- keeptextopen
+ buttonsound
verbosegiveitem TM_SANDSTORM
iffalse .Done
setevent EVENT_GOT_TM37_SANDSTORM
diff --git a/maps/Route28FamousSpeechHouse.asm b/maps/Route28FamousSpeechHouse.asm
index bfd027915..cb7c7067c 100644
--- a/maps/Route28FamousSpeechHouse.asm
+++ b/maps/Route28FamousSpeechHouse.asm
@@ -21,7 +21,7 @@ Celebrity:
checkevent EVENT_GOT_TM47_STEEL_WING
iftrue .AlreadyGotItem
writetext CelebrityText1
- keeptextopen
+ buttonsound
verbosegiveitem TM_STEEL_WING
iffalse .Done
setevent EVENT_GOT_TM47_STEEL_WING
diff --git a/maps/Route29.asm b/maps/Route29.asm
index 4fe73be62..8966360e8 100644
--- a/maps/Route29.asm
+++ b/maps/Route29.asm
@@ -181,11 +181,11 @@ TuscanyScript:
checkevent EVENT_MET_TUSCANY_OF_TUESDAY
iftrue .MetTuscany
writetext MeetTuscanyText
- keeptextopen
+ buttonsound
setevent EVENT_MET_TUSCANY_OF_TUESDAY
.MetTuscany
writetext TuscanyGivesGiftText
- keeptextopen
+ buttonsound
verbosegiveitem PINK_BOW
iffalse TuscanyDoneScript
setevent EVENT_GOT_PINK_BOW_FROM_TUSCANY
diff --git a/maps/Route2NuggetSpeechHouse.asm b/maps/Route2NuggetSpeechHouse.asm
index 04e17cb6d..8feacfc76 100644
--- a/maps/Route2NuggetSpeechHouse.asm
+++ b/maps/Route2NuggetSpeechHouse.asm
@@ -14,7 +14,7 @@ FisherScript_0x9b847:
checkevent EVENT_GOT_NUGGET_FROM_GUY
iftrue .GotItem
writetext UnknownText_0x9b865
- keeptextopen
+ buttonsound
verbosegiveitem NUGGET
iffalse .Done
setevent EVENT_GOT_NUGGET_FROM_GUY
diff --git a/maps/Route30.asm b/maps/Route30.asm
index 06607023c..c92a0cb2d 100644
--- a/maps/Route30.asm
+++ b/maps/Route30.asm
@@ -52,7 +52,7 @@ YoungsterJoey1Script:
checkevent EVENT_JOEY_ASKED_FOR_PHONE_NUMBER
iftrue UnknownScript_0x1a16c9
writetext UnknownText_0x1a18c2
- keeptextopen
+ buttonsound
setevent EVENT_JOEY_ASKED_FOR_PHONE_NUMBER
scall UnknownScript_0x1a1783
jump UnknownScript_0x1a16cc
diff --git a/maps/Route30BerrySpeechHouse.asm b/maps/Route30BerrySpeechHouse.asm
index a7e65d3a0..cda534288 100644
--- a/maps/Route30BerrySpeechHouse.asm
+++ b/maps/Route30BerrySpeechHouse.asm
@@ -14,7 +14,7 @@ PokefanMScript_0x196d64:
checkevent EVENT_GOT_BERRY_FROM_ROUTE_30_HOUSE
iftrue UnknownScript_0x196d79
writetext UnknownText_0x196d82
- keeptextopen
+ buttonsound
verbosegiveitem BERRY
iffalse UnknownScript_0x196d7d
setevent EVENT_GOT_BERRY_FROM_ROUTE_30_HOUSE
diff --git a/maps/Route31.asm b/maps/Route31.asm
index 18bae0ae1..3da039775 100644
--- a/maps/Route31.asm
+++ b/maps/Route31.asm
@@ -199,16 +199,16 @@ FisherScript_0x1a5570:
.TryGiveKenya:
writetext UnknownText_0x1a5761
- keeptextopen
+ buttonsound
checkpokeitem ReceivedSpearowMailText
if_equal $0, .WrongMail
if_equal $2, .Refused
if_equal $3, .NoMail
if_equal $4, .LastMon
writetext UnknownText_0x1a5790
- keeptextopen
+ buttonsound
writetext UnknownText_0x1a57ba
- keeptextopen
+ buttonsound
setevent EVENT_GAVE_KENYA
verbosegiveitem TM_NIGHTMARE
iffalse .NoRoomForItems
diff --git a/maps/Route32.asm b/maps/Route32.asm
index bccf2ea4f..2c39c6ded 100644
--- a/maps/Route32.asm
+++ b/maps/Route32.asm
@@ -72,7 +72,7 @@ UnknownScript_0x190489:
UnknownScript_0x19048f:
writetext UnknownText_0x190925
- keeptextopen
+ buttonsound
verbosegiveitem MIRACLE_SEED
iffalse UnknownScript_0x1904a9
setevent EVENT_GOT_MIRACLE_SEED_IN_ROUTE_32
@@ -113,7 +113,7 @@ FisherScript_0x1904ce:
checkevent EVENT_GOT_TM05_ROAR
iftrue UnknownScript_0x1904e3
writetext UnknownText_0x191133
- keeptextopen
+ buttonsound
verbosegiveitem TM_ROAR
iffalse UnknownScript_0x1904e7
setevent EVENT_GOT_TM05_ROAR
@@ -186,7 +186,7 @@ FisherRalph1Script:
checkevent EVENT_RALPH_ASKED_FOR_PHONE_NUMBER
iftrue UnknownScript_0x190566
writetext UnknownText_0x190bf8
- keeptextopen
+ buttonsound
setevent EVENT_RALPH_ASKED_FOR_PHONE_NUMBER
scall UnknownScript_0x1905f7
jump UnknownScript_0x190569
@@ -320,7 +320,7 @@ PicnickerLiz1Script:
checkevent EVENT_LIZ_ASKED_FOR_PHONE_NUMBER
iftrue UnknownScript_0x190656
writetext UnknownText_0x191060
- keeptextopen
+ buttonsound
setevent EVENT_LIZ_ASKED_FOR_PHONE_NUMBER
scall UnknownScript_0x1906e1
jump UnknownScript_0x190659
@@ -466,11 +466,11 @@ FriedaScript:
checkevent EVENT_MET_FRIEDA_OF_FRIDAY
iftrue .MetFrieda
writetext MeetFriedaText
- keeptextopen
+ buttonsound
setevent EVENT_MET_FRIEDA_OF_FRIDAY
.MetFrieda
writetext FriedaGivesGiftText
- keeptextopen
+ buttonsound
verbosegiveitem POISON_BARB
iffalse FriedaDoneScript
setevent EVENT_GOT_POISON_BARB_FROM_FRIEDA
diff --git a/maps/Route32PokeCenter1F.asm b/maps/Route32PokeCenter1F.asm
index 574cc5dc0..97a4ca6ba 100644
--- a/maps/Route32PokeCenter1F.asm
+++ b/maps/Route32PokeCenter1F.asm
@@ -22,7 +22,7 @@ FishingGuruScript_0x69b55:
yesorno
iffalse UnknownScript_0x69b74
writetext UnknownText_0x69be8
- keeptextopen
+ buttonsound
verbosegiveitem OLD_ROD
writetext UnknownText_0x69c1b
waitbutton
diff --git a/maps/Route33.asm b/maps/Route33.asm
index 2d3f7044a..ebac446d1 100644
--- a/maps/Route33.asm
+++ b/maps/Route33.asm
@@ -29,7 +29,7 @@ HikerAnthony2Script:
checkevent EVENT_ANTHONY_ASKED_FOR_PHONE_NUMBER
iftrue UnknownScript_0x1ac03a
writetext UnknownText_0x1ac153
- keeptextopen
+ buttonsound
setevent EVENT_ANTHONY_ASKED_FOR_PHONE_NUMBER
scall UnknownScript_0x1ac0cb
jump UnknownScript_0x1ac03d
diff --git a/maps/Route34.asm b/maps/Route34.asm
index 4b590caab..8c97a8a5c 100644
--- a/maps/Route34.asm
+++ b/maps/Route34.asm
@@ -106,7 +106,7 @@ CamperTodd1Script:
checkevent EVENT_TODD_ASKED_FOR_PHONE_NUMBER
iftrue UnknownScript_0x780a6
writetext UnknownText_0x784f0
- keeptextopen
+ buttonsound
setevent EVENT_TODD_ASKED_FOR_PHONE_NUMBER
scall UnknownScript_0x78137
jump UnknownScript_0x780a9
@@ -231,7 +231,7 @@ PicnickerGina1Script:
checkevent EVENT_GINA_ASKED_FOR_PHONE_NUMBER
iftrue UnknownScript_0x78188
writetext UnknownText_0x785b8
- keeptextopen
+ buttonsound
setevent EVENT_GINA_ASKED_FOR_PHONE_NUMBER
scall UnknownScript_0x78228
jump UnknownScript_0x7818b
@@ -464,7 +464,7 @@ CooltrainerfKateScript:
checkevent EVENT_GOT_SOFT_SAND_FROM_KATE
iftrue UnknownScript_0x78319
writetext UnknownText_0x788e2
- keeptextopen
+ buttonsound
verbosegiveitem SOFT_SAND
iffalse UnknownScript_0x7831d
setevent EVENT_GOT_SOFT_SAND_FROM_KATE
diff --git a/maps/Route34IlexForestGate.asm b/maps/Route34IlexForestGate.asm
index 0b63707b4..f89059a41 100644
--- a/maps/Route34IlexForestGate.asm
+++ b/maps/Route34IlexForestGate.asm
@@ -53,7 +53,7 @@ TeacherScript_0x62d63:
checkevent EVENT_GOT_TM12_SWEET_SCENT
iftrue UnknownScript_0x62d7e
writetext UnknownText_0x62d9d
- keeptextopen
+ buttonsound
verbosegiveitem TM_SWEET_SCENT
iffalse UnknownScript_0x62d82
setevent EVENT_GOT_TM12_SWEET_SCENT
@@ -66,7 +66,7 @@ UnknownScript_0x62d82:
UnknownScript_0x62d84:
writetext UnknownText_0x62e41
- keeptextopen
+ buttonsound
closetext
end
diff --git a/maps/Route35.asm b/maps/Route35.asm
index 57c13ab86..c37543cec 100644
--- a/maps/Route35.asm
+++ b/maps/Route35.asm
@@ -41,7 +41,7 @@ JugglerIrwin1Script:
checkevent EVENT_IRWIN_ASKED_FOR_PHONE_NUMBER
iftrue UnknownScript_0x19c8ec
writetext UnknownText_0x19cd5a
- keeptextopen
+ buttonsound
setevent EVENT_IRWIN_ASKED_FOR_PHONE_NUMBER
scall UnknownScript_0x19c903
jump UnknownScript_0x19c8ef
@@ -144,7 +144,7 @@ Bug_catcherArnie1Script:
checkevent EVENT_ARNIE_ASKED_FOR_PHONE_NUMBER
iftrue UnknownScript_0x19c9a4
writetext UnknownText_0x19cdf6
- keeptextopen
+ buttonsound
setevent EVENT_ARNIE_ASKED_FOR_PHONE_NUMBER
scall UnknownScript_0x19c903
jump UnknownScript_0x19c9a7
diff --git a/maps/Route35Goldenrodgate.asm b/maps/Route35Goldenrodgate.asm
index 61af766cf..56523fb12 100644
--- a/maps/Route35Goldenrodgate.asm
+++ b/maps/Route35Goldenrodgate.asm
@@ -23,7 +23,7 @@ OfficerScript_0x69d37:
yesorno
iffalse .refused
writetext UnknownText_0x69e48
- keeptextopen
+ buttonsound
waitsfx
checkcode VAR_PARTYCOUNT
if_equal PARTY_LENGTH, .partyfull
@@ -53,7 +53,7 @@ OfficerScript_0x69d37:
.questcomplete:
writetext UnknownText_0x69f8b
- keeptextopen
+ buttonsound
verbosegiveitem HP_UP
iffalse .bagfull
setevent EVENT_GOT_HP_UP_FROM_RANDY
diff --git a/maps/Route35NationalParkgate.asm b/maps/Route35NationalParkgate.asm
index d2591c664..8072507cd 100644
--- a/maps/Route35NationalParkgate.asm
+++ b/maps/Route35NationalParkgate.asm
@@ -107,7 +107,7 @@ Route35NationalParkgate_OkayToProceed:
setflag ENGINE_BUG_CONTEST_TIMER
special PlayMapMusic
writetext UnknownText_0x6a39d
- keeptextopen
+ buttonsound
writetext UnknownText_0x6a3c7
playsound SFX_ITEM
waitsfx
@@ -149,11 +149,11 @@ Route35NationalParkgate_LessThanFullParty: ; 6a27d
iftrue Route35NationalParkgate_FirstMonIsFainted
setevent EVENT_LEFT_MONS_WITH_CONTEST_OFFICER
writetext UnknownText_0x6a537
- keeptextopen
+ buttonsound
writetext UnknownText_0x6a56b
playsound SFX_GOT_SAFARI_BALLS
waitsfx
- keeptextopen
+ buttonsound
jump Route35NationalParkgate_OkayToProceed
Route35NationalParkgate_DeclinedToParticipate:
diff --git a/maps/Route36.asm b/maps/Route36.asm
index 5ec0870bd..654460299 100644
--- a/maps/Route36.asm
+++ b/maps/Route36.asm
@@ -145,7 +145,7 @@ FisherScript_0x1940b9:
UnknownScript_0x1940cd:
writetext UnknownText_0x1944d0
- keeptextopen
+ buttonsound
verbosegiveitem TM_ROCK_SMASH
iffalse UnknownScript_0x1940de
setevent EVENT_GOT_TM08_ROCK_SMASH
@@ -188,7 +188,7 @@ SchoolboyAlan1Script:
checkevent EVENT_ALAN_ASKED_FOR_PHONE_NUMBER
iftrue UnknownScript_0x194129
writetext UnknownText_0x1947aa
- keeptextopen
+ buttonsound
setevent EVENT_ALAN_ASKED_FOR_PHONE_NUMBER
scall UnknownScript_0x1941c9
jump UnknownScript_0x19412c
@@ -331,11 +331,11 @@ ArthurScript:
checkevent EVENT_MET_ARTHUR_OF_THURSDAY
iftrue .MetArthur
writetext MeetArthurText
- keeptextopen
+ buttonsound
setevent EVENT_MET_ARTHUR_OF_THURSDAY
.MetArthur
writetext ArthurGivesGiftText
- keeptextopen
+ buttonsound
verbosegiveitem HARD_STONE
iffalse ArthurDoneScript
setevent EVENT_GOT_HARD_STONE_FROM_ARTHUR
diff --git a/maps/Route36NationalParkgate.asm b/maps/Route36NationalParkgate.asm
index 199e424f3..fd9e7ba10 100644
--- a/maps/Route36NationalParkgate.asm
+++ b/maps/Route36NationalParkgate.asm
@@ -168,7 +168,7 @@ Route36OfficerScriptContest:
setflag ENGINE_BUG_CONTEST_TIMER
special PlayMapMusic
writetext UnknownText_0x6ae87
- keeptextopen
+ buttonsound
waitsfx
writetext UnknownText_0x6aeb1
playsound SFX_ITEM
@@ -201,11 +201,11 @@ Route36OfficerScriptContest:
iftrue .FirstMonIsFainted
setevent EVENT_LEFT_MONS_WITH_CONTEST_OFFICER
writetext UnknownText_0x6b021
- keeptextopen
+ buttonsound
writetext UnknownText_0x6b055
playsound SFX_GOT_SAFARI_BALLS
waitsfx
- keeptextopen
+ buttonsound
jump .ResumeStartingContest
.DecidedNotToJoinContest:
@@ -254,7 +254,7 @@ Route36Officer_ContestHasConcluded:
.Sunstone:
writetext UnknownText_0x6b97f
- keeptextopen
+ buttonsound
verbosegiveitem SUN_STONE
iffalse .BagFull
clearevent EVENT_CONTEST_OFFICER_HAS_SUN_STONE
@@ -263,7 +263,7 @@ Route36Officer_ContestHasConcluded:
.Everstone:
writetext UnknownText_0x6b97f
- keeptextopen
+ buttonsound
verbosegiveitem EVERSTONE
iffalse .BagFull
clearevent EVENT_CONTEST_OFFICER_HAS_EVERSTONE
@@ -272,7 +272,7 @@ Route36Officer_ContestHasConcluded:
.GoldBerry:
writetext UnknownText_0x6b97f
- keeptextopen
+ buttonsound
verbosegiveitem GOLD_BERRY
iffalse .BagFull
clearevent EVENT_CONTEST_OFFICER_HAS_GOLD_BERRY
@@ -281,7 +281,7 @@ Route36Officer_ContestHasConcluded:
.Berry:
writetext UnknownText_0x6b97f
- keeptextopen
+ buttonsound
verbosegiveitem BERRY
iffalse .BagFull
clearevent EVENT_CONTEST_OFFICER_HAS_BERRY
diff --git a/maps/Route37.asm b/maps/Route37.asm
index 5e0853607..bedfe01fa 100644
--- a/maps/Route37.asm
+++ b/maps/Route37.asm
@@ -71,17 +71,17 @@ SunnyScript:
checkevent EVENT_MET_SUNNY_OF_SUNDAY
iftrue .MetSunny
writetext MeetSunnyText
- keeptextopen
+ buttonsound
setevent EVENT_MET_SUNNY_OF_SUNDAY
.MetSunny
checkflag ENGINE_PLAYER_IS_FEMALE
iftrue .Kris
writetext SunnyGivesGiftText1
- keeptextopen
+ buttonsound
jump .next
.Kris
writetext SunnyGivesGiftText2
- keeptextopen
+ buttonsound
.next
verbosegiveitem MAGNET
iffalse SunnyDoneScript
diff --git a/maps/Route38.asm b/maps/Route38.asm
index d9c0e1dc9..99b535112 100644
--- a/maps/Route38.asm
+++ b/maps/Route38.asm
@@ -52,7 +52,7 @@ TrainerLassDana1:
checkevent EVENT_DANA_ASKED_FOR_PHONE_NUMBER
iftrue .SecondTimeAsking
writetext UnknownText_0x1a20ec
- keeptextopen
+ buttonsound
setevent EVENT_DANA_ASKED_FOR_PHONE_NUMBER
scall .AskNumber1F
jump .AskForPhoneNumber
@@ -188,7 +188,7 @@ TrainerSchoolboyChad1:
checkevent EVENT_CHAD_ASKED_FOR_PHONE_NUMBER
iftrue .SecondTimeAsking
writetext UnknownText_0x1a200e
- keeptextopen
+ buttonsound
setevent EVENT_CHAD_ASKED_FOR_PHONE_NUMBER
scall .AskPhoneNumber1
jump .AskToRegisterNumber
diff --git a/maps/Route39.asm b/maps/Route39.asm
index e365c1119..117f76fa8 100644
--- a/maps/Route39.asm
+++ b/maps/Route39.asm
@@ -41,7 +41,7 @@ PokefanmDerek1Script:
checkevent EVENT_DEREK_ASKED_FOR_PHONE_NUMBER
iftrue UnknownScript_0x1a5b33
writetext UnknownText_0x1a5cf8
- keeptextopen
+ buttonsound
setevent EVENT_DEREK_ASKED_FOR_PHONE_NUMBER
scall UnknownScript_0x1a5b62
jump UnknownScript_0x1a5b36
diff --git a/maps/Route39Barn.asm b/maps/Route39Barn.asm
index 285f4f868..4e555e012 100644
--- a/maps/Route39Barn.asm
+++ b/maps/Route39Barn.asm
@@ -53,7 +53,7 @@ TaurosScript_0x9ccaa:
writetext Text_WeakMoo
writebyte MILTANK
special PlaySlowCry
- keeptextopen
+ buttonsound
writetext Text_ItsCryIsWeak
checkevent EVENT_TALKED_TO_FARMER_ABOUT_MOOMOO
iftrue .GiveBerry
@@ -62,7 +62,7 @@ TaurosScript_0x9ccaa:
end
.GiveBerry:
- keeptextopen
+ buttonsound
writetext Text_AskGiveBerry
yesorno
iffalse .Refused
@@ -82,7 +82,7 @@ TaurosScript_0x9ccaa:
.ThreeBerries:
writetext Text_GaveBerry
- keeptextopen
+ buttonsound
writetext Text_LittleHealthier
waitbutton
closetext
@@ -90,7 +90,7 @@ TaurosScript_0x9ccaa:
.FiveBerries:
writetext Text_GaveBerry
- keeptextopen
+ buttonsound
writetext Text_QuiteHealthy
waitbutton
closetext
@@ -100,7 +100,7 @@ TaurosScript_0x9ccaa:
playmusic MUSIC_HEAL
writetext Text_GaveBerry
pause 60
- keeptextopen
+ buttonsound
special RestartMapMusic
writetext Text_TotallyHealthy
waitbutton
diff --git a/maps/Route39Farmhouse.asm b/maps/Route39Farmhouse.asm
index 7202925d7..fde9043ef 100644
--- a/maps/Route39Farmhouse.asm
+++ b/maps/Route39Farmhouse.asm
@@ -36,7 +36,7 @@ UnknownScript_0x9cec5:
waitsfx
playsound SFX_TRANSACTION
writetext UnknownText_0x9d05d
- keeptextopen
+ buttonsound
itemnotify
closetext
end
@@ -79,7 +79,7 @@ PokefanFScript_0x9cf0e:
UnknownScript_0x9cf22:
writetext UnknownText_0x9d156
- keeptextopen
+ buttonsound
verbosegiveitem TM_SNORE
iffalse UnknownScript_0x9cf33
setevent EVENT_GOT_TM13_SNORE_FROM_MOOMOO_FARM
diff --git a/maps/Route40.asm b/maps/Route40.asm
index e9c7f61c0..539092c6b 100644
--- a/maps/Route40.asm
+++ b/maps/Route40.asm
@@ -105,11 +105,11 @@ MonicaScript:
checkevent EVENT_MET_MONICA_OF_MONDAY
iftrue .MetMonica
writetext MeetMonicaText
- keeptextopen
+ buttonsound
setevent EVENT_MET_MONICA_OF_MONDAY
.MetMonica
writetext MonicaGivesGiftText
- keeptextopen
+ buttonsound
verbosegiveitem SHARP_BEAK
iffalse MonicaDoneScript
setevent EVENT_GOT_SHARP_BEAK_FROM_MONICA
diff --git a/maps/Route42.asm b/maps/Route42.asm
index b330d88f8..d97c76daa 100644
--- a/maps/Route42.asm
+++ b/maps/Route42.asm
@@ -54,7 +54,7 @@ FisherTully1Script:
checkevent EVENT_TULLY_ASKED_FOR_PHONE_NUMBER
iftrue UnknownScript_0x1a9268
writetext UnknownText_0x1a93ab
- keeptextopen
+ buttonsound
setevent EVENT_TULLY_ASKED_FOR_PHONE_NUMBER
scall UnknownScript_0x1a92f1
jump UnknownScript_0x1a926b
diff --git a/maps/Route43.asm b/maps/Route43.asm
index c03f5b227..082f33ebe 100644
--- a/maps/Route43.asm
+++ b/maps/Route43.asm
@@ -65,7 +65,7 @@ PokemaniacBrent1Script:
checkevent EVENT_BRENT_ASKED_FOR_PHONE_NUMBER
iftrue UnknownScript_0x19d0b8
writetext UnknownText_0x19d359
- keeptextopen
+ buttonsound
setevent EVENT_BRENT_ASKED_FOR_PHONE_NUMBER
scall UnknownScript_0x19d12c
jump UnknownScript_0x19d0bb
@@ -196,7 +196,7 @@ PicnickerTiffany3Script:
checkevent EVENT_TIFFANY_ASKED_FOR_PHONE_NUMBER
iftrue UnknownScript_0x19d1aa
writetext UnknownText_0x19d618
- keeptextopen
+ buttonsound
setevent EVENT_TIFFANY_ASKED_FOR_PHONE_NUMBER
scall UnknownScript_0x19d239
jump UnknownScript_0x19d1ad
diff --git a/maps/Route43Gate.asm b/maps/Route43Gate.asm
index 2702e9fcb..4e369698d 100644
--- a/maps/Route43Gate.asm
+++ b/maps/Route43Gate.asm
@@ -52,7 +52,7 @@ UnknownScript_0x19abea:
applymovement ROUTE43GATE_ROCKET1, MovementData_0x19aca4
loadfont
writetext UnknownText_0x19acd2
- keeptextopen
+ buttonsound
checkmoney $0, 999
if_equal $0, UnknownScript_0x19ac12
jump UnknownScript_0x19ac1d
@@ -68,7 +68,7 @@ UnknownScript_0x19ac1d:
jump UnknownScript_0x19ac28
UnknownScript_0x19ac28:
- keeptextopen
+ buttonsound
closetext
applymovement ROUTE43GATE_ROCKET1, MovementData_0x19acaa
applymovement ROUTE43GATE_ROCKET2, MovementData_0x19acc1
@@ -84,7 +84,7 @@ UnknownScript_0x19ac38:
applymovement ROUTE43GATE_ROCKET2, MovementData_0x19acc7
loadfont
writetext UnknownText_0x19acd2
- keeptextopen
+ buttonsound
checkmoney $0, 999
if_equal $0, UnknownScript_0x19ac5c
jump UnknownScript_0x19ac67
@@ -100,7 +100,7 @@ UnknownScript_0x19ac67:
jump UnknownScript_0x19ac72
UnknownScript_0x19ac72:
- keeptextopen
+ buttonsound
closetext
applymovement ROUTE43GATE_ROCKET2, MovementData_0x19accd
applymovement ROUTE43GATE_ROCKET1, MovementData_0x19acb5
@@ -117,7 +117,7 @@ OfficerScript_0x19ac85:
checkevent EVENT_GOT_TM36_SLUDGE_BOMB
iftrue UnknownScript_0x19ac9c
writetext UnknownText_0x19ad9b
- keeptextopen
+ buttonsound
verbosegiveitem TM_SLUDGE_BOMB
iffalse UnknownScript_0x19aca0
setevent EVENT_GOT_TM36_SLUDGE_BOMB
diff --git a/maps/Route44.asm b/maps/Route44.asm
index 7c4041726..eff960ac6 100644
--- a/maps/Route44.asm
+++ b/maps/Route44.asm
@@ -32,7 +32,7 @@ Bird_keeperVance1Script:
checkevent EVENT_VANCE_ASKED_FOR_PHONE_NUMBER
iftrue UnknownScript_0x19d853
writetext UnknownText_0x19dbf3
- keeptextopen
+ buttonsound
setevent EVENT_VANCE_ASKED_FOR_PHONE_NUMBER
scall UnknownScript_0x19d8df
jump UnknownScript_0x19d856
@@ -176,7 +176,7 @@ FisherWilton1Script:
checkevent EVENT_WILTON_ASKED_FOR_PHONE_NUMBER
iftrue UnknownScript_0x19d957
writetext UnknownText_0x19daa8
- keeptextopen
+ buttonsound
setevent EVENT_WILTON_ASKED_FOR_PHONE_NUMBER
scall UnknownScript_0x19d8df
jump UnknownScript_0x19d95a
diff --git a/maps/Route45.asm b/maps/Route45.asm
index 6525ff9ed..a3d3af8d9 100644
--- a/maps/Route45.asm
+++ b/maps/Route45.asm
@@ -160,7 +160,7 @@ HikerParry3Script:
checkevent EVENT_PARRY_ASKED_FOR_PHONE_NUMBER
iftrue UnknownScript_0x19e1a1
writetext UnknownText_0x19e434
- keeptextopen
+ buttonsound
setevent EVENT_PARRY_ASKED_FOR_PHONE_NUMBER
scall UnknownScript_0x19e11b
jump UnknownScript_0x19e1a4
diff --git a/maps/Route46.asm b/maps/Route46.asm
index 182d6c7ca..833b02412 100644
--- a/maps/Route46.asm
+++ b/maps/Route46.asm
@@ -38,7 +38,7 @@ PicnickerErin1Script:
checkevent EVENT_ERIN_ASKED_FOR_PHONE_NUMBER
iftrue UnknownScript_0x1a96c3
writetext UnknownText_0x1a98c6
- keeptextopen
+ buttonsound
setevent EVENT_ERIN_ASKED_FOR_PHONE_NUMBER
scall UnknownScript_0x1a974f
jump UnknownScript_0x1a96c6
diff --git a/maps/Route5CleanseTagSpeechHouse.asm b/maps/Route5CleanseTagSpeechHouse.asm
index ad801e3ac..d9a4fb1f1 100644
--- a/maps/Route5CleanseTagSpeechHouse.asm
+++ b/maps/Route5CleanseTagSpeechHouse.asm
@@ -15,7 +15,7 @@ GrannyScript_0x18b634:
checkevent EVENT_GOT_CLEANSE_TAG
iftrue UnknownScript_0x18b649
writetext UnknownText_0x18b655
- keeptextopen
+ buttonsound
verbosegiveitem CLEANSE_TAG
iffalse UnknownScript_0x18b64d
setevent EVENT_GOT_CLEANSE_TAG
diff --git a/maps/RuinsofAlphKabutoChamber.asm b/maps/RuinsofAlphKabutoChamber.asm
index 5c8566c57..7bfae137e 100644
--- a/maps/RuinsofAlphKabutoChamber.asm
+++ b/maps/RuinsofAlphKabutoChamber.asm
@@ -99,7 +99,7 @@ ScientistScript_0x587a8:
checkevent EVENT_SOLVED_KABUTO_PUZZLE
iffalse UnknownScript_0x587c0
writetext UnknownText_0x589b8
- keeptextopen
+ buttonsound
UnknownScript_0x587c0:
writetext UnknownText_0x588f5
waitbutton
diff --git a/maps/RuinsofAlphOutside.asm b/maps/RuinsofAlphOutside.asm
index 2bcaed562..159a09a3f 100644
--- a/maps/RuinsofAlphOutside.asm
+++ b/maps/RuinsofAlphOutside.asm
@@ -82,7 +82,7 @@ FisherScript_0x58061:
iftrue .Next
setevent EVENT_TALKED_TO_RUINS_COWARD
writetext UnknownText_0x583a4
- keeptextopen
+ buttonsound
.Next
writetext UnknownText_0x58420
waitbutton
diff --git a/maps/SilphCo1F.asm b/maps/SilphCo1F.asm
index 67db2c5fb..90fd1bc36 100644
--- a/maps/SilphCo1F.asm
+++ b/maps/SilphCo1F.asm
@@ -18,7 +18,7 @@ OfficerScript_0x18abe8:
checkevent EVENT_GOT_UP_GRADE
iftrue UnknownScript_0x18abfd
writetext UnknownText_0x18ac36
- keeptextopen
+ buttonsound
verbosegiveitem UP_GRADE
iffalse UnknownScript_0x18ac01
setevent EVENT_GOT_UP_GRADE
diff --git a/maps/SlowpokeWellB2F.asm b/maps/SlowpokeWellB2F.asm
index d3f002b76..32b7c529c 100644
--- a/maps/SlowpokeWellB2F.asm
+++ b/maps/SlowpokeWellB2F.asm
@@ -15,7 +15,7 @@ GymGuyScript_0x5ad0b:
checkevent EVENT_GOT_KINGS_ROCK_IN_SLOWPOKE_WELL
iftrue UnknownScript_0x5ad22
writetext UnknownText_0x5ad2a
- keeptextopen
+ buttonsound
verbosegiveitem KINGS_ROCK
iffalse UnknownScript_0x5ad20
setevent EVENT_GOT_KINGS_ROCK_IN_SLOWPOKE_WELL
diff --git a/maps/SproutTower3F.asm b/maps/SproutTower3F.asm
index d81ad7013..07d0ee35a 100644
--- a/maps/SproutTower3F.asm
+++ b/maps/SproutTower3F.asm
@@ -79,7 +79,7 @@ SageLiScript:
returnafterbattle
loadfont
writetext UnknownText_0x184cc2
- keeptextopen
+ buttonsound
verbosegiveitem HM_FLASH
setevent EVENT_GOT_HM05_FLASH
setevent EVENT_BEAT_SAGE_LI
diff --git a/maps/TeamRocketBaseB2F.asm b/maps/TeamRocketBaseB2F.asm
index f38518976..7953a1108 100644
--- a/maps/TeamRocketBaseB2F.asm
+++ b/maps/TeamRocketBaseB2F.asm
@@ -291,7 +291,7 @@ UnknownScript_0x6d184:
spriteface PLAYER, RIGHT
loadfont
writetext UnknownText_0x6d809
- keeptextopen
+ buttonsound
verbosegiveitem HM_WHIRLPOOL
setevent EVENT_GOT_HM06_WHIRLPOOL
writetext UnknownText_0x6d8f8
diff --git a/maps/TinTower1F.asm b/maps/TinTower1F.asm
index f2ee667e5..b6b43a66a 100644
--- a/maps/TinTower1F.asm
+++ b/maps/TinTower1F.asm
@@ -200,7 +200,7 @@ SageScript_0x185188:
checkevent EVENT_GOT_RAINBOW_WING
iftrue UnknownScript_0x1851b0
writetext UnknownText_0x185629
- keeptextopen
+ buttonsound
verbosegiveitem RAINBOW_WING
closetext
refreshscreen $0
diff --git a/maps/TrainerHouseB1F.asm b/maps/TrainerHouseB1F.asm
index 9ec37ceb7..b59462e80 100644
--- a/maps/TrainerHouseB1F.asm
+++ b/maps/TrainerHouseB1F.asm
@@ -21,7 +21,7 @@ UnknownScript_0x9b38b:
checkflag ENGINE_FOUGHT_IN_TRAINER_HALL_TODAY
iftrue UnknownScript_0x9b3f7
writetext UnknownText_0x9b420
- keeptextopen
+ buttonsound
special SpecialTrainerHouse
iffalse UnknownScript_0x9b3a6
trainertotext CAL, CAL2, $0
@@ -31,7 +31,7 @@ UnknownScript_0x9b3a6:
trainertotext CAL, CAL3, $0
UnknownScript_0x9b3aa:
writetext UnknownText_0x9b46a
- keeptextopen
+ buttonsound
writetext UnknownText_0x9b487
yesorno
iffalse UnknownScript_0x9b3ed
diff --git a/maps/UndergroundPathSwitchRoomEntrances.asm b/maps/UndergroundPathSwitchRoomEntrances.asm
index 77e87a9f4..304164b09 100644
--- a/maps/UndergroundPathSwitchRoomEntrances.asm
+++ b/maps/UndergroundPathSwitchRoomEntrances.asm
@@ -247,7 +247,7 @@ GruntF3Script:
MapUndergroundPathSwitchRoomEntrancesSignpost0Script:
loadfont
writetext UnknownText_0x7d554
- keeptextopen
+ buttonsound
checkevent EVENT_SWITCH_1
iftrue UnknownScript_0x7cbcb
writetext UnknownText_0x7d617
@@ -272,7 +272,7 @@ UnknownScript_0x7cbcb:
MapUndergroundPathSwitchRoomEntrancesSignpost1Script:
loadfont
writetext UnknownText_0x7d643
- keeptextopen
+ buttonsound
checkevent EVENT_SWITCH_2
iftrue UnknownScript_0x7cc00
writetext UnknownText_0x7d617
@@ -297,7 +297,7 @@ UnknownScript_0x7cc00:
MapUndergroundPathSwitchRoomEntrancesSignpost2Script:
loadfont
writetext UnknownText_0x7d65a
- keeptextopen
+ buttonsound
checkevent EVENT_SWITCH_3
iftrue UnknownScript_0x7cc35
writetext UnknownText_0x7d617
@@ -322,7 +322,7 @@ UnknownScript_0x7cc35:
MapUndergroundPathSwitchRoomEntrancesSignpost3Script:
loadfont
writetext UnknownText_0x7d671
- keeptextopen
+ buttonsound
checkevent EVENT_EMERGENCY_SWITCH
iftrue UnknownScript_0x7cc70
writetext UnknownText_0x7d617
diff --git a/maps/UndergroundWarehouse.asm b/maps/UndergroundWarehouse.asm
index 5729a3c6d..ee1e4aba5 100644
--- a/maps/UndergroundWarehouse.asm
+++ b/maps/UndergroundWarehouse.asm
@@ -77,14 +77,14 @@ GentlemanScript_0x7d9bf:
checkevent EVENT_RECEIVED_CARD_KEY
iftrue UnknownScript_0x7d9de
writetext UnknownText_0x7dbc6
- keeptextopen
+ buttonsound
verbosegiveitem CARD_KEY
setevent EVENT_RECEIVED_CARD_KEY
setevent EVENT_WAREHOUSE_LAYOUT_1
clearevent EVENT_WAREHOUSE_LAYOUT_2
clearevent EVENT_WAREHOUSE_LAYOUT_3
writetext UnknownText_0x7dc5b
- keeptextopen
+ buttonsound
UnknownScript_0x7d9de:
writetext UnknownText_0x7dc8d
waitbutton
diff --git a/maps/VermilionCity.asm b/maps/VermilionCity.asm
index 9fe5e31d3..c124a5faa 100644
--- a/maps/VermilionCity.asm
+++ b/maps/VermilionCity.asm
@@ -92,7 +92,7 @@ VermilionGymBadgeGuy:
.AllBadges
writetext UnknownText_0x1aacf3
- keeptextopen
+ buttonsound
verbosegiveitem HP_UP
iffalse .Done
setevent EVENT_GOT_HP_UP_FROM_VERMILION_GUY
diff --git a/maps/VermilionPort.asm b/maps/VermilionPort.asm
index 4a5e4e1d3..6b67ede24 100644
--- a/maps/VermilionPort.asm
+++ b/maps/VermilionPort.asm
@@ -100,7 +100,7 @@ UnknownScript_0x74e20:
yesorno
iffalse UnknownScript_0x74e8d
writetext UnknownText_0x74f8b
- keeptextopen
+ buttonsound
checkitem S_S_TICKET
iffalse UnknownScript_0x74e68
writetext UnknownText_0x74fc2
@@ -162,7 +162,7 @@ SailorScript_0x74e97:
yesorno
iffalse UnknownScript_0x74e87
writetext UnknownText_0x74f8b
- keeptextopen
+ buttonsound
checkitem S_S_TICKET
iffalse UnknownScript_0x74ed4
writetext UnknownText_0x74fc2
diff --git a/maps/VictoryRoadGate.asm b/maps/VictoryRoadGate.asm
index 0de55de72..5d17ffac6 100644
--- a/maps/VictoryRoadGate.asm
+++ b/maps/VictoryRoadGate.asm
@@ -29,7 +29,7 @@ OfficerScript_0x9ba03:
UnknownScript_0x9ba04:
loadfont
writetext UnknownText_0x9ba29
- keeptextopen
+ buttonsound
checkcode VAR_BADGES
if_greater_than 7, UnknownScript_0x9ba19
writetext UnknownText_0x9ba5f
diff --git a/maps/VioletGym.asm b/maps/VioletGym.asm
index 1d9ad0668..1388074ad 100644
--- a/maps/VioletGym.asm
+++ b/maps/VioletGym.asm
@@ -39,7 +39,7 @@ FalknerScript_0x683c2:
domaptrigger ELMS_LAB, $2
specialphonecall SPECIALCALL_ASSISTANT
writetext UnknownText_0x685c8
- keeptextopen
+ buttonsound
verbosegiveitem TM_MUD_SLAP
iffalse .NoRoomForMudSlap
setevent EVENT_GOT_TM31_MUD_SLAP
diff --git a/maps/ViridianCity.asm b/maps/ViridianCity.asm
index 6403063b6..15e52bc75 100644
--- a/maps/ViridianCity.asm
+++ b/maps/ViridianCity.asm
@@ -57,7 +57,7 @@ FisherScript_0x1a9a75:
checkevent EVENT_GOT_TM42_DREAM_EATER
iftrue UnknownScript_0x1a9a8a
writetext UnknownText_0x1a9cc4
- keeptextopen
+ buttonsound
verbosegiveitem TM_DREAM_EATER
iffalse UnknownScript_0x1a9a8e
setevent EVENT_GOT_TM42_DREAM_EATER
diff --git a/maps/WarehouseEntrance.asm b/maps/WarehouseEntrance.asm
index 114f62e46..4f5afb66a 100644
--- a/maps/WarehouseEntrance.asm
+++ b/maps/WarehouseEntrance.asm
@@ -204,7 +204,7 @@ OlderHaircutBrotherScript:
checkmoney $0, 500
if_equal $2, .NotEnoughMoney
writetext UnknownText_0x7c69a
- keeptextopen
+ buttonsound
special Special_YoungerHaircutBrother
if_equal $0, .Refused
if_equal $1, .Refused
@@ -287,7 +287,7 @@ YoungerHaircutBrotherScript:
checkmoney $0, 300
if_equal $2, .NotEnoughMoney
writetext UnknownText_0x7c7f1
- keeptextopen
+ buttonsound
special Special_OlderHaircutBrother
if_equal $0, .Refused
if_equal $1, .Refused
diff --git a/maps/WiseTriosRoom.asm b/maps/WiseTriosRoom.asm
index 9d6250f64..9d63084a4 100644
--- a/maps/WiseTriosRoom.asm
+++ b/maps/WiseTriosRoom.asm
@@ -103,7 +103,7 @@ SageKojiScript:
showemote EMOTE_SHOCK, WISETRIOSROOM_SAGE6, 20
loadfont
writetext UnknownText_0x98c6c
- keeptextopen
+ buttonsound
writetext UnknownText_0x98cac
waitbutton
closetext