pokecrystal/maps/LancesRoom.asm

357 lines
7.3 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 LANCESROOM_LANCE
2015-12-09 16:38:40 +00:00
const LANCESROOM_MARY
2015-11-27 05:22:14 +00:00
const LANCESROOM_OAK
LancesRoom_MapScripts:
db 2 ; scene scripts
scene_script .LockDoor ; SCENE_LANCESROOM_0
scene_script .DummyScene ; SCENE_LANCESROOM_1
db 1 ; callbacks
callback MAPCALLBACK_TILES, .LancesRoomDoors
.LockDoor:
priorityjump .LancesDoorLocksBehindYou
end
.DummyScene:
end
.LancesRoomDoors:
2013-09-24 07:48:58 +00:00
checkevent EVENT_LANCES_ROOM_ENTRANCE_CLOSED
2018-01-17 18:23:43 +00:00
iffalse .KeepEntranceOpen
changeblock 4, 22, $34 ; wall
.KeepEntranceOpen:
checkevent EVENT_LANCES_ROOM_EXIT_OPEN
2018-01-17 18:23:43 +00:00
iffalse .KeepExitClosed
changeblock 4, 0, $0b ; open door
.KeepExitClosed:
return
.LancesDoorLocksBehindYou:
2016-03-02 03:31:21 +00:00
applymovement PLAYER, LancesRoom_PlayerWalksInMovementData
refreshscreen $86
playsound SFX_STRENGTH
earthquake 80
2018-01-17 18:23:43 +00:00
changeblock 4, 22, $34 ; wall
reloadmappart
2015-11-25 15:16:29 +00:00
closetext
setscene SCENE_LANCESROOM_1
2013-09-24 07:48:58 +00:00
setevent EVENT_LANCES_ROOM_ENTRANCE_CLOSED
end
2016-03-02 03:31:21 +00:00
Script_ApproachLanceFromLeft:
special FadeOutMusic
2016-03-02 03:31:21 +00:00
applymovement PLAYER, MovementData_ApproachLanceFromLeft
2015-01-20 08:01:23 +00:00
jump LanceScript_0x180e7b
2016-03-02 03:31:21 +00:00
Script_ApproachLanceFromRight:
special FadeOutMusic
2016-03-02 03:31:21 +00:00
applymovement PLAYER, MovementData_ApproachLanceFromRight
2015-07-10 08:20:21 +00:00
LanceScript_0x180e7b:
2015-11-27 05:22:14 +00:00
spriteface LANCESROOM_LANCE, LEFT
2015-12-09 23:25:44 +00:00
opentext
2016-03-02 03:31:21 +00:00
writetext LanceBattleIntroText
2015-11-25 15:16:29 +00:00
waitbutton
closetext
2016-03-02 03:31:21 +00:00
winlosstext LanceBattleWinText, 0
2015-12-09 16:38:40 +00:00
setlasttalked LANCESROOM_LANCE
loadtrainer CHAMPION, LANCE
startbattle
dontrestartmapmusic
reloadmapafterbattle
2013-09-24 07:48:58 +00:00
setevent EVENT_BEAT_CHAMPION_LANCE
2015-12-09 23:25:44 +00:00
opentext
2016-03-02 03:31:21 +00:00
writetext LanceBattleAfterText
2015-11-25 15:16:29 +00:00
waitbutton
closetext
playsound SFX_ENTER_DOOR
2018-01-17 18:23:43 +00:00
changeblock 4, 0, $0b ; open door
reloadmappart
2015-11-25 15:16:29 +00:00
closetext
2013-09-24 07:48:58 +00:00
setevent EVENT_LANCES_ROOM_ENTRANCE_CLOSED
2018-01-12 06:40:20 +00:00
musicfadeout MUSIC_BEAUTY_ENCOUNTER, 16
pause 30
2015-11-27 05:22:14 +00:00
showemote EMOTE_SHOCK, LANCESROOM_LANCE, 15
spriteface LANCESROOM_LANCE, DOWN
pause 10
spriteface PLAYER, DOWN
2015-12-09 16:38:40 +00:00
appear LANCESROOM_MARY
2016-03-02 03:31:21 +00:00
applymovement LANCESROOM_MARY, LancesRoomMovementData_MaryRushesIn
2015-12-09 23:25:44 +00:00
opentext
2015-01-20 08:01:23 +00:00
writetext UnknownText_0x1811dd
2015-11-25 15:16:29 +00:00
waitbutton
closetext
2015-11-27 05:22:14 +00:00
appear LANCESROOM_OAK
2016-03-02 03:31:21 +00:00
applymovement LANCESROOM_OAK, LancesRoomMovementData_OakWalksIn
2015-12-09 16:38:40 +00:00
follow LANCESROOM_MARY, LANCESROOM_OAK
2016-03-02 03:31:21 +00:00
applymovement LANCESROOM_MARY, LancesRoomMovementData_MaryYieldsToOak
stopfollow
2015-11-27 05:22:14 +00:00
spriteface LANCESROOM_OAK, UP
spriteface LANCESROOM_LANCE, LEFT
2015-12-09 23:25:44 +00:00
opentext
2015-01-20 08:01:23 +00:00
writetext UnknownText_0x18121b
2015-11-25 15:16:29 +00:00
waitbutton
closetext
2016-03-02 03:31:21 +00:00
applymovement LANCESROOM_MARY, LancesRoomMovementData_MaryInterviewChampion
spriteface PLAYER, LEFT
2015-12-09 23:25:44 +00:00
opentext
2015-01-20 08:01:23 +00:00
writetext UnknownText_0x18134b
2015-11-25 15:16:29 +00:00
waitbutton
closetext
2016-03-02 03:31:21 +00:00
applymovement LANCESROOM_LANCE, LancesRoomMovementData_LancePositionsSelfToGuidePlayerAway
spriteface PLAYER, UP
2015-12-09 23:25:44 +00:00
opentext
2015-01-20 08:01:23 +00:00
writetext UnknownText_0x18137b
2015-11-25 15:16:29 +00:00
waitbutton
closetext
2015-11-27 05:22:14 +00:00
follow LANCESROOM_LANCE, PLAYER
2015-12-09 16:38:40 +00:00
spriteface LANCESROOM_MARY, UP
2015-11-27 05:22:14 +00:00
spriteface LANCESROOM_OAK, UP
2016-03-02 03:31:21 +00:00
applymovement LANCESROOM_LANCE, LancesRoomMovementData_LanceLeadsPlayerToHallOfFame
stopfollow
playsound SFX_EXIT_BUILDING
2015-11-27 05:22:14 +00:00
disappear LANCESROOM_LANCE
2016-03-02 03:31:21 +00:00
applymovement PLAYER, LancesRoomMovementData_PlayerExits
playsound SFX_EXIT_BUILDING
disappear PLAYER
2016-03-02 03:31:21 +00:00
applymovement LANCESROOM_MARY, LancesRoomMovementData_MaryTriesToFollow
2015-12-09 16:38:40 +00:00
showemote EMOTE_SHOCK, LANCESROOM_MARY, 15
2015-12-09 23:25:44 +00:00
opentext
2015-01-20 08:01:23 +00:00
writetext UnknownText_0x1813c5
pause 30
2015-11-25 15:16:29 +00:00
closetext
2016-03-02 03:31:21 +00:00
applymovement LANCESROOM_MARY, LancesRoomMovementData_MaryRunsBackAndForth
special FadeOutPalettes
pause 15
warpfacing UP, HALL_OF_FAME, 4, 13
end
2016-03-02 03:31:21 +00:00
LancesRoom_PlayerWalksInMovementData:
2016-05-14 17:46:14 +00:00
step UP
step UP
step UP
step UP
step_end
2016-03-02 03:31:21 +00:00
MovementData_ApproachLanceFromLeft:
2016-05-14 17:46:14 +00:00
step UP
step UP
turn_head RIGHT
step_end
2016-03-02 03:31:21 +00:00
MovementData_ApproachLanceFromRight:
2016-05-14 17:46:14 +00:00
step UP
step LEFT
step UP
turn_head RIGHT
step_end
2016-03-02 03:31:21 +00:00
LancesRoomMovementData_MaryRushesIn:
2016-05-14 17:46:14 +00:00
big_step UP
big_step UP
big_step UP
turn_head DOWN
step_end
2016-03-02 03:31:21 +00:00
LancesRoomMovementData_OakWalksIn:
2016-05-14 17:46:14 +00:00
step UP
step UP
step_end
2016-03-02 03:31:21 +00:00
LancesRoomMovementData_MaryYieldsToOak:
2016-05-14 17:46:14 +00:00
step LEFT
turn_head RIGHT
step_end
2016-03-02 03:31:21 +00:00
LancesRoomMovementData_MaryInterviewChampion:
2016-05-14 17:46:14 +00:00
big_step UP
turn_head RIGHT
step_end
2016-03-02 03:31:21 +00:00
LancesRoomMovementData_LancePositionsSelfToGuidePlayerAway:
2016-05-14 17:46:14 +00:00
step UP
step LEFT
turn_head DOWN
step_end
2016-03-02 03:31:21 +00:00
LancesRoomMovementData_LanceLeadsPlayerToHallOfFame:
2016-05-14 17:46:14 +00:00
step UP
step_end
2016-03-02 03:31:21 +00:00
LancesRoomMovementData_PlayerExits:
2016-05-14 17:46:14 +00:00
step UP
step_end
2016-03-02 03:31:21 +00:00
LancesRoomMovementData_MaryTriesToFollow:
2016-05-14 17:46:14 +00:00
step UP
step RIGHT
turn_head UP
step_end
2016-03-02 03:31:21 +00:00
LancesRoomMovementData_MaryRunsBackAndForth:
2016-05-14 17:46:14 +00:00
big_step RIGHT
big_step RIGHT
big_step LEFT
big_step LEFT
big_step LEFT
big_step RIGHT
big_step RIGHT
big_step RIGHT
big_step LEFT
big_step LEFT
turn_head UP
step_end
2016-03-02 03:31:21 +00:00
LanceBattleIntroText:
text "LANCE: I've been"
line "waiting for you."
para "<PLAY_G>!"
para "I knew that you,"
line "with your skills,"
para "would eventually"
line "reach me here."
para "There's no need"
line "for words now."
para "We will battle to"
line "determine who is"
para "the stronger of"
line "the two of us."
para "As the most power-"
line "ful trainer and as"
para "the #MON LEAGUE"
line "CHAMPION…"
para "I, LANCE the drag-"
line "on master, accept"
cont "your challenge!"
done
2016-03-02 03:31:21 +00:00
LanceBattleWinText:
text "…It's over."
para "But it's an odd"
line "feeling."
para "I'm not angry that"
line "I lost. In fact, I"
cont "feel happy."
para "Happy that I"
line "witnessed the rise"
para "of a great new"
line "CHAMPION!"
done
2016-03-02 03:31:21 +00:00
LanceBattleAfterText:
text "…Whew."
para "You have become"
line "truly powerful,"
cont "<PLAY_G>."
para "Your #MON have"
line "responded to your"
para "strong and up-"
line "standing nature."
para "As a trainer, you"
line "will continue to"
para "grow strong with"
line "your #MON."
done
2015-07-10 08:20:21 +00:00
UnknownText_0x1811dd:
text "MARY: Oh, no!"
line "It's all over!"
para "PROF.OAK, if you"
line "weren't so slow…"
done
2015-07-10 08:20:21 +00:00
UnknownText_0x18121b:
text "PROF.OAK: Ah,"
line "<PLAY_G>!"
para "It's been a long"
line "while."
para "You certainly look"
line "more impressive."
para "Your conquest of"
line "the LEAGUE is just"
cont "fantastic!"
para "Your dedication,"
line "trust and love for"
para "your #MON made"
line "this happen."
para "Your #MON were"
line "outstanding too."
para "Because they be-"
line "lieved in you as a"
para "trainer, they per-"
line "severed."
para "Congratulations,"
line "<PLAY_G>!"
done
2015-07-10 08:20:21 +00:00
UnknownText_0x18134b:
text "MARY: Let's inter-"
line "view the brand new"
cont "CHAMPION!"
done
2015-07-10 08:20:21 +00:00
UnknownText_0x18137b:
text "LANCE: This is"
line "getting to be a"
cont "bit too noisy…"
para "<PLAY_G>, could you"
line "come with me?"
done
2015-07-10 08:20:21 +00:00
UnknownText_0x1813c5:
text "MARY: Oh, wait!"
line "We haven't done"
cont "the interview!"
done
LancesRoom_MapEvents:
db 0, 0 ; filler
db 4 ; warp events
warp_event 4, 23, 3, KARENS_ROOM
warp_event 5, 23, 4, KARENS_ROOM
warp_event 4, 1, 1, HALL_OF_FAME
warp_event 5, 1, 2, HALL_OF_FAME
db 2 ; coord events
coord_event 4, 5, SCENE_LANCESROOM_1, Script_ApproachLanceFromLeft
coord_event 5, 5, SCENE_LANCESROOM_1, Script_ApproachLanceFromRight
db 0 ; bg events
db 3 ; object events
object_event 5, 3, SPRITE_LANCE, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, LanceScript_0x180e7b, -1
object_event 4, 7, SPRITE_TEACHER, SPRITEMOVEDATA_STANDING_UP, 0, 0, -1, -1, PAL_NPC_GREEN, OBJECTTYPE_SCRIPT, 0, ObjectEvent, EVENT_LANCES_ROOM_OAK_AND_MARY
object_event 4, 7, SPRITE_OAK, SPRITEMOVEDATA_STANDING_UP, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, ObjectEvent, EVENT_LANCES_ROOM_OAK_AND_MARY