pokecrystal-board/maps/NewBarkTown.asm

316 lines
5.9 KiB
NASM
Raw Normal View History

2015-11-26 21:22:14 -08:00
const_value set 2
const NEWBARKTOWN_TEACHER
const NEWBARKTOWN_FISHER
const NEWBARKTOWN_SILVER
2015-06-25 22:30:16 -07:00
NewBarkTown_MapScriptHeader:
.MapTriggers:
db 2
; triggers
2016-01-05 05:46:37 -08:00
maptrigger .Trigger0
maptrigger .Trigger1
.MapCallbacks:
db 1
; callbacks
2016-01-06 04:44:50 -08:00
dbw MAPCALLBACK_NEWMAP, .FlyPoint
.Trigger0:
end
.Trigger1:
end
.FlyPoint:
2015-06-25 22:30:16 -07:00
setflag ENGINE_FLYPOINT_NEW_BARK
clearevent EVENT_FIRST_TIME_BANKING_WITH_MOM
return
2015-12-16 18:57:42 -08:00
NewBarkTown_TeacherStopsYouTrigger1:
playmusic MUSIC_MOM
2015-11-26 21:22:14 -08:00
spriteface NEWBARKTOWN_TEACHER, LEFT
2015-12-09 15:25:44 -08:00
opentext
2015-12-16 18:57:42 -08:00
writetext Text_WaitPlayer
2015-11-25 07:16:29 -08:00
waitbutton
closetext
spriteface PLAYER, RIGHT
2015-12-16 18:57:42 -08:00
applymovement NEWBARKTOWN_TEACHER, Movement_TeacherRunsToYou1_NBT
2015-12-09 15:25:44 -08:00
opentext
2015-12-16 18:57:42 -08:00
writetext Text_WhatDoYouThinkYoureDoing
2015-11-25 07:16:29 -08:00
waitbutton
closetext
2015-11-26 21:22:14 -08:00
follow NEWBARKTOWN_TEACHER, PLAYER
2015-12-16 18:57:42 -08:00
applymovement NEWBARKTOWN_TEACHER, Movement_TeacherBringsYouBack1_NBT
stopfollow
2015-12-09 15:25:44 -08:00
opentext
2015-12-16 18:57:42 -08:00
writetext Text_ItsDangerousToGoAlone
2015-11-25 07:16:29 -08:00
waitbutton
closetext
special RestartMapMusic
end
2015-12-16 18:57:42 -08:00
NewBarkTown_TeacherStopsYouTrigger2:
playmusic MUSIC_MOM
2015-11-26 21:22:14 -08:00
spriteface NEWBARKTOWN_TEACHER, LEFT
2015-12-09 15:25:44 -08:00
opentext
2015-12-16 18:57:42 -08:00
writetext Text_WaitPlayer
2015-11-25 07:16:29 -08:00
waitbutton
closetext
spriteface PLAYER, RIGHT
2015-12-16 18:57:42 -08:00
applymovement NEWBARKTOWN_TEACHER, Movement_TeacherRunsToYou2_NBT
spriteface PLAYER, UP
2015-12-09 15:25:44 -08:00
opentext
2015-12-16 18:57:42 -08:00
writetext Text_WhatDoYouThinkYoureDoing
2015-11-25 07:16:29 -08:00
waitbutton
closetext
2015-11-26 21:22:14 -08:00
follow NEWBARKTOWN_TEACHER, PLAYER
2015-12-16 18:57:42 -08:00
applymovement NEWBARKTOWN_TEACHER, Movement_TeacherBringsYouBack2_NBT
stopfollow
2015-12-09 15:25:44 -08:00
opentext
2015-12-16 18:57:42 -08:00
writetext Text_ItsDangerousToGoAlone
2015-11-25 07:16:29 -08:00
waitbutton
closetext
special RestartMapMusic
end
2015-12-16 18:57:42 -08:00
NewBarkTownTeacherScript:
faceplayer
2015-12-09 15:25:44 -08:00
opentext
2013-09-24 00:48:58 -07:00
checkevent EVENT_TALKED_TO_MOM_AFTER_MYSTERY_EGG_QUEST
2015-12-16 18:57:42 -08:00
iftrue .CallMom
2013-09-24 00:48:58 -07:00
checkevent EVENT_GAVE_MYSTERY_EGG_TO_ELM
2015-12-16 18:57:42 -08:00
iftrue .TellMomYoureLeaving
2013-09-24 00:48:58 -07:00
checkevent EVENT_GOT_A_POKEMON_FROM_ELM
2015-12-16 18:57:42 -08:00
iftrue .MonIsAdorable
writetext Text_GearIsImpressive
2015-11-25 07:16:29 -08:00
waitbutton
closetext
end
2015-12-16 18:57:42 -08:00
.MonIsAdorable:
writetext Text_YourMonIsAdorable
2015-11-25 07:16:29 -08:00
waitbutton
closetext
end
2015-12-16 18:57:42 -08:00
.TellMomYoureLeaving:
writetext Text_TellMomIfLeaving
2015-11-25 07:16:29 -08:00
waitbutton
closetext
end
2015-12-16 18:57:42 -08:00
.CallMom:
writetext Text_CallMomOnGear
2015-11-25 07:16:29 -08:00
waitbutton
closetext
end
2015-12-16 18:57:42 -08:00
NewBarkTownFisherScript:
jumptextfaceplayer Text_ElmDiscoveredNewMon
2015-12-16 18:57:42 -08:00
NewBarkTownSilverScript:
2015-12-09 15:25:44 -08:00
opentext
2015-12-16 18:57:42 -08:00
writetext NewBarkTownRivalText1
2015-11-25 07:16:29 -08:00
waitbutton
closetext
2015-11-26 21:22:14 -08:00
spriteface NEWBARKTOWN_SILVER, LEFT
2015-12-09 15:25:44 -08:00
opentext
2015-12-16 18:57:42 -08:00
writetext NewBarkTownRivalText2
2015-11-25 07:16:29 -08:00
waitbutton
closetext
2015-11-26 21:22:14 -08:00
follow PLAYER, NEWBARKTOWN_SILVER
2015-12-16 18:57:42 -08:00
applymovement PLAYER, Movement_SilverPushesYouAway_NBT
stopfollow
pause 5
2015-11-26 21:22:14 -08:00
spriteface NEWBARKTOWN_SILVER, DOWN
pause 5
playsound SFX_TACKLE
2015-12-16 18:57:42 -08:00
applymovement PLAYER, Movement_SilverShovesYouOut_NBT
applymovement NEWBARKTOWN_SILVER, Movement_SilverReturnsToTheShadows_NBT
end
2016-04-06 21:59:45 -07:00
NewBarkTownSign:
2015-12-16 18:57:42 -08:00
jumptext NewBarkTownSignText
2015-06-25 22:30:16 -07:00
MapNewBarkTownSignpost1Script:
2015-12-16 18:57:42 -08:00
jumptext PlayersHouseSignText
2015-06-25 22:30:16 -07:00
MapNewBarkTownSignpost2Script:
2015-12-16 18:57:42 -08:00
jumptext ElmsLabSignText
2015-06-25 22:30:16 -07:00
MapNewBarkTownSignpost3Script:
2015-12-16 18:57:42 -08:00
jumptext ElmsHouseSignText
2015-12-16 18:57:42 -08:00
Movement_TeacherRunsToYou1_NBT:
2016-05-14 10:46:14 -07:00
step LEFT
step LEFT
step LEFT
step LEFT
step_end
2015-12-16 18:57:42 -08:00
Movement_TeacherRunsToYou2_NBT:
2016-05-14 10:46:14 -07:00
step LEFT
step LEFT
step LEFT
step LEFT
step LEFT
turn_head DOWN
step_end
2015-12-16 18:57:42 -08:00
Movement_TeacherBringsYouBack1_NBT:
2016-05-14 10:46:14 -07:00
step RIGHT
step RIGHT
step RIGHT
step RIGHT
turn_head LEFT
step_end
2015-12-16 18:57:42 -08:00
Movement_TeacherBringsYouBack2_NBT:
2016-05-14 10:46:14 -07:00
step RIGHT
step RIGHT
step RIGHT
step RIGHT
step RIGHT
turn_head LEFT
step_end
2015-12-16 18:57:42 -08:00
Movement_SilverPushesYouAway_NBT:
2016-05-14 10:46:14 -07:00
turn_head UP
step DOWN
step_end
2015-12-16 18:57:42 -08:00
Movement_SilverShovesYouOut_NBT:
2016-05-14 10:46:14 -07:00
turn_head UP
fix_facing
2016-05-14 10:46:14 -07:00
jump_step DOWN
remove_fixed_facing
step_end
2015-12-16 18:57:42 -08:00
Movement_SilverReturnsToTheShadows_NBT:
2016-05-14 10:46:14 -07:00
step RIGHT
step_end
2015-12-16 18:57:42 -08:00
Text_GearIsImpressive:
text "Wow, your #GEAR"
line "is impressive!"
para "Did your mom get"
line "it for you?"
done
2015-12-16 18:57:42 -08:00
Text_WaitPlayer:
text "Wait, <PLAY_G>!"
done
2015-12-16 18:57:42 -08:00
Text_WhatDoYouThinkYoureDoing:
text "What do you think"
line "you're doing?"
done
2015-12-16 18:57:42 -08: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-16 18:57:42 -08:00
Text_YourMonIsAdorable:
text "Oh! Your #MON"
line "is adorable!"
cont "I wish I had one!"
done
2015-12-16 18:57:42 -08: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-16 18:57:42 -08:00
Text_CallMomOnGear:
text "Call your mom on"
line "your #GEAR to"
para "let her know how"
line "you're doing."
done
2015-12-16 18:57:42 -08:00
Text_ElmDiscoveredNewMon:
text "Yo, <PLAYER>!"
para "I hear PROF.ELM"
line "discovered some"
cont "new #MON."
done
2015-12-16 18:57:42 -08:00
NewBarkTownRivalText1:
text "<......>"
para "So this is the"
line "famous ELM #MON"
cont "LAB…"
done
2015-12-16 18:57:42 -08:00
NewBarkTownRivalText2:
text "…What are you"
line "staring at?"
done
2015-12-16 18:57:42 -08:00
NewBarkTownSignText:
text "NEW BARK TOWN"
para "The Town Where the"
line "Winds of a New"
cont "Beginning Blow"
done
2015-12-16 18:57:42 -08:00
PlayersHouseSignText:
text "<PLAYER>'s House"
done
2015-12-16 18:57:42 -08:00
ElmsLabSignText:
text "ELM #MON LAB"
done
2015-12-16 18:57:42 -08:00
ElmsHouseSignText:
text "ELM'S HOUSE"
done
2015-06-25 22:30:16 -07:00
NewBarkTown_MapEventHeader:
; filler
db 0, 0
.Warps:
db 4
warp_def $3, $6, 1, ELMS_LAB
warp_def $5, $d, 1, KRISS_HOUSE_1F
warp_def $b, $3, 1, KRISS_NEIGHBORS_HOUSE
warp_def $d, $b, 1, ELMS_HOUSE
.XYTriggers:
db 2
2015-12-16 18:57:42 -08:00
xy_trigger 0, $8, $1, $0, NewBarkTown_TeacherStopsYouTrigger1, $0, $0
xy_trigger 0, $9, $1, $0, NewBarkTown_TeacherStopsYouTrigger2, $0, $0
.Signposts:
db 4
2016-04-06 21:59:45 -07:00
signpost 8, 8, SIGNPOST_READ, NewBarkTownSign
signpost 5, 11, SIGNPOST_READ, MapNewBarkTownSignpost1Script
signpost 3, 3, SIGNPOST_READ, MapNewBarkTownSignpost2Script
signpost 13, 9, SIGNPOST_READ, MapNewBarkTownSignpost3Script
.PersonEvents:
db 3
2015-12-16 18:57:42 -08:00
person_event SPRITE_TEACHER, 8, 6, SPRITEMOVEDATA_SPINRANDOM_SLOW, 0, 1, -1, -1, 0, PERSONTYPE_SCRIPT, 0, NewBarkTownTeacherScript, -1
person_event SPRITE_FISHER, 9, 12, SPRITEMOVEDATA_WALK_UP_DOWN, 1, 0, -1, -1, (1 << 3) | PAL_OW_GREEN, PERSONTYPE_SCRIPT, 0, NewBarkTownFisherScript, -1
person_event SPRITE_SILVER, 2, 3, SPRITEMOVEDATA_STANDING_RIGHT, 0, 0, -1, -1, 0, PERSONTYPE_SCRIPT, 0, NewBarkTownSilverScript, EVENT_RIVAL_NEW_BARK_TOWN