ref: d588033748535fb3ae6d92b55f126784124c6945
parent: 115a5c236d727adec155817626a418c2f66fa498
author: surskitty <surskitty@gmail.com>
date: Mon Jan 15 18:30:39 EST 2018
Route 35 local labels
--- a/maps/Route35.asm
+++ b/maps/Route35.asm
@@ -39,16 +39,16 @@
checkcellnum PHONE_JUGGLER_IRWIN
iftrue UnknownScript_0x19c90f
checkevent EVENT_IRWIN_ASKED_FOR_PHONE_NUMBER
- iftrue UnknownScript_0x19c8ec
+ iftrue .AskedAlready
writetext UnknownText_0x19cd5a
buttonsound
setevent EVENT_IRWIN_ASKED_FOR_PHONE_NUMBER
scall UnknownScript_0x19c903
- jump UnknownScript_0x19c8ef
+ jump .AskForNumber
-UnknownScript_0x19c8ec:
+.AskedAlready:
scall UnknownScript_0x19c907
-UnknownScript_0x19c8ef:
+.AskForNumber:
askforphonenumber PHONE_JUGGLER_IRWIN
if_equal $1, UnknownScript_0x19c917
if_equal $2, UnknownScript_0x19c913
@@ -128,8 +128,8 @@
closetext
end
-TrainerBugCatcherArnie1:
- trainer EVENT_BEAT_BUG_CATCHER_ARNIE, BUG_CATCHER, ARNIE1, BugCatcherArnie1SeenText, BugCatcherArnie1BeatenText, 0, .Script
+TrainerBugCatcherArnie:
+ trainer EVENT_BEAT_BUG_CATCHER_ARNIE, BUG_CATCHER, ARNIE1, BugCatcherArnieSeenText, BugCatcherArnieBeatenText, 0, .Script
.Script:
writecode VAR_CALLERID, PHONE_BUG_CATCHER_ARNIE
@@ -136,22 +136,22 @@
end_if_just_battled
opentext
checkflag ENGINE_ARNIE
- iftrue UnknownScript_0x19c9bb
+ iftrue .WantsBattle
checkflag ENGINE_YANMA_SWARM
- iftrue UnknownScript_0x19ca2f
+ iftrue .YanmaSwarming
checkcellnum PHONE_BUG_CATCHER_ARNIE
iftrue UnknownScript_0x19c90f
checkevent EVENT_ARNIE_ASKED_FOR_PHONE_NUMBER
- iftrue UnknownScript_0x19c9a4
- writetext UnknownText_0x19cdf6
+ iftrue .AskedAlready
+ writetext BugCatcherArnieAfterBattleText
buttonsound
setevent EVENT_ARNIE_ASKED_FOR_PHONE_NUMBER
scall UnknownScript_0x19c903
- jump UnknownScript_0x19c9a7
+ jump .AskForNumber
-UnknownScript_0x19c9a4:
+.AskedAlready:
scall UnknownScript_0x19c907
-UnknownScript_0x19c9a7:
+.AskForNumber:
askforphonenumber PHONE_BUG_CATCHER_ARNIE
if_equal $1, UnknownScript_0x19c917
if_equal $2, UnknownScript_0x19c913
@@ -159,9 +159,9 @@
scall UnknownScript_0x19c90b
jump UnknownScript_0x19c90f
-UnknownScript_0x19c9bb:
+.WantsBattle:
scall UnknownScript_0x19c91b
- winlosstext BugCatcherArnie1BeatenText, 0
+ winlosstext BugCatcherArnieBeatenText, 0
copybytetovar wArnieFightCount
if_equal 4, .Fight4
if_equal 3, .Fight3
@@ -219,8 +219,8 @@
clearflag ENGINE_ARNIE
end
-UnknownScript_0x19ca2f:
- writetext UnknownText_0x19ce38
+.YanmaSwarming:
+ writetext BugCatcherArnieYanmaText
waitbutton
closetext
end
@@ -236,18 +236,18 @@
closetext
end
-OfficerScript_0x19ca49:
+TrainerOfficerDirk:
faceplayer
opentext
checknite
- iffalse UnknownScript_0x19ca73
+ iffalse .NotNight
checkevent EVENT_BEAT_OFFICER_DIRK
- iftrue UnknownScript_0x19ca6d
+ iftrue .AfterBattle
playmusic MUSIC_OFFICER_ENCOUNTER
- writetext UnknownText_0x19ceea
+ writetext OfficerDirkSeenText
waitbutton
closetext
- winlosstext UnknownText_0x19cf06, 0
+ winlosstext OfficerDirkBeatenText, 0
loadtrainer OFFICER, DIRK
startbattle
reloadmapafterbattle
@@ -255,14 +255,14 @@
closetext
end
-UnknownScript_0x19ca6d:
- writetext UnknownText_0x19cf0f
+.AfterBattle:
+ writetext OfficerDirkAfterBattleText
waitbutton
closetext
end
-UnknownScript_0x19ca73:
- writetext UnknownText_0x19cf56
+.NotNight:
+ writetext OfficerDirkPrettyToughText
waitbutton
closetext
end
@@ -389,18 +389,18 @@
line "electrified me!"
done
-BugCatcherArnie1SeenText:
+BugCatcherArnieSeenText:
text "I'll go anywhere"
line "if bug #MON"
cont "appear there."
done
-BugCatcherArnie1BeatenText:
+BugCatcherArnieBeatenText:
text "Huh? I shouldn't"
line "have lost that…"
done
-UnknownText_0x19cdf6:
+BugCatcherArnieAfterBattleText:
text "My VENONAT won me"
line "the Bug-Catching"
@@ -408,7 +408,7 @@
line "NATIONAL PARK."
done
-UnknownText_0x19ce38:
+BugCatcherArnieYanmaText:
text "Wow… Look at all"
line "those YANMA!"
@@ -432,16 +432,16 @@
cont "wild #MON."
done
-UnknownText_0x19ceea:
+OfficerDirkSeenText:
text "Danger lurks in"
line "the night!"
done
-UnknownText_0x19cf06:
+OfficerDirkBeatenText:
text "Whoops!"
done
-UnknownText_0x19cf0f:
+OfficerDirkAfterBattleText:
text "You know, night-"
line "time is fun in its"
cont "own ways."
@@ -450,7 +450,7 @@
line "it, OK?"
done
-UnknownText_0x19cf56:
+OfficerDirkPrettyToughText:
text "Your #MON look"
line "pretty tough."
@@ -488,8 +488,8 @@
object_event 10, 26, SPRITE_LASS, SPRITEMOVEDATA_SPINRANDOM_FAST, 0, 0, -1, -1, PAL_NPC_GREEN, OBJECTTYPE_TRAINER, 1, TrainerPicnickerKim, -1
object_event 14, 28, SPRITE_YOUNGSTER, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, PAL_NPC_BLUE, OBJECTTYPE_TRAINER, 0, TrainerBirdKeeperBryan, -1
object_event 2, 10, SPRITE_FISHER, SPRITEMOVEDATA_SPINCOUNTERCLOCKWISE, 0, 0, -1, -1, PAL_NPC_RED, OBJECTTYPE_TRAINER, 2, TrainerFirebreatherWalt, -1
- object_event 16, 7, SPRITE_BUG_CATCHER, SPRITEMOVEDATA_STANDING_DOWN, 2, 0, -1, -1, PAL_NPC_BROWN, OBJECTTYPE_TRAINER, 3, TrainerBugCatcherArnie1, -1
+ object_event 16, 7, SPRITE_BUG_CATCHER, SPRITEMOVEDATA_STANDING_DOWN, 2, 0, -1, -1, PAL_NPC_BROWN, OBJECTTYPE_TRAINER, 3, TrainerBugCatcherArnie, -1
object_event 5, 10, SPRITE_SUPER_NERD, SPRITEMOVEDATA_SPINRANDOM_FAST, 0, 0, -1, -1, PAL_NPC_BLUE, OBJECTTYPE_TRAINER, 2, TrainerJugglerIrwin, -1
- object_event 5, 6, SPRITE_OFFICER, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, PAL_NPC_BLUE, OBJECTTYPE_SCRIPT, 0, OfficerScript_0x19ca49, -1
+ object_event 5, 6, SPRITE_OFFICER, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, PAL_NPC_BLUE, OBJECTTYPE_SCRIPT, 0, TrainerOfficerDirk, -1
object_event 2, 25, SPRITE_FRUIT_TREE, SPRITEMOVEDATA_ITEM_TREE, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, FruitTreeScript_0x19ca7e, -1
object_event 13, 16, SPRITE_POKE_BALL, SPRITEMOVEDATA_ITEM_TREE, 0, 0, -1, -1, 0, OBJECTTYPE_ITEMBALL, 0, Route35TMRollout, EVENT_ROUTE_35_TM_ROLLOUT