pokecrystal-board/maps/Route45.asm

664 lines
12 KiB
NASM
Raw Normal View History

2015-07-10 01:20:21 -07:00
Route45_MapScriptHeader:
; trigger count
db 0
; callback count
db 0
2015-07-10 01:20:21 -07:00
TrainerBlackbeltKenji:
; bit/flag number
2015-07-10 01:20:21 -07:00
dw EVENT_BEAT_BLACKBELT_KENJI
; trainer group && trainer id
db BLACKBELT_T, KENJI3
; text when seen
dw BlackbeltKenji3SeenText
; text when trainer beaten
dw BlackbeltKenji3BeatenText
; script when lost
dw $0000
; script when talk again
dw BlackbeltKenji3Script
2015-07-10 01:20:21 -07:00
BlackbeltKenji3Script:
writecode VAR_CALLERID, $22
talkaftercancel
loadfont
checkcellnum $22
iftrue UnknownScript_0x19e0e4
checkevent EVENT_KENJI_ASKED_FOR_PHONE_NUMBER
iftrue UnknownScript_0x19e0cd
special Function11485
2015-01-20 00:01:23 -08:00
writetext UnknownText_0x19e5e2
closetext
setevent EVENT_KENJI_ASKED_FOR_PHONE_NUMBER
2015-01-20 00:01:23 -08:00
scall UnknownScript_0x19e11b
jump UnknownScript_0x19e0d0
2015-07-10 01:20:21 -07:00
UnknownScript_0x19e0cd:
2015-01-20 00:01:23 -08:00
scall UnknownScript_0x19e11f
2015-07-10 01:20:21 -07:00
UnknownScript_0x19e0d0:
askforphonenumber $22
if_equal $1, UnknownScript_0x19e12f
if_equal $2, UnknownScript_0x19e12b
trainertotext BLACKBELT_T, KENJI3, $0
2015-01-20 00:01:23 -08:00
scall UnknownScript_0x19e123
jump UnknownScript_0x19e127
2015-07-10 01:20:21 -07:00
UnknownScript_0x19e0e4:
checkcode VAR_KENJI_BREAK
if_not_equal $1, UnknownScript_0x19e127
checkmorn
iftrue UnknownScript_0x19e10c
checknite
iftrue UnknownScript_0x19e112
2013-09-24 00:48:58 -07:00
checkevent $026a
iffalse UnknownScript_0x19e127
2015-01-20 00:01:23 -08:00
scall UnknownScript_0x19e137
verbosegiveitem PP_UP, 1
iffalse UnknownScript_0x19e118
2013-09-24 00:48:58 -07:00
clearevent $026a
special Function11485
2015-01-20 00:01:23 -08:00
jump UnknownScript_0x19e127
2015-07-10 01:20:21 -07:00
UnknownScript_0x19e10c:
2015-01-20 00:01:23 -08:00
writetext UnknownText_0x19e634
closetext
loadmovesprites
end
2015-07-10 01:20:21 -07:00
UnknownScript_0x19e112:
2015-01-20 00:01:23 -08:00
writetext UnknownText_0x19e66c
closetext
loadmovesprites
end
2015-07-10 01:20:21 -07:00
UnknownScript_0x19e118:
2015-01-20 00:01:23 -08:00
jump UnknownScript_0x19e13b
2015-07-10 01:20:21 -07:00
UnknownScript_0x19e11b:
2015-06-24 18:26:24 -07:00
jumpstd asknumber1m
end
2015-07-10 01:20:21 -07:00
UnknownScript_0x19e11f:
2015-06-24 18:26:24 -07:00
jumpstd asknumber2m
end
2015-07-10 01:20:21 -07:00
UnknownScript_0x19e123:
2015-06-24 18:26:24 -07:00
jumpstd registerednumberm
end
2015-07-10 01:20:21 -07:00
UnknownScript_0x19e127:
2015-06-24 18:26:24 -07:00
jumpstd numberacceptedm
end
2015-07-10 01:20:21 -07:00
UnknownScript_0x19e12b:
2015-06-24 18:26:24 -07:00
jumpstd numberdeclinedm
end
2015-07-10 01:20:21 -07:00
UnknownScript_0x19e12f:
2015-06-24 18:26:24 -07:00
jumpstd phonefullm
end
2015-07-10 01:20:21 -07:00
UnknownScript_0x19e133:
2015-06-24 18:26:24 -07:00
jumpstd rematchm
end
2015-07-10 01:20:21 -07:00
UnknownScript_0x19e137:
2015-06-24 18:26:24 -07:00
jumpstd giftm
end
2015-07-10 01:20:21 -07:00
UnknownScript_0x19e13b:
2015-06-24 18:26:24 -07:00
jumpstd packfullm
end
2015-07-10 01:20:21 -07:00
UnknownScript_0x19e13f:
2013-09-24 00:48:58 -07:00
setevent EVENT_PARRY_IRON
2015-06-24 18:26:24 -07:00
jumpstd packfullm
end
2015-07-10 01:20:21 -07:00
UnknownScript_0x19e146:
2015-06-24 18:26:24 -07:00
jumpstd rematchgiftm
end
2015-07-10 01:20:21 -07:00
TrainerHikerErik:
; bit/flag number
2015-07-10 01:20:21 -07:00
dw EVENT_BEAT_HIKER_ERIK
; trainer group && trainer id
db HIKER, ERIK
; text when seen
dw HikerErikSeenText
; text when trainer beaten
dw HikerErikBeatenText
; script when lost
dw $0000
; script when talk again
dw HikerErikScript
2015-07-10 01:20:21 -07:00
HikerErikScript:
talkaftercancel
loadfont
2015-01-20 00:01:23 -08:00
writetext UnknownText_0x19e301
closetext
loadmovesprites
end
2015-07-10 01:20:21 -07:00
TrainerHikerMichael:
; bit/flag number
2015-07-10 01:20:21 -07:00
dw EVENT_BEAT_HIKER_MICHAEL
; trainer group && trainer id
db HIKER, MICHAEL
; text when seen
dw HikerMichaelSeenText
; text when trainer beaten
dw HikerMichaelBeatenText
; script when lost
dw $0000
; script when talk again
dw HikerMichaelScript
2015-07-10 01:20:21 -07:00
HikerMichaelScript:
talkaftercancel
loadfont
2015-01-20 00:01:23 -08:00
writetext UnknownText_0x19e3b1
closetext
loadmovesprites
end
2015-07-10 01:20:21 -07:00
TrainerHikerParry:
; bit/flag number
2015-07-10 01:20:21 -07:00
dw EVENT_BEAT_HIKER_PARRY
; trainer group && trainer id
db HIKER, PARRY3
; text when seen
dw HikerParry3SeenText
; text when trainer beaten
dw HikerParry3BeatenText
; script when lost
dw $0000
; script when talk again
dw HikerParry3Script
2015-07-10 01:20:21 -07:00
HikerParry3Script:
writecode VAR_CALLERID, $23
talkaftercancel
loadfont
checkflag ENGINE_PARRY
iftrue UnknownScript_0x19e1b8
checkcellnum $23
iftrue UnknownScript_0x19e127
checkevent EVENT_PARRY_ASKED_FOR_PHONE_NUMBER
iftrue UnknownScript_0x19e1a1
2015-01-20 00:01:23 -08:00
writetext UnknownText_0x19e434
keeptextopen
setevent EVENT_PARRY_ASKED_FOR_PHONE_NUMBER
2015-01-20 00:01:23 -08:00
scall UnknownScript_0x19e11b
jump UnknownScript_0x19e1a4
2015-07-10 01:20:21 -07:00
UnknownScript_0x19e1a1:
2015-01-20 00:01:23 -08:00
scall UnknownScript_0x19e11f
2015-07-10 01:20:21 -07:00
UnknownScript_0x19e1a4:
askforphonenumber $23
if_equal $1, UnknownScript_0x19e12f
if_equal $2, UnknownScript_0x19e12b
trainertotext HIKER, PARRY1, $0
2015-01-20 00:01:23 -08:00
scall UnknownScript_0x19e123
jump UnknownScript_0x19e127
2015-07-10 01:20:21 -07:00
UnknownScript_0x19e1b8:
2015-01-20 00:01:23 -08:00
scall UnknownScript_0x19e133
winlosstext HikerParry3BeatenText, $0000
2015-07-10 13:04:00 -07:00
copybytetovar wParryFightCount
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 HIKER, PARRY3
startbattle
returnafterbattle
2015-07-10 13:04:00 -07:00
loadvar wParryFightCount, 1
clearflag ENGINE_PARRY
end
.LoadFight1
loadtrainer HIKER, PARRY1
startbattle
returnafterbattle
2015-07-10 13:04:00 -07:00
loadvar wParryFightCount, 2
clearflag ENGINE_PARRY
end
.LoadFight2
loadtrainer HIKER, PARRY2
startbattle
returnafterbattle
clearflag ENGINE_PARRY
2013-09-24 00:48:58 -07:00
checkevent EVENT_PARRY_IRON
iftrue UnknownScript_0x19e219
checkevent EVENT_GOT_IRON_FROM_PARRY
iftrue UnknownScript_0x19e218
2015-01-20 00:01:23 -08:00
scall UnknownScript_0x19e146
verbosegiveitem IRON, 1
iffalse UnknownScript_0x19e13f
setevent EVENT_GOT_IRON_FROM_PARRY
2015-01-20 00:01:23 -08:00
jump UnknownScript_0x19e127
2015-07-10 01:20:21 -07:00
UnknownScript_0x19e218:
end
2015-07-10 01:20:21 -07:00
UnknownScript_0x19e219:
loadfont
2015-01-20 00:01:23 -08:00
writetext UnknownText_0x19e52c
closetext
verbosegiveitem IRON, 1
iffalse UnknownScript_0x19e13f
2013-09-24 00:48:58 -07:00
clearevent EVENT_PARRY_IRON
setevent EVENT_GOT_IRON_FROM_PARRY
2015-01-20 00:01:23 -08:00
jump UnknownScript_0x19e127
2015-07-10 01:20:21 -07:00
TrainerHikerTimothy:
; bit/flag number
2015-07-10 01:20:21 -07:00
dw EVENT_BEAT_HIKER_TIMOTHY
; trainer group && trainer id
db HIKER, TIMOTHY
; text when seen
dw HikerTimothySeenText
; text when trainer beaten
dw HikerTimothyBeatenText
; script when lost
dw $0000
; script when talk again
dw HikerTimothyScript
2015-07-10 01:20:21 -07:00
HikerTimothyScript:
talkaftercancel
loadfont
2015-01-20 00:01:23 -08:00
writetext UnknownText_0x19e4f1
closetext
loadmovesprites
end
2015-07-10 01:20:21 -07:00
TrainerCooltrainermRyan:
; bit/flag number
2015-07-10 01:20:21 -07:00
dw EVENT_BEAT_COOLTRAINERM_RYAN
; trainer group && trainer id
db COOLTRAINERM, RYAN
; text when seen
dw CooltrainermRyanSeenText
; text when trainer beaten
dw CooltrainermRyanBeatenText
; script when lost
dw $0000
; script when talk again
dw CooltrainermRyanScript
2015-07-10 01:20:21 -07:00
CooltrainermRyanScript:
talkaftercancel
loadfont
2015-01-20 00:01:23 -08:00
writetext UnknownText_0x19e70d
closetext
loadmovesprites
end
2015-07-10 01:20:21 -07:00
TrainerCooltrainerfKelly:
; bit/flag number
2015-07-10 01:20:21 -07:00
dw EVENT_BEAT_COOLTRAINERF_KELLY
; trainer group && trainer id
db COOLTRAINERF, KELLY
; text when seen
dw CooltrainerfKellySeenText
; text when trainer beaten
dw CooltrainerfKellyBeatenText
; script when lost
dw $0000
; script when talk again
dw CooltrainerfKellyScript
2015-07-10 01:20:21 -07:00
CooltrainerfKellyScript:
talkaftercancel
loadfont
2015-01-20 00:01:23 -08:00
writetext UnknownText_0x19e7d1
closetext
loadmovesprites
end
2015-07-10 01:20:21 -07:00
YoungsterScript_0x19e269:
faceplayer
loadfont
2015-07-10 01:20:21 -07:00
checkevent EVENT_BEAT_CAMPER_QUENTIN
iftrue UnknownScript_0x19e285
2015-01-20 00:01:23 -08:00
writetext UnknownText_0x19e87f
closetext
loadmovesprites
winlosstext UnknownText_0x19e899, $0000
loadtrainer CAMPER, QUENTIN
startbattle
returnafterbattle
2015-07-10 01:20:21 -07:00
setevent EVENT_BEAT_CAMPER_QUENTIN
loadmovesprites
end
2015-07-10 01:20:21 -07:00
UnknownScript_0x19e285:
2015-01-20 00:01:23 -08:00
writetext UnknownText_0x19e8bb
closetext
loadmovesprites
end
2015-07-10 01:20:21 -07:00
UnknownScript_0x19e28b:
2015-01-20 00:01:23 -08:00
writetext UnknownText_0x19e830
closetext
loadmovesprites
end
2015-07-10 01:20:21 -07:00
MapRoute45Signpost0Script:
jumptext UnknownText_0x19e8fe
2015-07-10 01:20:21 -07:00
FruitTreeScript_0x19e294:
fruittree $c
2015-07-10 01:20:21 -07:00
ItemFragment_0x19e296:
db NUGGET, 1
2015-07-10 01:20:21 -07:00
ItemFragment_0x19e298:
db REVIVE, 1
2015-07-10 01:20:21 -07:00
ItemFragment_0x19e29a:
db ELIXER, 1
2015-07-10 01:20:21 -07:00
ItemFragment_0x19e29c:
db MAX_POTION, 1
2015-07-10 01:20:21 -07:00
MapRoute45SignpostItem1:
dw $00af
db PP_UP
2015-07-10 01:20:21 -07:00
HikerErikSeenText:
text "Be prepared for"
line "anything!"
para "Let me see if your"
line "#MON have been"
cont "raised properly!"
done
2015-07-10 01:20:21 -07:00
HikerErikBeatenText:
text "Oh, I lost that!"
done
2015-07-10 01:20:21 -07:00
UnknownText_0x19e301:
text "I'll head back to"
line "BLACKTHORN's ICE"
para "PATH and train"
line "some more."
done
2015-07-10 01:20:21 -07:00
HikerMichaelSeenText:
text "Yo! You're spunky!"
line "But you know what?"
para "When it comes to"
line "sheer spunkiness,"
cont "I'm the man!"
done
2015-07-10 01:20:21 -07:00
HikerMichaelBeatenText:
text "My #MON weren't"
line "spunky enough!"
done
2015-07-10 01:20:21 -07:00
UnknownText_0x19e3b1:
text "Boy, do I love"
line "HP UP! Mmmm, yum!"
para "I keep drinking my"
line "#MON's!"
para "I can't help it!"
done
2015-07-10 01:20:21 -07:00
HikerParry3SeenText:
text "My #MON are"
line "power packed!"
done
2015-07-10 01:20:21 -07:00
HikerParry3BeatenText:
text "Wahahah! I'm the"
line "big loser!"
done
2015-07-10 01:20:21 -07:00
UnknownText_0x19e434:
text "I'm not much good"
line "at thinking, see?"
para "So, I just plow"
line "ahead with power!"
done
2015-07-10 01:20:21 -07:00
HikerTimothySeenText:
text "Why do I climb"
line "mountains?"
para "Because they're"
line "there."
para "Why do I train"
line "#MON?"
para "Because they're"
line "there!"
done
2015-07-10 01:20:21 -07:00
HikerTimothyBeatenText:
text "Losses…"
line "They're there too!"
done
2015-07-10 01:20:21 -07:00
UnknownText_0x19e4f1:
text "The best thing to"
line "ever happen to me"
para "was discovering"
line "#MON."
done
2015-07-10 01:20:21 -07:00
UnknownText_0x19e52c:
text "I just can't find"
line "a way to win!"
para "Keep it up!"
para "Oh, and take this"
line "--it's the gift"
para "you couldn't take"
line "when we last met."
done
2015-07-10 01:20:21 -07:00
BlackbeltKenji3SeenText:
text "I was training"
line "here alone."
para "Behold the fruits"
line "of my labor!"
done
2015-07-10 01:20:21 -07:00
BlackbeltKenji3BeatenText:
text "Waaaargh!"
done
2015-07-10 01:20:21 -07:00
UnknownText_0x19e5e2:
text "This calls for"
line "extreme measures."
para "I must take to the"
line "hills and train in"
cont "solitude."
done
2015-07-10 01:20:21 -07:00
UnknownText_0x19e634:
text "I'm going to train"
line "a bit more before"
cont "I break for lunch."
done
2015-07-10 01:20:21 -07:00
UnknownText_0x19e66c:
text "We had plenty of"
line "rest at lunch, so"
para "now we're all"
line "ready to go again!"
para "We're going to"
line "train again!"
done
2015-07-10 01:20:21 -07:00
CooltrainermRyanSeenText:
text "What are your"
line "thoughts on rais-"
cont "ing #MON?"
done
2015-07-10 01:20:21 -07:00
CooltrainermRyanBeatenText:
text "You've won my"
line "respect."
done
2015-07-10 01:20:21 -07:00
UnknownText_0x19e70d:
text "I see you're rais-"
line "ing your #MON"
cont "with care."
para "The bond you build"
line "will save you in"
cont "tough situations."
done
2015-07-10 01:20:21 -07:00
CooltrainerfKellySeenText:
text "What is your"
line "battle strategy?"
para "It is foolish to"
line "use strong moves"
cont "indiscriminately."
done
2015-07-10 01:20:21 -07:00
CooltrainerfKellyBeatenText:
text "Fine. I lost."
done
2015-07-10 01:20:21 -07:00
UnknownText_0x19e7d1:
text "I'm not in favor"
line "of overly power-"
cont "ful moves."
para "I want to win, but"
line "I also don't want"
cont "to harm #MON."
done
2015-07-10 01:20:21 -07:00
UnknownText_0x19e830:
text "I'm really, really"
line "tough!"
para "Is there anywhere"
line "I can prove how"
cont "tough I really am?"
done
2015-07-10 01:20:21 -07:00
UnknownText_0x19e87f:
text "I'm really, really"
line "tough!"
done
2015-07-10 01:20:21 -07:00
UnknownText_0x19e899:
text "I was tough at the"
line "BATTLE TOWER…"
done
2015-07-10 01:20:21 -07:00
UnknownText_0x19e8bb:
text "Have you been to"
line "the BATTLE TOWER?"
para "I never, ever lose"
line "there, but…"
done
2015-07-10 01:20:21 -07:00
UnknownText_0x19e8fe:
text "ROUTE 45"
line "MOUNTAIN RD. AHEAD"
done
2015-07-10 01:20:21 -07:00
Route45_MapEventHeader:
; filler
db 0, 0
; warps
db 1
warp_def $5, $2, 1, GROUP_DARK_CAVE_BLACKTHORN_ENTRANCE, MAP_DARK_CAVE_BLACKTHORN_ENTRANCE
; xy triggers
db 0
; signposts
db 2
signpost 4, 10, $0, MapRoute45Signpost0Script
signpost 80, 13, $7, MapRoute45SignpostItem1
; people-events
db 13
2013-07-12 14:06:11 -07:00
person_event SPRITE_POKEFAN_M, 20, 14, $9, $0, 255, 255, $b2, 1, TrainerHikerErik, $ffff
person_event SPRITE_POKEFAN_M, 69, 19, $9, $0, 255, 255, $b2, 2, TrainerHikerMichael, $ffff
2015-07-10 01:20:21 -07:00
person_event SPRITE_POKEFAN_M, 32, 9, $7, $0, 255, 255, $b2, 2, TrainerHikerParry, $ffff
2013-07-12 14:06:11 -07:00
person_event SPRITE_POKEFAN_M, 69, 13, $8, $0, 255, 255, $b2, 1, TrainerHikerTimothy, $ffff
2015-07-10 01:20:21 -07:00
person_event SPRITE_BLACK_BELT, 54, 15, $a, $0, 255, 255, $b2, 2, TrainerBlackbeltKenji, $ffff
2013-07-12 14:06:11 -07:00
person_event SPRITE_COOLTRAINER_M, 22, 21, $8, $0, 255, 255, $82, 1, TrainerCooltrainermRyan, $ffff
person_event SPRITE_COOLTRAINER_F, 40, 9, $a, $0, 255, 255, $82, 3, TrainerCooltrainerfKelly, $ffff
person_event SPRITE_FRUIT_TREE, 86, 20, $1, $0, 255, 255, $0, 0, FruitTreeScript_0x19e294, $ffff
person_event SPRITE_POKE_BALL, 55, 10, $1, $0, 255, 255, $1, 0, ItemFragment_0x19e296, $06b8
person_event SPRITE_POKE_BALL, 70, 9, $1, $0, 255, 255, $1, 0, ItemFragment_0x19e298, $06b9
person_event SPRITE_POKE_BALL, 24, 10, $1, $0, 255, 255, $1, 0, ItemFragment_0x19e29a, $06ba
person_event SPRITE_POKE_BALL, 37, 11, $1, $0, 255, 255, $1, 0, ItemFragment_0x19e29c, $06bb
person_event SPRITE_YOUNGSTER, 74, 8, $3, $0, 255, 255, $a0, 0, YoungsterScript_0x19e269, $ffff