pokecrystal/maps/TinTower1F.asm

546 lines
12 KiB
NASM
Raw Normal View History

object_const_def
2015-11-27 05:22:14 +00:00
const TINTOWER1F_SUICUNE
const TINTOWER1F_RAIKOU
const TINTOWER1F_ENTEI
2016-04-07 10:13:59 +00:00
const TINTOWER1F_EUSINE
2015-11-27 05:22:14 +00:00
const TINTOWER1F_SAGE1
const TINTOWER1F_SAGE2
const TINTOWER1F_SAGE3
const TINTOWER1F_SAGE4
const TINTOWER1F_SAGE5
const TINTOWER1F_SAGE6
TinTower1F_MapScripts:
def_scene_scripts
scene_script .FaceSuicune ; SCENE_DEFAULT
scene_script .DummyScene ; SCENE_FINISHED
def_callbacks
callback MAPCALLBACK_OBJECTS, .NPCsCallback
callback MAPCALLBACK_TILES, .StairsCallback
.FaceSuicune:
2021-06-09 00:35:04 +00:00
sdefer .SuicuneBattle
end
.DummyScene:
end
.NPCsCallback:
2013-09-24 07:48:58 +00:00
checkevent EVENT_GOT_RAINBOW_WING
iftrue .GotRainbowWing
2015-06-25 03:20:04 +00:00
checkevent EVENT_BEAT_ELITE_FOUR
iffalse .FaceBeasts
special BeastsCheck
iffalse .FaceBeasts
clearevent EVENT_TIN_TOWER_1F_WISE_TRIO_2
setevent EVENT_TIN_TOWER_1F_WISE_TRIO_1
.GotRainbowWing:
2013-09-24 07:48:58 +00:00
checkevent EVENT_FOUGHT_HO_OH
2016-04-07 10:13:59 +00:00
iffalse .Done
appear TINTOWER1F_EUSINE
.Done:
endcallback
.FaceBeasts:
2013-09-24 07:48:58 +00:00
checkevent EVENT_FOUGHT_SUICUNE
iftrue .FoughtSuicune
2015-11-27 05:22:14 +00:00
appear TINTOWER1F_SUICUNE
setval RAIKOU
special MonCheck
iftrue .NoRaikou
2015-11-27 05:22:14 +00:00
appear TINTOWER1F_RAIKOU
sjump .CheckEntei
.NoRaikou:
2015-11-27 05:22:14 +00:00
disappear TINTOWER1F_RAIKOU
.CheckEntei:
setval ENTEI
special MonCheck
iftrue .NoEntei
2015-11-27 05:22:14 +00:00
appear TINTOWER1F_ENTEI
sjump .BeastsDone
.NoEntei:
2015-11-27 05:22:14 +00:00
disappear TINTOWER1F_ENTEI
.BeastsDone:
endcallback
.FoughtSuicune:
2015-11-27 05:22:14 +00:00
disappear TINTOWER1F_SUICUNE
disappear TINTOWER1F_RAIKOU
disappear TINTOWER1F_ENTEI
clearevent EVENT_TIN_TOWER_1F_WISE_TRIO_1
setevent EVENT_TIN_TOWER_1F_WISE_TRIO_2
endcallback
.StairsCallback:
2013-09-24 07:48:58 +00:00
checkevent EVENT_GOT_RAINBOW_WING
iftrue .DontHideStairs
2018-01-17 18:23:43 +00:00
changeblock 10, 2, $09 ; floor
.DontHideStairs:
endcallback
.SuicuneBattle:
2021-02-05 17:44:21 +00:00
applymovement PLAYER, TinTower1FPlayerEntersMovement
pause 15
setval RAIKOU
special MonCheck
iftrue .Next1 ; if player caught Raikou, it doesn't appear in Tin Tower
2021-02-05 17:44:21 +00:00
applymovement TINTOWER1F_RAIKOU, TinTower1FRaikouApproachesMovement
turnobject PLAYER, LEFT
cry RAIKOU
pause 10
playsound SFX_WARP_FROM
2021-02-05 17:44:21 +00:00
applymovement TINTOWER1F_RAIKOU, TinTower1FRaikouLeavesMovement
2015-11-27 05:22:14 +00:00
disappear TINTOWER1F_RAIKOU
playsound SFX_EXIT_BUILDING
2015-11-25 15:16:29 +00:00
waitsfx
.Next1:
setval ENTEI
special MonCheck
iftrue .Next2 ; if player caught Entei, it doesn't appear in Tin Tower
2021-02-05 17:44:21 +00:00
applymovement TINTOWER1F_ENTEI, TinTower1FEnteiApproachesMovement
turnobject PLAYER, RIGHT
cry ENTEI
pause 10
playsound SFX_WARP_FROM
2021-02-05 17:44:21 +00:00
applymovement TINTOWER1F_ENTEI, TinTower1FEnteiLeavesMovement
2015-11-27 05:22:14 +00:00
disappear TINTOWER1F_ENTEI
playsound SFX_EXIT_BUILDING
2015-11-25 15:16:29 +00:00
waitsfx
.Next2:
turnobject PLAYER, UP
pause 10
2021-02-05 17:44:21 +00:00
applymovement PLAYER, TinTower1FPlayerBacksUpMovement
applymovement TINTOWER1F_SUICUNE, TinTower1FSuicuneApproachesMovement
cry SUICUNE
pause 20
loadwildmon SUICUNE, 40
loadvar VAR_BATTLETYPE, BATTLETYPE_SUICUNE
startbattle
dontrestartmapmusic
2015-11-27 05:22:14 +00:00
disappear TINTOWER1F_SUICUNE
2013-09-24 07:48:58 +00:00
setevent EVENT_FOUGHT_SUICUNE
setevent EVENT_SAW_SUICUNE_ON_ROUTE_42
setmapscene ROUTE_42, SCENE_ROUTE42_NOTHING
2013-09-24 07:48:58 +00:00
setevent EVENT_SAW_SUICUNE_ON_ROUTE_36
setmapscene ROUTE_36, SCENE_ROUTE36_NOTHING
2013-09-24 07:48:58 +00:00
setevent EVENT_SAW_SUICUNE_AT_CIANWOOD_CITY
setmapscene CIANWOOD_CITY, SCENE_CIANWOODCITY_NOTHING
setscene SCENE_FINISHED
2013-09-24 07:48:58 +00:00
clearevent EVENT_SET_WHEN_FOUGHT_HO_OH
reloadmapafterbattle
pause 20
turnobject PLAYER, DOWN
playmusic MUSIC_MYSTICALMAN_ENCOUNTER
playsound SFX_ENTER_DOOR
moveobject TINTOWER1F_EUSINE, 10, 15
2016-04-07 10:13:59 +00:00
appear TINTOWER1F_EUSINE
2021-02-05 17:44:21 +00:00
applymovement TINTOWER1F_EUSINE, TinTower1FEusineEntersMovement
playsound SFX_ENTER_DOOR
moveobject TINTOWER1F_SAGE1, 9, 15
2015-11-27 05:22:14 +00:00
appear TINTOWER1F_SAGE1
2021-02-05 17:44:21 +00:00
applymovement TINTOWER1F_SAGE1, TinTower1FSage1EntersMovement
playsound SFX_ENTER_DOOR
moveobject TINTOWER1F_SAGE2, 9, 15
2015-11-27 05:22:14 +00:00
appear TINTOWER1F_SAGE2
2021-02-05 17:44:21 +00:00
applymovement TINTOWER1F_SAGE2, TinTower1FSage2EntersMovement
playsound SFX_ENTER_DOOR
moveobject TINTOWER1F_SAGE3, 9, 15
2015-11-27 05:22:14 +00:00
appear TINTOWER1F_SAGE3
2021-02-05 17:44:21 +00:00
applymovement TINTOWER1F_SAGE3, TinTower1FSage3EntersMovement
moveobject TINTOWER1F_SAGE1, 7, 13
moveobject TINTOWER1F_SAGE2, 9, 13
moveobject TINTOWER1F_SAGE3, 11, 13
turnobject PLAYER, RIGHT
2015-12-09 23:25:44 +00:00
opentext
2021-02-05 17:44:21 +00:00
writetext TinTower1FEusineSuicuneText
2015-11-25 15:16:29 +00:00
waitbutton
closetext
2021-02-05 17:44:21 +00:00
applymovement TINTOWER1F_EUSINE, TinTower1FEusineLeavesMovement
playsound SFX_EXIT_BUILDING
2016-04-07 10:13:59 +00:00
disappear TINTOWER1F_EUSINE
2015-11-25 15:16:29 +00:00
waitsfx
special FadeOutMusic
pause 20
playmapmusic
end
2017-12-18 00:48:04 +00:00
TinTower1FSage1Script:
jumptextfaceplayer TinTower1FSage1Text
2017-12-18 00:48:04 +00:00
TinTower1FSage2Script:
jumptextfaceplayer TinTower1FSage2Text
2017-12-18 00:48:04 +00:00
TinTower1FSage3Script:
jumptextfaceplayer TinTower1FSage3Text
2017-12-18 00:48:04 +00:00
TinTower1FSage4Script:
2013-09-24 07:48:58 +00:00
checkevent EVENT_FOUGHT_HO_OH
2017-12-18 00:48:04 +00:00
iftrue .FoughtHoOh
jumptextfaceplayer TinTower1FSage4Text1
2017-12-18 00:48:04 +00:00
.FoughtHoOh:
jumptextfaceplayer TinTower1FSage4Text2
2017-12-18 00:48:04 +00:00
TinTower1FSage5Script:
faceplayer
2015-12-09 23:25:44 +00:00
opentext
2013-09-24 07:48:58 +00:00
checkevent EVENT_FOUGHT_HO_OH
2017-12-18 00:48:04 +00:00
iftrue .FoughtHoOh
2013-09-24 07:48:58 +00:00
checkevent EVENT_GOT_RAINBOW_WING
2017-12-18 00:48:04 +00:00
iftrue .GotRainbowWing
writetext TinTower1FSage5Text1
2019-11-03 17:48:54 +00:00
promptbutton
2015-11-05 01:20:14 +00:00
verbosegiveitem RAINBOW_WING
2015-11-25 15:16:29 +00:00
closetext
2018-01-12 06:40:20 +00:00
refreshscreen
earthquake 72
2015-11-25 15:16:29 +00:00
waitsfx
playsound SFX_STRENGTH
2018-01-17 18:23:43 +00:00
changeblock 10, 2, $20 ; stairs
reloadmappart
2013-09-24 07:48:58 +00:00
setevent EVENT_GOT_RAINBOW_WING
2015-11-25 15:16:29 +00:00
closetext
2015-12-09 23:25:44 +00:00
opentext
2017-12-18 00:48:04 +00:00
.GotRainbowWing:
writetext TinTower1FSage5Text2
2015-11-25 15:16:29 +00:00
waitbutton
closetext
end
2017-12-18 00:48:04 +00:00
.FoughtHoOh:
writetext TinTower1FSage5Text3
2015-11-25 15:16:29 +00:00
waitbutton
closetext
end
2017-12-18 00:48:04 +00:00
TinTower1FSage6Script:
2013-09-24 07:48:58 +00:00
checkevent EVENT_FOUGHT_HO_OH
2017-12-18 00:48:04 +00:00
iftrue .FoughtHoOh
jumptextfaceplayer TinTower1FSage6Text1
2017-12-18 00:48:04 +00:00
.FoughtHoOh:
jumptextfaceplayer TinTower1FSage6Text2
2021-02-05 17:44:21 +00:00
TinTower1FEusine:
jumptextfaceplayer TinTower1FEusineHoOhText
2021-02-05 17:44:21 +00:00
TinTower1FPlayerEntersMovement:
2016-05-14 17:46:14 +00:00
slow_step UP
slow_step UP
slow_step UP
slow_step UP
step_end
2021-02-05 17:44:21 +00:00
TinTower1FRaikouApproachesMovement:
2016-03-02 03:31:21 +00:00
set_sliding
2016-05-14 17:46:14 +00:00
fast_jump_step DOWN
2016-03-02 03:31:21 +00:00
remove_sliding
step_end
2021-02-05 17:44:21 +00:00
TinTower1FRaikouLeavesMovement:
2016-03-02 03:31:21 +00:00
set_sliding
2016-05-14 17:46:14 +00:00
fast_jump_step DOWN
fast_jump_step RIGHT
fast_jump_step DOWN
2016-03-02 03:31:21 +00:00
remove_sliding
step_end
2021-02-05 17:44:21 +00:00
TinTower1FEnteiApproachesMovement:
2016-03-02 03:31:21 +00:00
set_sliding
2016-05-14 17:46:14 +00:00
fast_jump_step DOWN
2016-03-02 03:31:21 +00:00
remove_sliding
step_end
2021-02-05 17:44:21 +00:00
TinTower1FEnteiLeavesMovement:
2016-03-02 03:31:21 +00:00
set_sliding
2016-05-14 17:46:14 +00:00
fast_jump_step DOWN
fast_jump_step LEFT
fast_jump_step DOWN
2016-03-02 03:31:21 +00:00
remove_sliding
step_end
2021-02-05 17:44:21 +00:00
TinTower1FSuicuneApproachesMovement:
2016-03-02 03:31:21 +00:00
set_sliding
2016-05-14 17:46:14 +00:00
fast_jump_step DOWN
2016-03-02 03:31:21 +00:00
remove_sliding
step_end
2021-02-05 17:44:21 +00:00
TinTower1FPlayerBacksUpMovement:
fix_facing
2016-05-14 17:46:14 +00:00
big_step DOWN
remove_fixed_facing
step_end
2021-02-05 17:44:21 +00:00
TinTower1FEusineEntersMovement:
2016-05-14 17:46:14 +00:00
step UP
step UP
step UP
turn_head LEFT
step_end
2021-02-05 17:44:21 +00:00
TinTower1FEusineLeavesMovement:
2016-05-14 17:46:14 +00:00
step DOWN
step DOWN
step DOWN
step_end
2021-02-05 17:44:21 +00:00
TinTower1FSage1EntersMovement:
2016-05-14 17:46:14 +00:00
step UP
step UP
step LEFT
step LEFT
turn_head UP
step_end
2021-02-05 17:44:21 +00:00
TinTower1FSage2EntersMovement:
2016-05-14 17:46:14 +00:00
step UP
step UP
step_end
2021-02-05 17:44:21 +00:00
TinTower1FSage3EntersMovement:
2016-05-14 17:46:14 +00:00
step UP
step RIGHT
step RIGHT
step UP
step_end
2021-02-05 17:44:21 +00:00
TinTower1FEusineSuicuneText:
text "EUSINE: Awesome!"
line "Too awesome, even!"
para "I've never seen a"
line "battle that great."
para "That was truly"
line "inspiring to see."
para "SUICUNE was tough,"
line "but you were even"
para "more incredible,"
line "<PLAYER>."
para "I heard SUICUNE's"
line "mystic power"
para "summons a rainbow-"
line "colored #MON."
para "Maybe, just maybe,"
line "what went on today"
para "will cause that"
line "#MON to appear."
para "I'm going to study"
line "the legends more."
para "Thanks for showing"
line "me that fantastic"
cont "battle."
para "Later, <PLAYER>!"
done
2017-12-18 00:48:04 +00:00
TinTower1FSage1Text:
text "According to"
line "legend…"
para "When the souls of"
line "#MON and humans"
para "commune, from the"
line "heavens descends a"
para "#MON of rainbow"
line "colors…"
para "Could it mean the"
line "legendary #MON"
para "are testing us"
line "humans?"
done
2017-12-18 00:48:04 +00:00
TinTower1FSage2Text:
text "When the BRASS"
line "TOWER burned down,"
para "three nameless"
line "#MON were said"
para "to have perished."
line "It was tragic."
para "However…"
para "A rainbow-colored"
line "#MON…"
para "In other words…"
para "HO-OH descended"
line "from the sky and"
para "gave new life to"
line "the three #MON."
para "They are…"
para "SUICUNE, ENTEI and"
line "RAIKOU."
para "That is what they"
line "say."
done
2017-12-18 00:48:04 +00:00
TinTower1FSage3Text:
text "The two TOWERS are"
line "said to have been"
para "built to foster"
line "friendship and"
para "hope between #-"
line "MON and people."
para "That was 700 years"
line "ago, but the ideal"
para "still remains"
line "important today."
done
2017-12-18 00:48:04 +00:00
TinTower1FSage4Text1:
text "HO-OH appears to"
line "have descended"
para "upon this, the TIN"
line "TOWER!"
done
2017-12-18 00:48:04 +00:00
TinTower1FSage5Text1:
text "This will protect"
line "you. Take it."
done
2017-12-18 00:48:04 +00:00
TinTower1FSage5Text2:
text "Now, go."
done
2017-12-18 00:48:04 +00:00
TinTower1FSage6Text1:
text "I believe you are"
line "being tested."
para "Free your mind"
line "from uncertainty,"
cont "and advance."
done
2021-02-05 17:44:21 +00:00
TinTower1FEusineHoOhText:
text "I knew it."
para "I knew you'd get"
line "to see the #MON"
para "of rainbow colors,"
line "<PLAYER>."
para "It happened just"
line "as I envisioned."
para "My research isn't"
line "bad, I might say."
para "I'm going to keep"
line "studying #MON"
para "to become a famous"
line "#MANIAC!"
done
2017-12-18 00:48:04 +00:00
TinTower1FSage4Text2:
text "The legendary"
line "#MON are said"
para "to embody three"
line "powers…"
para "The lightning that"
line "struck the TOWER."
para "The fire that"
line "burned the TOWER."
para "And the rain that"
line "put out the fire…"
done
2017-12-18 00:48:04 +00:00
TinTower1FSage5Text3:
text "When the legendary"
line "#MON appeared…"
para "They struck terror"
line "in those who saw"
cont "their rise."
para "And…"
para "Some even took to"
line "futile attacks."
para "The legendary"
line "#MON, knowing"
para "their own power,"
line "fled, ignoring the"
cont "frightened people."
done
2017-12-18 00:48:04 +00:00
TinTower1FSage6Text2:
text "Of the legendary"
line "#MON, SUICUNE"
para "is said to be the"
line "closest to HO-OH."
para "I hear there may"
line "also be a link to"
para "#MON known as"
line "UNOWN."
para "The #MON UNOWN"
line "must be sharing a"
para "cooperative bond"
line "with SUICUNE."
done
TinTower1F_MapEvents:
db 0, 0 ; filler
def_warp_events
2018-02-02 03:22:07 +00:00
warp_event 9, 15, ECRUTEAK_CITY, 12
2018-02-02 02:54:00 +00:00
warp_event 10, 15, ECRUTEAK_CITY, 12
2018-02-02 03:22:07 +00:00
warp_event 10, 2, TIN_TOWER_2F, 2
def_coord_events
def_bg_events
def_object_events
2018-02-02 03:22:07 +00:00
object_event 9, 9, SPRITE_SUICUNE, SPRITEMOVEDATA_STILL, 0, 0, -1, -1, PAL_NPC_BLUE, OBJECTTYPE_SCRIPT, 0, ObjectEvent, EVENT_TIN_TOWER_1F_SUICUNE
object_event 7, 9, SPRITE_RAIKOU, SPRITEMOVEDATA_STILL, 0, 0, -1, -1, PAL_NPC_BROWN, OBJECTTYPE_SCRIPT, 0, ObjectEvent, EVENT_TIN_TOWER_1F_RAIKOU
object_event 12, 9, SPRITE_ENTEI, SPRITEMOVEDATA_STILL, 0, 0, -1, -1, PAL_NPC_RED, OBJECTTYPE_SCRIPT, 0, ObjectEvent, EVENT_TIN_TOWER_1F_ENTEI
2021-02-05 17:44:21 +00:00
object_event 8, 3, SPRITE_SUPER_NERD, SPRITEMOVEDATA_SPINRANDOM_SLOW, 0, 0, -1, -1, PAL_NPC_BLUE, OBJECTTYPE_SCRIPT, 0, TinTower1FEusine, EVENT_TIN_TOWER_1F_EUSINE
2018-02-02 03:22:07 +00:00
object_event 5, 9, SPRITE_SAGE, SPRITEMOVEDATA_SPINRANDOM_SLOW, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, TinTower1FSage1Script, EVENT_TIN_TOWER_1F_WISE_TRIO_1
object_event 11, 11, SPRITE_SAGE, SPRITEMOVEDATA_SPINRANDOM_SLOW, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, TinTower1FSage2Script, EVENT_TIN_TOWER_1F_WISE_TRIO_1
2018-02-02 03:22:07 +00:00
object_event 14, 6, SPRITE_SAGE, SPRITEMOVEDATA_SPINRANDOM_SLOW, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, TinTower1FSage3Script, EVENT_TIN_TOWER_1F_WISE_TRIO_1
object_event 4, 2, SPRITE_SAGE, SPRITEMOVEDATA_WALK_UP_DOWN, 0, 1, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, TinTower1FSage4Script, EVENT_TIN_TOWER_1F_WISE_TRIO_2
object_event 9, 1, SPRITE_SAGE, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, TinTower1FSage5Script, EVENT_TIN_TOWER_1F_WISE_TRIO_2
object_event 14, 2, SPRITE_SAGE, SPRITEMOVEDATA_WALK_LEFT_RIGHT, 1, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, TinTower1FSage6Script, EVENT_TIN_TOWER_1F_WISE_TRIO_2