pokecrystal/maps/NewBarkTown.asm

305 lines
5.9 KiB
NASM
Raw Normal View History

2018-01-31 16:38:45 +00:00
const_def 2 ; object constants
2015-11-27 05:22:14 +00:00
const NEWBARKTOWN_TEACHER
const NEWBARKTOWN_FISHER
const NEWBARKTOWN_SILVER
NewBarkTown_MapScripts:
db 2 ; scene scripts
scene_script .DummyScene0 ; SCENE_DEFAULT
scene_script .DummyScene1 ; SCENE_FINISHED
db 1 ; callbacks
callback MAPCALLBACK_NEWMAP, .FlyPoint
.DummyScene0:
end
.DummyScene1:
end
.FlyPoint:
2015-06-26 05:30:16 +00:00
setflag ENGINE_FLYPOINT_NEW_BARK
clearevent EVENT_FIRST_TIME_BANKING_WITH_MOM
return
NewBarkTown_TeacherStopsYouScene1:
playmusic MUSIC_MOM
turnobject NEWBARKTOWN_TEACHER, LEFT
2015-12-09 23:25:44 +00:00
opentext
2015-12-17 02:57:42 +00:00
writetext Text_WaitPlayer
2015-11-25 15:16:29 +00:00
waitbutton
closetext
turnobject PLAYER, RIGHT
2015-12-17 02:57:42 +00:00
applymovement NEWBARKTOWN_TEACHER, Movement_TeacherRunsToYou1_NBT
2015-12-09 23:25:44 +00:00
opentext
2015-12-17 02:57:42 +00:00
writetext Text_WhatDoYouThinkYoureDoing
2015-11-25 15:16:29 +00:00
waitbutton
closetext
2015-11-27 05:22:14 +00:00
follow NEWBARKTOWN_TEACHER, PLAYER
2015-12-17 02:57:42 +00:00
applymovement NEWBARKTOWN_TEACHER, Movement_TeacherBringsYouBack1_NBT
stopfollow
2015-12-09 23:25:44 +00:00
opentext
2015-12-17 02:57:42 +00:00
writetext Text_ItsDangerousToGoAlone
2015-11-25 15:16:29 +00:00
waitbutton
closetext
special RestartMapMusic
end
NewBarkTown_TeacherStopsYouScene2:
playmusic MUSIC_MOM
turnobject NEWBARKTOWN_TEACHER, LEFT
2015-12-09 23:25:44 +00:00
opentext
2015-12-17 02:57:42 +00:00
writetext Text_WaitPlayer
2015-11-25 15:16:29 +00:00
waitbutton
closetext
turnobject PLAYER, RIGHT
2015-12-17 02:57:42 +00:00
applymovement NEWBARKTOWN_TEACHER, Movement_TeacherRunsToYou2_NBT
turnobject PLAYER, UP
2015-12-09 23:25:44 +00:00
opentext
2015-12-17 02:57:42 +00:00
writetext Text_WhatDoYouThinkYoureDoing
2015-11-25 15:16:29 +00:00
waitbutton
closetext
2015-11-27 05:22:14 +00:00
follow NEWBARKTOWN_TEACHER, PLAYER
2015-12-17 02:57:42 +00:00
applymovement NEWBARKTOWN_TEACHER, Movement_TeacherBringsYouBack2_NBT
stopfollow
2015-12-09 23:25:44 +00:00
opentext
2015-12-17 02:57:42 +00:00
writetext Text_ItsDangerousToGoAlone
2015-11-25 15:16:29 +00:00
waitbutton
closetext
special RestartMapMusic
end
2015-12-17 02:57:42 +00:00
NewBarkTownTeacherScript:
faceplayer
2015-12-09 23:25:44 +00:00
opentext
2013-09-24 07:48:58 +00:00
checkevent EVENT_TALKED_TO_MOM_AFTER_MYSTERY_EGG_QUEST
2015-12-17 02:57:42 +00:00
iftrue .CallMom
2013-09-24 07:48:58 +00:00
checkevent EVENT_GAVE_MYSTERY_EGG_TO_ELM
2015-12-17 02:57:42 +00:00
iftrue .TellMomYoureLeaving
2013-09-24 07:48:58 +00:00
checkevent EVENT_GOT_A_POKEMON_FROM_ELM
2015-12-17 02:57:42 +00:00
iftrue .MonIsAdorable
writetext Text_GearIsImpressive
2015-11-25 15:16:29 +00:00
waitbutton
closetext
end
2015-12-17 02:57:42 +00:00
.MonIsAdorable:
writetext Text_YourMonIsAdorable
2015-11-25 15:16:29 +00:00
waitbutton
closetext
end
2015-12-17 02:57:42 +00:00
.TellMomYoureLeaving:
writetext Text_TellMomIfLeaving
2015-11-25 15:16:29 +00:00
waitbutton
closetext
end
2015-12-17 02:57:42 +00:00
.CallMom:
writetext Text_CallMomOnGear
2015-11-25 15:16:29 +00:00
waitbutton
closetext
end
2015-12-17 02:57:42 +00:00
NewBarkTownFisherScript:
jumptextfaceplayer Text_ElmDiscoveredNewMon
2015-12-17 02:57:42 +00:00
NewBarkTownSilverScript:
2015-12-09 23:25:44 +00:00
opentext
2015-12-17 02:57:42 +00:00
writetext NewBarkTownRivalText1
2015-11-25 15:16:29 +00:00
waitbutton
closetext
turnobject NEWBARKTOWN_SILVER, LEFT
2015-12-09 23:25:44 +00:00
opentext
2015-12-17 02:57:42 +00:00
writetext NewBarkTownRivalText2
2015-11-25 15:16:29 +00:00
waitbutton
closetext
2015-11-27 05:22:14 +00:00
follow PLAYER, NEWBARKTOWN_SILVER
2015-12-17 02:57:42 +00:00
applymovement PLAYER, Movement_SilverPushesYouAway_NBT
stopfollow
pause 5
turnobject NEWBARKTOWN_SILVER, DOWN
pause 5
playsound SFX_TACKLE
2015-12-17 02:57:42 +00:00
applymovement PLAYER, Movement_SilverShovesYouOut_NBT
applymovement NEWBARKTOWN_SILVER, Movement_SilverReturnsToTheShadows_NBT
end
2016-04-07 04:59:45 +00:00
NewBarkTownSign:
2015-12-17 02:57:42 +00:00
jumptext NewBarkTownSignText
2015-06-26 05:30:16 +00:00
MapNewBarkTownSignpost1Script:
2015-12-17 02:57:42 +00:00
jumptext PlayersHouseSignText
2015-06-26 05:30:16 +00:00
MapNewBarkTownSignpost2Script:
2015-12-17 02:57:42 +00:00
jumptext ElmsLabSignText
2015-06-26 05:30:16 +00:00
MapNewBarkTownSignpost3Script:
2015-12-17 02:57:42 +00:00
jumptext ElmsHouseSignText
2015-12-17 02:57:42 +00:00
Movement_TeacherRunsToYou1_NBT:
2016-05-14 17:46:14 +00:00
step LEFT
step LEFT
step LEFT
step LEFT
step_end
2015-12-17 02:57:42 +00:00
Movement_TeacherRunsToYou2_NBT:
2016-05-14 17:46:14 +00:00
step LEFT
step LEFT
step LEFT
step LEFT
step LEFT
turn_head DOWN
step_end
2015-12-17 02:57:42 +00:00
Movement_TeacherBringsYouBack1_NBT:
2016-05-14 17:46:14 +00:00
step RIGHT
step RIGHT
step RIGHT
step RIGHT
turn_head LEFT
step_end
2015-12-17 02:57:42 +00:00
Movement_TeacherBringsYouBack2_NBT:
2016-05-14 17:46:14 +00:00
step RIGHT
step RIGHT
step RIGHT
step RIGHT
step RIGHT
turn_head LEFT
step_end
2015-12-17 02:57:42 +00:00
Movement_SilverPushesYouAway_NBT:
2016-05-14 17:46:14 +00:00
turn_head UP
step DOWN
step_end
2015-12-17 02:57:42 +00:00
Movement_SilverShovesYouOut_NBT:
2016-05-14 17:46:14 +00:00
turn_head UP
fix_facing
2016-05-14 17:46:14 +00:00
jump_step DOWN
remove_fixed_facing
step_end
2015-12-17 02:57:42 +00:00
Movement_SilverReturnsToTheShadows_NBT:
2016-05-14 17:46:14 +00:00
step RIGHT
step_end
2015-12-17 02:57:42 +00:00
Text_GearIsImpressive:
text "Wow, your #GEAR"
line "is impressive!"
para "Did your mom get"
line "it for you?"
done
2015-12-17 02:57:42 +00:00
Text_WaitPlayer:
text "Wait, <PLAY_G>!"
done
2015-12-17 02:57:42 +00:00
Text_WhatDoYouThinkYoureDoing:
text "What do you think"
line "you're doing?"
done
2015-12-17 02:57:42 +00:00
Text_ItsDangerousToGoAlone:
text "It's dangerous to"
line "go out without a"
cont "#MON!"
para "Wild #MON"
line "jump out of the"
para "grass on the way"
line "to the next town."
done
2015-12-17 02:57:42 +00:00
Text_YourMonIsAdorable:
text "Oh! Your #MON"
line "is adorable!"
cont "I wish I had one!"
done
2015-12-17 02:57:42 +00:00
Text_TellMomIfLeaving:
text "Hi, <PLAY_G>!"
line "Leaving again?"
para "You should tell"
line "your mom if you"
cont "are leaving."
done
2015-12-17 02:57:42 +00:00
Text_CallMomOnGear:
text "Call your mom on"
line "your #GEAR to"
para "let her know how"
line "you're doing."
done
2015-12-17 02:57:42 +00:00
Text_ElmDiscoveredNewMon:
text "Yo, <PLAYER>!"
para "I hear PROF.ELM"
line "discovered some"
cont "new #MON."
done
2015-12-17 02:57:42 +00:00
NewBarkTownRivalText1:
2018-01-19 07:30:19 +00:00
text "<……>"
para "So this is the"
line "famous ELM #MON"
cont "LAB…"
done
2015-12-17 02:57:42 +00:00
NewBarkTownRivalText2:
text "…What are you"
line "staring at?"
done
2015-12-17 02:57:42 +00:00
NewBarkTownSignText:
text "NEW BARK TOWN"
para "The Town Where the"
line "Winds of a New"
cont "Beginning Blow"
done
2015-12-17 02:57:42 +00:00
PlayersHouseSignText:
text "<PLAYER>'s House"
done
2015-12-17 02:57:42 +00:00
ElmsLabSignText:
text "ELM #MON LAB"
done
2015-12-17 02:57:42 +00:00
ElmsHouseSignText:
text "ELM'S HOUSE"
done
NewBarkTown_MapEvents:
db 0, 0 ; filler
db 4 ; warp events
2018-02-02 03:22:07 +00:00
warp_event 6, 3, ELMS_LAB, 1
warp_event 13, 5, PLAYERS_HOUSE_1F, 1
warp_event 3, 11, PLAYERS_NEIGHBORS_HOUSE, 1
2018-02-02 02:54:00 +00:00
warp_event 11, 13, ELMS_HOUSE, 1
db 2 ; coord events
2018-02-02 03:22:07 +00:00
coord_event 1, 8, SCENE_DEFAULT, NewBarkTown_TeacherStopsYouScene1
coord_event 1, 9, SCENE_DEFAULT, NewBarkTown_TeacherStopsYouScene2
db 4 ; bg events
2018-02-02 03:22:07 +00:00
bg_event 8, 8, BGEVENT_READ, NewBarkTownSign
bg_event 11, 5, BGEVENT_READ, MapNewBarkTownSignpost1Script
bg_event 3, 3, BGEVENT_READ, MapNewBarkTownSignpost2Script
bg_event 9, 13, BGEVENT_READ, MapNewBarkTownSignpost3Script
db 3 ; object events
2018-02-02 03:22:07 +00:00
object_event 6, 8, SPRITE_TEACHER, SPRITEMOVEDATA_SPINRANDOM_SLOW, 1, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, NewBarkTownTeacherScript, -1
object_event 12, 9, SPRITE_FISHER, SPRITEMOVEDATA_WALK_UP_DOWN, 0, 1, -1, -1, PAL_NPC_GREEN, OBJECTTYPE_SCRIPT, 0, NewBarkTownFisherScript, -1
object_event 3, 2, SPRITE_SILVER, SPRITEMOVEDATA_STANDING_RIGHT, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, NewBarkTownSilverScript, EVENT_RIVAL_NEW_BARK_TOWN