pokecrystal-board/maps/Route27.asm

491 lines
10 KiB
NASM
Raw Normal View History

2015-07-10 01:20:21 -07:00
Route27_MapScriptHeader:
.MapTriggers:
db 2
; triggers
2015-11-02 11:37:02 -08:00
dw UnknownScript_0x1a0871, 0
dw UnknownScript_0x1a0872, 0
.MapCallbacks:
db 0
2015-07-10 01:20:21 -07:00
UnknownScript_0x1a0871:
end
2015-07-10 01:20:21 -07:00
UnknownScript_0x1a0872:
end
2015-07-10 01:20:21 -07:00
UnknownScript_0x1a0873:
spriteface $a, LEFT
showemote EMOTE_SHOCK, $a, 15
applymovement $a, MovementData_0x1a0a66
2015-01-20 00:01:23 -08:00
jump UnknownScript_0x1a088c
2015-07-10 01:20:21 -07:00
UnknownScript_0x1a0881:
spriteface $a, LEFT
showemote EMOTE_SHOCK, $a, 15
applymovement $a, MovementData_0x1a0a69
2015-07-10 01:20:21 -07:00
UnknownScript_0x1a088c:
spriteface PLAYER, RIGHT
loadfont
2015-01-20 00:01:23 -08:00
writetext UnknownText_0x1a0a6b
keeptextopen
2015-01-20 00:01:23 -08:00
writetext UnknownText_0x1a0a71
closetext
loadmovesprites
dotrigger $1
end
2015-07-10 01:20:21 -07:00
FisherScript_0x1a089c:
jumptextfaceplayer UnknownText_0x1a0a71
2015-07-10 01:20:21 -07:00
TrainerPsychicGilbert:
2015-11-02 11:37:02 -08:00
trainer EVENT_BEAT_PSYCHIC_GILBERT, PSYCHIC_T, GILBERT, PsychicGilbertSeenText, PsychicGilbertBeatenText, 0, PsychicGilbertScript
2015-07-10 01:20:21 -07:00
PsychicGilbertScript:
talkaftercancel
loadfont
2015-01-20 00:01:23 -08:00
writetext UnknownText_0x1a0dd2
closetext
loadmovesprites
end
2015-07-10 01:20:21 -07:00
TrainerBird_keeperJose2:
2015-11-02 11:37:02 -08:00
trainer EVENT_BEAT_BIRD_KEEPER_JOSE2, BIRD_KEEPER, JOSE2, Bird_keeperJose2SeenText, Bird_keeperJose2BeatenText, 0, Bird_keeperJose2Script
2015-07-10 01:20:21 -07:00
Bird_keeperJose2Script:
writecode VAR_CALLERID, PHONE_BIRDKEEPER_JOSE
talkaftercancel
loadfont
checkflag ENGINE_JOSE
iftrue UnknownScript_0x1a08ff
checkflag ENGINE_JOSE_HAS_STAR_PIECE
iftrue UnknownScript_0x1a0945
checkcellnum PHONE_BIRDKEEPER_JOSE
iftrue UnknownScript_0x1a0963
checkevent EVENT_JOSE_ASKED_FOR_PHONE_NUMBER
iftrue UnknownScript_0x1a08e8
2015-01-20 00:01:23 -08:00
writetext UnknownText_0x1a0e42
keeptextopen
setevent EVENT_JOSE_ASKED_FOR_PHONE_NUMBER
2015-01-20 00:01:23 -08:00
scall UnknownScript_0x1a0957
jump UnknownScript_0x1a08eb
2015-07-10 01:20:21 -07:00
UnknownScript_0x1a08e8:
2015-01-20 00:01:23 -08:00
scall UnknownScript_0x1a095b
2015-07-10 01:20:21 -07:00
UnknownScript_0x1a08eb:
askforphonenumber PHONE_BIRDKEEPER_JOSE
if_equal $1, UnknownScript_0x1a096b
if_equal $2, UnknownScript_0x1a0967
trainertotext BIRD_KEEPER, JOSE2, $0
2015-01-20 00:01:23 -08:00
scall UnknownScript_0x1a095f
jump UnknownScript_0x1a0963
2015-07-10 01:20:21 -07:00
UnknownScript_0x1a08ff:
2015-01-20 00:01:23 -08:00
scall UnknownScript_0x1a096f
2015-11-02 11:37:02 -08:00
winlosstext Bird_keeperJose2BeatenText, 0
2015-07-10 13:04:00 -07:00
copybytetovar wJoseFightCount
if_equal 2, .Fight2
if_equal 1, .Fight1
if_equal 0, .LoadFight0
.Fight2
2013-09-24 00:48:58 -07:00
checkevent EVENT_RESTORED_POWER_TO_KANTO
iftrue .LoadFight2
.Fight1
2015-06-24 20:20:04 -07:00
checkevent EVENT_BEAT_ELITE_FOUR
iftrue .LoadFight1
.LoadFight0
loadtrainer BIRD_KEEPER, JOSE2
startbattle
returnafterbattle
2015-07-10 13:04:00 -07:00
loadvar wJoseFightCount, 1
clearflag ENGINE_JOSE
end
.LoadFight1
loadtrainer BIRD_KEEPER, JOSE1
startbattle
returnafterbattle
2015-07-10 13:04:00 -07:00
loadvar wJoseFightCount, 2
clearflag ENGINE_JOSE
end
.LoadFight2
loadtrainer BIRD_KEEPER, JOSE3
startbattle
returnafterbattle
clearflag ENGINE_JOSE
end
2015-07-10 01:20:21 -07:00
UnknownScript_0x1a0945:
2015-01-20 00:01:23 -08:00
scall UnknownScript_0x1a0973
2015-11-04 17:20:14 -08:00
verbosegiveitem STAR_PIECE
iffalse UnknownScript_0x1a0954
clearflag ENGINE_JOSE_HAS_STAR_PIECE
2015-01-20 00:01:23 -08:00
jump UnknownScript_0x1a0963
2015-07-10 01:20:21 -07:00
UnknownScript_0x1a0954:
2015-01-20 00:01:23 -08:00
jump UnknownScript_0x1a0977
2015-07-10 01:20:21 -07:00
UnknownScript_0x1a0957:
2015-06-24 18:26:24 -07:00
jumpstd asknumber1m
end
2015-07-10 01:20:21 -07:00
UnknownScript_0x1a095b:
2015-06-24 18:26:24 -07:00
jumpstd asknumber2m
end
2015-07-10 01:20:21 -07:00
UnknownScript_0x1a095f:
2015-06-24 18:26:24 -07:00
jumpstd registerednumberm
end
2015-07-10 01:20:21 -07:00
UnknownScript_0x1a0963:
2015-06-24 18:26:24 -07:00
jumpstd numberacceptedm
end
2015-07-10 01:20:21 -07:00
UnknownScript_0x1a0967:
2015-06-24 18:26:24 -07:00
jumpstd numberdeclinedm
end
2015-07-10 01:20:21 -07:00
UnknownScript_0x1a096b:
2015-06-24 18:26:24 -07:00
jumpstd phonefullm
end
2015-07-10 01:20:21 -07:00
UnknownScript_0x1a096f:
2015-06-24 18:26:24 -07:00
jumpstd rematchm
end
2015-07-10 01:20:21 -07:00
UnknownScript_0x1a0973:
2015-06-24 18:26:24 -07:00
jumpstd giftm
end
2015-07-10 01:20:21 -07:00
UnknownScript_0x1a0977:
2015-06-24 18:26:24 -07:00
jumpstd packfullm
end
2015-07-10 01:20:21 -07:00
TrainerCooltrainermBlake:
2015-11-02 11:37:02 -08:00
trainer EVENT_BEAT_COOLTRAINERM_BLAKE, COOLTRAINERM, BLAKE, CooltrainermBlakeSeenText, CooltrainermBlakeBeatenText, 0, CooltrainermBlakeScript
2015-07-10 01:20:21 -07:00
CooltrainermBlakeScript:
talkaftercancel
loadfont
2015-01-20 00:01:23 -08:00
writetext UnknownText_0x1a0b0b
closetext
loadmovesprites
end
2015-07-10 01:20:21 -07:00
TrainerCooltrainermBrian:
2015-11-02 11:37:02 -08:00
trainer EVENT_BEAT_COOLTRAINERM_BRIAN, COOLTRAINERM, BRIAN, CooltrainermBrianSeenText, CooltrainermBrianBeatenText, 0, CooltrainermBrianScript
2015-07-10 01:20:21 -07:00
CooltrainermBrianScript:
talkaftercancel
loadfont
2015-01-20 00:01:23 -08:00
writetext UnknownText_0x1a0bac
closetext
loadmovesprites
end
2015-07-10 01:20:21 -07:00
TrainerCooltrainerfReena:
2015-11-02 11:37:02 -08:00
trainer EVENT_BEAT_COOLTRAINERF_REENA, COOLTRAINERF, REENA1, CooltrainerfReena1SeenText, CooltrainerfReena1BeatenText, 0, CooltrainerfReena1Script
2015-07-10 01:20:21 -07:00
CooltrainerfReena1Script:
writecode VAR_CALLERID, PHONE_COOLTRAINERF_REENA
talkaftercancel
loadfont
checkflag ENGINE_REENA
iftrue UnknownScript_0x1a09e9
checkcellnum PHONE_COOLTRAINERF_REENA
iftrue UnknownScript_0x1a0a3b
checkevent EVENT_REENA_ASKED_FOR_PHONE_NUMBER
iftrue UnknownScript_0x1a09d2
2015-01-20 00:01:23 -08:00
writetext UnknownText_0x1a0c35
keeptextopen
setevent EVENT_REENA_ASKED_FOR_PHONE_NUMBER
2015-01-20 00:01:23 -08:00
scall UnknownScript_0x1a0a2f
jump UnknownScript_0x1a09d5
2015-07-10 01:20:21 -07:00
UnknownScript_0x1a09d2:
2015-01-20 00:01:23 -08:00
scall UnknownScript_0x1a0a33
2015-07-10 01:20:21 -07:00
UnknownScript_0x1a09d5:
askforphonenumber PHONE_COOLTRAINERF_REENA
if_equal $1, UnknownScript_0x1a0a43
if_equal $2, UnknownScript_0x1a0a3f
trainertotext COOLTRAINERF, REENA1, $0
2015-01-20 00:01:23 -08:00
scall UnknownScript_0x1a0a37
jump UnknownScript_0x1a0a3b
2015-07-10 01:20:21 -07:00
UnknownScript_0x1a09e9:
2015-01-20 00:01:23 -08:00
scall UnknownScript_0x1a0a47
2015-11-02 11:37:02 -08:00
winlosstext CooltrainerfReena1BeatenText, 0
2015-07-10 13:04:00 -07:00
copybytetovar wReenaFightCount
if_equal 2, .Fight2
if_equal 1, .Fight1
if_equal 0, .LoadFight0
.Fight2
2013-09-24 00:48:58 -07:00
checkevent EVENT_RESTORED_POWER_TO_KANTO
iftrue .LoadFight2
.Fight1
2015-06-24 20:20:04 -07:00
checkevent EVENT_BEAT_ELITE_FOUR
iftrue .LoadFight1
.LoadFight0
loadtrainer COOLTRAINERF, REENA1
startbattle
returnafterbattle
2015-07-10 13:04:00 -07:00
loadvar wReenaFightCount, 1
clearflag ENGINE_REENA
end
.LoadFight1
loadtrainer COOLTRAINERF, REENA2
startbattle
returnafterbattle
2015-07-10 13:04:00 -07:00
loadvar wReenaFightCount, 2
clearflag ENGINE_REENA
end
.LoadFight2
loadtrainer COOLTRAINERF, REENA3
startbattle
returnafterbattle
clearflag ENGINE_REENA
end
2015-07-10 01:20:21 -07:00
UnknownScript_0x1a0a2f:
2015-06-24 18:26:24 -07:00
jumpstd asknumber1f
end
2015-07-10 01:20:21 -07:00
UnknownScript_0x1a0a33:
2015-06-24 18:26:24 -07:00
jumpstd asknumber2f
end
2015-07-10 01:20:21 -07:00
UnknownScript_0x1a0a37:
2015-06-24 18:26:24 -07:00
jumpstd registerednumberf
end
2015-07-10 01:20:21 -07:00
UnknownScript_0x1a0a3b:
2015-06-24 18:26:24 -07:00
jumpstd numberacceptedf
end
2015-07-10 01:20:21 -07:00
UnknownScript_0x1a0a3f:
2015-06-24 18:26:24 -07:00
jumpstd numberdeclinedf
end
2015-07-10 01:20:21 -07:00
UnknownScript_0x1a0a43:
2015-06-24 18:26:24 -07:00
jumpstd phonefullf
end
2015-07-10 01:20:21 -07:00
UnknownScript_0x1a0a47:
2015-06-24 18:26:24 -07:00
jumpstd rematchf
end
2015-07-10 01:20:21 -07:00
TrainerCooltrainerfMegan:
2015-11-02 11:37:02 -08:00
trainer EVENT_BEAT_COOLTRAINERF_MEGAN, COOLTRAINERF, MEGAN, CooltrainerfMeganSeenText, CooltrainerfMeganBeatenText, 0, CooltrainerfMeganScript
2015-07-10 01:20:21 -07:00
CooltrainerfMeganScript:
talkaftercancel
loadfont
2015-01-20 00:01:23 -08:00
writetext UnknownText_0x1a0cce
closetext
loadmovesprites
end
2015-07-10 01:20:21 -07:00
MapRoute27Signpost0Script:
jumptext UnknownText_0x1a0e7f
2015-07-10 01:20:21 -07:00
ItemFragment_0x1a0a62:
db TM_SOLARBEAM, 1
2015-07-10 01:20:21 -07:00
ItemFragment_0x1a0a64:
db RARE_CANDY, 1
2015-07-10 01:20:21 -07:00
MovementData_0x1a0a66:
step_left
step_left
step_end
2015-07-10 01:20:21 -07:00
MovementData_0x1a0a69:
step_left
step_end
2015-07-10 01:20:21 -07:00
UnknownText_0x1a0a6b:
text "Hey!"
done
2015-07-10 01:20:21 -07:00
UnknownText_0x1a0a71:
text "Do you know what"
line "you just did?"
para "You've taken your"
line "first step into"
cont "KANTO."
para "Check your #-"
line "GEAR MAP and see."
done
2015-07-10 01:20:21 -07:00
CooltrainermBlakeSeenText:
text "You look pretty"
line "strong."
cont "Let me battle you!"
done
2015-07-10 01:20:21 -07:00
CooltrainermBlakeBeatenText:
text "Yow!"
done
2015-07-10 01:20:21 -07:00
UnknownText_0x1a0b0b:
text "If you prevail on"
line "this harsh trek,"
para "the truth will be"
line "revealed!"
para "Heh, sorry, I just"
line "wanted to say"
cont "something cool."
done
2015-07-10 01:20:21 -07:00
CooltrainermBrianSeenText:
text "Hm? You're good,"
line "aren't you?"
done
2015-07-10 01:20:21 -07:00
CooltrainermBrianBeatenText:
text "Just as I thought!"
done
2015-07-10 01:20:21 -07:00
UnknownText_0x1a0bac:
text "A good trainer can"
line "recognize other"
cont "good trainers."
done
2015-07-10 01:20:21 -07:00
CooltrainerfReena1SeenText:
text "You shouldn't"
line "underestimate the"
para "wild #MON in"
line "these parts."
done
2015-07-10 01:20:21 -07:00
CooltrainerfReena1BeatenText:
text "Oh! You're much"
line "too strong!"
done
2015-07-10 01:20:21 -07:00
UnknownText_0x1a0c35:
text "You're just a kid,"
line "but you're not to"
para "be underestimated"
line "either."
done
2015-07-10 01:20:21 -07:00
CooltrainerfMeganSeenText:
text "It's rare to see"
line "anyone come here."
para "Are you training"
line "on your own?"
done
2015-07-10 01:20:21 -07:00
CooltrainerfMeganBeatenText:
text "Oh! You're really"
line "strong!"
done
2015-07-10 01:20:21 -07:00
UnknownText_0x1a0cce:
text "I'm checking out"
line "pre- and post-"
cont "evolution #MON."
para "Evolution really"
line "does make #MON"
cont "stronger."
para "But evolved forms"
line "also learn moves"
cont "later on."
done
2015-07-10 01:20:21 -07:00
PsychicGilbertSeenText:
text "Don't say a thing!"
para "Let me guess what"
line "you're thinking."
para "Mmmmmmm…"
para "I got it! You're"
line "on the #MON"
cont "LEAGUE challenge!"
done
2015-07-10 01:20:21 -07:00
PsychicGilbertBeatenText:
text "You're too much!"
done
2015-07-10 01:20:21 -07:00
UnknownText_0x1a0dd2:
text "With your skills,"
line "you'll do well at"
cont "the LEAGUE."
para "That's what my"
line "premonition says."
done
2015-07-10 01:20:21 -07:00
Bird_keeperJose2SeenText:
text "Tweet! Tweet!"
line "Tetweet!"
done
2015-07-10 01:20:21 -07:00
Bird_keeperJose2BeatenText:
text "Tweet!"
done
2015-07-10 01:20:21 -07:00
UnknownText_0x1a0e42:
text "BIRD KEEPERS like"
line "me mimic bird"
para "whistles to com-"
line "mand #MON."
done
2015-07-10 01:20:21 -07:00
UnknownText_0x1a0e7f:
text "TOHJO FALLS"
para "THE LINK BETWEEN"
line "KANTO AND JOHTO"
done
2015-07-10 01:20:21 -07:00
Route27_MapEventHeader:
; filler
db 0, 0
.Warps:
db 3
warp_def $7, $21, 1, ROUTE_27_SANDSTORM_HOUSE
warp_def $5, $1a, 1, TOHJO_FALLS
warp_def $5, $24, 2, TOHJO_FALLS
.XYTriggers:
db 2
xy_trigger 0, $a, $12, $0, UnknownScript_0x1a0873, $0, $0
xy_trigger 0, $a, $13, $0, UnknownScript_0x1a0881, $0, $0
.Signposts:
db 1
signpost 7, 25, SIGNPOST_READ, MapRoute27Signpost0Script
.PersonEvents:
db 9
2015-10-31 18:05:02 -07:00
person_event SPRITE_COOLTRAINER_M, 7, 48, SPRITEMOVEDATA_STANDING_UP, 0, 0, -1, -1, (1 << 3) | PAL_OW_RED, 2, 3, TrainerCooltrainermBlake, -1
person_event SPRITE_COOLTRAINER_M, 6, 58, SPRITEMOVEDATA_STANDING_RIGHT, 0, 0, -1, -1, (1 << 3) | PAL_OW_RED, 2, 4, TrainerCooltrainermBrian, -1
person_event SPRITE_COOLTRAINER_F, 10, 72, SPRITEMOVEDATA_STANDING_UP, 0, 0, -1, -1, (1 << 3) | PAL_OW_RED, 2, 4, TrainerCooltrainerfReena, -1
2015-11-06 13:42:38 -08:00
person_event SPRITE_COOLTRAINER_F, 6, 37, SPRITEMOVEDATA_SPINCLOCKWISE, 0, 0, -1, -1, (1 << 3) | PAL_OW_RED, 2, 2, TrainerCooltrainerfMegan, -1
2015-10-31 18:05:02 -07:00
person_event SPRITE_YOUNGSTER, 7, 65, SPRITEMOVEDATA_STANDING_LEFT, 0, 0, -1, -1, (1 << 3) | PAL_OW_BLUE, 2, 3, TrainerPsychicGilbert, -1
person_event SPRITE_YOUNGSTER, 13, 58, SPRITEMOVEDATA_STANDING_RIGHT, 0, 0, -1, -1, (1 << 3) | PAL_OW_BLUE, 2, 3, TrainerBird_keeperJose2, -1
2015-11-06 13:42:38 -08:00
person_event SPRITE_POKE_BALL, 12, 60, SPRITEMOVEDATA_ITEM_TREE, 0, 0, -1, -1, 0, 1, 0, ItemFragment_0x1a0a62, EVENT_ROUTE_27_TM_SOLARBEAM
person_event SPRITE_POKE_BALL, 12, 53, SPRITEMOVEDATA_ITEM_TREE, 0, 0, -1, -1, 0, 1, 0, ItemFragment_0x1a0a64, EVENT_ROUTE_27_RARE_CANDY
person_event SPRITE_FISHER, 10, 21, SPRITEMOVEDATA_SPINRANDOM_SLOW, 0, 0, -1, -1, 0, 0, 3, FisherScript_0x1a089c, -1