diff options
Diffstat (limited to 'maps/SproutTower3F.asm')
-rw-r--r-- | maps/SproutTower3F.asm | 223 |
1 files changed, 68 insertions, 155 deletions
diff --git a/maps/SproutTower3F.asm b/maps/SproutTower3F.asm index 98055aca6..148ef23a6 100644 --- a/maps/SproutTower3F.asm +++ b/maps/SproutTower3F.asm @@ -1,26 +1,23 @@ -SproutTower3F_MapScriptHeader: ; 0x18493b - ; trigger count +SproutTower3F_MapScriptHeader: +.MapTriggers: db 2 ; triggers dw UnknownScript_0x184945, $0000 dw UnknownScript_0x184946, $0000 - ; callback count +.MapCallbacks: db 0 -; 0x184945 -UnknownScript_0x184945: ; 0x184945 +UnknownScript_0x184945: end -; 0x184946 -UnknownScript_0x184946: ; 0x184946 +UnknownScript_0x184946: end -; 0x184947 -UnknownScript_0x184947: ; 0x184947 +UnknownScript_0x184947: spriteface $0, UP - showemote $0, $0, 15 + showemote EMOTE_SHOCK, $0, 15 special Functionc48f playsound SFX_TACKLE playsound SFX_ELEVATOR @@ -35,7 +32,7 @@ UnknownScript_0x184947: ; 0x184947 writetext UnknownText_0x184a27 closetext loadmovesprites - showemote $0, $8, 15 + showemote EMOTE_SHOCK, $8, 15 spriteface $8, DOWN pause 15 applymovement $8, MovementData_0x184a24 @@ -50,17 +47,16 @@ UnknownScript_0x184947: ; 0x184947 pause 15 loadmovesprites playsound SFX_WARP_TO - special Function8c0b6 - special Functiond91 + special Special_FadeBlackQuickly + special Special_ReloadSpritesNoPalettes disappear $8 waitbutton - special Function8c0ab + special Special_FadeInQuickly dotrigger $1 special RestartMapMusic end -; 0x1849a6 -SageLiScript: ; 0x1849a6 +SageLiScript: faceplayer loadfont checkevent EVENT_GOT_HM05_FLASH @@ -75,145 +71,82 @@ SageLiScript: ; 0x1849a6 loadfont writetext UnknownText_0x184cc2 keeptextopen - verbosegiveitem HM_05, 1 + verbosegiveitem HM_FLASH, 1 setevent EVENT_GOT_HM05_FLASH setevent EVENT_BEAT_SAGE_LI writetext UnknownText_0x184d13 closetext loadmovesprites end -; 0x1849d1 -UnknownScript_0x1849d1: ; 0x1849d1 +UnknownScript_0x1849d1: writetext UnknownText_0x184d88 closetext loadmovesprites end -; 0x1849d7 -TrainerSageJin: ; 0x1849d7 - ; bit/flag number - dw $413 +TrainerSageJin: + trainer EVENT_BEAT_SAGE_JIN, SAGE, JIN, SageJinSeenText, SageJinBeatenText, $0000, SageJinScript - ; trainer group && trainer id - db SAGE, JIN - - ; text when seen - dw SageJinSeenText - - ; text when trainer beaten - dw SageJinBeatenText - - ; script when lost - dw $0000 - - ; script when talk again - dw SageJinScript -; 0x1849e3 - -SageJinScript: ; 0x1849e3 +SageJinScript: talkaftercancel loadfont writetext UnknownText_0x184dfa closetext loadmovesprites end -; 0x1849eb - -TrainerSageTroy: ; 0x1849eb - ; bit/flag number - dw $414 - - ; trainer group && trainer id - db SAGE, TROY - - ; text when seen - dw SageTroySeenText - ; text when trainer beaten - dw SageTroyBeatenText +TrainerSageTroy: + trainer EVENT_BEAT_SAGE_TROY, SAGE, TROY, SageTroySeenText, SageTroyBeatenText, $0000, SageTroyScript - ; script when lost - dw $0000 - - ; script when talk again - dw SageTroyScript -; 0x1849f7 - -SageTroyScript: ; 0x1849f7 +SageTroyScript: talkaftercancel loadfont writetext UnknownText_0x184ea4 closetext loadmovesprites end -; 0x1849ff - -TrainerSageNeal: ; 0x1849ff - ; bit/flag number - dw $418 - - ; trainer group && trainer id - db SAGE, NEAL - - ; text when seen - dw SageNealSeenText - - ; text when trainer beaten - dw SageNealBeatenText - - ; script when lost - dw $0000 - ; script when talk again - dw SageNealScript -; 0x184a0b +TrainerSageNeal: + trainer EVENT_BEAT_SAGE_NEAL, SAGE, NEAL, SageNealSeenText, SageNealBeatenText, $0000, SageNealScript -SageNealScript: ; 0x184a0b +SageNealScript: talkaftercancel loadfont writetext UnknownText_0x184f12 closetext loadmovesprites end -; 0x184a13 -MapSproutTower3FSignpost3Script: ; 0x184a13 +MapSproutTower3FSignpost3Script: jumptext UnknownText_0x184f37 -; 0x184a16 -MapSproutTower3FSignpost5Script: ; 0x184a16 +MapSproutTower3FSignpost5Script: jumptext UnknownText_0x184f61 -; 0x184a19 -ItemFragment_0x184a19: ; 0x184a19 +ItemFragment_0x184a19: db POTION, 1 -; 0x184a1b -ItemFragment_0x184a1b: ; 0x184a1b +ItemFragment_0x184a1b: db ESCAPE_ROPE, 1 -; 0x184a1d -MovementData_0x184a1d: ; 0x184a1d +MovementData_0x184a1d: step_up step_up step_up step_up step_end -; 0x184a22 -MovementData_0x184a22: ; 0x184a22 +MovementData_0x184a22: step_up step_end -; 0x184a24 -MovementData_0x184a24: ; 0x184a24 +MovementData_0x184a24: step_right step_down step_end -; 0x184a27 -UnknownText_0x184a27: ; 0x184a27 +UnknownText_0x184a27: text "ELDER: You are in-" line "deed skilled as a" cont "trainer." @@ -233,9 +166,8 @@ UnknownText_0x184a27: ; 0x184a27 para "#MON are not" line "tools of war…" done -; 0x184aec -UnknownText_0x184aec: ; 0x184aec +UnknownText_0x184aec: text "…" line "…Humph!" @@ -260,15 +192,13 @@ UnknownText_0x184aec: ; 0x184aec line "care less about" cont "weak #MON." done -; 0x184bc8 -UnknownText_0x184bc8: ; 0x184bc8 +UnknownText_0x184bc8: text "<RIVAL> used an" line "ESCAPE ROPE!" done -; 0x184be0 -SageLiSeenText: ; 0x184be0 +SageLiSeenText: text "So good of you to" line "come here!" @@ -290,14 +220,12 @@ SageLiSeenText: ; 0x184be0 para "your #MON and" line "you!" done -; 0x184cb2 -SageLiBeatenText: ; 0x184cb2 +SageLiBeatenText: text "Ah, excellent!" done -; 0x184cc2 -UnknownText_0x184cc2: ; 0x184cc2 +UnknownText_0x184cc2: text "You and your #-" line "MON should have" @@ -307,9 +235,8 @@ UnknownText_0x184cc2: ; 0x184cc2 para "Take this FLASH" line "HM." done -; 0x184d13 -UnknownText_0x184d13: ; 0x184d13 +UnknownText_0x184d13: text "FLASH illuminates" line "even the darkest" cont "of all places." @@ -320,29 +247,25 @@ UnknownText_0x184d13: ; 0x184d13 para "need the BADGE" line "from VIOLET's GYM." done -; 0x184d88 -UnknownText_0x184d88: ; 0x184d88 +UnknownText_0x184d88: text "I hope you learn" line "and grow from your" cont "journey." done -; 0x184db6 -SageJinSeenText: ; 0x184db6 +SageJinSeenText: text "I train to find" line "enlightenment in" cont "#MON!" done -; 0x184dde -SageJinBeatenText: ; 0x184dde +SageJinBeatenText: text "My training is" line "incomplete…" done -; 0x184dfa -UnknownText_0x184dfa: ; 0x184dfa +UnknownText_0x184dfa: text "As #MON grow" line "stronger, so does" cont "the trainer." @@ -353,89 +276,79 @@ UnknownText_0x184dfa: ; 0x184dfa para "stronger, so do" line "the #MON." done -; 0x184e60 -SageTroySeenText: ; 0x184e60 +SageTroySeenText: text "Let me see how" line "much you trust" cont "your #MON." done -; 0x184e8a -SageTroyBeatenText: ; 0x184e8a +SageTroyBeatenText: text "Yes, your trust is" line "real!" done -; 0x184ea4 -UnknownText_0x184ea4: ; 0x184ea4 +UnknownText_0x184ea4: text "It is not far to" line "the ELDER." done -; 0x184ec1 -SageNealSeenText: ; 0x184ec1 +SageNealSeenText: text "The ELDER's HM" line "lights even pitch-" cont "black darkness." done -; 0x184ef3 -SageNealBeatenText: ; 0x184ef3 +SageNealBeatenText: text "It is my head that" line "is bright!" done -; 0x184f12 -UnknownText_0x184f12: ; 0x184f12 +UnknownText_0x184f12: text "Let there be light" line "on your journey." done -; 0x184f37 -UnknownText_0x184f37: ; 0x184f37 +UnknownText_0x184f37: text "It's a powerful" line "painting of a" cont "BELLSPROUT." done -; 0x184f61 -UnknownText_0x184f61: ; 0x184f61 +UnknownText_0x184f61: text "A #MON statue…" para "It looks very" line "distinguished." done -; 0x184f8e -SproutTower3F_MapEventHeader: ; 0x184f8e +SproutTower3F_MapEventHeader: ; filler db 0, 0 - ; warps +.Warps: db 1 warp_def $e, $a, 4, GROUP_SPROUT_TOWER_2F, MAP_SPROUT_TOWER_2F - ; xy triggers +.XYTriggers: db 1 xy_trigger 0, $9, $b, $0, UnknownScript_0x184947, $0, $0 - ; signposts +.Signposts: db 6 - signpost 1, 8, $0, MapSproutTower3FSignpost5Script - signpost 1, 11, $0, MapSproutTower3FSignpost5Script - signpost 0, 9, $0, MapSproutTower3FSignpost3Script - signpost 0, 10, $0, MapSproutTower3FSignpost3Script - signpost 15, 5, $0, MapSproutTower3FSignpost5Script - signpost 15, 14, $0, MapSproutTower3FSignpost5Script - - ; people-events + signpost 1, 8, SIGNPOST_READ, MapSproutTower3FSignpost5Script + signpost 1, 11, SIGNPOST_READ, MapSproutTower3FSignpost5Script + signpost 0, 9, SIGNPOST_READ, MapSproutTower3FSignpost3Script + signpost 0, 10, SIGNPOST_READ, MapSproutTower3FSignpost3Script + signpost 15, 5, SIGNPOST_READ, MapSproutTower3FSignpost5Script + signpost 15, 14, SIGNPOST_READ, MapSproutTower3FSignpost5Script + +.PersonEvents: db 7 - person_event SPRITE_SAGE, 17, 12, $9, $0, 255, 255, $92, 3, TrainerSageJin, $ffff - person_event SPRITE_SAGE, 12, 12, $6, $0, 255, 255, $92, 2, TrainerSageTroy, $ffff - person_event SPRITE_SAGE, 6, 14, $6, $0, 255, 255, $90, 0, SageLiScript, $ffff - person_event SPRITE_SAGE, 15, 15, $8, $0, 255, 255, $92, 3, TrainerSageNeal, $ffff - person_event SPRITE_POKE_BALL, 18, 10, $1, $0, 255, 255, $1, 0, ItemFragment_0x184a19, $0649 - person_event SPRITE_POKE_BALL, 5, 18, $1, $0, 255, 255, $1, 0, ItemFragment_0x184a1b, $064a - person_event SPRITE_SILVER, 8, 14, $7, $0, 255, 255, $0, 0, ObjectEvent, EVENT_RIVAL_SPROUT_TOWER -; 0x18501a + person_event SPRITE_SAGE, 17, 12, OW_LEFT | $1, $0, -1, -1, (PAL_OW_BLUE << 4) | $82, 3, TrainerSageJin, -1 + person_event SPRITE_SAGE, 12, 12, OW_UP | $2, $0, -1, -1, (PAL_OW_BLUE << 4) | $82, 2, TrainerSageTroy, -1 + person_event SPRITE_SAGE, 6, 14, OW_UP | $2, $0, -1, -1, (PAL_OW_BLUE << 4) | $80, 0, SageLiScript, -1 + person_event SPRITE_SAGE, 15, 15, OW_LEFT | $0, $0, -1, -1, (PAL_OW_BLUE << 4) | $82, 3, TrainerSageNeal, -1 + person_event SPRITE_POKE_BALL, 18, 10, OW_DOWN | $1, $0, -1, -1, $1, 0, ItemFragment_0x184a19, EVENT_SPROUT_TOWER_3F_POTION + person_event SPRITE_POKE_BALL, 5, 18, OW_DOWN | $1, $0, -1, -1, $1, 0, ItemFragment_0x184a1b, EVENT_SPROUT_TOWER_3F_ESCAPE_ROPE + person_event SPRITE_SILVER, 8, 14, OW_UP | $3, $0, -1, -1, $0, 0, ObjectEvent, EVENT_RIVAL_SPROUT_TOWER |