pokecrystal/maps/EcruteakGym.asm

503 lines
9.7 KiB
NASM
Raw Normal View History

2015-07-10 07:00:27 +00:00
EcruteakGym_MapScriptHeader:
; trigger count
db 2
; triggers
dw UnknownScript_0x99d53, $0000
dw UnknownScript_0x99d57, $0000
; callback count
db 0
2015-07-10 07:00:27 +00:00
UnknownScript_0x99d53:
priorityjump UnknownScript_0x99dc6
end
2015-07-10 07:00:27 +00:00
UnknownScript_0x99d57:
end
2015-07-10 07:00:27 +00:00
MortyScript_0x99d58:
faceplayer
loadfont
2013-09-24 07:48:58 +00:00
checkevent EVENT_BEAT_MORTY
2015-07-10 07:00:27 +00:00
iftrue .FightDone
2015-01-20 08:01:23 +00:00
writetext UnknownText_0x99e65
closetext
loadmovesprites
winlosstext UnknownText_0x9a00a, $0000
loadtrainer MORTY, 1
startbattle
returnafterbattle
2013-09-24 07:48:58 +00:00
setevent EVENT_BEAT_MORTY
loadfont
2015-01-20 08:01:23 +00:00
writetext UnknownText_0x9a043
playsound SFX_GET_BADGE
waitbutton
2015-07-10 07:00:27 +00:00
setflag ENGINE_FOGBADGE
checkcode VAR_BADGES
2015-07-10 07:00:27 +00:00
scall EcruteakGymTriggerRockets
domaptrigger GROUP_ECRUTEAK_HOUSE, MAP_ECRUTEAK_HOUSE, $1
2013-09-24 07:48:58 +00:00
setevent $0766
setevent $0767
2015-07-10 07:00:27 +00:00
.FightDone
2013-09-24 07:48:58 +00:00
checkevent EVENT_GOT_TM30_SHADOW_BALL
iftrue UnknownScript_0x99db1
2013-09-24 07:48:58 +00:00
setevent EVENT_BEAT_SAGE_JEFFREY
setevent EVENT_BEAT_SAGE_PING
setevent EVENT_BEAT_MEDIUM_MARTHA
setevent EVENT_BEAT_MEDIUM_GRACE
2015-01-20 08:01:23 +00:00
writetext UnknownText_0x9a059
keeptextopen
verbosegiveitem TM_SHADOW_BALL, 1
iffalse UnknownScript_0x99db5
2013-09-24 07:48:58 +00:00
setevent EVENT_GOT_TM30_SHADOW_BALL
2015-01-20 08:01:23 +00:00
writetext UnknownText_0x9a0ec
closetext
loadmovesprites
end
2015-07-10 07:00:27 +00:00
UnknownScript_0x99db1:
2015-01-20 08:01:23 +00:00
writetext UnknownText_0x9a145
closetext
2015-07-10 07:00:27 +00:00
UnknownScript_0x99db5:
loadmovesprites
end
2015-07-10 07:00:27 +00:00
EcruteakGymTriggerRockets:
if_equal 7, .RadioTowerRockets
if_equal 6, .GoldenrodRockets
end
2015-07-10 07:00:27 +00:00
.GoldenrodRockets
2015-06-25 01:26:24 +00:00
jumpstd goldenrodrockets
2015-07-10 07:00:27 +00:00
.RadioTowerRockets
2015-06-25 01:26:24 +00:00
jumpstd radiotowerrockets
2015-07-10 07:00:27 +00:00
UnknownScript_0x99dc6:
applymovement $0, MovementData_0x99e5d
applymovement $8, MovementData_0x99e63
loadfont
2015-01-20 08:01:23 +00:00
writetext UnknownText_0x9a49c
closetext
loadmovesprites
follow $0, $8
applymovement $0, MovementData_0x99e5f
stopfollow
special Function8c084
playsound SFX_ENTER_DOOR
waitbutton
warp GROUP_ECRUTEAK_CITY, MAP_ECRUTEAK_CITY, $6, $1b
end
2015-07-10 07:00:27 +00:00
TrainerSageJeffrey:
; bit/flag number
dw $415
; trainer group && trainer id
db SAGE, JEFFREY
; text when seen
dw SageJeffreySeenText
; text when trainer beaten
dw SageJeffreyBeatenText
; script when lost
dw $0000
; script when talk again
dw SageJeffreyScript
2015-07-10 07:00:27 +00:00
SageJeffreyScript:
talkaftercancel
loadfont
2015-01-20 08:01:23 +00:00
writetext UnknownText_0x9a263
closetext
loadmovesprites
end
2015-07-10 07:00:27 +00:00
TrainerSagePing:
; bit/flag number
dw $416
; trainer group && trainer id
db SAGE, PING
; text when seen
dw SagePingSeenText
; text when trainer beaten
dw SagePingBeatenText
; script when lost
dw $0000
; script when talk again
dw SagePingScript
2015-07-10 07:00:27 +00:00
SagePingScript:
talkaftercancel
loadfont
2015-01-20 08:01:23 +00:00
writetext UnknownText_0x9a2b7
closetext
loadmovesprites
end
2015-07-10 07:00:27 +00:00
TrainerMediumMartha:
; bit/flag number
dw $58b
; trainer group && trainer id
db MEDIUM, MARTHA
; text when seen
dw MediumMarthaSeenText
; text when trainer beaten
dw MediumMarthaBeatenText
; script when lost
dw $0000
; script when talk again
dw MediumMarthaScript
2015-07-10 07:00:27 +00:00
MediumMarthaScript:
talkaftercancel
loadfont
2015-01-20 08:01:23 +00:00
writetext UnknownText_0x9a318
closetext
loadmovesprites
end
2015-07-10 07:00:27 +00:00
TrainerMediumGrace:
; bit/flag number
dw $58c
; trainer group && trainer id
db MEDIUM, GRACE
; text when seen
dw MediumGraceSeenText
; text when trainer beaten
dw MediumGraceBeatenText
; script when lost
dw $0000
; script when talk again
dw MediumGraceScript
2015-07-10 07:00:27 +00:00
MediumGraceScript:
talkaftercancel
loadfont
2015-01-20 08:01:23 +00:00
writetext UnknownText_0x9a38a
closetext
loadmovesprites
end
2015-07-10 07:00:27 +00:00
EcruteakGymGuyScript:
faceplayer
loadfont
2013-09-24 07:48:58 +00:00
checkevent EVENT_BEAT_MORTY
iftrue .EcruteakGymGuyWinScript
2015-01-20 08:01:23 +00:00
writetext EcruteakGymGuyText
closetext
loadmovesprites
end
.EcruteakGymGuyWinScript
2015-01-20 08:01:23 +00:00
writetext EcruteakGymGuyWinText
closetext
loadmovesprites
end
2015-06-25 03:51:36 +00:00
EcruteakGymStatue:
checkflag ENGINE_FOGBADGE
iftrue .Beaten
2015-06-25 01:26:24 +00:00
jumpstd gymstatue1
2015-06-25 03:51:36 +00:00
.Beaten
trainertotext MORTY, 1, $1
2015-06-25 01:26:24 +00:00
jumpstd gymstatue2
2015-07-10 07:00:27 +00:00
MovementData_0x99e5d:
step_up
step_end
2015-07-10 07:00:27 +00:00
MovementData_0x99e5f:
fix_facing
slow_step_down
remove_fixed_facing
step_end
2015-07-10 07:00:27 +00:00
MovementData_0x99e63:
slow_step_down
step_end
2015-07-10 07:00:27 +00:00
UnknownText_0x99e65:
text "Good of you to"
line "have come."
para "Here in ECRUTEAK,"
line "#MON have been"
cont "revered."
para "It's said that a"
line "rainbow-colored"
para "#MON will come"
line "down to appear"
para "before a truly"
line "powerful trainer."
para "I believed that"
line "tale, so I have"
para "secretly trained"
line "here all my life."
para "As a result, I can"
line "now see what"
cont "others cannot."
para "Just a bit more…"
para "With a little"
line "more, I could see"
para "a future in which"
line "I meet the #MON"
cont "of rainbow colors."
para "You're going to"
line "help me reach that"
cont "level!"
done
2015-07-10 07:00:27 +00:00
UnknownText_0x9a00a:
text "I'm not good"
line "enough yet…"
para "All right. This"
line "BADGE is yours."
done
2015-07-10 07:00:27 +00:00
UnknownText_0x9a043:
text "<PLAYER> received"
line "FOGBADGE."
done
2015-07-10 07:00:27 +00:00
UnknownText_0x9a059:
text "By having FOG-"
line "BADGE, #MON up"
para "to L50 will obey"
line "you."
para "Also, #MON that"
line "know SURF will be"
para "able to use that"
line "move anytime."
para "I want you to have"
line "this too."
done
2015-07-10 07:00:27 +00:00
UnknownText_0x9a0ec:
text "It's SHADOW BALL."
line "It causes damage"
para "and may reduce"
line "SPCL.DEF."
para "Use it if it"
line "appeals to you."
done
2015-07-10 07:00:27 +00:00
UnknownText_0x9a145:
text "I see…"
para "Your journey has"
line "taken you to far-"
cont "away places."
para "And you have wit-"
line "nessed much more"
cont "than I."
para "I envy you for"
line "that…"
done
2015-07-10 07:00:27 +00:00
SageJeffreySeenText:
text "I spent the spring"
line "with my #MON."
para "Then summer, fall"
line "and winter…"
para "Then spring came"
line "again. We have"
para "lived together"
line "for a long time."
done
2015-07-10 07:00:27 +00:00
SageJeffreyBeatenText:
text "Wins and losses, I"
line "experienced both."
done
2015-07-10 07:00:27 +00:00
UnknownText_0x9a263:
text "Where did #MON"
line "come from?"
done
2015-07-10 07:00:27 +00:00
SagePingSeenText:
text "Can you inflict"
line "any damage on our"
cont "#MON?"
done
2015-07-10 07:00:27 +00:00
SagePingBeatenText:
text "Ah! Well done!"
done
2015-07-10 07:00:27 +00:00
UnknownText_0x9a2b7:
text "We use only ghost-"
line "type #MON."
para "No normal-type"
line "attack can harm"
cont "them!"
done
2015-07-10 07:00:27 +00:00
MediumMarthaSeenText:
text "I shall win!"
done
2015-07-10 07:00:27 +00:00
MediumMarthaBeatenText:
text "I, I, I lost!"
done
2015-07-10 07:00:27 +00:00
UnknownText_0x9a318:
text "The one who wants"
line "to win most--will!"
done
2015-07-10 07:00:27 +00:00
MediumGraceSeenText:
text "Stumped by our in-"
line "visible floor?"
para "Defeat me if you"
line "want a hint!"
done
2015-07-10 07:00:27 +00:00
MediumGraceBeatenText:
text "Wha-what?"
done
2015-07-10 07:00:27 +00:00
UnknownText_0x9a38a:
text "Fine. I shall tell"
line "you the secret of"
para "the invisible"
line "floor."
para "The path is right"
line "before our eyes!"
done
2015-07-10 07:00:27 +00:00
EcruteakGymGuyText:
text "The trainers here"
line "have secret mo-"
cont "tives."
para "If you win, they"
line "may tell you some"
para "deep secrets about"
line "ECRUTEAK."
done
2015-07-10 07:00:27 +00:00
EcruteakGymGuyWinText:
text "Whew, <PLAYER>."
line "You did great!"
para "I was cowering in"
line "the corner out of"
cont "pure terror!"
done
2015-07-10 07:00:27 +00:00
UnknownText_0x9a49c:
text "MORTY, the GYM"
line "LEADER, is absent."
para "Sorry, but you'll"
line "have to leave."
para "Hohohoho."
done
2015-07-10 07:00:27 +00:00
EcruteakGym_MapEventHeader:
; filler
db 0, 0
; warps
db 33
warp_def $11, $4, 10, GROUP_ECRUTEAK_CITY, MAP_ECRUTEAK_CITY
warp_def $11, $5, 10, GROUP_ECRUTEAK_CITY, MAP_ECRUTEAK_CITY
warp_def $e, $4, 4, GROUP_ECRUTEAK_GYM, MAP_ECRUTEAK_GYM
warp_def $4, $2, 3, GROUP_ECRUTEAK_GYM, MAP_ECRUTEAK_GYM
warp_def $4, $3, 3, GROUP_ECRUTEAK_GYM, MAP_ECRUTEAK_GYM
warp_def $4, $4, 3, GROUP_ECRUTEAK_GYM, MAP_ECRUTEAK_GYM
warp_def $5, $4, 3, GROUP_ECRUTEAK_GYM, MAP_ECRUTEAK_GYM
warp_def $7, $6, 3, GROUP_ECRUTEAK_GYM, MAP_ECRUTEAK_GYM
warp_def $4, $7, 3, GROUP_ECRUTEAK_GYM, MAP_ECRUTEAK_GYM
warp_def $6, $2, 3, GROUP_ECRUTEAK_GYM, MAP_ECRUTEAK_GYM
warp_def $6, $3, 3, GROUP_ECRUTEAK_GYM, MAP_ECRUTEAK_GYM
warp_def $6, $4, 3, GROUP_ECRUTEAK_GYM, MAP_ECRUTEAK_GYM
warp_def $6, $5, 3, GROUP_ECRUTEAK_GYM, MAP_ECRUTEAK_GYM
warp_def $6, $7, 3, GROUP_ECRUTEAK_GYM, MAP_ECRUTEAK_GYM
warp_def $7, $7, 3, GROUP_ECRUTEAK_GYM, MAP_ECRUTEAK_GYM
warp_def $8, $4, 3, GROUP_ECRUTEAK_GYM, MAP_ECRUTEAK_GYM
warp_def $8, $5, 3, GROUP_ECRUTEAK_GYM, MAP_ECRUTEAK_GYM
warp_def $8, $6, 3, GROUP_ECRUTEAK_GYM, MAP_ECRUTEAK_GYM
warp_def $8, $7, 3, GROUP_ECRUTEAK_GYM, MAP_ECRUTEAK_GYM
warp_def $8, $2, 3, GROUP_ECRUTEAK_GYM, MAP_ECRUTEAK_GYM
warp_def $9, $2, 3, GROUP_ECRUTEAK_GYM, MAP_ECRUTEAK_GYM
warp_def $a, $2, 3, GROUP_ECRUTEAK_GYM, MAP_ECRUTEAK_GYM
warp_def $b, $2, 3, GROUP_ECRUTEAK_GYM, MAP_ECRUTEAK_GYM
warp_def $a, $4, 3, GROUP_ECRUTEAK_GYM, MAP_ECRUTEAK_GYM
warp_def $a, $5, 3, GROUP_ECRUTEAK_GYM, MAP_ECRUTEAK_GYM
warp_def $c, $2, 3, GROUP_ECRUTEAK_GYM, MAP_ECRUTEAK_GYM
warp_def $c, $3, 3, GROUP_ECRUTEAK_GYM, MAP_ECRUTEAK_GYM
warp_def $c, $4, 3, GROUP_ECRUTEAK_GYM, MAP_ECRUTEAK_GYM
warp_def $c, $5, 3, GROUP_ECRUTEAK_GYM, MAP_ECRUTEAK_GYM
warp_def $a, $7, 3, GROUP_ECRUTEAK_GYM, MAP_ECRUTEAK_GYM
warp_def $b, $7, 3, GROUP_ECRUTEAK_GYM, MAP_ECRUTEAK_GYM
warp_def $c, $7, 3, GROUP_ECRUTEAK_GYM, MAP_ECRUTEAK_GYM
warp_def $d, $7, 3, GROUP_ECRUTEAK_GYM, MAP_ECRUTEAK_GYM
; xy triggers
db 0
; signposts
db 2
2015-06-25 03:51:36 +00:00
signpost 15, 3, $0, EcruteakGymStatue
signpost 15, 6, $0, EcruteakGymStatue
; people-events
db 7
2013-07-12 21:06:11 +00:00
person_event SPRITE_MORTY, 5, 9, $6, $0, 255, 255, $b0, 0, MortyScript_0x99d58, $ffff
person_event SPRITE_SAGE, 11, 6, $9, $0, 255, 255, $92, 1, TrainerSageJeffrey, $ffff
person_event SPRITE_SAGE, 17, 7, $9, $0, 255, 255, $92, 3, TrainerSagePing, $ffff
person_event SPRITE_GRANNY, 9, 11, $8, $0, 255, 255, $b2, 1, TrainerMediumMartha, $ffff
person_event SPRITE_GRANNY, 13, 11, $8, $0, 255, 255, $b2, 1, TrainerMediumGrace, $ffff
person_event SPRITE_GYM_GUY, 19, 11, $6, $0, 255, 255, $80, 0, EcruteakGymGuyScript, $ffff
person_event SPRITE_GRAMPS, 18, 8, $6, $0, 255, 255, $a0, 0, ObjectEvent, $07a8