pokecrystal/maps/VermilionPort.asm

316 lines
7.0 KiB
NASM
Raw Normal View History

object_const_def
2015-11-27 05:22:14 +00:00
const VERMILIONPORT_SAILOR1
const VERMILIONPORT_SAILOR2
const VERMILIONPORT_SUPER_NERD
VermilionPort_MapScripts:
def_scene_scripts
scene_script .DummyScene0 ; SCENE_DEFAULT
scene_script .LeaveFastShip ; SCENE_VERMILIONPORT_LEAVE_SHIP
def_callbacks
callback MAPCALLBACK_NEWMAP, .FlyPoint
.DummyScene0:
end
.LeaveFastShip:
prioritysjump .LeaveFastShipScript
end
.FlyPoint:
2015-06-26 05:30:16 +00:00
setflag ENGINE_FLYPOINT_VERMILION
endcallback
.LeaveFastShipScript:
applymovement PLAYER, VermilionPortLeaveFastShipMovement
2015-11-27 05:22:14 +00:00
appear VERMILIONPORT_SAILOR1
setscene SCENE_DEFAULT
setevent EVENT_FAST_SHIP_CABINS_SE_SSE_CAPTAINS_CABIN_TWIN_1
setevent EVENT_FAST_SHIP_CABINS_SE_SSE_GENTLEMAN
setevent EVENT_FAST_SHIP_PASSENGERS_FIRST_TRIP
clearevent EVENT_OLIVINE_PORT_PASSAGE_POKEFAN_M
setevent EVENT_FAST_SHIP_FIRST_TIME
setevent EVENT_TEMPORARY_UNTIL_MAP_RELOAD_1
blackoutmod VERMILION_CITY
end
VermilionPortSailorAtGangwayScript:
faceplayer
2015-12-09 23:25:44 +00:00
opentext
checkevent EVENT_TEMPORARY_UNTIL_MAP_RELOAD_1
2018-02-04 03:37:08 +00:00
iftrue VermilionPortAlreadyRodeScript
writetext VermilionPortDepartingText
2015-11-25 15:16:29 +00:00
waitbutton
closetext
turnobject VERMILIONPORT_SAILOR1, DOWN
pause 10
playsound SFX_EXIT_BUILDING
2015-11-27 05:22:14 +00:00
disappear VERMILIONPORT_SAILOR1
2015-11-25 15:16:29 +00:00
waitsfx
applymovement PLAYER, VermilionPortEnterFastShipMovement
playsound SFX_EXIT_BUILDING
special FadeOutPalettes
2015-11-25 15:16:29 +00:00
waitsfx
setevent EVENT_FAST_SHIP_PASSENGERS_EASTBOUND
clearevent EVENT_FAST_SHIP_PASSENGERS_WESTBOUND
2013-09-24 07:48:58 +00:00
clearevent EVENT_BEAT_POKEMANIAC_ETHAN
clearevent EVENT_BEAT_BURGLAR_COREY
clearevent EVENT_BEAT_BUG_CATCHER_KEN
clearevent EVENT_BEAT_GUITARIST_CLYDE
clearevent EVENT_BEAT_POKEFANM_JEREMY
clearevent EVENT_BEAT_POKEFANF_GEORGIA
clearevent EVENT_BEAT_SAILOR_KENNETH
clearevent EVENT_BEAT_TEACHER_SHIRLEY
clearevent EVENT_BEAT_SCHOOLBOY_NATE
clearevent EVENT_BEAT_SCHOOLBOY_RICKY
setevent EVENT_FAST_SHIP_DESTINATION_OLIVINE
2015-11-27 05:22:14 +00:00
appear VERMILIONPORT_SAILOR1
setmapscene FAST_SHIP_1F, SCENE_FASTSHIP1F_ENTER_SHIP
warp FAST_SHIP_1F, 25, 1
end
2018-02-04 03:37:08 +00:00
VermilionPortAlreadyRodeScript:
writetext VermilionPortCantBoardText
2015-11-25 15:16:29 +00:00
waitbutton
closetext
end
2018-02-04 03:37:08 +00:00
VermilionPortWalkUpToShipScript:
turnobject VERMILIONPORT_SAILOR2, RIGHT
checkevent EVENT_TEMPORARY_UNTIL_MAP_RELOAD_1
2018-02-04 03:37:08 +00:00
iftrue .skip
checkevent EVENT_TEMPORARY_UNTIL_MAP_RELOAD_2
2018-02-04 03:37:08 +00:00
iftrue .skip
turnobject PLAYER, LEFT
2015-12-09 23:25:44 +00:00
opentext
readvar VAR_WEEKDAY
ifequal MONDAY, .NextShipWednesday
ifequal TUESDAY, .NextShipWednesday
ifequal THURSDAY, .NextShipSunday
ifequal FRIDAY, .NextShipSunday
ifequal SATURDAY, .NextShipSunday
writetext VermilionPortAskBoardingText
yesorno
2018-02-04 03:37:08 +00:00
iffalse VermilionPortNotRidingMoveAwayScript
writetext VermilionPortAskTicketText
2019-11-03 17:48:54 +00:00
promptbutton
checkitem S_S_TICKET
2018-02-04 03:37:08 +00:00
iffalse .NoTicket
writetext VermilionPortSSTicketText
2015-11-25 15:16:29 +00:00
waitbutton
closetext
setevent EVENT_TEMPORARY_UNTIL_MAP_RELOAD_2
applymovement PLAYER, VermilionPortApproachFastShipMovement
sjump VermilionPortSailorAtGangwayScript
2018-02-04 03:37:08 +00:00
.NoTicket:
writetext VermilionPortNoTicketText
2015-11-25 15:16:29 +00:00
waitbutton
closetext
applymovement PLAYER, VermilionPortCannotEnterFastShipMovement
end
2018-02-04 03:37:08 +00:00
.NextShipWednesday:
writetext VermilionPortSailMondayText
2015-11-25 15:16:29 +00:00
waitbutton
closetext
applymovement PLAYER, VermilionPortCannotEnterFastShipMovement
end
2018-02-04 03:37:08 +00:00
.NextShipSunday:
writetext VermilionPortSailSundayText
2015-11-25 15:16:29 +00:00
waitbutton
closetext
applymovement PLAYER, VermilionPortCannotEnterFastShipMovement
end
2018-02-04 03:37:08 +00:00
.skip:
end
2018-02-04 03:37:08 +00:00
VermilionPortNotRidingScript:
writetext VermilionPortComeAgainText
2015-11-25 15:16:29 +00:00
waitbutton
closetext
end
2018-02-04 03:37:08 +00:00
VermilionPortNotRidingMoveAwayScript:
writetext VermilionPortComeAgainText
2015-11-25 15:16:29 +00:00
waitbutton
closetext
applymovement PLAYER, VermilionPortCannotEnterFastShipMovement
end
2018-02-28 22:47:31 +00:00
VermilionPortSailorScript:
faceplayer
2015-12-09 23:25:44 +00:00
opentext
checkevent EVENT_TEMPORARY_UNTIL_MAP_RELOAD_1
2018-02-04 03:37:08 +00:00
iftrue VermilionPortAlreadyRodeScript
readvar VAR_WEEKDAY
2018-02-03 02:09:17 +00:00
ifequal MONDAY, .NextShipWednesday
ifequal TUESDAY, .NextShipWednesday
ifequal THURSDAY, .NextShipSunday
ifequal FRIDAY, .NextShipSunday
ifequal SATURDAY, .NextShipSunday
writetext VermilionPortAskBoardingText
yesorno
2018-02-04 03:37:08 +00:00
iffalse VermilionPortNotRidingScript
writetext VermilionPortAskTicketText
2019-11-03 17:48:54 +00:00
promptbutton
checkitem S_S_TICKET
iffalse .NoTicket
2018-02-04 03:37:08 +00:00
writetext VermilionPortSSTicketText
2015-11-25 15:16:29 +00:00
waitbutton
closetext
setevent EVENT_TEMPORARY_UNTIL_MAP_RELOAD_2
applymovement PLAYER, VermilionPortApproachFastShipRightMovement
sjump VermilionPortSailorAtGangwayScript
.NoTicket:
writetext VermilionPortNoTicketText
2015-11-25 15:16:29 +00:00
waitbutton
closetext
end
.NextShipWednesday:
writetext VermilionPortSailMondayText
2015-11-25 15:16:29 +00:00
waitbutton
closetext
end
.NextShipSunday:
writetext VermilionPortSailSundayText
2015-11-25 15:16:29 +00:00
waitbutton
closetext
end
2018-02-28 22:47:31 +00:00
VermilionPortSuperNerdScript:
faceplayer
2015-12-09 23:25:44 +00:00
opentext
writetext VermilionPortSuperNerdText
2015-11-25 15:16:29 +00:00
waitbutton
closetext
end
VermilionPortHiddenIron:
hiddenitem IRON, EVENT_VERMILION_PORT_HIDDEN_IRON
VermilionPortEnterFastShipMovement:
2016-05-14 17:46:14 +00:00
step DOWN
step_end
VermilionPortLeaveFastShipMovement:
2016-05-14 17:46:14 +00:00
step UP
step_end
VermilionPortCannotEnterFastShipMovement:
2016-05-14 17:46:14 +00:00
step RIGHT
turn_head LEFT
step_end
VermilionPortApproachFastShipMovement:
2016-05-14 17:46:14 +00:00
step DOWN
step DOWN
step DOWN
step DOWN
step DOWN
step_end
VermilionPortApproachFastShipRightMovement:
2016-05-14 17:46:14 +00:00
step RIGHT
step DOWN
step DOWN
step DOWN
step DOWN
step DOWN
step DOWN
step_end
VermilionPortDepartingText:
text "We're departing"
line "soon. Please get"
cont "on board."
done
VermilionPortCantBoardText:
text "Sorry. You can't"
line "board now."
done
VermilionPortAskBoardingText:
text "Welcome to FAST"
line "SHIP S.S.AQUA."
para "Will you be board-"
line "ing today?"
done
VermilionPortAskTicketText:
text "May I see your"
line "S.S.TICKET?"
done
VermilionPortComeAgainText:
text "We hope to see you"
line "again!"
done
2018-02-04 03:37:08 +00:00
VermilionPortSSTicketText:
text "<PLAYER> flashed"
line "the S.S.TICKET."
para "That's it."
line "Thank you!"
done
VermilionPortNoTicketText:
text "<PLAYER> tried to"
line "show the S.S."
cont "TICKET…"
para "…But no TICKET!"
para "Sorry!"
line "You may board only"
para "if you have an"
line "S.S.TICKET."
done
VermilionPortSailMondayText:
text "The FAST SHIP will"
line "sail on Wednesday."
done
VermilionPortSailSundayText:
text "The FAST SHIP will"
line "sail next Sunday."
done
VermilionPortSuperNerdText:
text "You came from"
line "JOHTO?"
para "I hear many rare"
line "#MON live over"
cont "there."
done
VermilionPort_MapEvents:
db 0, 0 ; filler
def_warp_events
2018-02-02 03:22:07 +00:00
warp_event 9, 5, VERMILION_PORT_PASSAGE, 5
warp_event 7, 17, FAST_SHIP_1F, 1
def_coord_events
coord_event 7, 11, SCENE_DEFAULT, VermilionPortWalkUpToShipScript
def_bg_events
bg_event 16, 13, BGEVENT_ITEM, VermilionPortHiddenIron
def_object_events
object_event 7, 17, SPRITE_SAILOR, SPRITEMOVEDATA_STANDING_UP, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, VermilionPortSailorAtGangwayScript, EVENT_VERMILION_PORT_SAILOR_AT_GANGWAY
2018-02-28 22:47:31 +00:00
object_event 6, 11, SPRITE_SAILOR, SPRITEMOVEDATA_STANDING_RIGHT, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, VermilionPortSailorScript, -1
object_event 11, 11, SPRITE_SUPER_NERD, SPRITEMOVEDATA_WALK_LEFT_RIGHT, 2, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, VermilionPortSuperNerdScript, -1