diff options
Diffstat (limited to 'maps/EcruteakGym.asm')
-rw-r--r-- | maps/EcruteakGym.asm | 255 |
1 files changed, 74 insertions, 181 deletions
diff --git a/maps/EcruteakGym.asm b/maps/EcruteakGym.asm index 4029f9800..f6c46f587 100644 --- a/maps/EcruteakGym.asm +++ b/maps/EcruteakGym.asm @@ -1,29 +1,26 @@ -EcruteakGym_MapScriptHeader: ; 0x99d49 - ; trigger count +EcruteakGym_MapScriptHeader: +.MapTriggers: db 2 ; triggers dw UnknownScript_0x99d53, $0000 dw UnknownScript_0x99d57, $0000 - ; callback count +.MapCallbacks: db 0 -; 0x99d53 -UnknownScript_0x99d53: ; 0x99d53 +UnknownScript_0x99d53: priorityjump UnknownScript_0x99dc6 end -; 0x99d57 -UnknownScript_0x99d57: ; 0x99d57 +UnknownScript_0x99d57: end -; 0x99d58 -MortyScript_0x99d58: ; 0x99d58 +MortyScript_0x99d58: faceplayer loadfont checkevent EVENT_BEAT_MORTY - iftrue UnknownScript_0x99d8c + iftrue .FightDone writetext UnknownText_0x99e65 closetext loadmovesprites @@ -36,13 +33,13 @@ MortyScript_0x99d58: ; 0x99d58 writetext UnknownText_0x9a043 playsound SFX_GET_BADGE waitbutton - setflag $001e - checkcode $7 - scall UnknownScript_0x99db7 + setflag ENGINE_FOGBADGE + checkcode VAR_BADGES + scall EcruteakGymTriggerRockets domaptrigger GROUP_ECRUTEAK_HOUSE, MAP_ECRUTEAK_HOUSE, $1 - setevent $0766 - setevent $0767 -UnknownScript_0x99d8c: ; 0x99d8c + setevent EVENT_RANG_CLEAR_BELL_1 + setevent EVENT_RANG_CLEAR_BELL_2 +.FightDone checkevent EVENT_GOT_TM30_SHADOW_BALL iftrue UnknownScript_0x99db1 setevent EVENT_BEAT_SAGE_JEFFREY @@ -51,38 +48,33 @@ UnknownScript_0x99d8c: ; 0x99d8c setevent EVENT_BEAT_MEDIUM_GRACE writetext UnknownText_0x9a059 keeptextopen - verbosegiveitem TM_30, 1 + verbosegiveitem TM_SHADOW_BALL, 1 iffalse UnknownScript_0x99db5 setevent EVENT_GOT_TM30_SHADOW_BALL writetext UnknownText_0x9a0ec closetext loadmovesprites end -; 0x99db1 -UnknownScript_0x99db1: ; 0x99db1 +UnknownScript_0x99db1: writetext UnknownText_0x9a145 closetext -UnknownScript_0x99db5: ; 0x99db5 +UnknownScript_0x99db5: loadmovesprites end -; 0x99db7 -UnknownScript_0x99db7: ; 0x99db7 - if_equal $7, UnknownScript_0x99dc3 - if_equal $6, UnknownScript_0x99dc0 +EcruteakGymTriggerRockets: + if_equal 7, .RadioTowerRockets + if_equal 6, .GoldenrodRockets end -; 0x99dc0 -UnknownScript_0x99dc0: ; 0x99dc0 +.GoldenrodRockets jumpstd goldenrodrockets -; 0x99dc3 -UnknownScript_0x99dc3: ; 0x99dc3 +.RadioTowerRockets jumpstd radiotowerrockets -; 0x99dc6 -UnknownScript_0x99dc6: ; 0x99dc6 +UnknownScript_0x99dc6: applymovement $0, MovementData_0x99e5d applymovement $8, MovementData_0x99e63 loadfont @@ -92,130 +84,57 @@ UnknownScript_0x99dc6: ; 0x99dc6 follow $0, $8 applymovement $0, MovementData_0x99e5f stopfollow - special Function8c084 + special FadeBlackBGMap playsound SFX_ENTER_DOOR waitbutton warp GROUP_ECRUTEAK_CITY, MAP_ECRUTEAK_CITY, $6, $1b end -; 0x99de9 -TrainerSageJeffrey: ; 0x99de9 - ; bit/flag number - dw $415 +TrainerSageJeffrey: + trainer EVENT_BEAT_SAGE_JEFFREY, SAGE, JEFFREY, SageJeffreySeenText, SageJeffreyBeatenText, $0000, SageJeffreyScript - ; 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 -; 0x99df5 - -SageJeffreyScript: ; 0x99df5 +SageJeffreyScript: talkaftercancel loadfont writetext UnknownText_0x9a263 closetext loadmovesprites end -; 0x99dfd - -TrainerSagePing: ; 0x99dfd - ; 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 -; 0x99e09 +TrainerSagePing: + trainer EVENT_BEAT_SAGE_PING, SAGE, PING, SagePingSeenText, SagePingBeatenText, $0000, SagePingScript -SagePingScript: ; 0x99e09 +SagePingScript: talkaftercancel loadfont writetext UnknownText_0x9a2b7 closetext loadmovesprites end -; 0x99e11 -TrainerMediumMartha: ; 0x99e11 - ; bit/flag number - dw $58b +TrainerMediumMartha: + trainer EVENT_BEAT_MEDIUM_MARTHA, MEDIUM, MARTHA, MediumMarthaSeenText, MediumMarthaBeatenText, $0000, MediumMarthaScript - ; 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 -; 0x99e1d - -MediumMarthaScript: ; 0x99e1d +MediumMarthaScript: talkaftercancel loadfont writetext UnknownText_0x9a318 closetext loadmovesprites end -; 0x99e25 - -TrainerMediumGrace: ; 0x99e25 - ; 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 -; 0x99e31 +TrainerMediumGrace: + trainer EVENT_BEAT_MEDIUM_GRACE, MEDIUM, GRACE, MediumGraceSeenText, MediumGraceBeatenText, $0000, MediumGraceScript -MediumGraceScript: ; 0x99e31 +MediumGraceScript: talkaftercancel loadfont writetext UnknownText_0x9a38a closetext loadmovesprites end -; 0x99e39 -EcruteakGymGuyScript: ; 0x99e39 +EcruteakGymGuyScript: faceplayer loadfont checkevent EVENT_BEAT_MORTY @@ -230,7 +149,6 @@ EcruteakGymGuyScript: ; 0x99e39 closetext loadmovesprites end -; 0x99e4d EcruteakGymStatue: checkflag ENGINE_FOGBADGE @@ -240,24 +158,21 @@ EcruteakGymStatue: trainertotext MORTY, 1, $1 jumpstd gymstatue2 -MovementData_0x99e5d: ; 0x99e5d +MovementData_0x99e5d: step_up step_end -; 0x99e5f -MovementData_0x99e5f: ; 0x99e5f +MovementData_0x99e5f: fix_facing slow_step_down remove_fixed_facing step_end -; 0x99e63 -MovementData_0x99e63: ; 0x99e63 +MovementData_0x99e63: slow_step_down step_end -; 0x99e65 -UnknownText_0x99e65: ; 0x99e65 +UnknownText_0x99e65: text "Good of you to" line "have come." @@ -297,24 +212,21 @@ UnknownText_0x99e65: ; 0x99e65 line "help me reach that" cont "level!" done -; 0x9a00a -UnknownText_0x9a00a: ; 0x9a00a +UnknownText_0x9a00a: text "I'm not good" line "enough yet…" para "All right. This" line "BADGE is yours." done -; 0x9a043 -UnknownText_0x9a043: ; 0x9a043 +UnknownText_0x9a043: text "<PLAYER> received" line "FOGBADGE." done -; 0x9a059 -UnknownText_0x9a059: ; 0x9a059 +UnknownText_0x9a059: text "By having FOG-" line "BADGE, #MON up" @@ -330,9 +242,8 @@ UnknownText_0x9a059: ; 0x9a059 para "I want you to have" line "this too." done -; 0x9a0ec -UnknownText_0x9a0ec: ; 0x9a0ec +UnknownText_0x9a0ec: text "It's SHADOW BALL." line "It causes damage" @@ -342,9 +253,8 @@ UnknownText_0x9a0ec: ; 0x9a0ec para "Use it if it" line "appeals to you." done -; 0x9a145 -UnknownText_0x9a145: ; 0x9a145 +UnknownText_0x9a145: text "I see…" para "Your journey has" @@ -358,9 +268,8 @@ UnknownText_0x9a145: ; 0x9a145 para "I envy you for" line "that…" done -; 0x9a1bd -SageJeffreySeenText: ; 0x9a1bd +SageJeffreySeenText: text "I spent the spring" line "with my #MON." @@ -373,33 +282,28 @@ SageJeffreySeenText: ; 0x9a1bd para "lived together" line "for a long time." done -; 0x9a23d -SageJeffreyBeatenText: ; 0x9a23d +SageJeffreyBeatenText: text "Wins and losses, I" line "experienced both." done -; 0x9a263 -UnknownText_0x9a263: ; 0x9a263 +UnknownText_0x9a263: text "Where did #MON" line "come from?" done -; 0x9a27e -SagePingSeenText: ; 0x9a27e +SagePingSeenText: text "Can you inflict" line "any damage on our" cont "#MON?" done -; 0x9a2a7 -SagePingBeatenText: ; 0x9a2a7 +SagePingBeatenText: text "Ah! Well done!" done -; 0x9a2b7 -UnknownText_0x9a2b7: ; 0x9a2b7 +UnknownText_0x9a2b7: text "We use only ghost-" line "type #MON." @@ -407,39 +311,33 @@ UnknownText_0x9a2b7: ; 0x9a2b7 line "attack can harm" cont "them!" done -; 0x9a2fb -MediumMarthaSeenText: ; 0x9a2fb +MediumMarthaSeenText: text "I shall win!" done -; 0x9a309 -MediumMarthaBeatenText: ; 0x9a309 +MediumMarthaBeatenText: text "I, I, I lost!" done -; 0x9a318 -UnknownText_0x9a318: ; 0x9a318 +UnknownText_0x9a318: text "The one who wants" line "to win most--will!" done -; 0x9a33e -MediumGraceSeenText: ; 0x9a33e +MediumGraceSeenText: text "Stumped by our in-" line "visible floor?" para "Defeat me if you" line "want a hint!" done -; 0x9a37f -MediumGraceBeatenText: ; 0x9a37f +MediumGraceBeatenText: text "Wha-what?" done -; 0x9a38a -UnknownText_0x9a38a: ; 0x9a38a +UnknownText_0x9a38a: text "Fine. I shall tell" line "you the secret of" @@ -449,9 +347,8 @@ UnknownText_0x9a38a: ; 0x9a38a para "The path is right" line "before our eyes!" done -; 0x9a3e8 -EcruteakGymGuyText: ; 0x9a3e8 +EcruteakGymGuyText: text "The trainers here" line "have secret mo-" cont "tives." @@ -462,9 +359,8 @@ EcruteakGymGuyText: ; 0x9a3e8 para "deep secrets about" line "ECRUTEAK." done -; 0x9a452 -EcruteakGymGuyWinText: ; 0x9a452 +EcruteakGymGuyWinText: text "Whew, <PLAYER>." line "You did great!" @@ -472,9 +368,8 @@ EcruteakGymGuyWinText: ; 0x9a452 line "the corner out of" cont "pure terror!" done -; 0x9a49c -UnknownText_0x9a49c: ; 0x9a49c +UnknownText_0x9a49c: text "MORTY, the GYM" line "LEADER, is absent." @@ -483,13 +378,12 @@ UnknownText_0x9a49c: ; 0x9a49c para "Hohohoho." done -; 0x9a4e9 -EcruteakGym_MapEventHeader: ; 0x9a4e9 +EcruteakGym_MapEventHeader: ; filler db 0, 0 - ; warps +.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 @@ -525,21 +419,20 @@ EcruteakGym_MapEventHeader: ; 0x9a4e9 warp_def $c, $7, 3, GROUP_ECRUTEAK_GYM, MAP_ECRUTEAK_GYM warp_def $d, $7, 3, GROUP_ECRUTEAK_GYM, MAP_ECRUTEAK_GYM - ; xy triggers +.XYTriggers: db 0 - ; signposts +.Signposts: db 2 - signpost 15, 3, $0, EcruteakGymStatue - signpost 15, 6, $0, EcruteakGymStatue + signpost 15, 3, SIGNPOST_READ, EcruteakGymStatue + signpost 15, 6, SIGNPOST_READ, EcruteakGymStatue - ; people-events +.PersonEvents: db 7 - 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 -; 0x9a5f9 + person_event SPRITE_MORTY, 5, 9, OW_UP | $2, $0, -1, -1, (PAL_OW_BROWN << 4) | $80, 0, MortyScript_0x99d58, -1 + person_event SPRITE_SAGE, 11, 6, OW_LEFT | $1, $0, -1, -1, (PAL_OW_BLUE << 4) | $82, 1, TrainerSageJeffrey, -1 + person_event SPRITE_SAGE, 17, 7, OW_LEFT | $1, $0, -1, -1, (PAL_OW_BLUE << 4) | $82, 3, TrainerSagePing, -1 + person_event SPRITE_GRANNY, 9, 11, OW_LEFT | $0, $0, -1, -1, (PAL_OW_BROWN << 4) | $82, 1, TrainerMediumMartha, -1 + person_event SPRITE_GRANNY, 13, 11, OW_LEFT | $0, $0, -1, -1, (PAL_OW_BROWN << 4) | $82, 1, TrainerMediumGrace, -1 + person_event SPRITE_GYM_GUY, 19, 11, OW_UP | $2, $0, -1, -1, (PAL_OW_RED << 4) | $80, 0, EcruteakGymGuyScript, -1 + person_event SPRITE_GRAMPS, 18, 8, OW_UP | $2, $0, -1, -1, (PAL_OW_GREEN << 4) | $80, 0, ObjectEvent, EVENT_ECRUTEAK_GYM_GRAMPS |