pokecrystal/maps/Route26.asm

528 lines
9.8 KiB
NASM
Raw Normal View History

2015-07-10 08:20:21 +00:00
Route26_MapScriptHeader:
; trigger count
db 0
; callback count
db 0
2015-07-10 08:20:21 +00:00
TrainerCooltrainermJake:
; bit/flag number
2015-07-10 08:20:21 +00:00
dw EVENT_BEAT_COOLTRAINERM_JAKE
; trainer group && trainer id
db COOLTRAINERM, JAKE
; text when seen
dw CooltrainermJakeSeenText
; text when trainer beaten
dw CooltrainermJakeBeatenText
; script when lost
dw $0000
; script when talk again
dw CooltrainermJakeScript
2015-07-10 08:20:21 +00:00
CooltrainermJakeScript:
talkaftercancel
loadfont
2015-01-20 08:01:23 +00:00
writetext UnknownText_0x1a4f08
closetext
loadmovesprites
end
2015-07-10 08:20:21 +00:00
TrainerCooltrainermGaven3:
; bit/flag number
2015-07-10 08:20:21 +00:00
dw EVENT_BEAT_COOLTRAINERM_GAVEN
; trainer group && trainer id
db COOLTRAINERM, GAVEN3
; text when seen
dw CooltrainermGaven3SeenText
; text when trainer beaten
dw CooltrainermGaven3BeatenText
; script when lost
dw $0000
; script when talk again
dw CooltrainermGaven3Script
2015-07-10 08:20:21 +00:00
CooltrainermGaven3Script:
writecode VAR_CALLERID, $b
talkaftercancel
loadfont
checkflag ENGINE_GAVEN
iftrue UnknownScript_0x1a4d79
checkcellnum $b
iftrue UnknownScript_0x1a4dcb
checkevent EVENT_GAVEN_ASKED_FOR_PHONE_NUMBER
iftrue UnknownScript_0x1a4d62
2015-01-20 08:01:23 +00:00
writetext UnknownText_0x1a4fe4
keeptextopen
setevent EVENT_GAVEN_ASKED_FOR_PHONE_NUMBER
2015-01-20 08:01:23 +00:00
scall UnknownScript_0x1a4dbf
jump UnknownScript_0x1a4d65
2015-07-10 08:20:21 +00:00
UnknownScript_0x1a4d62:
2015-01-20 08:01:23 +00:00
scall UnknownScript_0x1a4dc3
2015-07-10 08:20:21 +00:00
UnknownScript_0x1a4d65:
askforphonenumber $b
if_equal $1, UnknownScript_0x1a4dd3
if_equal $2, UnknownScript_0x1a4dcf
trainertotext COOLTRAINERM, GAVEN3, $0
2015-01-20 08:01:23 +00:00
scall UnknownScript_0x1a4dc7
jump UnknownScript_0x1a4dcb
2015-07-10 08:20:21 +00:00
UnknownScript_0x1a4d79:
2015-01-20 08:01:23 +00:00
scall UnknownScript_0x1a4dd7
winlosstext CooltrainermGaven3BeatenText, $0000
2015-07-10 20:04:00 +00:00
copybytetovar wGavenFightCount
if_equal 2, .Fight2
if_equal 1, .Fight1
if_equal 0, .LoadFight0
.Fight2
2013-09-24 07:48:58 +00:00
checkevent EVENT_RESTORED_POWER_TO_KANTO
iftrue .LoadFight2
.Fight1
2015-06-25 03:20:04 +00:00
checkevent EVENT_BEAT_ELITE_FOUR
iftrue .LoadFight1
.LoadFight0
loadtrainer COOLTRAINERM, GAVEN3
startbattle
returnafterbattle
2015-07-10 20:04:00 +00:00
loadvar wGavenFightCount, 1
clearflag ENGINE_GAVEN
end
.LoadFight1
loadtrainer COOLTRAINERM, GAVEN1
startbattle
returnafterbattle
2015-07-10 20:04:00 +00:00
loadvar wGavenFightCount, 2
clearflag ENGINE_GAVEN
end
.LoadFight2
loadtrainer COOLTRAINERM, GAVEN2
startbattle
returnafterbattle
clearflag ENGINE_GAVEN
end
2015-07-10 08:20:21 +00:00
UnknownScript_0x1a4dbf:
2015-06-25 01:26:24 +00:00
jumpstd asknumber1m
end
2015-07-10 08:20:21 +00:00
UnknownScript_0x1a4dc3:
2015-06-25 01:26:24 +00:00
jumpstd asknumber2m
end
2015-07-10 08:20:21 +00:00
UnknownScript_0x1a4dc7:
2015-06-25 01:26:24 +00:00
jumpstd registerednumberm
end
2015-07-10 08:20:21 +00:00
UnknownScript_0x1a4dcb:
2015-06-25 01:26:24 +00:00
jumpstd numberacceptedm
end
2015-07-10 08:20:21 +00:00
UnknownScript_0x1a4dcf:
2015-06-25 01:26:24 +00:00
jumpstd numberdeclinedm
end
2015-07-10 08:20:21 +00:00
UnknownScript_0x1a4dd3:
2015-06-25 01:26:24 +00:00
jumpstd phonefullm
end
2015-07-10 08:20:21 +00:00
UnknownScript_0x1a4dd7:
2015-06-25 01:26:24 +00:00
jumpstd rematchm
end
2015-07-10 08:20:21 +00:00
TrainerCooltrainerfJoyce:
; bit/flag number
2015-07-10 08:20:21 +00:00
dw EVENT_BEAT_COOLTRAINERF_JOYCE
; trainer group && trainer id
db COOLTRAINERF, JOYCE
; text when seen
dw CooltrainerfJoyceSeenText
; text when trainer beaten
dw CooltrainerfJoyceBeatenText
; script when lost
dw $0000
; script when talk again
dw CooltrainerfJoyceScript
2015-07-10 08:20:21 +00:00
CooltrainerfJoyceScript:
talkaftercancel
loadfont
2015-01-20 08:01:23 +00:00
writetext UnknownText_0x1a50d7
closetext
loadmovesprites
end
2015-07-10 08:20:21 +00:00
TrainerCooltrainerfBeth1:
; bit/flag number
2015-07-10 08:20:21 +00:00
dw EVENT_BEAT_COOLTRAINERF_BETH
; trainer group && trainer id
db COOLTRAINERF, BETH1
; text when seen
dw CooltrainerfBeth1SeenText
; text when trainer beaten
dw CooltrainerfBeth1BeatenText
; script when lost
dw $0000
; script when talk again
dw CooltrainerfBeth1Script
2015-07-10 08:20:21 +00:00
CooltrainerfBeth1Script:
writecode VAR_CALLERID, $c
talkaftercancel
loadfont
checkflag ENGINE_BETH
iftrue UnknownScript_0x1a4e35
checkcellnum $c
iftrue UnknownScript_0x1a4e87
checkevent EVENT_BETH_ASKED_FOR_PHONE_NUMBER
iftrue UnknownScript_0x1a4e1e
2015-01-20 08:01:23 +00:00
writetext UnknownText_0x1a51d9
keeptextopen
setevent EVENT_BETH_ASKED_FOR_PHONE_NUMBER
2015-01-20 08:01:23 +00:00
scall UnknownScript_0x1a4e7b
jump UnknownScript_0x1a4e21
2015-07-10 08:20:21 +00:00
UnknownScript_0x1a4e1e:
2015-01-20 08:01:23 +00:00
scall UnknownScript_0x1a4e7f
2015-07-10 08:20:21 +00:00
UnknownScript_0x1a4e21:
askforphonenumber $c
if_equal $1, UnknownScript_0x1a4e8f
if_equal $2, UnknownScript_0x1a4e8b
trainertotext COOLTRAINERF, BETH1, $0
2015-01-20 08:01:23 +00:00
scall UnknownScript_0x1a4e83
jump UnknownScript_0x1a4e87
2015-07-10 08:20:21 +00:00
UnknownScript_0x1a4e35:
2015-01-20 08:01:23 +00:00
scall UnknownScript_0x1a4e93
winlosstext CooltrainerfBeth1BeatenText, $0000
2015-07-10 20:04:00 +00:00
copybytetovar wBethFightCount
if_equal 2, .Fight2
if_equal 1, .Fight1
if_equal 0, .LoadFight0
.Fight2
2013-09-24 07:48:58 +00:00
checkevent EVENT_RESTORED_POWER_TO_KANTO
iftrue .LoadFight2
.Fight1
2015-06-25 03:20:04 +00:00
checkevent EVENT_BEAT_ELITE_FOUR
iftrue .LoadFight1
.LoadFight0
loadtrainer COOLTRAINERF, BETH1
startbattle
returnafterbattle
2015-07-10 20:04:00 +00:00
loadvar wBethFightCount, 1
clearflag ENGINE_BETH
end
.LoadFight1
loadtrainer COOLTRAINERF, BETH2
startbattle
returnafterbattle
2015-07-10 20:04:00 +00:00
loadvar wBethFightCount, 2
clearflag ENGINE_BETH
end
.LoadFight2
loadtrainer COOLTRAINERF, BETH3
startbattle
returnafterbattle
clearflag ENGINE_BETH
end
2015-07-10 08:20:21 +00:00
UnknownScript_0x1a4e7b:
2015-06-25 01:26:24 +00:00
jumpstd asknumber1f
end
2015-07-10 08:20:21 +00:00
UnknownScript_0x1a4e7f:
2015-06-25 01:26:24 +00:00
jumpstd asknumber2f
end
2015-07-10 08:20:21 +00:00
UnknownScript_0x1a4e83:
2015-06-25 01:26:24 +00:00
jumpstd registerednumberf
end
2015-07-10 08:20:21 +00:00
UnknownScript_0x1a4e87:
2015-06-25 01:26:24 +00:00
jumpstd numberacceptedf
end
2015-07-10 08:20:21 +00:00
UnknownScript_0x1a4e8b:
2015-06-25 01:26:24 +00:00
jumpstd numberdeclinedf
end
2015-07-10 08:20:21 +00:00
UnknownScript_0x1a4e8f:
2015-06-25 01:26:24 +00:00
jumpstd phonefullf
end
2015-07-10 08:20:21 +00:00
UnknownScript_0x1a4e93:
2015-06-25 01:26:24 +00:00
jumpstd rematchf
end
2015-07-10 08:20:21 +00:00
TrainerPsychicRichard:
; bit/flag number
2015-07-10 08:20:21 +00:00
dw EVENT_BEAT_PSYCHIC_RICHARD
; trainer group && trainer id
db PSYCHIC_T, RICHARD
; text when seen
dw PsychicRichardSeenText
; text when trainer beaten
dw PsychicRichardBeatenText
; script when lost
dw $0000
; script when talk again
dw PsychicRichardScript
2015-07-10 08:20:21 +00:00
PsychicRichardScript:
talkaftercancel
loadfont
2015-01-20 08:01:23 +00:00
writetext UnknownText_0x1a5278
closetext
loadmovesprites
end
2015-07-10 08:20:21 +00:00
TrainerFisherScott:
; bit/flag number
2015-07-10 08:20:21 +00:00
dw EVENT_BEAT_FISHER_SCOTT
; trainer group && trainer id
db FISHER, SCOTT
; text when seen
dw FisherScottSeenText
; text when trainer beaten
dw FisherScottBeatenText
; script when lost
dw $0000
; script when talk again
dw FisherScottScript
2015-07-10 08:20:21 +00:00
FisherScottScript:
talkaftercancel
loadfont
2015-01-20 08:01:23 +00:00
writetext UnknownText_0x1a5326
closetext
loadmovesprites
end
2015-07-10 08:20:21 +00:00
MapRoute26Signpost0Script:
jumptext UnknownText_0x1a5364
2015-07-10 08:20:21 +00:00
FruitTreeScript_0x1a4ec2:
fruittree $e
2015-07-10 08:20:21 +00:00
ItemFragment_0x1a4ec4:
db MAX_ELIXER, 1
2015-07-10 08:20:21 +00:00
CooltrainermJakeSeenText:
text "I'm making my"
line "final preparations"
para "for the #MON"
line "LEAGUE."
done
2015-07-10 08:20:21 +00:00
CooltrainermJakeBeatenText:
text "I blew it!"
done
2015-07-10 08:20:21 +00:00
UnknownText_0x1a4f08:
text "It's going to be"
line "tough to win at"
cont "the LEAGUE."
para "I need to do some"
line "more training."
para "I hear that the"
line "LEAGUE's ELITE"
para "FOUR are tougher"
line "than GYM LEADERS."
done
2015-07-10 08:20:21 +00:00
CooltrainermGaven3SeenText:
text "By experiencing"
line "tough battles, you"
cont "gain power."
done
2015-07-10 08:20:21 +00:00
CooltrainermGaven3BeatenText:
text "Gaah! Life is even"
line "tougher!"
done
2015-07-10 08:20:21 +00:00
UnknownText_0x1a4fe4:
text "To get to #MON"
line "LEAGUE, you have"
para "to get through"
line "VICTORY ROAD."
para "But VICTORY ROAD"
line "is tough."
para "Practically nobody"
line "goes there!"
done
2015-07-10 08:20:21 +00:00
CooltrainerfJoyceSeenText:
text "Since you've come"
line "this far, you must"
cont "be good."
para "I'm going to give"
line "this battle every-"
cont "thing I've got!"
done
2015-07-10 08:20:21 +00:00
CooltrainerfJoyceBeatenText:
text "No! I don't"
line "believe this!"
done
2015-07-10 08:20:21 +00:00
UnknownText_0x1a50d7:
text "I've defeated"
line "eight GYM LEADERS,"
para "so I was feeling"
line "confident."
para "I'll have to try"
line "harder next time."
done
2015-07-10 08:20:21 +00:00
CooltrainerfBeth1SeenText:
text "I lost to a train-"
line "er named <RIVAL>."
para "He was really"
line "strong, but…"
para "It was as if he"
line "absolutely had to"
cont "win at any cost."
para "I felt sorry for"
line "his #MON."
done
2015-07-10 08:20:21 +00:00
CooltrainerfBeth1BeatenText:
text "#MON aren't"
line "tools of war."
done
2015-07-10 08:20:21 +00:00
UnknownText_0x1a51d9:
text "#MON are in-"
line "valuable, lifelong"
cont "partners."
done
2015-07-10 08:20:21 +00:00
PsychicRichardSeenText:
text "Wow, look at all"
line "those BADGES!"
cont "I'm impressed."
para "But you're not"
line "satisfied by just"
para "collecting them,"
line "right?"
done
2015-07-10 08:20:21 +00:00
PsychicRichardBeatenText:
text "Good battle!"
done
2015-07-10 08:20:21 +00:00
UnknownText_0x1a5278:
text "People and #MON"
line "grow from their"
cont "experiences."
para "Don't get lazy and"
line "complacent."
done
2015-07-10 08:20:21 +00:00
FisherScottSeenText:
text "I'm feeling great"
line "today!"
para "I feel like I"
line "could boot even"
cont "the LEAGUE CHAMP!"
done
2015-07-10 08:20:21 +00:00
FisherScottBeatenText:
text "No! Not in this"
line "battle!"
done
2015-07-10 08:20:21 +00:00
UnknownText_0x1a5326:
text "Just like in fish-"
line "ing, it's all over"
para "in #MON if you"
line "give up."
done
2015-07-10 08:20:21 +00:00
UnknownText_0x1a5364:
text "ROUTE 26"
para "#MON LEAGUE"
line "RECEPTION GATE"
done
2015-07-10 08:20:21 +00:00
Route26_MapEventHeader:
; filler
db 0, 0
; warps
db 3
warp_def $5, $7, 3, GROUP_VICTORY_ROAD_GATE, MAP_VICTORY_ROAD_GATE
warp_def $39, $f, 1, GROUP_ROUTE_26_HEAL_SPEECH_HOUSE, MAP_ROUTE_26_HEAL_SPEECH_HOUSE
warp_def $47, $5, 1, GROUP_ROUTE_26_DAY_OF_WEEK_SIBLINGS_HOUSE, MAP_ROUTE_26_DAY_OF_WEEK_SIBLINGS_HOUSE
; xy triggers
db 0
; signposts
db 1
signpost 6, 8, SIGNPOST_READ, MapRoute26Signpost0Script
; people-events
db 8
person_event SPRITE_COOLTRAINER_M, 28, 18, LEFT << 2 | $0, $0, -1, -1, (PAL_OW_RED << 4) | $82, 2, TrainerCooltrainermJake, -1
person_event SPRITE_COOLTRAINER_M, 42, 13, LEFT << 2 | $0, $0, -1, -1, (PAL_OW_RED << 4) | $82, 3, TrainerCooltrainermGaven3, -1
person_event SPRITE_COOLTRAINER_F, 60, 14, LEFT << 2 | $2, $0, -1, -1, (PAL_OW_RED << 4) | $82, 3, TrainerCooltrainerfJoyce, -1
person_event SPRITE_COOLTRAINER_F, 12, 9, LEFT << 2 | $1, $0, -1, -1, (PAL_OW_RED << 4) | $82, 4, TrainerCooltrainerfBeth1, -1
person_event SPRITE_YOUNGSTER, 83, 17, LEFT << 2 | $1, $0, -1, -1, (PAL_OW_BLUE << 4) | $82, 2, TrainerPsychicRichard, -1
person_event SPRITE_FISHER, 96, 14, UP << 2 | $2, $0, -1, -1, (PAL_OW_GREEN << 4) | $82, 3, TrainerFisherScott, -1
person_event SPRITE_FRUIT_TREE, 58, 18, DOWN << 2 | $1, $0, -1, -1, $0, 0, FruitTreeScript_0x1a4ec2, -1
person_event SPRITE_POKE_BALL, 19, 13, DOWN << 2 | $1, $0, -1, -1, $1, 0, ItemFragment_0x1a4ec4, EVENT_6AA