pokecrystal/maps/Route40.asm

370 lines
7.7 KiB
NASM
Raw Normal View History

2015-11-27 05:22:14 +00:00
const_value set 2
const ROUTE40_OLIVINE_RIVAL1
const ROUTE40_OLIVINE_RIVAL2
const ROUTE40_SWIMMER_GIRL1
const ROUTE40_SWIMMER_GIRL2
const ROUTE40_ROCK1
const ROUTE40_ROCK2
const ROUTE40_ROCK3
const ROUTE40_LASS1
2016-04-07 04:59:45 +00:00
const ROUTE40_MONICA
2015-11-27 05:22:14 +00:00
const ROUTE40_POKEFAN_M
const ROUTE40_LASS2
const ROUTE40_STANDING_YOUNGSTER
2015-07-10 08:20:21 +00:00
Route40_MapScriptHeader:
.SceneScripts:
db 0
.MapCallbacks:
db 1
dbw MAPCALLBACK_OBJECTS, .MonicaCallback
.MonicaCallback:
clearevent EVENT_BATTLE_TOWER_OUTSIDE_SAILOR
checkcode VAR_WEEKDAY
2014-10-27 01:37:15 +00:00
if_equal MONDAY, .MonicaAppears
2016-04-07 04:59:45 +00:00
disappear ROUTE40_MONICA
return
.MonicaAppears:
2016-04-07 04:59:45 +00:00
appear ROUTE40_MONICA
return
2015-07-10 08:20:21 +00:00
TrainerSwimmerfElaine:
2017-12-18 01:45:04 +00:00
trainer EVENT_BEAT_SWIMMERF_ELAINE, SWIMMERF, ELAINE, SwimmerfElaineSeenText, SwimmerfElaineBeatenText, 0, .Script
2017-12-18 01:45:04 +00:00
.Script:
2015-11-25 15:16:29 +00:00
end_if_just_battled
2015-12-09 23:25:44 +00:00
opentext
2017-12-10 20:36:58 +00:00
writetext SwimmerfElaineAfterBattleText
2015-11-25 15:16:29 +00:00
waitbutton
closetext
end
2015-07-10 08:20:21 +00:00
TrainerSwimmerfPaula:
2017-12-18 01:45:04 +00:00
trainer EVENT_BEAT_SWIMMERF_PAULA, SWIMMERF, PAULA, SwimmerfPaulaSeenText, SwimmerfPaulaBeatenText, 0, .Script
2017-12-18 01:45:04 +00:00
.Script:
2015-11-25 15:16:29 +00:00
end_if_just_battled
2015-12-09 23:25:44 +00:00
opentext
2017-12-10 20:36:58 +00:00
writetext SwimmerfPaulaAfterBattleText
2015-11-25 15:16:29 +00:00
waitbutton
closetext
end
2015-07-10 08:20:21 +00:00
TrainerSwimmermSimon:
2017-12-18 01:45:04 +00:00
trainer EVENT_BEAT_SWIMMERM_SIMON, SWIMMERM, SIMON, SwimmermSimonSeenText, SwimmermSimonBeatenText, 0, .Script
2017-12-18 01:45:04 +00:00
.Script:
2015-11-25 15:16:29 +00:00
end_if_just_battled
2015-12-09 23:25:44 +00:00
opentext
2017-12-10 20:36:58 +00:00
writetext SwimmermSimonAfterBattleText
2015-11-25 15:16:29 +00:00
waitbutton
closetext
end
2015-07-10 08:20:21 +00:00
TrainerSwimmermRandall:
2017-12-18 01:45:04 +00:00
trainer EVENT_BEAT_SWIMMERM_RANDALL, SWIMMERM, RANDALL, SwimmermRandallSeenText, SwimmermRandallBeatenText, 0, .Script
2017-12-18 01:45:04 +00:00
.Script:
2015-11-25 15:16:29 +00:00
end_if_just_battled
2015-12-09 23:25:44 +00:00
opentext
2017-12-10 20:36:58 +00:00
writetext SwimmermRandallAfterBattleText
2015-11-25 15:16:29 +00:00
waitbutton
closetext
end
2017-12-18 00:48:04 +00:00
Route40Lass1Script:
jumptextfaceplayer Route40Lass1Text
2015-07-10 08:20:21 +00:00
PokefanMScript_0x1a61c7:
2015-11-16 21:01:45 +00:00
special Mobile_DummyReturnFalse
iftrue .mobile
jumptextfaceplayer UnknownText_0x1a646a
.mobile
jumptextfaceplayer UnknownText_0x1a649b
2017-12-18 00:48:04 +00:00
Route40Lass2Script:
jumptextfaceplayer Route40Lass2Text
2017-12-18 00:48:04 +00:00
Route40StandingYoungsterScript:
jumptextfaceplayer Route40StandingYoungsterText
2014-10-27 01:37:15 +00:00
MonicaScript:
faceplayer
2015-12-09 23:25:44 +00:00
opentext
2013-09-24 07:48:58 +00:00
checkevent EVENT_GOT_SHARP_BEAK_FROM_MONICA
2014-10-27 01:37:15 +00:00
iftrue MonicaMondayScript
checkcode VAR_WEEKDAY
2014-10-27 01:37:15 +00:00
if_not_equal MONDAY, MonicaNotMondayScript
2013-09-24 07:48:58 +00:00
checkevent EVENT_MET_MONICA_OF_MONDAY
2014-10-27 01:37:15 +00:00
iftrue .MetMonica
2015-01-20 08:01:23 +00:00
writetext MeetMonicaText
2015-11-30 03:29:45 +00:00
buttonsound
2013-09-24 07:48:58 +00:00
setevent EVENT_MET_MONICA_OF_MONDAY
.MetMonica:
2015-01-20 08:01:23 +00:00
writetext MonicaGivesGiftText
2015-11-30 03:29:45 +00:00
buttonsound
2015-11-05 01:20:14 +00:00
verbosegiveitem SHARP_BEAK
2014-10-27 01:37:15 +00:00
iffalse MonicaDoneScript
2013-09-24 07:48:58 +00:00
setevent EVENT_GOT_SHARP_BEAK_FROM_MONICA
2015-01-20 08:01:23 +00:00
writetext MonicaGaveGiftText
2015-11-25 15:16:29 +00:00
waitbutton
closetext
end
2014-10-27 01:37:15 +00:00
MonicaMondayScript:
2015-01-20 08:01:23 +00:00
writetext MonicaMondayText
2015-11-25 15:16:29 +00:00
waitbutton
2014-10-27 01:37:15 +00:00
MonicaDoneScript:
2015-11-25 15:16:29 +00:00
closetext
end
2014-10-27 01:37:15 +00:00
MonicaNotMondayScript:
2015-01-20 08:01:23 +00:00
writetext MonicaNotMondayText
2015-11-25 15:16:29 +00:00
waitbutton
closetext
end
2016-04-07 04:59:45 +00:00
Route40Sign:
jumptext Route40SignText
2015-07-10 08:20:21 +00:00
Route40Rock:
2015-06-23 21:02:58 +00:00
jumpstd smashrock
Route40HiddenHyperPotion:
dwb EVENT_ROUTE_40_HIDDEN_HYPER_POTION, HYPER_POTION
2015-07-10 08:20:21 +00:00
MovementData_0x1a621c:
2016-05-14 17:46:14 +00:00
step RIGHT
step UP
step UP
step UP
step UP
step UP
step UP
step_end
2015-07-10 08:20:21 +00:00
MovementData_0x1a6224:
2016-05-14 17:46:14 +00:00
step UP
step UP
step UP
step UP
step UP
step_end
2015-07-10 08:20:21 +00:00
MovementData_0x1a622a:
2016-05-14 17:46:14 +00:00
step UP
step UP
step UP
step UP
step_end
2015-07-10 08:20:21 +00:00
SwimmermSimonSeenText:
text "You have to warm"
line "up before going"
cont "into the water."
para "That's basic."
done
2015-07-10 08:20:21 +00:00
SwimmermSimonBeatenText:
text "OK! Uncle! I give!"
done
2017-12-10 20:36:58 +00:00
SwimmermSimonAfterBattleText:
text "CIANWOOD CITY is"
line "a good distance"
cont "away from here."
done
2015-07-10 08:20:21 +00:00
SwimmermRandallSeenText:
text "Hey, you're young"
line "and fit!"
para "Don't ride your"
line "#MON! Swim!"
done
2015-07-10 08:20:21 +00:00
SwimmermRandallBeatenText:
text "Uh-oh. I lost…"
done
2017-12-10 20:36:58 +00:00
SwimmermRandallAfterBattleText:
text "Swimming exercises"
line "your entire body."
cont "It's healthy."
done
2015-07-10 08:20:21 +00:00
SwimmerfElaineSeenText:
text "Are you going to"
line "CIANWOOD?"
para "How about a quick"
line "battle first?"
done
2015-07-10 08:20:21 +00:00
SwimmerfElaineBeatenText:
text "I lost that one!"
done
2017-12-10 20:36:58 +00:00
SwimmerfElaineAfterBattleText:
text "I'd say I'm a bet-"
line "ter swimmer than"
cont "you. Yeah!"
done
2015-07-10 08:20:21 +00:00
SwimmerfPaulaSeenText:
text "No inner tube for"
line "me."
para "I'm hanging on to"
line "a sea #MON!"
done
2015-07-10 08:20:21 +00:00
SwimmerfPaulaBeatenText:
text "Ooh, I'm feeling"
line "dizzy!"
done
2017-12-10 20:36:58 +00:00
SwimmerfPaulaAfterBattleText:
text "While I float like"
line "this, the waves"
cont "carry me along."
done
2017-12-18 00:48:04 +00:00
Route40Lass1Text:
text "Although you can't"
line "see it from here,"
para "CIANWOOD is across"
line "the sea."
done
2015-07-10 08:20:21 +00:00
UnknownText_0x1a646a:
text "Hm! There's a big"
line "building up ahead!"
para "What is it?"
done
2015-07-10 08:20:21 +00:00
UnknownText_0x1a649b:
text "Hm! Look at all"
line "those serious-"
cont "looking trainers"
cont "streaming in."
para "What? What?"
done
2017-12-18 00:48:04 +00:00
Route40Lass2Text:
text "I came to OLIVINE"
line "by ship to see the"
para "sights and soak up"
line "the atmosphere."
para "Being a port, it"
line "feels so different"
cont "from a big city."
done
2017-12-18 00:48:04 +00:00
Route40StandingYoungsterText:
text "Have you gone to"
line "the BATTLE TOWER?"
para "I think a lot of"
line "tough trainers"
para "have gathered"
line "there already."
para "But since you have"
line "so many BADGES,"
para "you shouldn't do"
line "badly at all."
done
2014-10-27 01:37:15 +00:00
MeetMonicaText:
text "MONICA: Glad to"
line "meet you. I'm"
para "MONICA of Monday."
done
2014-10-27 01:37:15 +00:00
MonicaGivesGiftText:
text "As a token of our"
line "friendship, I have"
cont "a gift for you!"
done
2014-10-27 01:37:15 +00:00
MonicaGaveGiftText:
text "MONICA: It's an"
line "item that raises"
para "the power of fly-"
line "ing-type moves."
para "You should equip a"
line "bird #MON with"
cont "that item."
done
2014-10-27 01:37:15 +00:00
MonicaMondayText:
text "MONICA: My broth-"
line "ers and sisters"
para "are all over the"
line "place."
para "See if you could"
line "find them all!"
done
2014-10-27 01:37:15 +00:00
MonicaNotMondayText:
text "MONICA: I don't"
line "think today is"
cont "Monday. How sad…"
done
2016-04-07 04:59:45 +00:00
Route40SignText:
text "ROUTE 40"
para "CIANWOOD CITY -"
line "OLIVINE CITY"
done
2015-07-10 08:20:21 +00:00
Route40_MapEventHeader:
; filler
db 0, 0
.Warps:
db 1
warp_def $5, $9, 1, ROUTE_40_BATTLE_TOWER_GATE
.CoordEvents:
db 0
.BGEvents:
db 2
bg_event 10, 14, BGEVENT_READ, Route40Sign
bg_event 8, 7, BGEVENT_ITEM, Route40HiddenHyperPotion
.ObjectEvents:
db 12
object_event SPRITE_OLIVINE_RIVAL, 15, 14, SPRITEMOVEDATA_STANDING_RIGHT, 0, 0, -1, -1, PAL_NPC_RED, OBJECTTYPE_TRAINER, 4, TrainerSwimmermSimon, -1
object_event SPRITE_OLIVINE_RIVAL, 30, 18, SPRITEMOVEDATA_STANDING_LEFT, 0, 0, -1, -1, PAL_NPC_RED, OBJECTTYPE_TRAINER, 5, TrainerSwimmermRandall, -1
object_event SPRITE_SWIMMER_GIRL, 19, 3, SPRITEMOVEDATA_STANDING_RIGHT, 0, 0, -1, -1, PAL_NPC_GREEN, OBJECTTYPE_TRAINER, 4, TrainerSwimmerfElaine, -1
object_event SPRITE_SWIMMER_GIRL, 25, 10, SPRITEMOVEDATA_SPINCLOCKWISE, 0, 0, -1, -1, PAL_NPC_GREEN, OBJECTTYPE_TRAINER, 3, TrainerSwimmerfPaula, -1
object_event SPRITE_ROCK, 11, 7, SPRITEMOVEDATA_SMASHABLE_ROCK, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, Route40Rock, -1
object_event SPRITE_ROCK, 9, 6, SPRITEMOVEDATA_SMASHABLE_ROCK, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, Route40Rock, -1
object_event SPRITE_ROCK, 8, 7, SPRITEMOVEDATA_SMASHABLE_ROCK, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, Route40Rock, -1
object_event SPRITE_LASS, 13, 11, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, Route40Lass1Script, -1
object_event SPRITE_BUENA, 10, 8, SPRITEMOVEDATA_SPINRANDOM_SLOW, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, MonicaScript, EVENT_ROUTE_40_MONICA_OF_MONDAY
object_event SPRITE_POKEFAN_M, 6, 7, SPRITEMOVEDATA_STANDING_RIGHT, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, PokefanMScript_0x1a61c7, -1
object_event SPRITE_LASS, 4, 13, SPRITEMOVEDATA_SPINRANDOM_SLOW, 0, 0, -1, -1, PAL_NPC_GREEN, OBJECTTYPE_SCRIPT, 0, Route40Lass2Script, -1
object_event SPRITE_STANDING_YOUNGSTER, 9, 16, SPRITEMOVEDATA_SPINRANDOM_SLOW, 0, 0, -1, -1, PAL_NPC_BLUE, OBJECTTYPE_SCRIPT, 0, Route40StandingYoungsterScript, EVENT_BATTLE_TOWER_OUTSIDE_SAILOR