pokecrystal/maps/Route42.asm

397 lines
7.6 KiB
NASM
Raw Normal View History

2015-07-10 08:20:21 +00:00
Route42_MapScriptHeader:
; trigger count
db 2
; triggers
dw UnknownScript_0x1a9216, $0000
dw UnknownScript_0x1a9217, $0000
; callback count
db 0
2015-07-10 08:20:21 +00:00
UnknownScript_0x1a9216:
end
2015-07-10 08:20:21 +00:00
UnknownScript_0x1a9217:
end
2015-07-10 08:20:21 +00:00
UnknownScript_0x1a9218:
showemote $0, $0, 15
pause 15
playsound SFX_WARP_FROM
applymovement $a, MovementData_0x1a9356
disappear $a
pause 10
dotrigger $0
2013-09-24 07:48:58 +00:00
clearevent EVENT_SAW_SUICUNE_ON_ROUTE_36
domaptrigger GROUP_ROUTE_36, MAP_ROUTE_36, $1
end
2015-07-10 08:20:21 +00:00
TrainerFisherTully1:
; bit/flag number
2015-07-10 08:20:21 +00:00
dw EVENT_BEAT_FISHER_TULLY
; trainer group && trainer id
db FISHER, TULLY1
; text when seen
dw FisherTully1SeenText
; text when trainer beaten
dw FisherTully1BeatenText
; script when lost
dw $0000
; script when talk again
dw FisherTully1Script
2015-07-10 08:20:21 +00:00
FisherTully1Script:
writecode VAR_CALLERID, $1d
talkaftercancel
loadfont
2013-09-24 07:51:42 +00:00
checkflag $0076
iftrue UnknownScript_0x1a927f
2013-09-24 07:51:42 +00:00
checkflag $0084
iftrue UnknownScript_0x1a92dc
checkcellnum $1d
iftrue UnknownScript_0x1a92fd
2013-09-24 07:48:58 +00:00
checkevent $028f
iftrue UnknownScript_0x1a9268
2015-01-20 08:01:23 +00:00
writetext UnknownText_0x1a93ab
keeptextopen
2013-09-24 07:48:58 +00:00
setevent $028f
2015-01-20 08:01:23 +00:00
scall UnknownScript_0x1a92f1
jump UnknownScript_0x1a926b
2015-07-10 08:20:21 +00:00
UnknownScript_0x1a9268:
2015-01-20 08:01:23 +00:00
scall UnknownScript_0x1a92f5
2015-07-10 08:20:21 +00:00
UnknownScript_0x1a926b:
askforphonenumber $1d
if_equal $1, UnknownScript_0x1a9305
if_equal $2, UnknownScript_0x1a9301
trainertotext FISHER, TULLY1, $0
2015-01-20 08:01:23 +00:00
scall UnknownScript_0x1a92f9
jump UnknownScript_0x1a92fd
2015-07-10 08:20:21 +00:00
UnknownScript_0x1a927f:
2015-01-20 08:01:23 +00:00
scall UnknownScript_0x1a9309
winlosstext FisherTully1BeatenText, $0000
2015-02-10 23:37:24 +00:00
copybytetovar wda06
if_equal $3, UnknownScript_0x1a929a
if_equal $2, UnknownScript_0x1a92a0
if_equal $1, UnknownScript_0x1a92a6
if_equal $0, UnknownScript_0x1a92ac
2015-07-10 08:20:21 +00:00
UnknownScript_0x1a929a:
2013-09-24 07:48:58 +00:00
checkevent EVENT_RESTORED_POWER_TO_KANTO
iftrue UnknownScript_0x1a92d3
2015-07-10 08:20:21 +00:00
UnknownScript_0x1a92a0:
2015-06-25 03:20:04 +00:00
checkevent EVENT_BEAT_ELITE_FOUR
iftrue UnknownScript_0x1a92c6
2015-07-10 08:20:21 +00:00
UnknownScript_0x1a92a6:
2013-09-24 07:48:58 +00:00
checkevent EVENT_CLEARED_ROCKET_HIDEOUT
iftrue UnknownScript_0x1a92b9
2015-07-10 08:20:21 +00:00
UnknownScript_0x1a92ac:
loadtrainer FISHER, TULLY1
startbattle
returnafterbattle
2015-02-10 23:37:24 +00:00
loadvar wda06, $1
2013-09-24 07:51:42 +00:00
clearflag $0076
end
2015-07-10 08:20:21 +00:00
UnknownScript_0x1a92b9:
loadtrainer FISHER, TULLY2
startbattle
returnafterbattle
2015-02-10 23:37:24 +00:00
loadvar wda06, $2
2013-09-24 07:51:42 +00:00
clearflag $0076
end
2015-07-10 08:20:21 +00:00
UnknownScript_0x1a92c6:
loadtrainer FISHER, TULLY3
startbattle
returnafterbattle
2015-02-10 23:37:24 +00:00
loadvar wda06, $3
2013-09-24 07:51:42 +00:00
clearflag $0076
end
2015-07-10 08:20:21 +00:00
UnknownScript_0x1a92d3:
loadtrainer FISHER, TULLY4
startbattle
returnafterbattle
2013-09-24 07:51:42 +00:00
clearflag $0076
end
2015-07-10 08:20:21 +00:00
UnknownScript_0x1a92dc:
2015-01-20 08:01:23 +00:00
scall UnknownScript_0x1a930d
verbosegiveitem WATER_STONE, 1
iffalse UnknownScript_0x1a92ee
2013-09-24 07:51:42 +00:00
clearflag $0084
2013-09-24 07:48:58 +00:00
setevent $0103
2015-01-20 08:01:23 +00:00
jump UnknownScript_0x1a92fd
2015-07-10 08:20:21 +00:00
UnknownScript_0x1a92ee:
2015-01-20 08:01:23 +00:00
jump UnknownScript_0x1a9311
2015-07-10 08:20:21 +00:00
UnknownScript_0x1a92f1:
2015-06-25 01:26:24 +00:00
jumpstd asknumber1m
end
2015-07-10 08:20:21 +00:00
UnknownScript_0x1a92f5:
2015-06-25 01:26:24 +00:00
jumpstd asknumber2m
end
2015-07-10 08:20:21 +00:00
UnknownScript_0x1a92f9:
2015-06-25 01:26:24 +00:00
jumpstd registerednumberm
end
2015-07-10 08:20:21 +00:00
UnknownScript_0x1a92fd:
2015-06-25 01:26:24 +00:00
jumpstd numberacceptedm
end
2015-07-10 08:20:21 +00:00
UnknownScript_0x1a9301:
2015-06-25 01:26:24 +00:00
jumpstd numberdeclinedm
end
2015-07-10 08:20:21 +00:00
UnknownScript_0x1a9305:
2015-06-25 01:26:24 +00:00
jumpstd phonefullm
end
2015-07-10 08:20:21 +00:00
UnknownScript_0x1a9309:
2015-06-25 01:26:24 +00:00
jumpstd rematchm
end
2015-07-10 08:20:21 +00:00
UnknownScript_0x1a930d:
2015-06-25 01:26:24 +00:00
jumpstd giftm
end
2015-07-10 08:20:21 +00:00
UnknownScript_0x1a9311:
2015-06-25 01:26:24 +00:00
jumpstd packfullm
end
2015-07-10 08:20:21 +00:00
TrainerPokemaniacShane:
; bit/flag number
2015-07-10 08:20:21 +00:00
dw EVENT_BEAT_POKEMANIAC_SHANE
; trainer group && trainer id
db POKEMANIAC, SHANE
; text when seen
dw PokemaniacShaneSeenText
; text when trainer beaten
dw PokemaniacShaneBeatenText
; script when lost
dw $0000
; script when talk again
dw PokemaniacShaneScript
2015-07-10 08:20:21 +00:00
PokemaniacShaneScript:
talkaftercancel
loadfont
2015-01-20 08:01:23 +00:00
writetext UnknownText_0x1a94d6
closetext
loadmovesprites
end
2015-07-10 08:20:21 +00:00
TrainerHikerBenjamin:
; bit/flag number
2015-07-10 08:20:21 +00:00
dw EVENT_BEAT_HIKER_BENJAMIN
; trainer group && trainer id
db HIKER, BENJAMIN
; text when seen
dw HikerBenjaminSeenText
; text when trainer beaten
dw HikerBenjaminBeatenText
; script when lost
dw $0000
; script when talk again
dw HikerBenjaminScript
2015-07-10 08:20:21 +00:00
HikerBenjaminScript:
talkaftercancel
loadfont
2015-01-20 08:01:23 +00:00
writetext UnknownText_0x1a943f
closetext
loadmovesprites
end
2015-07-10 08:20:21 +00:00
MapRoute42Signpost0Script:
jumptext UnknownText_0x1a9537
2015-07-10 08:20:21 +00:00
MapRoute42Signpost1Script:
jumptext UnknownText_0x1a955f
2015-07-10 08:20:21 +00:00
MapRoute42Signpost2Script:
jumptext UnknownText_0x1a9580
2015-07-10 08:20:21 +00:00
MapRoute42Signpost3Script:
jumptext UnknownText_0x1a95a1
2015-07-10 08:20:21 +00:00
ItemFragment_0x1a9349:
db ULTRA_BALL, 1
2015-07-10 08:20:21 +00:00
ItemFragment_0x1a934b:
db SUPER_POTION, 1
2015-07-10 08:20:21 +00:00
FruitTreeScript_0x1a934d:
fruittree $15
2015-07-10 08:20:21 +00:00
FruitTreeScript_0x1a934f:
fruittree $16
2015-07-10 08:20:21 +00:00
FruitTreeScript_0x1a9351:
fruittree $17
2015-07-10 08:20:21 +00:00
MapRoute42SignpostItem4:
dw $00ad
db MAX_POTION
2015-07-10 08:20:21 +00:00
MovementData_0x1a9356:
db $39 ; movement
fast_jump_step_up
fast_jump_step_up
fast_jump_step_up
fast_jump_step_right
fast_jump_step_right
fast_jump_step_right
db $38 ; movement
step_end
2015-07-10 08:20:21 +00:00
FisherTully1SeenText:
text "Let me demonstrate"
line "the power of the"
cont "#MON I caught!"
done
2015-07-10 08:20:21 +00:00
FisherTully1BeatenText:
text "What? That's not"
line "right."
done
2015-07-10 08:20:21 +00:00
UnknownText_0x1a93ab:
text "I want to become"
line "the trainer CHAMP"
para "using the #MON"
line "I caught."
para "That's the best"
line "part of fishing!"
done
2015-07-10 08:20:21 +00:00
HikerBenjaminSeenText:
text "Ah, it's good to"
line "be outside!"
cont "I feel so free!"
done
2015-07-10 08:20:21 +00:00
HikerBenjaminBeatenText:
text "Gahahah!"
done
2015-07-10 08:20:21 +00:00
UnknownText_0x1a943f:
text "Losing feels in-"
line "significant if you"
para "look up at the big"
line "sky!"
done
2015-07-10 08:20:21 +00:00
PokemaniacShaneSeenText:
text "HEY!"
para "This is my secret"
line "place! Get lost,"
cont "you outsider!"
done
2015-07-10 08:20:21 +00:00
PokemaniacShaneBeatenText:
text "I should have used"
line "my MOON STONE…"
done
2015-07-10 08:20:21 +00:00
UnknownText_0x1a94d6:
text "You're working on"
line "a #DEX?"
para "Wow, you must know"
line "some pretty rare"
cont "#MON!"
para "May I please see"
line "it. Please?"
done
2015-07-10 08:20:21 +00:00
UnknownText_0x1a9537:
text "ROUTE 42"
para "ECRUTEAK CITY -"
line "MAHOGANY TOWN"
done
2015-07-10 08:20:21 +00:00
UnknownText_0x1a955f:
text "MT.MORTAR"
para "WATERFALL CAVE"
line "INSIDE"
done
2015-07-10 08:20:21 +00:00
UnknownText_0x1a9580:
text "MT.MORTAR"
para "WATERFALL CAVE"
line "INSIDE"
done
2015-07-10 08:20:21 +00:00
UnknownText_0x1a95a1:
text "ROUTE 42"
para "ECRUTEAK CITY -"
line "MAHOGANY TOWN"
done
2015-07-10 08:20:21 +00:00
Route42_MapEventHeader:
; filler
db 0, 0
; warps
db 5
warp_def $8, $0, 3, GROUP_ROUTE_42_ECRUTEAK_GATE, MAP_ROUTE_42_ECRUTEAK_GATE
warp_def $9, $0, 4, GROUP_ROUTE_42_ECRUTEAK_GATE, MAP_ROUTE_42_ECRUTEAK_GATE
warp_def $5, $a, 1, GROUP_MOUNT_MORTAR_1F_OUTSIDE, MAP_MOUNT_MORTAR_1F_OUTSIDE
warp_def $9, $1c, 2, GROUP_MOUNT_MORTAR_1F_OUTSIDE, MAP_MOUNT_MORTAR_1F_OUTSIDE
warp_def $7, $2e, 3, GROUP_MOUNT_MORTAR_1F_OUTSIDE, MAP_MOUNT_MORTAR_1F_OUTSIDE
; xy triggers
db 1
xy_trigger 1, $e, $18, $0, UnknownScript_0x1a9218, $0, $0
; signposts
db 5
signpost 10, 4, $0, MapRoute42Signpost0Script
signpost 5, 7, $0, MapRoute42Signpost1Script
signpost 9, 45, $0, MapRoute42Signpost2Script
signpost 8, 54, $0, MapRoute42Signpost3Script
signpost 11, 16, $7, MapRoute42SignpostItem4
; people-events
db 9
2013-07-12 21:06:11 +00:00
person_event SPRITE_FISHER, 14, 44, $8, $0, 255, 255, $a2, 1, TrainerFisherTully1, $ffff
person_event SPRITE_POKEFAN_M, 13, 55, $a, $0, 255, 255, $b2, 3, TrainerHikerBenjamin, $ffff
person_event SPRITE_SUPER_NERD, 12, 51, $6, $0, 255, 255, $92, 3, TrainerPokemaniacShane, $ffff
person_event SPRITE_FRUIT_TREE, 20, 31, $1, $0, 255, 255, $0, 0, FruitTreeScript_0x1a934d, $ffff
person_event SPRITE_FRUIT_TREE, 20, 32, $1, $0, 255, 255, $0, 0, FruitTreeScript_0x1a934f, $ffff
person_event SPRITE_FRUIT_TREE, 20, 33, $1, $0, 255, 255, $0, 0, FruitTreeScript_0x1a9351, $ffff
person_event SPRITE_POKE_BALL, 8, 10, $1, $0, 255, 255, $1, 0, ItemFragment_0x1a9349, $06b3
person_event SPRITE_POKE_BALL, 12, 37, $1, $0, 255, 255, $1, 0, ItemFragment_0x1a934b, $06b4
person_event SPRITE_SUICUNE, 20, 30, $1, $0, 255, 255, $90, 0, ObjectEvent, $07af