summaryrefslogtreecommitdiff
path: root/maps/Route39.asm
diff options
context:
space:
mode:
Diffstat (limited to 'maps/Route39.asm')
-rw-r--r--maps/Route39.asm291
1 files changed, 87 insertions, 204 deletions
diff --git a/maps/Route39.asm b/maps/Route39.asm
index 12f9f13c5..76a2b4c55 100644
--- a/maps/Route39.asm
+++ b/maps/Route39.asm
@@ -1,222 +1,136 @@
-Route39_MapScriptHeader: ; 0x1a5af3
- ; trigger count
+Route39_MapScriptHeader:
+.MapTriggers:
db 0
- ; callback count
+.MapCallbacks:
db 0
-; 0x1a5af5
-TaurosScript_0x1a5af5: ; 0x1a5af5
+TaurosScript_0x1a5af5:
loadfont
writetext UnknownText_0x1a5bf9
cry MILTANK
closetext
loadmovesprites
end
-; 0x1a5aff
-TrainerPokefanmDerek1: ; 0x1a5aff
- ; bit/flag number
- dw $4ce
+TrainerPokefanmDerek1:
+ trainer EVENT_BEAT_POKEFANM_DEREK, POKEFANM, DEREK1, PokefanmDerek1SeenText, PokefanmDerek1BeatenText, $0000, PokefanmDerek1Script
- ; trainer group && trainer id
- db POKEFANM, DEREK1
-
- ; text when seen
- dw PokefanmDerek1SeenText
-
- ; text when trainer beaten
- dw PokefanmDerek1BeatenText
-
- ; script when lost
- dw $0000
-
- ; script when talk again
- dw PokefanmDerek1Script
-; 0x1a5b0b
-
-PokefanmDerek1Script: ; 0x1a5b0b
- writecode $17, $1c
+PokefanmDerek1Script:
+ writecode VAR_CALLERID, PHONE_POKEFANM_DEREK
talkaftercancel
loadfont
- checkflag $0083
+ checkflag ENGINE_DEREK_HAS_NUGGET
iftrue UnknownScript_0x1a5b4a
- checkcellnum $1c
+ checkcellnum PHONE_POKEFANM_DEREK
iftrue UnknownScript_0x1a5b6e
checkpoke PIKACHU
iffalse UnknownScript_0x1a5b5c
- checkevent EVENT_SHOWED_DEREK_PIKACHU
+ checkevent EVENT_DEREK_ASKED_FOR_PHONE_NUMBER
iftrue UnknownScript_0x1a5b33
writetext UnknownText_0x1a5cf8
keeptextopen
- setevent EVENT_SHOWED_DEREK_PIKACHU
+ setevent EVENT_DEREK_ASKED_FOR_PHONE_NUMBER
scall UnknownScript_0x1a5b62
jump UnknownScript_0x1a5b36
-; 0x1a5b33
-UnknownScript_0x1a5b33: ; 0x1a5b33
+UnknownScript_0x1a5b33:
scall UnknownScript_0x1a5b66
-UnknownScript_0x1a5b36: ; 0x1a5b36
- askforphonenumber $1c
+UnknownScript_0x1a5b36:
+ askforphonenumber PHONE_POKEFANM_DEREK
if_equal $1, UnknownScript_0x1a5b76
if_equal $2, UnknownScript_0x1a5b72
trainertotext POKEFANM, DEREK1, $0
scall UnknownScript_0x1a5b6a
jump UnknownScript_0x1a5b6e
-; 0x1a5b4a
-UnknownScript_0x1a5b4a: ; 0x1a5b4a
+UnknownScript_0x1a5b4a:
scall UnknownScript_0x1a5b7a
verbosegiveitem NUGGET, 1
iffalse UnknownScript_0x1a5b59
- clearflag $0083
+ clearflag ENGINE_DEREK_HAS_NUGGET
jump UnknownScript_0x1a5b6e
-; 0x1a5b59
-UnknownScript_0x1a5b59: ; 0x1a5b59
+UnknownScript_0x1a5b59:
jump UnknownScript_0x1a5b7e
-; 0x1a5b5c
-UnknownScript_0x1a5b5c: ; 0x1a5b5c
+UnknownScript_0x1a5b5c:
writetext UnknownText_0x1a5dec
closetext
loadmovesprites
end
-; 0x1a5b62
-UnknownScript_0x1a5b62: ; 0x1a5b62
+UnknownScript_0x1a5b62:
jumpstd asknumber1m
end
-; 0x1a5b66
-UnknownScript_0x1a5b66: ; 0x1a5b66
+UnknownScript_0x1a5b66:
jumpstd asknumber2m
end
-; 0x1a5b6a
-UnknownScript_0x1a5b6a: ; 0x1a5b6a
+UnknownScript_0x1a5b6a:
jumpstd registerednumberm
end
-; 0x1a5b6e
-UnknownScript_0x1a5b6e: ; 0x1a5b6e
+UnknownScript_0x1a5b6e:
jumpstd numberacceptedm
end
-; 0x1a5b72
-UnknownScript_0x1a5b72: ; 0x1a5b72
+UnknownScript_0x1a5b72:
jumpstd numberdeclinedm
end
-; 0x1a5b76
-UnknownScript_0x1a5b76: ; 0x1a5b76
+UnknownScript_0x1a5b76:
jumpstd phonefullm
end
-; 0x1a5b7a
-UnknownScript_0x1a5b7a: ; 0x1a5b7a
+UnknownScript_0x1a5b7a:
jumpstd giftm
end
-; 0x1a5b7e
-UnknownScript_0x1a5b7e: ; 0x1a5b7e
+UnknownScript_0x1a5b7e:
jumpstd packfullm
end
-; 0x1a5b82
-
-TrainerPokefanfRuth: ; 0x1a5b82
- ; bit/flag number
- dw $4da
-
- ; trainer group && trainer id
- db POKEFANF, RUTH
-
- ; text when seen
- dw PokefanfRuthSeenText
-
- ; text when trainer beaten
- dw PokefanfRuthBeatenText
-
- ; script when lost
- dw $0000
- ; script when talk again
- dw PokefanfRuthScript
-; 0x1a5b8e
+TrainerPokefanfRuth:
+ trainer EVENT_BEAT_POKEFANF_RUTH, POKEFANF, RUTH, PokefanfRuthSeenText, PokefanfRuthBeatenText, $0000, PokefanfRuthScript
-PokefanfRuthScript: ; 0x1a5b8e
+PokefanfRuthScript:
talkaftercancel
loadfont
writetext UnknownText_0x1a5db2
closetext
loadmovesprites
end
-; 0x1a5b96
-TrainerSailorEugene: ; 0x1a5b96
- ; bit/flag number
- dw $575
+TrainerSailorEugene:
+ trainer EVENT_BEAT_SAILOR_EUGENE, SAILOR, EUGENE, SailorEugeneSeenText, SailorEugeneBeatenText, $0000, SailorEugeneScript
- ; trainer group && trainer id
- db SAILOR, EUGENE
-
- ; text when seen
- dw SailorEugeneSeenText
-
- ; text when trainer beaten
- dw SailorEugeneBeatenText
-
- ; script when lost
- dw $0000
-
- ; script when talk again
- dw SailorEugeneScript
-; 0x1a5ba2
-
-SailorEugeneScript: ; 0x1a5ba2
+SailorEugeneScript:
talkaftercancel
loadfont
writetext UnknownText_0x1a5c4d
closetext
loadmovesprites
end
-; 0x1a5baa
-
-TrainerPsychicNorman: ; 0x1a5baa
- ; bit/flag number
- dw $43f
-
- ; trainer group && trainer id
- db PSYCHIC_T, NORMAN
-
- ; text when seen
- dw PsychicNormanSeenText
-
- ; text when trainer beaten
- dw PsychicNormanBeatenText
-
- ; script when lost
- dw $0000
- ; script when talk again
- dw PsychicNormanScript
-; 0x1a5bb6
+TrainerPsychicNorman:
+ trainer EVENT_BEAT_PSYCHIC_NORMAN, PSYCHIC_T, NORMAN, PsychicNormanSeenText, PsychicNormanBeatenText, $0000, PsychicNormanScript
-PsychicNormanScript: ; 0x1a5bb6
+PsychicNormanScript:
talkaftercancel
loadfont
writetext UnknownText_0x1a5e57
closetext
loadmovesprites
end
-; 0x1a5bbe
-PokefanFScript_0x1a5bbe: ; 0x1a5bbe
+PokefanFScript_0x1a5bbe:
faceplayer
loadfont
checknite
iffalse UnknownScript_0x1a5be5
- checkevent $05c2
+ checkevent EVENT_BEAT_POKEFANF_JAIME
iftrue UnknownScript_0x1a5bdf
writetext UnknownText_0x1a5ee8
closetext
@@ -225,67 +139,55 @@ PokefanFScript_0x1a5bbe: ; 0x1a5bbe
loadtrainer POKEFANF, JAIME
startbattle
returnafterbattle
- setevent $05c2
+ setevent EVENT_BEAT_POKEFANF_JAIME
loadmovesprites
end
-; 0x1a5bdf
-UnknownScript_0x1a5bdf: ; 0x1a5bdf
+UnknownScript_0x1a5bdf:
writetext UnknownText_0x1a5f31
closetext
loadmovesprites
end
-; 0x1a5be5
-UnknownScript_0x1a5be5: ; 0x1a5be5
+UnknownScript_0x1a5be5:
writetext UnknownText_0x1a5ec4
closetext
loadmovesprites
end
-; 0x1a5beb
-MapRoute39Signpost2Script: ; 0x1a5beb
+MapRoute39Signpost2Script:
jumptext UnknownText_0x1a5fe3
-; 0x1a5bee
-MapRoute39Signpost1Script: ; 0x1a5bee
+MapRoute39Signpost1Script:
jumptext UnknownText_0x1a600a
-; 0x1a5bf1
-MapRoute39Signpost0Script: ; 0x1a5bf1
+MapRoute39Signpost0Script:
jumptext UnknownText_0x1a6036
-; 0x1a5bf4
-FruitTreeScript_0x1a5bf4: ; 0x1a5bf4
+FruitTreeScript_0x1a5bf4:
fruittree $f
-; 0x1a5bf6
-MapRoute39SignpostItem3: ; 0x1a5bf6
- dw $00aa
- db NUGGET
+MapRoute39SignpostItem3:
+ dwb EVENT_ROUTE_39_HIDDEN_NUGGET, NUGGET
-; 0x1a5bf9
-UnknownText_0x1a5bf9: ; 0x1a5bf9
+UnknownText_0x1a5bf9:
text "MILTANK: Mooo!"
done
-; 0x1a5c09
-SailorEugeneSeenText: ; 0x1a5c09
+SailorEugeneSeenText:
text "I just got back to"
line "OLIVINE."
para "So how about a"
line "#MON battle?"
done
-; 0x1a5c42
-SailorEugeneBeatenText: ; 0x1a5c42
+SailorEugeneBeatenText:
text "Awaaargh!"
done
-; 0x1a5c4d
-UnknownText_0x1a5c4d: ; 0x1a5c4d
+UnknownText_0x1a5c4d:
text "My #MON were"
line "caught and raised"
cont "overseas."
@@ -294,22 +196,19 @@ UnknownText_0x1a5c4d: ; 0x1a5c4d
line "ions on those long"
cont "voyages."
done
-; 0x1a5ca5
-PokefanmDerek1SeenText: ; 0x1a5ca5
+PokefanmDerek1SeenText:
text "This is a good"
line "time to brag about"
cont "my PIKACHU!"
done
-; 0x1a5cd4
-PokefanmDerek1BeatenText: ; 0x1a5cd4
+PokefanmDerek1BeatenText:
text "I had no time to"
line "show off PIKACHU…"
done
-; 0x1a5cf8
-UnknownText_0x1a5cf8: ; 0x1a5cf8
+UnknownText_0x1a5cf8:
text "I'm not listening"
line "to your bragging!"
@@ -319,9 +218,8 @@ UnknownText_0x1a5cf8: ; 0x1a5cf8
para "listening to other"
line "people brag!"
done
-; 0x1a5d5b
-PokefanfRuthSeenText: ; 0x1a5d5b
+PokefanfRuthSeenText:
text "Such darling"
line "#MON."
@@ -329,43 +227,37 @@ PokefanfRuthSeenText: ; 0x1a5d5b
line "#MON together"
cont "at the same time."
done
-; 0x1a5d9d
-PokefanfRuthBeatenText: ; 0x1a5d9d
+PokefanfRuthBeatenText:
text "I don't mind"
line "losing."
done
-; 0x1a5db2
-UnknownText_0x1a5db2: ; 0x1a5db2
+UnknownText_0x1a5db2:
text "Do you know about"
line "baby #MON?"
para "I bet they're just"
line "adorable!"
done
-; 0x1a5dec
-UnknownText_0x1a5dec: ; 0x1a5dec
+UnknownText_0x1a5dec:
text "PIKACHU is it!"
line "Don't you agree?"
done
-; 0x1a5e0c
-PsychicNormanSeenText: ; 0x1a5e0c
+PsychicNormanSeenText:
text "Let me see what"
line "your #MON are"
cont "capable of."
done
-; 0x1a5e37
-PsychicNormanBeatenText: ; 0x1a5e37
+PsychicNormanBeatenText:
text "Ooh, your #MON"
line "have potential."
done
-; 0x1a5e57
-UnknownText_0x1a5e57: ; 0x1a5e57
+UnknownText_0x1a5e57:
text "You know how #-"
line "MON have different"
cont "abilities?"
@@ -375,29 +267,25 @@ UnknownText_0x1a5e57: ; 0x1a5e57
cont "one has different"
cont "potential."
done
-; 0x1a5ec4
-UnknownText_0x1a5ec4: ; 0x1a5ec4
+UnknownText_0x1a5ec4:
text "Ufufufu… I hope it"
line "gets dark soon."
done
-; 0x1a5ee8
-UnknownText_0x1a5ee8: ; 0x1a5ee8
+UnknownText_0x1a5ee8:
text "You came at just"
line "the right time."
para "Let's battle."
done
-; 0x1a5f17
-UnknownText_0x1a5f17: ; 0x1a5f17
+UnknownText_0x1a5f17:
text "Oh, how disap-"
line "pointing…"
done
-; 0x1a5f31
-UnknownText_0x1a5f31: ; 0x1a5f31
+UnknownText_0x1a5f31:
text "I met my MEOWTH at"
line "night, right here"
cont "on ROUTE 39."
@@ -414,25 +302,22 @@ UnknownText_0x1a5f31: ; 0x1a5f31
para "training here than"
line "anywhere else."
done
-; 0x1a5fe3
-UnknownText_0x1a5fe3: ; 0x1a5fe3
+UnknownText_0x1a5fe3:
text "ROUTE 39"
para "OLIVINE CITY -"
line "ECRUTEAK CITY"
done
-; 0x1a600a
-UnknownText_0x1a600a: ; 0x1a600a
+UnknownText_0x1a600a:
text "MOOMOO FARM"
para "Enjoy Our Fresh"
line "and Tasty Milk"
done
-; 0x1a6036
-UnknownText_0x1a6036: ; 0x1a6036
+UnknownText_0x1a6036:
text "TRAINER TIPS"
para "Use HEADBUTT on"
@@ -446,37 +331,35 @@ UnknownText_0x1a6036: ; 0x1a6036
para "Use HEADBUTT on"
line "any tree you see!"
done
-; 0x1a60ba
-Route39_MapEventHeader: ; 0x1a60ba
+Route39_MapEventHeader:
; filler
db 0, 0
- ; warps
+.Warps:
db 2
warp_def $3, $1, 1, GROUP_ROUTE_39_BARN, MAP_ROUTE_39_BARN
warp_def $3, $5, 1, GROUP_ROUTE_39_FARMHOUSE, MAP_ROUTE_39_FARMHOUSE
- ; xy triggers
+.XYTriggers:
db 0
- ; signposts
+.Signposts:
db 4
- signpost 31, 5, $0, MapRoute39Signpost0Script
- signpost 5, 9, $0, MapRoute39Signpost1Script
- signpost 7, 15, $0, MapRoute39Signpost2Script
- signpost 13, 5, $7, MapRoute39SignpostItem3
+ signpost 31, 5, SIGNPOST_READ, MapRoute39Signpost0Script
+ signpost 5, 9, SIGNPOST_READ, MapRoute39Signpost1Script
+ signpost 7, 15, SIGNPOST_READ, MapRoute39Signpost2Script
+ signpost 13, 5, SIGNPOST_ITEM, MapRoute39SignpostItem3
- ; people-events
+.PersonEvents:
db 10
- person_event SPRITE_SAILOR, 33, 17, $8, $0, 255, 255, $92, 5, TrainerSailorEugene, $ffff
- person_event SPRITE_POKEFAN_M, 26, 14, $7, $0, 255, 255, $82, 4, TrainerPokefanmDerek1, $ffff
- person_event SPRITE_POKEFAN_F, 23, 15, $9, $0, 255, 255, $82, 4, TrainerPokefanfRuth, $ffff
- person_event SPRITE_TAUROS, 16, 7, $16, $0, 255, 255, $0, 0, TaurosScript_0x1a5af5, $ffff
- person_event SPRITE_TAUROS, 15, 10, $16, $0, 255, 255, $0, 0, TaurosScript_0x1a5af5, $ffff
- person_event SPRITE_TAUROS, 19, 8, $16, $0, 255, 255, $0, 0, TaurosScript_0x1a5af5, $ffff
- person_event SPRITE_TAUROS, 17, 12, $16, $0, 255, 255, $0, 0, TaurosScript_0x1a5af5, $ffff
- person_event SPRITE_STANDING_YOUNGSTER, 11, 17, $a, $0, 255, 255, $92, 1, TrainerPsychicNorman, $ffff
- person_event SPRITE_FRUIT_TREE, 7, 13, $1, $0, 255, 255, $0, 0, FruitTreeScript_0x1a5bf4, $ffff
- person_event SPRITE_POKEFAN_F, 26, 8, $6, $0, 255, 255, $80, 0, PokefanFScript_0x1a5bbe, $ffff
-; 0x1a6160
+ person_event SPRITE_SAILOR, 33, 17, OW_LEFT | $0, $0, -1, -1, (PAL_OW_BLUE << 4) | $82, 5, TrainerSailorEugene, -1
+ person_event SPRITE_POKEFAN_M, 26, 14, OW_UP | $3, $0, -1, -1, (PAL_OW_RED << 4) | $82, 4, TrainerPokefanmDerek1, -1
+ person_event SPRITE_POKEFAN_F, 23, 15, OW_LEFT | $1, $0, -1, -1, (PAL_OW_RED << 4) | $82, 4, TrainerPokefanfRuth, -1
+ person_event SPRITE_TAUROS, 16, 7, OW_UP | $12, $0, -1, -1, $0, 0, TaurosScript_0x1a5af5, -1
+ person_event SPRITE_TAUROS, 15, 10, OW_UP | $12, $0, -1, -1, $0, 0, TaurosScript_0x1a5af5, -1
+ person_event SPRITE_TAUROS, 19, 8, OW_UP | $12, $0, -1, -1, $0, 0, TaurosScript_0x1a5af5, -1
+ person_event SPRITE_TAUROS, 17, 12, OW_UP | $12, $0, -1, -1, $0, 0, TaurosScript_0x1a5af5, -1
+ person_event SPRITE_STANDING_YOUNGSTER, 11, 17, OW_LEFT | $2, $0, -1, -1, (PAL_OW_BLUE << 4) | $82, 1, TrainerPsychicNorman, -1
+ person_event SPRITE_FRUIT_TREE, 7, 13, OW_DOWN | $1, $0, -1, -1, $0, 0, FruitTreeScript_0x1a5bf4, -1
+ person_event SPRITE_POKEFAN_F, 26, 8, OW_UP | $2, $0, -1, -1, (PAL_OW_RED << 4) | $80, 0, PokefanFScript_0x1a5bbe, -1