pokecrystal-board/maps/Route42.asm

356 lines
7.6 KiB
NASM
Raw Normal View History

2015-11-26 21:22:14 -08:00
const_value set 2
const ROUTE42_FISHER
const ROUTE42_POKEFAN_M
const ROUTE42_SUPER_NERD
const ROUTE42_FRUIT_TREE1
const ROUTE42_FRUIT_TREE2
const ROUTE42_FRUIT_TREE3
const ROUTE42_POKE_BALL1
const ROUTE42_POKE_BALL2
const ROUTE42_SUICUNE
Route42_MapScripts:
.SceneScripts:
db 2
scene_script .DummyScene0
scene_script .DummyScene1
.MapCallbacks:
db 0
.DummyScene0:
end
.DummyScene1:
end
2016-04-06 21:59:45 -07:00
Route42SuicuneScript:
showemote EMOTE_SHOCK, PLAYER, 15
pause 15
playsound SFX_WARP_FROM
2015-11-26 21:22:14 -08:00
applymovement ROUTE42_SUICUNE, MovementData_0x1a9356
disappear ROUTE42_SUICUNE
pause 10
setscene 0
2013-09-24 00:48:58 -07:00
clearevent EVENT_SAW_SUICUNE_ON_ROUTE_36
setmapscene ROUTE_36, 1
end
2015-07-10 01:20:21 -07:00
TrainerFisherTully1:
2017-12-17 17:45:04 -08:00
trainer EVENT_BEAT_FISHER_TULLY, FISHER, TULLY1, FisherTully1SeenText, FisherTully1BeatenText, 0, .Script
2017-12-17 17:45:04 -08:00
.Script:
writecode VAR_CALLERID, PHONE_FISHER_TULLY
2015-11-25 07:16:29 -08:00
end_if_just_battled
2015-12-09 15:25:44 -08:00
opentext
checkflag ENGINE_TULLY
iftrue UnknownScript_0x1a927f
checkflag ENGINE_TULLY_HAS_WATER_STONE
iftrue UnknownScript_0x1a92dc
checkcellnum PHONE_FISHER_TULLY
iftrue UnknownScript_0x1a92fd
checkevent EVENT_TULLY_ASKED_FOR_PHONE_NUMBER
iftrue UnknownScript_0x1a9268
2015-01-20 00:01:23 -08:00
writetext UnknownText_0x1a93ab
2015-11-29 19:29:45 -08:00
buttonsound
setevent EVENT_TULLY_ASKED_FOR_PHONE_NUMBER
2015-01-20 00:01:23 -08:00
scall UnknownScript_0x1a92f1
jump UnknownScript_0x1a926b
2015-07-10 01:20:21 -07:00
UnknownScript_0x1a9268:
2015-01-20 00:01:23 -08:00
scall UnknownScript_0x1a92f5
2015-07-10 01:20:21 -07:00
UnknownScript_0x1a926b:
askforphonenumber PHONE_FISHER_TULLY
2018-01-11 22:40:20 -08:00
if_equal PHONE_CONTACTS_FULL, UnknownScript_0x1a9305
if_equal PHONE_CONTACT_REFUSED, UnknownScript_0x1a9301
trainertotext FISHER, TULLY1, MEM_BUFFER_0
2015-01-20 00:01:23 -08:00
scall UnknownScript_0x1a92f9
jump UnknownScript_0x1a92fd
2015-07-10 01:20:21 -07:00
UnknownScript_0x1a927f:
2015-01-20 00:01:23 -08:00
scall UnknownScript_0x1a9309
2015-11-02 11:37:02 -08:00
winlosstext FisherTully1BeatenText, 0
2015-07-10 13:04:00 -07:00
copybytetovar wTullyFightCount
if_equal 3, .Fight3
if_equal 2, .Fight2
if_equal 1, .Fight1
if_equal 0, .LoadFight0
.Fight3:
2013-09-24 00:48:58 -07:00
checkevent EVENT_RESTORED_POWER_TO_KANTO
iftrue .LoadFight3
.Fight2:
2015-06-24 20:20:04 -07:00
checkevent EVENT_BEAT_ELITE_FOUR
iftrue .LoadFight2
.Fight1:
2013-09-24 00:48:58 -07:00
checkevent EVENT_CLEARED_ROCKET_HIDEOUT
iftrue .LoadFight1
.LoadFight0:
loadtrainer FISHER, TULLY1
startbattle
reloadmapafterbattle
2015-07-10 13:04:00 -07:00
loadvar wTullyFightCount, 1
clearflag ENGINE_TULLY
end
.LoadFight1:
loadtrainer FISHER, TULLY2
startbattle
reloadmapafterbattle
2015-07-10 13:04:00 -07:00
loadvar wTullyFightCount, 2
clearflag ENGINE_TULLY
end
.LoadFight2:
loadtrainer FISHER, TULLY3
startbattle
reloadmapafterbattle
2015-07-10 13:04:00 -07:00
loadvar wTullyFightCount, 3
clearflag ENGINE_TULLY
end
.LoadFight3:
loadtrainer FISHER, TULLY4
startbattle
reloadmapafterbattle
clearflag ENGINE_TULLY
end
2015-07-10 01:20:21 -07:00
UnknownScript_0x1a92dc:
2015-01-20 00:01:23 -08:00
scall UnknownScript_0x1a930d
2015-11-04 17:20:14 -08:00
verbosegiveitem WATER_STONE
iffalse UnknownScript_0x1a92ee
clearflag ENGINE_TULLY_HAS_WATER_STONE
setevent EVENT_TULLY_GAVE_WATER_STONE
2015-01-20 00:01:23 -08:00
jump UnknownScript_0x1a92fd
2015-07-10 01:20:21 -07:00
UnknownScript_0x1a92ee:
2015-01-20 00:01:23 -08:00
jump UnknownScript_0x1a9311
2015-07-10 01:20:21 -07:00
UnknownScript_0x1a92f1:
2015-06-24 18:26:24 -07:00
jumpstd asknumber1m
end
2015-07-10 01:20:21 -07:00
UnknownScript_0x1a92f5:
2015-06-24 18:26:24 -07:00
jumpstd asknumber2m
end
2015-07-10 01:20:21 -07:00
UnknownScript_0x1a92f9:
2015-06-24 18:26:24 -07:00
jumpstd registerednumberm
end
2015-07-10 01:20:21 -07:00
UnknownScript_0x1a92fd:
2015-06-24 18:26:24 -07:00
jumpstd numberacceptedm
end
2015-07-10 01:20:21 -07:00
UnknownScript_0x1a9301:
2015-06-24 18:26:24 -07:00
jumpstd numberdeclinedm
end
2015-07-10 01:20:21 -07:00
UnknownScript_0x1a9305:
2015-06-24 18:26:24 -07:00
jumpstd phonefullm
end
2015-07-10 01:20:21 -07:00
UnknownScript_0x1a9309:
2015-06-24 18:26:24 -07:00
jumpstd rematchm
end
2015-07-10 01:20:21 -07:00
UnknownScript_0x1a930d:
2015-06-24 18:26:24 -07:00
jumpstd giftm
end
2015-07-10 01:20:21 -07:00
UnknownScript_0x1a9311:
2015-06-24 18:26:24 -07:00
jumpstd packfullm
end
2015-07-10 01:20:21 -07:00
TrainerPokemaniacShane:
2017-12-17 17:45:04 -08:00
trainer EVENT_BEAT_POKEMANIAC_SHANE, POKEMANIAC, SHANE, PokemaniacShaneSeenText, PokemaniacShaneBeatenText, 0, .Script
2017-12-17 17:45:04 -08:00
.Script:
2015-11-25 07:16:29 -08:00
end_if_just_battled
2015-12-09 15:25:44 -08:00
opentext
2017-12-10 12:36:58 -08:00
writetext PokemaniacShaneAfterBattleText
2015-11-25 07:16:29 -08:00
waitbutton
closetext
end
2015-07-10 01:20:21 -07:00
TrainerHikerBenjamin:
2017-12-17 17:45:04 -08:00
trainer EVENT_BEAT_HIKER_BENJAMIN, HIKER, BENJAMIN, HikerBenjaminSeenText, HikerBenjaminBeatenText, 0, .Script
2017-12-17 17:45:04 -08:00
.Script:
2015-11-25 07:16:29 -08:00
end_if_just_battled
2015-12-09 15:25:44 -08:00
opentext
2017-12-10 12:36:58 -08:00
writetext HikerBenjaminAfterBattleText
2015-11-25 07:16:29 -08:00
waitbutton
closetext
end
2016-04-06 21:59:45 -07:00
Route42Sign1:
jumptext Route42Sign1Text
2016-04-06 21:59:45 -07:00
MtMortarSign1:
jumptext MtMortarSign1Text
2016-04-06 21:59:45 -07:00
MtMortarSign2:
jumptext MtMortarSign2Text
2016-04-06 21:59:45 -07:00
Route42Sign2:
jumptext Route42Sign2Text
2015-12-15 07:55:56 -08:00
Route42UltraBall:
itemball ULTRA_BALL
2015-12-15 07:55:56 -08:00
Route42SuperPotion:
itemball SUPER_POTION
2015-07-10 01:20:21 -07:00
FruitTreeScript_0x1a934d:
2015-11-18 07:42:42 -08:00
fruittree FRUITTREE_ROUTE_42_1
2015-07-10 01:20:21 -07:00
FruitTreeScript_0x1a934f:
2015-11-18 07:42:42 -08:00
fruittree FRUITTREE_ROUTE_42_2
2015-07-10 01:20:21 -07:00
FruitTreeScript_0x1a9351:
2015-11-18 07:42:42 -08:00
fruittree FRUITTREE_ROUTE_42_3
Route42HiddenMaxPotion:
hiddenitem EVENT_ROUTE_42_HIDDEN_MAX_POTION, MAX_POTION
2015-07-10 01:20:21 -07:00
MovementData_0x1a9356:
set_sliding
2016-05-14 10:46:14 -07:00
fast_jump_step UP
fast_jump_step UP
fast_jump_step UP
fast_jump_step RIGHT
fast_jump_step RIGHT
fast_jump_step RIGHT
remove_sliding
step_end
2015-07-10 01:20:21 -07:00
FisherTully1SeenText:
text "Let me demonstrate"
line "the power of the"
cont "#MON I caught!"
done
2015-07-10 01:20:21 -07:00
FisherTully1BeatenText:
text "What? That's not"
line "right."
done
2015-07-10 01:20:21 -07: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 01:20:21 -07:00
HikerBenjaminSeenText:
text "Ah, it's good to"
line "be outside!"
cont "I feel so free!"
done
2015-07-10 01:20:21 -07:00
HikerBenjaminBeatenText:
text "Gahahah!"
done
2017-12-10 12:36:58 -08:00
HikerBenjaminAfterBattleText:
text "Losing feels in-"
line "significant if you"
para "look up at the big"
line "sky!"
done
2015-07-10 01:20:21 -07:00
PokemaniacShaneSeenText:
text "HEY!"
para "This is my secret"
line "place! Get lost,"
cont "you outsider!"
done
2015-07-10 01:20:21 -07:00
PokemaniacShaneBeatenText:
text "I should have used"
line "my MOON STONE…"
done
2017-12-10 12:36:58 -08:00
PokemaniacShaneAfterBattleText:
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
2016-04-06 21:59:45 -07:00
Route42Sign1Text:
text "ROUTE 42"
para "ECRUTEAK CITY -"
line "MAHOGANY TOWN"
done
2016-04-06 21:59:45 -07:00
MtMortarSign1Text:
text "MT.MORTAR"
para "WATERFALL CAVE"
line "INSIDE"
done
2016-04-06 21:59:45 -07:00
MtMortarSign2Text:
text "MT.MORTAR"
para "WATERFALL CAVE"
line "INSIDE"
done
2016-04-06 21:59:45 -07:00
Route42Sign2Text:
text "ROUTE 42"
para "ECRUTEAK CITY -"
line "MAHOGANY TOWN"
done
Route42_MapEvents:
; filler
db 0, 0
.Warps:
db 5
warp_def 0, 8, 3, ROUTE_42_ECRUTEAK_GATE
warp_def 0, 9, 4, ROUTE_42_ECRUTEAK_GATE
warp_def 10, 5, 1, MOUNT_MORTAR_1F_OUTSIDE
warp_def 28, 9, 2, MOUNT_MORTAR_1F_OUTSIDE
warp_def 46, 7, 3, MOUNT_MORTAR_1F_OUTSIDE
.CoordEvents:
db 1
coord_event 24, 14, 1, Route42SuicuneScript
.BGEvents:
db 5
bg_event 4, 10, BGEVENT_READ, Route42Sign1
bg_event 7, 5, BGEVENT_READ, MtMortarSign1
bg_event 45, 9, BGEVENT_READ, MtMortarSign2
bg_event 54, 8, BGEVENT_READ, Route42Sign2
bg_event 16, 11, BGEVENT_ITEM, Route42HiddenMaxPotion
.ObjectEvents:
db 9
object_event 40, 10, SPRITE_FISHER, SPRITEMOVEDATA_STANDING_LEFT, 0, 0, -1, -1, PAL_NPC_GREEN, OBJECTTYPE_TRAINER, 1, TrainerFisherTully1, -1
object_event 51, 9, SPRITE_POKEFAN_M, SPRITEMOVEDATA_SPINRANDOM_FAST, 0, 0, -1, -1, PAL_NPC_BROWN, OBJECTTYPE_TRAINER, 3, TrainerHikerBenjamin, -1
object_event 47, 8, SPRITE_SUPER_NERD, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, PAL_NPC_BLUE, OBJECTTYPE_TRAINER, 3, TrainerPokemaniacShane, -1
object_event 27, 16, SPRITE_FRUIT_TREE, SPRITEMOVEDATA_ITEM_TREE, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, FruitTreeScript_0x1a934d, -1
object_event 28, 16, SPRITE_FRUIT_TREE, SPRITEMOVEDATA_ITEM_TREE, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, FruitTreeScript_0x1a934f, -1
object_event 29, 16, SPRITE_FRUIT_TREE, SPRITEMOVEDATA_ITEM_TREE, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, FruitTreeScript_0x1a9351, -1
object_event 6, 4, SPRITE_POKE_BALL, SPRITEMOVEDATA_ITEM_TREE, 0, 0, -1, -1, 0, OBJECTTYPE_ITEMBALL, 0, Route42UltraBall, EVENT_ROUTE_42_ULTRA_BALL
object_event 33, 8, SPRITE_POKE_BALL, SPRITEMOVEDATA_ITEM_TREE, 0, 0, -1, -1, 0, OBJECTTYPE_ITEMBALL, 0, Route42SuperPotion, EVENT_ROUTE_42_SUPER_POTION
object_event 26, 16, SPRITE_SUICUNE, SPRITEMOVEDATA_ITEM_TREE, 0, 0, -1, -1, PAL_NPC_BLUE, OBJECTTYPE_SCRIPT, 0, ObjectEvent, EVENT_SAW_SUICUNE_ON_ROUTE_42