pokecrystal/maps/TinTower1F.asm

553 lines
11 KiB
NASM
Raw Normal View History

2015-11-27 05:22:14 +00:00
const_value set 2
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
2015-07-10 08:45:35 +00:00
TinTower1F_MapScriptHeader:
.MapTriggers:
db 2
maptrigger .FaceSuicune
maptrigger .DummyTrigger
.MapCallbacks:
db 2
dbw MAPCALLBACK_OBJECTS, .NPCsCallback
dbw MAPCALLBACK_TILES, .StairsCallback
.FaceSuicune:
priorityjump .SuicuneBattle
end
.DummyTrigger:
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 SpecialBeastsCheck
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:
return
.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
writebyte RAIKOU
special SpecialMonCheck
iftrue .NoRaikou
2015-11-27 05:22:14 +00:00
appear TINTOWER1F_RAIKOU
jump .CheckEntei
.NoRaikou:
2015-11-27 05:22:14 +00:00
disappear TINTOWER1F_RAIKOU
.CheckEntei:
writebyte ENTEI
special SpecialMonCheck
iftrue .NoEntei
2015-11-27 05:22:14 +00:00
appear TINTOWER1F_ENTEI
jump .BeastsDone
.NoEntei:
2015-11-27 05:22:14 +00:00
disappear TINTOWER1F_ENTEI
.BeastsDone:
return
.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
return
.StairsCallback:
2013-09-24 07:48:58 +00:00
checkevent EVENT_GOT_RAINBOW_WING
iftrue .DontHideStairs
changeblock $a, $2, $9
.DontHideStairs:
return
.SuicuneBattle:
2016-04-07 10:13:59 +00:00
applymovement PLAYER, TinTowerPlayerMovement1
pause 15
writebyte RAIKOU
special SpecialMonCheck
2016-04-07 10:13:59 +00:00
iftrue .Next1 ; if player caught Raikou, he doesn't appear in Tin Tower
applymovement TINTOWER1F_RAIKOU, TinTowerRaikouMovement1
spriteface PLAYER, LEFT
cry RAIKOU
pause 10
playsound SFX_WARP_FROM
2016-04-07 10:13:59 +00:00
applymovement TINTOWER1F_RAIKOU, TinTowerRaikouMovement2
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:
writebyte ENTEI
special SpecialMonCheck
2016-04-07 10:13:59 +00:00
iftrue .Next2 ; if player caught Entei, he doesn't appear in Tin Tower
applymovement TINTOWER1F_ENTEI, TinTowerEnteiMovement1
spriteface PLAYER, RIGHT
cry ENTEI
pause 10
playsound SFX_WARP_FROM
2016-04-07 10:13:59 +00:00
applymovement TINTOWER1F_ENTEI, TinTowerEnteiMovement2
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:
spriteface PLAYER, UP
pause 10
2016-04-07 10:13:59 +00:00
applymovement PLAYER, TinTowerPlayerMovement2
applymovement TINTOWER1F_SUICUNE, TinTowerSuicuneMovement
cry SUICUNE
pause 20
loadwildmon SUICUNE, 40
writecode 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
domaptrigger ROUTE_42, $0
2013-09-24 07:48:58 +00:00
setevent EVENT_SAW_SUICUNE_ON_ROUTE_36
domaptrigger ROUTE_36, $0
2013-09-24 07:48:58 +00:00
setevent EVENT_SAW_SUICUNE_AT_CIANWOOD_CITY
domaptrigger CIANWOOD_CITY, $0
dotrigger $1
2013-09-24 07:48:58 +00:00
clearevent EVENT_SET_WHEN_FOUGHT_HO_OH
reloadmapafterbattle
pause 20
spriteface PLAYER, DOWN
playmusic MUSIC_MYSTICALMAN_ENCOUNTER
playsound SFX_ENTER_DOOR
2016-04-07 10:13:59 +00:00
moveperson TINTOWER1F_EUSINE, $a, $f
appear TINTOWER1F_EUSINE
applymovement TINTOWER1F_EUSINE, MovementData_0x1851ec
playsound SFX_ENTER_DOOR
2015-11-27 05:22:14 +00:00
moveperson TINTOWER1F_SAGE1, $9, $f
appear TINTOWER1F_SAGE1
applymovement TINTOWER1F_SAGE1, MovementData_0x1851f5
playsound SFX_ENTER_DOOR
2015-11-27 05:22:14 +00:00
moveperson TINTOWER1F_SAGE2, $9, $f
appear TINTOWER1F_SAGE2
applymovement TINTOWER1F_SAGE2, MovementData_0x1851fb
playsound SFX_ENTER_DOOR
2015-11-27 05:22:14 +00:00
moveperson TINTOWER1F_SAGE3, $9, $f
appear TINTOWER1F_SAGE3
applymovement TINTOWER1F_SAGE3, MovementData_0x1851fe
moveperson TINTOWER1F_SAGE1, $7, $d
moveperson TINTOWER1F_SAGE2, $9, $d
moveperson TINTOWER1F_SAGE3, $b, $d
spriteface PLAYER, RIGHT
2015-12-09 23:25:44 +00:00
opentext
2016-04-07 10:13:59 +00:00
writetext TinTowerEusineSuicuneText
2015-11-25 15:16:29 +00:00
waitbutton
closetext
2016-04-07 10:13:59 +00:00
applymovement TINTOWER1F_EUSINE, MovementData_0x1851f1
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 Special_FadeOutMusic
pause 20
playmapmusic
end
2015-07-10 08:45:35 +00:00
SageScript_0x185173:
jumptextfaceplayer UnknownText_0x185386
2015-07-10 08:45:35 +00:00
SageScript_0x185176:
jumptextfaceplayer UnknownText_0x185433
2015-07-10 08:45:35 +00:00
SageScript_0x185179:
jumptextfaceplayer UnknownText_0x185544
2015-07-10 08:45:35 +00:00
SageScript_0x18517c:
2013-09-24 07:48:58 +00:00
checkevent EVENT_FOUGHT_HO_OH
iftrue UnknownScript_0x185185
jumptextfaceplayer UnknownText_0x1855ee
2015-07-10 08:45:35 +00:00
UnknownScript_0x185185:
jumptextfaceplayer UnknownText_0x185765
2015-07-10 08:45:35 +00:00
SageScript_0x185188:
faceplayer
2015-12-09 23:25:44 +00:00
opentext
2013-09-24 07:48:58 +00:00
checkevent EVENT_FOUGHT_HO_OH
iftrue UnknownScript_0x1851b6
2013-09-24 07:48:58 +00:00
checkevent EVENT_GOT_RAINBOW_WING
iftrue UnknownScript_0x1851b0
2015-01-20 08:01:23 +00:00
writetext UnknownText_0x185629
2015-11-30 03:29:45 +00:00
buttonsound
2015-11-05 01:20:14 +00:00
verbosegiveitem RAINBOW_WING
2015-11-25 15:16:29 +00:00
closetext
refreshscreen $0
earthquake 72
2015-11-25 15:16:29 +00:00
waitsfx
playsound SFX_STRENGTH
changeblock $a, $2, $20
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
2015-07-10 08:45:35 +00:00
UnknownScript_0x1851b0:
2015-01-20 08:01:23 +00:00
writetext UnknownText_0x18564a
2015-11-25 15:16:29 +00:00
waitbutton
closetext
end
2015-07-10 08:45:35 +00:00
UnknownScript_0x1851b6:
2015-01-20 08:01:23 +00:00
writetext UnknownText_0x185803
2015-11-25 15:16:29 +00:00
waitbutton
closetext
end
2015-07-10 08:45:35 +00:00
SageScript_0x1851bc:
2013-09-24 07:48:58 +00:00
checkevent EVENT_FOUGHT_HO_OH
iftrue UnknownScript_0x1851c5
jumptextfaceplayer UnknownText_0x185654
2015-07-10 08:45:35 +00:00
UnknownScript_0x1851c5:
jumptextfaceplayer UnknownText_0x1858d0
2016-04-07 10:13:59 +00:00
TinTowerEusine:
jumptextfaceplayer TinTowerEusineHoOhText
2016-04-07 10:13:59 +00:00
TinTowerPlayerMovement1:
2016-05-14 17:46:14 +00:00
slow_step UP
slow_step UP
slow_step UP
slow_step UP
step_end
2016-04-07 10:13:59 +00:00
TinTowerRaikouMovement1:
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
2016-04-07 10:13:59 +00:00
TinTowerRaikouMovement2:
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
2016-04-07 10:13:59 +00:00
TinTowerEnteiMovement1:
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
2016-04-07 10:13:59 +00:00
TinTowerEnteiMovement2:
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
2016-04-07 10:13:59 +00:00
TinTowerSuicuneMovement:
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
2016-04-07 10:13:59 +00:00
TinTowerPlayerMovement2:
fix_facing
2016-05-14 17:46:14 +00:00
big_step DOWN
remove_fixed_facing
step_end
2015-07-10 08:45:35 +00:00
MovementData_0x1851ec:
2016-05-14 17:46:14 +00:00
step UP
step UP
step UP
turn_head LEFT
step_end
2015-07-10 08:45:35 +00:00
MovementData_0x1851f1:
2016-05-14 17:46:14 +00:00
step DOWN
step DOWN
step DOWN
step_end
2015-07-10 08:45:35 +00:00
MovementData_0x1851f5:
2016-05-14 17:46:14 +00:00
step UP
step UP
step LEFT
step LEFT
turn_head UP
step_end
2015-07-10 08:45:35 +00:00
MovementData_0x1851fb:
2016-05-14 17:46:14 +00:00
step UP
step UP
step_end
2015-07-10 08:45:35 +00:00
MovementData_0x1851fe:
2016-05-14 17:46:14 +00:00
step UP
step RIGHT
step RIGHT
step UP
step_end
2016-04-07 10:13:59 +00:00
TinTowerEusineSuicuneText:
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
2015-07-10 08:45:35 +00:00
UnknownText_0x185386:
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
2015-07-10 08:45:35 +00:00
UnknownText_0x185433:
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
2015-07-10 08:45:35 +00:00
UnknownText_0x185544:
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
2015-07-10 08:45:35 +00:00
UnknownText_0x1855ee:
text "HO-OH appears to"
line "have descended"
para "upon this, the TIN"
line "TOWER!"
done
2015-07-10 08:45:35 +00:00
UnknownText_0x185629:
text "This will protect"
line "you. Take it."
done
2015-07-10 08:45:35 +00:00
UnknownText_0x18564a:
text "Now, go."
done
2015-07-10 08:45:35 +00:00
UnknownText_0x185654:
text "I believe you are"
line "being tested."
para "Free your mind"
line "from uncertainty,"
cont "and advance."
done
2016-04-07 10:13:59 +00:00
TinTowerEusineHoOhText:
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
2015-07-10 08:45:35 +00:00
UnknownText_0x185765:
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
2015-07-10 08:45:35 +00:00
UnknownText_0x185803:
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
2015-07-10 08:45:35 +00:00
UnknownText_0x1858d0:
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
2015-07-10 08:45:35 +00:00
TinTower1F_MapEventHeader:
; filler
db 0, 0
.Warps:
db 3
warp_def $f, $9, 12, ECRUTEAK_CITY
warp_def $f, $a, 12, ECRUTEAK_CITY
warp_def $2, $a, 2, TIN_TOWER_2F
.XYTriggers:
db 0
.Signposts:
db 0
.PersonEvents:
db 10
2017-12-11 01:50:08 +00:00
person_event SPRITE_SUICUNE, 9, 9, SPRITEMOVEDATA_ITEM_TREE, 0, 0, -1, -1, PAL_NPC_BLUE, PERSONTYPE_SCRIPT, 0, ObjectEvent, EVENT_TIN_TOWER_1F_SUICUNE
person_event SPRITE_RAIKOU, 9, 7, SPRITEMOVEDATA_ITEM_TREE, 0, 0, -1, -1, PAL_NPC_BROWN, PERSONTYPE_SCRIPT, 0, ObjectEvent, EVENT_TIN_TOWER_1F_RAIKOU
person_event SPRITE_ENTEI, 9, 12, SPRITEMOVEDATA_ITEM_TREE, 0, 0, -1, -1, PAL_NPC_RED, PERSONTYPE_SCRIPT, 0, ObjectEvent, EVENT_TIN_TOWER_1F_ENTEI
person_event SPRITE_SUPER_NERD, 3, 8, SPRITEMOVEDATA_SPINRANDOM_SLOW, 0, 0, -1, -1, PAL_NPC_BLUE, PERSONTYPE_SCRIPT, 0, TinTowerEusine, EVENT_TIN_TOWER_1F_EUSINE
person_event SPRITE_SAGE, 9, 5, SPRITEMOVEDATA_SPINRANDOM_SLOW, 0, 0, -1, -1, 0, PERSONTYPE_SCRIPT, 0, SageScript_0x185173, EVENT_TIN_TOWER_1F_WISE_TRIO_1
person_event SPRITE_SAGE, 11, 11, SPRITEMOVEDATA_SPINRANDOM_SLOW, 0, 0, -1, -1, 0, PERSONTYPE_SCRIPT, 0, SageScript_0x185176, EVENT_TIN_TOWER_1F_WISE_TRIO_1
person_event SPRITE_SAGE, 6, 14, SPRITEMOVEDATA_SPINRANDOM_SLOW, 0, 0, -1, -1, 0, PERSONTYPE_SCRIPT, 0, SageScript_0x185179, EVENT_TIN_TOWER_1F_WISE_TRIO_1
person_event SPRITE_SAGE, 2, 4, SPRITEMOVEDATA_WALK_UP_DOWN, 1, 0, -1, -1, 0, PERSONTYPE_SCRIPT, 0, SageScript_0x18517c, EVENT_TIN_TOWER_1F_WISE_TRIO_2
person_event SPRITE_SAGE, 1, 9, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, 0, PERSONTYPE_SCRIPT, 0, SageScript_0x185188, EVENT_TIN_TOWER_1F_WISE_TRIO_2
person_event SPRITE_SAGE, 2, 14, SPRITEMOVEDATA_WALK_LEFT_RIGHT, 0, 1, -1, -1, 0, PERSONTYPE_SCRIPT, 0, SageScript_0x1851bc, EVENT_TIN_TOWER_1F_WISE_TRIO_2