summaryrefslogtreecommitdiff
path: root/maps/GoldenrodDeptStoreRoof.asm
diff options
context:
space:
mode:
Diffstat (limited to 'maps/GoldenrodDeptStoreRoof.asm')
-rw-r--r--maps/GoldenrodDeptStoreRoof.asm146
1 files changed, 58 insertions, 88 deletions
diff --git a/maps/GoldenrodDeptStoreRoof.asm b/maps/GoldenrodDeptStoreRoof.asm
index d786e33b3..ba80f2773 100644
--- a/maps/GoldenrodDeptStoreRoof.asm
+++ b/maps/GoldenrodDeptStoreRoof.asm
@@ -1,55 +1,48 @@
-GoldenrodDeptStoreRoof_MapScriptHeader: ; 0x56713
- ; trigger count
+GoldenrodDeptStoreRoof_MapScriptHeader:
+.MapTriggers:
db 0
- ; callback count
+.MapCallbacks:
db 2
; callbacks
- dbw 1, UnknownScript_0x5671b
+ dbw 1, .CheckSaleChangeBlock
- dbw 2, UnknownScript_0x5672b
-; 0x5671b
+ dbw 2, .CheckSaleChangeClerk
-UnknownScript_0x5671b: ; 0x5671b
- checkflag $0061
- iftrue UnknownScript_0x56722
+.CheckSaleChangeBlock:
+ checkflag ENGINE_GOLDENROD_DEPT_STORE_SALE_IS_ON
+ iftrue .ChangeBlock
return
-; 0x56722
-UnknownScript_0x56722: ; 0x56722
+.ChangeBlock:
changeblock $0, $2, $3f
changeblock $0, $4, $f
return
-; 0x5672b
-UnknownScript_0x5672b: ; 0x5672b
- checkflag $0061
- iftrue UnknownScript_0x56738
- setevent $06f0
- clearevent $06f1
+.CheckSaleChangeClerk:
+ checkflag ENGINE_GOLDENROD_DEPT_STORE_SALE_IS_ON
+ iftrue .ChangeClerk
+ setevent EVENT_GOLDENROD_SALE_OFF
+ clearevent EVENT_GOLDENROD_SALE_ON
return
-; 0x56738
-UnknownScript_0x56738: ; 0x56738
- clearevent $06f0
- setevent $06f1
+.ChangeClerk:
+ clearevent EVENT_GOLDENROD_SALE_OFF
+ setevent EVENT_GOLDENROD_SALE_ON
return
-; 0x5673f
-ClerkScript_0x5673f: ; 0x5673f
+ClerkScript_0x5673f:
loadfont
pokemart $4, $0000
loadmovesprites
end
-; 0x56746
-PokefanFScript_0x56746: ; 0x56746
+PokefanFScript_0x56746:
jumptextfaceplayer UnknownText_0x5677f
-; 0x56749
-FisherScript_0x56749: ; 0x56749
+FisherScript_0x56749:
faceplayer
loadfont
writetext UnknownText_0x567d2
@@ -57,13 +50,11 @@ FisherScript_0x56749: ; 0x56749
loadmovesprites
spriteface $4, UP
end
-; 0x56754
-TwinScript_0x56754: ; 0x56754
+TwinScript_0x56754:
jumptextfaceplayer UnknownText_0x56839
-; 0x56757
-SuperNerdScript_0x56757: ; 0x56757
+SuperNerdScript_0x56757:
loadfont
writetext UnknownText_0x56867
closetext
@@ -75,37 +66,29 @@ SuperNerdScript_0x56757: ; 0x56757
loadmovesprites
spriteface $6, RIGHT
end
-; 0x5676a
-PokefanMScript_0x5676a: ; 0x5676a
+PokefanMScript_0x5676a:
jumptextfaceplayer UnknownText_0x5688e
-; 0x5676d
-TeacherScript_0x5676d: ; 0x5676d
+TeacherScript_0x5676d:
jumptextfaceplayer UnknownText_0x56901
-; 0x56770
-BugCatcherScript_0x56770: ; 0x56770
+BugCatcherScript_0x56770:
jumptextfaceplayer UnknownText_0x56942
-; 0x56773
-MapGoldenrodDeptStoreRoofSignpost0Script: ; 0x56773
+MapGoldenrodDeptStoreRoofSignpost0Script:
jumptext UnknownText_0x569c3
-; 0x56776
-MapGoldenrodDeptStoreRoofSignpost1Script: ; 0x56776
+MapGoldenrodDeptStoreRoofSignpost1Script:
jumptext UnknownText_0x56a2b
-; 0x56779
-MapGoldenrodDeptStoreRoofSignpost2Script: ; 0x56779
+MapGoldenrodDeptStoreRoofSignpost2Script:
jumptext UnknownText_0x56aa6
-; 0x5677c
-MapGoldenrodDeptStoreRoofSignpost3Script: ; 0x5677c
+MapGoldenrodDeptStoreRoofSignpost3Script:
jumptext UnknownText_0x56b11
-; 0x5677f
-UnknownText_0x5677f: ; 0x5677f
+UnknownText_0x5677f:
text "Whew, I'm tired."
para "I sometimes come"
@@ -114,9 +97,8 @@ UnknownText_0x5677f: ; 0x5677f
para "to take a break"
line "from shopping."
done
-; 0x567d2
-UnknownText_0x567d2: ; 0x567d2
+UnknownText_0x567d2:
text "Pardon? Who says"
line "an adult can't get"
cont "into this?"
@@ -127,27 +109,23 @@ UnknownText_0x567d2: ; 0x567d2
para "collect all the"
line "dolls!"
done
-; 0x56839
-UnknownText_0x56839: ; 0x56839
+UnknownText_0x56839:
text "They have bargain"
line "sales here every"
cont "so often."
done
-; 0x56867
-UnknownText_0x56867: ; 0x56867
+UnknownText_0x56867:
text "Oh, wow!"
done
-; 0x56871
-UnknownText_0x56871: ; 0x56871
+UnknownText_0x56871:
text "Will you quit"
line "bothering me?"
done
-; 0x5688e
-UnknownText_0x5688e: ; 0x5688e
+UnknownText_0x5688e:
text "There's something"
line "I really want, but"
@@ -158,18 +136,16 @@ UnknownText_0x5688e: ; 0x5688e
line "off the BERRIES"
cont "I've collected…"
done
-; 0x56901
-UnknownText_0x56901: ; 0x56901
+UnknownText_0x56901:
text "Oh, everything is"
line "so cheap!"
para "I bought so much,"
line "my PACK's crammed!"
done
-; 0x56942
-UnknownText_0x56942: ; 0x56942
+UnknownText_0x56942:
text "My #MON always"
line "get paralyzed or"
@@ -182,9 +158,8 @@ UnknownText_0x56942: ; 0x56942
para "I wonder if"
line "there's any left?"
done
-; 0x569c3
-UnknownText_0x569c3: ; 0x569c3
+UnknownText_0x569c3:
text "These binoculars"
line "let me see far"
@@ -194,9 +169,8 @@ UnknownText_0x569c3: ; 0x569c3
para "Is it the one with"
line "the green roof?"
done
-; 0x56a2b
-UnknownText_0x56a2b: ; 0x56a2b
+UnknownText_0x56a2b:
text "Hey! Some trainers"
line "are battling on"
cont "the road!"
@@ -208,9 +182,8 @@ UnknownText_0x56a2b: ; 0x56a2b
line "like battling"
cont "right now!"
done
-; 0x56aa6
-UnknownText_0x56aa6: ; 0x56aa6
+UnknownText_0x56aa6:
text "A FISHER caught a"
line "lot of MAGIKARP…"
@@ -220,9 +193,8 @@ UnknownText_0x56aa6: ; 0x56aa6
para "Look at the water"
line "going everywhere!"
done
-; 0x56b11
-UnknownText_0x56b11: ; 0x56b11
+UnknownText_0x56b11:
text "A vending machine"
line "for #MON dolls?"
@@ -232,34 +204,32 @@ UnknownText_0x56b11: ; 0x56b11
para "But it's almost"
line "empty…"
done
-; 0x56b6d
-GoldenrodDeptStoreRoof_MapEventHeader: ; 0x56b6d
+GoldenrodDeptStoreRoof_MapEventHeader:
; filler
db 0, 0
- ; warps
+.Warps:
db 1
warp_def $1, $d, 3, GROUP_GOLDENROD_DEPT_STORE_6F, MAP_GOLDENROD_DEPT_STORE_6F
- ; xy triggers
+.XYTriggers:
db 0
- ; signposts
+.Signposts:
db 4
- signpost 3, 15, $3, MapGoldenrodDeptStoreRoofSignpost0Script
- signpost 5, 15, $3, MapGoldenrodDeptStoreRoofSignpost1Script
- signpost 6, 15, $3, MapGoldenrodDeptStoreRoofSignpost2Script
- signpost 0, 3, $1, MapGoldenrodDeptStoreRoofSignpost3Script
+ signpost 3, 15, SIGNPOST_RIGHT, MapGoldenrodDeptStoreRoofSignpost0Script
+ signpost 5, 15, SIGNPOST_RIGHT, MapGoldenrodDeptStoreRoofSignpost1Script
+ signpost 6, 15, SIGNPOST_RIGHT, MapGoldenrodDeptStoreRoofSignpost2Script
+ signpost 0, 3, SIGNPOST_UP, MapGoldenrodDeptStoreRoofSignpost3Script
- ; people-events
+.PersonEvents:
db 8
- person_event SPRITE_CLERK, 8, 5, $9, $0, 255, 255, $0, 0, ClerkScript_0x5673f, $06f0
- person_event SPRITE_POKEFAN_F, 7, 14, $5, $1, 255, 255, $80, 0, PokefanFScript_0x56746, $ffff
- person_event SPRITE_FISHER, 5, 6, $7, $0, 255, 255, $90, 0, FisherScript_0x56749, $ffff
- person_event SPRITE_TWIN, 8, 7, $2, $11, 255, 255, $a0, 0, TwinScript_0x56754, $06f1
- person_event SPRITE_SUPER_NERD, 10, 18, $9, $0, 255, 255, $a0, 0, SuperNerdScript_0x56757, $06f1
- person_event SPRITE_POKEFAN_M, 4, 11, $5, $1, 255, 255, $0, 0, PokefanMScript_0x5676a, $06f0
- person_event SPRITE_TEACHER, 7, 9, $2, $11, 255, 255, $a0, 0, TeacherScript_0x5676d, $06f0
- person_event SPRITE_BUG_CATCHER, 10, 5, $7, $0, 255, 255, $80, 0, BugCatcherScript_0x56770, $06f0
-; 0x56bf4
+ person_event SPRITE_CLERK, 8, 5, OW_LEFT | $1, $0, -1, -1, $0, 0, ClerkScript_0x5673f, EVENT_GOLDENROD_SALE_OFF
+ person_event SPRITE_POKEFAN_F, 7, 14, OW_UP | $1, $1, -1, -1, (PAL_OW_RED << 4) | $80, 0, PokefanFScript_0x56746, -1
+ person_event SPRITE_FISHER, 5, 6, OW_UP | $3, $0, -1, -1, (PAL_OW_BLUE << 4) | $80, 0, FisherScript_0x56749, -1
+ person_event SPRITE_TWIN, 8, 7, OW_DOWN | $2, $11, -1, -1, (PAL_OW_GREEN << 4) | $80, 0, TwinScript_0x56754, EVENT_GOLDENROD_SALE_ON
+ person_event SPRITE_SUPER_NERD, 10, 18, OW_LEFT | $1, $0, -1, -1, (PAL_OW_GREEN << 4) | $80, 0, SuperNerdScript_0x56757, EVENT_GOLDENROD_SALE_ON
+ person_event SPRITE_POKEFAN_M, 4, 11, OW_UP | $1, $1, -1, -1, $0, 0, PokefanMScript_0x5676a, EVENT_GOLDENROD_SALE_OFF
+ person_event SPRITE_TEACHER, 7, 9, OW_DOWN | $2, $11, -1, -1, (PAL_OW_GREEN << 4) | $80, 0, TeacherScript_0x5676d, EVENT_GOLDENROD_SALE_OFF
+ person_event SPRITE_BUG_CATCHER, 10, 5, OW_UP | $3, $0, -1, -1, (PAL_OW_RED << 4) | $80, 0, BugCatcherScript_0x56770, EVENT_GOLDENROD_SALE_OFF