pokecrystal-board/maps/Route29.asm

446 lines
8.5 KiB
NASM
Raw Normal View History

2015-11-26 21:22:14 -08:00
const_value set 2
const ROUTE29_COOLTRAINER_M1
const ROUTE29_YOUNGSTER
const ROUTE29_TEACHER1
const ROUTE29_FRUIT_TREE
const ROUTE29_FISHER
const ROUTE29_COOLTRAINER_M2
2016-04-06 21:59:45 -07:00
const ROUTE29_TUSCANY
2015-11-26 21:22:14 -08:00
const ROUTE29_POKE_BALL
2015-07-10 01:45:35 -07:00
Route29_MapScriptHeader:
.SceneScripts:
db 2
scene_script .DummyScene0
scene_script .DummyScene1
.MapCallbacks:
db 1
2016-01-06 04:44:50 -08:00
dbw MAPCALLBACK_OBJECTS, .Tuscany
.DummyScene0:
end
.DummyScene1:
end
2015-12-16 18:57:42 -08:00
.Tuscany:
2015-07-10 05:08:03 -07:00
checkflag ENGINE_ZEPHYRBADGE
2014-10-26 18:37:15 -07:00
iftrue .DoesTuscanyAppear
.TuscanyDisappears:
2016-04-06 21:59:45 -07:00
disappear ROUTE29_TUSCANY
return
.DoesTuscanyAppear:
checkcode VAR_WEEKDAY
2014-10-26 18:37:15 -07:00
if_not_equal TUESDAY, .TuscanyDisappears
2016-04-06 21:59:45 -07:00
appear ROUTE29_TUSCANY
return
2015-12-16 18:57:42 -08:00
Route29Tutorial1:
2015-11-26 21:22:14 -08:00
spriteface ROUTE29_COOLTRAINER_M1, UP
showemote EMOTE_SHOCK, ROUTE29_COOLTRAINER_M1, 15
2015-12-16 18:57:42 -08:00
applymovement ROUTE29_COOLTRAINER_M1, DudeMovementData1a
spriteface PLAYER, LEFT
2013-09-24 00:48:58 -07:00
setevent EVENT_DUDE_TALKED_TO_YOU
2015-12-09 15:25:44 -08:00
opentext
2015-12-16 18:57:42 -08:00
writetext CatchingTutorialIntroText
yesorno
2015-12-16 18:57:42 -08:00
iffalse Script_RefusedTutorial1
2015-11-25 07:16:29 -08:00
closetext
2015-11-26 21:22:14 -08:00
follow ROUTE29_COOLTRAINER_M1, PLAYER
2015-12-16 18:57:42 -08:00
applymovement ROUTE29_COOLTRAINER_M1, DudeMovementData1b
stopfollow
loadwildmon RATTATA, 5
catchtutorial BATTLETYPE_TUTORIAL
2015-11-26 21:22:14 -08:00
spriteface ROUTE29_COOLTRAINER_M1, UP
2015-12-09 15:25:44 -08:00
opentext
2015-12-16 18:57:42 -08:00
writetext CatchingTutorialDebriefText
2015-11-25 07:16:29 -08:00
waitbutton
closetext
setscene 0
2013-09-24 00:48:58 -07:00
setevent EVENT_LEARNED_TO_CATCH_POKEMON
end
2015-12-16 18:57:42 -08:00
Route29Tutorial2:
2015-11-26 21:22:14 -08:00
spriteface ROUTE29_COOLTRAINER_M1, UP
showemote EMOTE_SHOCK, ROUTE29_COOLTRAINER_M1, 15
2015-12-16 18:57:42 -08:00
applymovement ROUTE29_COOLTRAINER_M1, DudeMovementData2a
spriteface PLAYER, LEFT
2013-09-24 00:48:58 -07:00
setevent EVENT_DUDE_TALKED_TO_YOU
2015-12-09 15:25:44 -08:00
opentext
2015-12-16 18:57:42 -08:00
writetext CatchingTutorialIntroText
yesorno
2015-12-16 18:57:42 -08:00
iffalse Script_RefusedTutorial2
2015-11-25 07:16:29 -08:00
closetext
2015-11-26 21:22:14 -08:00
follow ROUTE29_COOLTRAINER_M1, PLAYER
2015-12-16 18:57:42 -08:00
applymovement ROUTE29_COOLTRAINER_M1, DudeMovementData2b
stopfollow
loadwildmon RATTATA, 5
catchtutorial BATTLETYPE_TUTORIAL
2015-11-26 21:22:14 -08:00
spriteface ROUTE29_COOLTRAINER_M1, UP
2015-12-09 15:25:44 -08:00
opentext
2015-12-16 18:57:42 -08:00
writetext CatchingTutorialDebriefText
2015-11-25 07:16:29 -08:00
waitbutton
closetext
setscene 0
2013-09-24 00:48:58 -07:00
setevent EVENT_LEARNED_TO_CATCH_POKEMON
end
2015-12-16 18:57:42 -08:00
Script_RefusedTutorial1:
writetext CatchingTutorialDeclinedText
2015-11-25 07:16:29 -08:00
waitbutton
closetext
2015-12-16 18:57:42 -08:00
applymovement ROUTE29_COOLTRAINER_M1, DudeMovementData1b
setscene 0
end
2015-12-16 18:57:42 -08:00
Script_RefusedTutorial2:
writetext CatchingTutorialDeclinedText
2015-11-25 07:16:29 -08:00
waitbutton
closetext
2015-12-16 18:57:42 -08:00
applymovement ROUTE29_COOLTRAINER_M1, DudeMovementData2b
setscene 0
end
2015-12-16 18:57:42 -08:00
CatchingTutorialDudeScript:
faceplayer
2015-12-09 15:25:44 -08:00
opentext
checkcode VAR_BOXSPACE
2018-01-11 22:40:20 -08:00
if_equal 0, .BoxFull
2013-09-24 00:48:58 -07:00
checkevent EVENT_LEARNED_TO_CATCH_POKEMON
2015-12-16 18:57:42 -08:00
iftrue .BoxFull
2013-09-24 00:48:58 -07:00
checkevent EVENT_GAVE_MYSTERY_EGG_TO_ELM
2015-12-16 18:57:42 -08:00
iffalse .BoxFull
writetext CatchingTutorialRepeatText
yesorno
2015-12-16 18:57:42 -08:00
iffalse .Declined
2015-11-25 07:16:29 -08:00
closetext
loadwildmon RATTATA, 5
catchtutorial BATTLETYPE_TUTORIAL
2015-12-09 15:25:44 -08:00
opentext
2015-12-16 18:57:42 -08:00
writetext CatchingTutorialDebriefText
2015-11-25 07:16:29 -08:00
waitbutton
closetext
2013-09-24 00:48:58 -07:00
setevent EVENT_LEARNED_TO_CATCH_POKEMON
end
2015-12-16 18:57:42 -08:00
.BoxFull:
2015-01-20 00:01:23 -08:00
writetext UnknownText_0x1a10a7
2015-11-25 07:16:29 -08:00
waitbutton
closetext
end
2015-12-16 18:57:42 -08:00
.Declined:
writetext CatchingTutorialDeclinedText
2015-11-25 07:16:29 -08:00
waitbutton
closetext
end
2015-12-16 18:57:42 -08:00
Route29YoungsterScript:
jumptextfaceplayer Route29YoungsterText
2015-12-16 18:57:42 -08:00
Route29TeacherScript:
jumptextfaceplayer Route29TeacherText
2015-12-16 18:57:42 -08:00
Route29FisherScript:
jumptextfaceplayer Route29FisherText
2015-07-10 01:45:35 -07:00
CooltrainerMScript_0x1a1031:
faceplayer
2015-12-09 15:25:44 -08:00
opentext
checkday
2015-12-16 18:57:42 -08:00
iftrue .day_morn
checknite
2015-12-16 18:57:42 -08:00
iftrue .nite
.day_morn
2015-12-16 18:57:42 -08:00
writetext Text_WaitingForNight
2015-11-25 07:16:29 -08:00
waitbutton
closetext
end
.nite
2015-12-16 18:57:42 -08:00
writetext Text_WaitingForMorning
2015-11-25 07:16:29 -08:00
waitbutton
closetext
end
2014-10-26 18:37:15 -07:00
TuscanyScript:
faceplayer
2015-12-09 15:25:44 -08:00
opentext
2013-09-24 00:48:58 -07:00
checkevent EVENT_GOT_PINK_BOW_FROM_TUSCANY
2014-10-26 18:37:15 -07:00
iftrue TuscanyTuesdayScript
checkcode VAR_WEEKDAY
2014-10-26 18:37:15 -07:00
if_not_equal TUESDAY, TuscanyNotTuesdayScript
2013-09-24 00:48:58 -07:00
checkevent EVENT_MET_TUSCANY_OF_TUESDAY
2014-10-26 18:37:15 -07:00
iftrue .MetTuscany
2015-01-20 00:01:23 -08:00
writetext MeetTuscanyText
2015-11-29 19:29:45 -08:00
buttonsound
2013-09-24 00:48:58 -07:00
setevent EVENT_MET_TUSCANY_OF_TUESDAY
.MetTuscany:
2015-01-20 00:01:23 -08:00
writetext TuscanyGivesGiftText
2015-11-29 19:29:45 -08:00
buttonsound
2015-11-04 17:20:14 -08:00
verbosegiveitem PINK_BOW
2014-10-26 18:37:15 -07:00
iffalse TuscanyDoneScript
2013-09-24 00:48:58 -07:00
setevent EVENT_GOT_PINK_BOW_FROM_TUSCANY
2015-01-20 00:01:23 -08:00
writetext TuscanyGaveGiftText
2015-11-25 07:16:29 -08:00
waitbutton
closetext
end
2014-10-26 18:37:15 -07:00
TuscanyTuesdayScript:
2015-01-20 00:01:23 -08:00
writetext TuscanyTuesdayText
2015-11-25 07:16:29 -08:00
waitbutton
2014-10-26 18:37:15 -07:00
TuscanyDoneScript:
2015-11-25 07:16:29 -08:00
closetext
end
2014-10-26 18:37:15 -07:00
TuscanyNotTuesdayScript:
2015-01-20 00:01:23 -08:00
writetext TuscanyNotTuesdayText
2015-11-25 07:16:29 -08:00
waitbutton
closetext
end
2016-04-06 21:59:45 -07:00
Route29Sign1:
jumptext Route29Sign1Text
2016-04-06 21:59:45 -07:00
Route29Sign2:
jumptext Route29Sign2Text
2015-12-16 18:57:42 -08:00
Route29FruitTree:
2015-11-18 07:42:42 -08:00
fruittree FRUITTREE_ROUTE_29
2015-12-15 07:55:56 -08:00
Route29Potion:
itemball POTION
2015-12-16 18:57:42 -08:00
DudeMovementData1a:
2016-05-14 10:46:14 -07:00
step UP
step UP
step UP
step UP
step RIGHT
step RIGHT
step_end
2015-12-16 18:57:42 -08:00
DudeMovementData2a:
2016-05-14 10:46:14 -07:00
step UP
step UP
step UP
step RIGHT
step RIGHT
step_end
2015-12-16 18:57:42 -08:00
DudeMovementData1b:
2016-05-14 10:46:14 -07:00
step LEFT
step LEFT
step DOWN
step DOWN
step DOWN
step DOWN
step_end
2015-12-16 18:57:42 -08:00
DudeMovementData2b:
2016-05-14 10:46:14 -07:00
step LEFT
step LEFT
step DOWN
step DOWN
step DOWN
step_end
2015-07-10 01:45:35 -07:00
UnknownText_0x1a10a7:
text "#MON hide in"
line "the grass. Who"
para "knows when they'll"
line "pop out…"
done
2015-12-16 18:57:42 -08:00
CatchingTutorialIntroText:
text "I've seen you a"
line "couple times. How"
para "many #MON have"
line "you caught?"
para "Would you like me"
line "to show you how to"
cont "catch #MON?"
done
2015-12-16 18:57:42 -08:00
CatchingTutorialDebriefText:
text "That's how you do"
line "it."
para "If you weaken them"
line "first, #MON are"
cont "easier to catch."
done
2015-12-16 18:57:42 -08:00
CatchingTutorialDeclinedText:
text "Oh. Fine, then."
para "Anyway, if you"
line "want to catch"
para "#MON, you have"
line "to walk a lot."
done
2015-12-16 18:57:42 -08:00
CatchingTutorialRepeatText:
text "Huh? You want me"
line "to show you how to"
cont "catch #MON?"
done
2015-12-16 18:57:42 -08:00
Route29YoungsterText:
text "Yo. How are your"
line "#MON?"
para "If they're weak"
line "and not ready for"
para "battle, keep out"
line "of the grass."
done
2015-12-16 18:57:42 -08:00
Route29TeacherText:
text "See those ledges?"
line "It's scary to jump"
cont "off them."
para "But you can go to"
line "NEW BARK without"
para "walking through"
line "the grass."
done
2015-12-16 18:57:42 -08:00
Route29FisherText:
text "I wanted to take a"
line "break, so I saved"
para "to record my"
line "progress."
done
; possibly unused
2015-12-16 18:57:42 -08:00
Text_WaitingForDay:
text "I'm waiting for"
line "#MON that"
para "appear only in the"
line "daytime."
done
2015-12-16 18:57:42 -08:00
Text_WaitingForNight:
text "I'm waiting for"
line "#MON that"
para "appear only at"
line "night."
done
2015-12-16 18:57:42 -08:00
Text_WaitingForMorning:
text "I'm waiting for"
line "#MON that"
para "appear only in the"
line "morning."
done
2014-10-26 18:37:15 -07:00
MeetTuscanyText:
text "TUSCANY: I do be-"
line "lieve that this is"
para "the first time"
line "we've met?"
para "Please allow me to"
line "introduce myself."
para "I am TUSCANY of"
line "Tuesday."
done
2014-10-26 18:37:15 -07:00
TuscanyGivesGiftText:
text "By way of intro-"
line "duction, please"
para "accept this gift,"
line "a PINK BOW."
done
2014-10-26 18:37:15 -07:00
TuscanyGaveGiftText:
text "TUSCANY: Wouldn't"
line "you agree that it"
cont "is most adorable?"
para "It strengthens"
line "normal-type moves."
para "I am certain it"
line "will be of use."
done
2014-10-26 18:37:15 -07:00
TuscanyTuesdayText:
text "TUSCANY: Have you"
line "met MONICA, my"
cont "older sister?"
para "Or my younger"
line "brother, WESLEY?"
para "I am the second of"
line "seven children."
done
2014-10-26 18:37:15 -07:00
TuscanyNotTuesdayText:
text "TUSCANY: Today is"
line "not Tuesday. That"
cont "is unfortunate…"
done
2016-04-06 21:59:45 -07:00
Route29Sign1Text:
text "ROUTE 29"
para "CHERRYGROVE CITY -"
line "NEW BARK TOWN"
done
2016-04-06 21:59:45 -07:00
Route29Sign2Text:
text "ROUTE 29"
para "CHERRYGROVE CITY -"
line "NEW BARK TOWN"
done
2015-07-10 01:45:35 -07:00
Route29_MapEventHeader:
; filler
db 0, 0
.Warps:
db 1
2018-01-01 15:19:32 -08:00
warp_def 27, 1, 3, ROUTE_29_ROUTE_46_GATE
.CoordEvents:
db 2
coord_event 53, 8, 1, Route29Tutorial1
coord_event 53, 9, 1, Route29Tutorial2
.BGEvents:
db 2
bg_event 51, 7, BGEVENT_READ, Route29Sign1
bg_event 3, 5, BGEVENT_READ, Route29Sign2
.ObjectEvents:
db 8
object_event 50, 12, SPRITE_COOLTRAINER_M, SPRITEMOVEDATA_SPINRANDOM_SLOW, 0, 0, -1, -1, PAL_NPC_RED, OBJECTTYPE_SCRIPT, 0, CatchingTutorialDudeScript, -1
object_event 27, 16, SPRITE_YOUNGSTER, SPRITEMOVEDATA_WALK_UP_DOWN, 0, 1, -1, -1, PAL_NPC_GREEN, OBJECTTYPE_SCRIPT, 0, Route29YoungsterScript, -1
object_event 15, 11, SPRITE_TEACHER, SPRITEMOVEDATA_WALK_LEFT_RIGHT, 1, 0, -1, -1, PAL_NPC_GREEN, OBJECTTYPE_SCRIPT, 0, Route29TeacherScript, -1
object_event 12, 2, SPRITE_FRUIT_TREE, SPRITEMOVEDATA_ITEM_TREE, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, Route29FruitTree, -1
object_event 25, 3, SPRITE_FISHER, SPRITEMOVEDATA_STANDING_UP, 0, 0, -1, -1, PAL_NPC_BLUE, OBJECTTYPE_SCRIPT, 0, Route29FisherScript, -1
object_event 13, 4, SPRITE_COOLTRAINER_M, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, PAL_NPC_RED, OBJECTTYPE_SCRIPT, 0, CooltrainerMScript_0x1a1031, -1
object_event 29, 12, SPRITE_TEACHER, SPRITEMOVEDATA_SPINRANDOM_SLOW, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, TuscanyScript, EVENT_ROUTE_29_TUSCANY_OF_TUESDAY
object_event 48, 2, SPRITE_POKE_BALL, SPRITEMOVEDATA_ITEM_TREE, 0, 0, -1, -1, 0, OBJECTTYPE_ITEMBALL, 0, Route29Potion, EVENT_ROUTE_29_POTION