pokecrystal-board/maps/EcruteakTinTowerEntrance.asm

299 lines
7.0 KiB
NASM
Raw Normal View History

object_const_def
const ECRUTEAKTINTOWERENTRANCE_SAGE1
const ECRUTEAKTINTOWERENTRANCE_SAGE2
const ECRUTEAKTINTOWERENTRANCE_SAGE3
const ECRUTEAKTINTOWERENTRANCE_GRAMPS
2015-11-26 21:22:14 -08:00
EcruteakTinTowerEntrance_MapScripts:
def_scene_scripts
scene_script EcruteakTinTowerEntranceNoop1Scene, SCENE_ECRUTEAKTINTOWERENTRANCE_SAGE_BLOCKS
scene_script EcruteakTinTowerEntranceNoop2Scene, SCENE_ECRUTEAKTINTOWERENTRANCE_NOOP
def_callbacks
callback MAPCALLBACK_OBJECTS, EcruteakTinTowerEntranceInitializeSagesCallback
EcruteakTinTowerEntranceNoop1Scene:
end
EcruteakTinTowerEntranceNoop2Scene:
end
EcruteakTinTowerEntranceInitializeSagesCallback:
2013-09-24 00:48:58 -07:00
checkevent EVENT_FOUGHT_SUICUNE
iftrue .DontBlockTower
2013-09-24 00:48:58 -07:00
checkevent EVENT_KOJI_ALLOWS_YOU_PASSAGE_TO_TIN_TOWER
iftrue .DontBlockTower
2013-09-24 00:48:58 -07:00
checkevent EVENT_CLEARED_RADIO_TOWER
iftrue .BlockTower
endcallback
.BlockTower:
clearevent EVENT_RANG_CLEAR_BELL_1
setevent EVENT_RANG_CLEAR_BELL_2
setevent EVENT_ECRUTEAK_TIN_TOWER_ENTRANCE_WANDERING_SAGE
checkitem CLEAR_BELL
iftrue .NoClearBell
setscene SCENE_ECRUTEAKTINTOWERENTRANCE_SAGE_BLOCKS
.NoClearBell:
endcallback
.DontBlockTower:
clearevent EVENT_ECRUTEAK_TIN_TOWER_ENTRANCE_WANDERING_SAGE
endcallback
2021-02-05 09:44:21 -08:00
EcruteakTinTowerEntranceSageBlocksLeft:
checkevent EVENT_RANG_CLEAR_BELL_2
2021-02-05 09:44:21 -08:00
iftrue EcruteakTinTowerEntranceAlreadyBlocked
applymovement ECRUTEAKTINTOWERENTRANCE_SAGE2, EcruteakTinTowerEntranceSageBlocksLeftMovement
moveobject ECRUTEAKTINTOWERENTRANCE_SAGE1, 4, 6
appear ECRUTEAKTINTOWERENTRANCE_SAGE1
pause 5
disappear ECRUTEAKTINTOWERENTRANCE_SAGE2
end
2021-02-05 09:44:21 -08:00
EcruteakTinTowerEntranceSageBlocksRight:
checkevent EVENT_RANG_CLEAR_BELL_1
2021-02-05 09:44:21 -08:00
iftrue EcruteakTinTowerEntranceAlreadyBlocked
applymovement ECRUTEAKTINTOWERENTRANCE_SAGE1, EcruteakTinTowerEntranceSageBlocksRightMovement
moveobject ECRUTEAKTINTOWERENTRANCE_SAGE2, 5, 6
appear ECRUTEAKTINTOWERENTRANCE_SAGE2
pause 5
disappear ECRUTEAKTINTOWERENTRANCE_SAGE1
end
2021-02-05 09:44:21 -08:00
EcruteakTinTowerEntranceAlreadyBlocked:
end
EcruteakTinTowerEntranceSageScript:
faceplayer
2015-12-09 15:25:44 -08:00
opentext
2013-09-24 00:48:58 -07:00
checkevent EVENT_CLEARED_RADIO_TOWER
iftrue .CheckForClearBell
2015-07-10 05:08:03 -07:00
checkflag ENGINE_FOGBADGE
iftrue .BlockPassage_GotFogBadge
writetext EcruteakTinTowerEntranceSageText
2015-11-25 07:16:29 -08:00
waitbutton
closetext
end
.BlockPassage_GotFogBadge:
writetext EcruteakTinTowerEntranceSageText_GotFogBadge
2015-11-25 07:16:29 -08:00
waitbutton
closetext
end
.CheckForClearBell:
2013-09-24 00:48:58 -07:00
checkevent EVENT_KOJI_ALLOWS_YOU_PASSAGE_TO_TIN_TOWER
iftrue .AllowedThrough
checkevent EVENT_TEMPORARY_UNTIL_MAP_RELOAD_1
iftrue .RangClearBell
checkitem CLEAR_BELL
iftrue .GotClearBell
writetext EcruteakTinTowerEntranceSageText_NoClearBell
2015-11-25 07:16:29 -08:00
waitbutton
closetext
end
.GotClearBell:
writetext EcruteakTinTowerEntranceSageText_HearsClearBell
2015-11-25 07:16:29 -08:00
waitbutton
closetext
setscene SCENE_ECRUTEAKTINTOWERENTRANCE_NOOP
setevent EVENT_RANG_CLEAR_BELL_2
clearevent EVENT_RANG_CLEAR_BELL_1
setevent EVENT_TEMPORARY_UNTIL_MAP_RELOAD_1
end
.AllowedThrough:
writetext EcruteakTinTowerEntranceSageText_PleaseDoGoOn
2015-11-25 07:16:29 -08:00
waitbutton
closetext
end
.RangClearBell:
writetext EcruteakTinTowerEntranceSageText_HeardClearBell
2015-11-25 07:16:29 -08:00
waitbutton
closetext
end
EcruteakTinTowerEntranceWanderingSageScript:
faceplayer
2015-12-09 15:25:44 -08:00
opentext
2013-09-24 00:48:58 -07:00
checkevent EVENT_GOT_CLEAR_BELL
iftrue .GotClearBell
writetext EcruteakTinTowerEntranceWanderingSageText
2015-11-25 07:16:29 -08:00
waitbutton
closetext
end
.GotClearBell:
writetext EcruteakTinTowerEntranceWanderingSageText_GotClearBell
2015-11-25 07:16:29 -08:00
waitbutton
closetext
end
EcruteakTinTowerEntranceGrampsScript:
jumptextfaceplayer EcruteakTinTowerEntranceGrampsText
2021-02-05 09:44:21 -08:00
EcruteakTinTowerEntranceSageBlocksLeftMovement:
fix_facing
2016-05-14 10:46:14 -07:00
big_step LEFT
remove_fixed_facing
2016-05-14 10:46:14 -07:00
turn_head DOWN
step_end
2021-02-05 09:44:21 -08:00
EcruteakTinTowerEntranceSageBlocksRightMovement:
fix_facing
2016-05-14 10:46:14 -07:00
big_step RIGHT
remove_fixed_facing
2016-05-14 10:46:14 -07:00
turn_head DOWN
step_end
EcruteakTinTowerEntranceSageText:
text "TIN TOWER is off"
line "limits to anyone"
para "without ECRUTEAK"
line "GYM's BADGE."
para "Sorry, but you'll"
line "have to leave."
done
EcruteakTinTowerEntranceSageText_GotFogBadge:
text "TIN TOWER is off"
line "limits to anyone"
para "without ECRUTEAK"
line "GYM's BADGE."
para "Ah!"
para "ECRUTEAK's GYM"
line "BADGE! Please, go"
cont "right through."
done
EcruteakTinTowerEntranceSageText_NoClearBell:
text "A momentous event"
line "has occurred."
para "I beg your pardon,"
line "but I must ask you"
cont "to leave."
para "…What soothes the"
line "soul…"
para "The WISE TRIO say"
line "things that are so"
para "very difficult to"
line "understand…"
done
EcruteakTinTowerEntranceSageText_HearsClearBell:
text "A momentous event"
line "has occurred."
para "I beg your pardon,"
line "but I must ask you"
cont "to leave."
2018-01-18 23:30:19 -08:00
para "<……><……><……>"
para "Ah!"
para "The sound of that"
line "CLEAR BELL!"
para "It… It's sublime!"
para "I've never heard"
line "so beautiful a"
cont "sound before!"
para "That bell's chime"
line "is indicative of"
cont "the bearer's soul."
para "You…"
para "You may be able to"
line "make it through"
cont "TIN TOWER."
para "Please, do go on."
done
EcruteakTinTowerEntranceSageText_PleaseDoGoOn:
text "Please, do go on."
done
EcruteakTinTowerEntranceSageText_HeardClearBell:
text "That bell's chime"
line "is indicative of"
cont "the bearer's soul."
para "You…"
para "You may be able to"
line "make it through"
cont "TIN TOWER."
para "Please, do go on."
done
EcruteakTinTowerEntranceWanderingSageText:
text "The TIN TOWER"
line "ahead is a nine-"
para "tier tower of"
line "divine beauty."
para "It soothes the"
line "soul of all who"
cont "see it."
done
EcruteakTinTowerEntranceWanderingSageText_GotClearBell:
text "The TIN TOWER"
line "shook! A #MON"
para "must have returned"
line "to the top!"
done
EcruteakTinTowerEntranceGrampsText:
text "Two towers…"
line "Two #MON…"
para "But when one"
line "burned down, both"
para "#MON flew away,"
line "never to return."
done
EcruteakTinTowerEntrance_MapEvents:
db 0, 0 ; filler
def_warp_events
2018-02-01 19:22:07 -08:00
warp_event 4, 17, ECRUTEAK_CITY, 3
warp_event 5, 17, ECRUTEAK_CITY, 3
warp_event 5, 3, ECRUTEAK_TIN_TOWER_ENTRANCE, 4
2018-02-01 18:54:00 -08:00
warp_event 17, 15, ECRUTEAK_TIN_TOWER_ENTRANCE, 3
2018-02-01 19:22:07 -08:00
warp_event 17, 3, WISE_TRIOS_ROOM, 3
def_coord_events
coord_event 4, 7, SCENE_ECRUTEAKTINTOWERENTRANCE_SAGE_BLOCKS, EcruteakTinTowerEntranceSageBlocksLeft
coord_event 5, 7, SCENE_ECRUTEAKTINTOWERENTRANCE_SAGE_BLOCKS, EcruteakTinTowerEntranceSageBlocksRight
def_bg_events
def_object_events
object_event 4, 6, SPRITE_SAGE, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, EcruteakTinTowerEntranceSageScript, EVENT_RANG_CLEAR_BELL_1
object_event 5, 6, SPRITE_SAGE, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, EcruteakTinTowerEntranceSageScript, EVENT_RANG_CLEAR_BELL_2
object_event 6, 9, SPRITE_SAGE, SPRITEMOVEDATA_WANDER, 1, 1, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, EcruteakTinTowerEntranceWanderingSageScript, EVENT_ECRUTEAK_TIN_TOWER_ENTRANCE_WANDERING_SAGE
2018-02-01 19:22:07 -08:00
object_event 3, 11, SPRITE_GRAMPS, SPRITEMOVEDATA_WANDER, 1, 1, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, EcruteakTinTowerEntranceGrampsScript, EVENT_ECRUTEAK_TIN_TOWER_ENTRANCE_WANDERING_SAGE