diff options
Diffstat (limited to 'maps/CeladonGameCorner.asm')
-rw-r--r-- | maps/CeladonGameCorner.asm | 230 |
1 files changed, 97 insertions, 133 deletions
diff --git a/maps/CeladonGameCorner.asm b/maps/CeladonGameCorner.asm index be4d764d7..c117a60e7 100644 --- a/maps/CeladonGameCorner.asm +++ b/maps/CeladonGameCorner.asm @@ -1,20 +1,17 @@ -CeladonGameCorner_MapScriptHeader: ; 0x7211b - ; trigger count +CeladonGameCorner_MapScriptHeader: +.MapTriggers: db 0 - ; callback count +.MapCallbacks: db 0 -; 0x7211d -ClerkScript_0x7211d: ; 0x7211d - jumpstd $0032 -; 0x72120 +ClerkScript_0x7211d: + jumpstd gamecornercoinvendor -ReceptionistScript_0x72120: ; 0x72120 +ReceptionistScript_0x72120: jumptextfaceplayer UnknownText_0x721d0 -; 0x72123 -PokefanMScript_0x72123: ; 0x72123 +PokefanMScript_0x72123: faceplayer loadfont writetext UnknownText_0x72215 @@ -22,9 +19,8 @@ PokefanMScript_0x72123: ; 0x72123 loadmovesprites spriteface $4, LEFT end -; 0x7212e -TeacherScript_0x7212e: ; 0x7212e +TeacherScript_0x7212e: faceplayer loadfont writetext UnknownText_0x72242 @@ -32,9 +28,8 @@ TeacherScript_0x7212e: ; 0x7212e loadmovesprites spriteface $5, RIGHT end -; 0x72139 -FishingGuruScript_0x72139: ; 0x72139 +FishingGuruScript_0x72139: faceplayer loadfont writetext UnknownText_0x72295 @@ -42,9 +37,8 @@ FishingGuruScript_0x72139: ; 0x72139 loadmovesprites spriteface $6, RIGHT end -; 0x72144 -FisherScript_0x72144: ; 0x72144 +FisherScript_0x72144: faceplayer loadfont checkevent EVENT_GOT_COINS_FROM_GAMBLER_AT_CELADON @@ -59,44 +53,38 @@ FisherScript_0x72144: ; 0x72144 scall .UnknownScript_0x72172 givecoins 18 setevent EVENT_GOT_COINS_FROM_GAMBLER_AT_CELADON -.UnknownScript_0x72169 ; 0x72169 +.UnknownScript_0x72169 writetext UnknownText_0x72345 closetext loadmovesprites spriteface $fe, LEFT end -; 0x72172 -.UnknownScript_0x72172 ; 0x72172 - jumpstd $002f +.UnknownScript_0x72172 + jumpstd receiveitem end -; 0x72176 -.coinname ; 0x72176 +.coinname db "COIN@" -; 0x7217b -UnknownScript_0x7217b: ; 0x7217b +UnknownScript_0x7217b: writetext UnknownText_0x7238a closetext loadmovesprites spriteface $fe, LEFT end -; 0x72184 -UnknownScript_0x72184: ; 0x72184 +UnknownScript_0x72184: writetext UnknownText_0x723d9 closetext loadmovesprites spriteface $fe, LEFT end -; 0x7218d -CeladonGymGuyScript: ; 0x7218d +CeladonGymGuyScript: jumptextfaceplayer CeladonGymGuyText -; 0x72190 -GrampsScript_0x72190: ; 0x72190 +GrampsScript_0x72190: faceplayer loadfont writetext UnknownText_0x724ad @@ -104,62 +92,53 @@ GrampsScript_0x72190: ; 0x72190 loadmovesprites spriteface $a, LEFT end -; 0x7219b -MapCeladonGameCornerSignpost36Script: ; 0x7219b +MapCeladonGameCornerSignpost36Script: jumptext UnknownText_0x724f3 -; 0x7219e -MapCeladonGameCornerSignpost37Script: ; 0x7219e +MapCeladonGameCornerSignpost37Script: jumptext UnknownText_0x72521 -; 0x721a1 -MapCeladonGameCornerSignpost35Script: ; 0x721a1 +MapCeladonGameCornerSignpost35Script: random $6 if_equal $0, MapCeladonGameCornerSignpost16Script refreshscreen $0 writebyte $0 - special Functionc373 + special Special_SlotMachine loadmovesprites end -; 0x721b0 -MapCeladonGameCornerSignpost16Script: ; 0x721b0 +MapCeladonGameCornerSignpost16Script: refreshscreen $0 writebyte $1 - special Functionc373 + special Special_SlotMachine loadmovesprites end -; 0x721b9 -MapCeladonGameCornerSignpost11Script: ; 0x721b9 +MapCeladonGameCornerSignpost11Script: refreshscreen $0 - special Functionc380 + special Special_CardFlip loadmovesprites end -; 0x721c0 -MapCeladonGameCornerSignpost32Script: ; 0x721c0 +MapCeladonGameCornerSignpost32Script: jumptext UnknownText_0x7254f -; 0x721c3 -MapCeladonGameCornerSignpost9Script: ; 0x721c3 +MapCeladonGameCornerSignpost9Script: loadfont writetext UnknownText_0x72567 closetext - special Functionc380 + special Special_CardFlip loadmovesprites end -; 0x721cd -MovementData_0x721cd: ; 0x721cd +MovementData_0x721cd: ; Unreferenced. step_right turn_head_left step_end -; 0x721d0 -UnknownText_0x721d0: ; 0x721d0 +UnknownText_0x721d0: text "Welcome!" para "You may exchange" @@ -168,16 +147,14 @@ UnknownText_0x721d0: ; 0x721d0 para "fabulous prizes" line "next door." done -; 0x72215 -UnknownText_0x72215: ; 0x72215 +UnknownText_0x72215: text "The slot machines" line "are all state of" cont "the art." done -; 0x72242 -UnknownText_0x72242: ; 0x72242 +UnknownText_0x72242: text "It's this machine" line "I want." @@ -187,9 +164,8 @@ UnknownText_0x72242: ; 0x72242 para "should pay out" line "today." done -; 0x72295 -UnknownText_0x72295: ; 0x72295 +UnknownText_0x72295: text "I think this slot" line "machine will pay" cont "out…" @@ -197,9 +173,8 @@ UnknownText_0x72295: ; 0x72295 para "The odds vary" line "among machines." done -; 0x722dc -UnknownText_0x722dc: ; 0x722dc +UnknownText_0x722dc: text "Gahahaha!" para "The coins just" @@ -211,9 +186,8 @@ UnknownText_0x722dc: ; 0x722dc para "I'll share my luck" line "with you!" done -; 0x72345 -UnknownText_0x72345: ; 0x72345 +UnknownText_0x72345: text "Gahahaha!" para "It makes me feel" @@ -222,9 +196,8 @@ UnknownText_0x72345: ; 0x72345 para "things for other" line "people!" done -; 0x7238a -UnknownText_0x7238a: ; 0x7238a +UnknownText_0x7238a: text "Hey, you don't" line "have a COIN CASE." @@ -232,9 +205,8 @@ UnknownText_0x7238a: ; 0x7238a line "to give you any" cont "coins, kid?" done -; 0x723d9 -UnknownText_0x723d9: ; 0x723d9 +UnknownText_0x723d9: text "Hey, your COIN" line "CASE is full, kid." @@ -242,9 +214,8 @@ UnknownText_0x723d9: ; 0x723d9 line "a winning streak" cont "too." done -; 0x72425 -CeladonGymGuyText: ; 0x72425 +CeladonGymGuyText: text "Hey! CHAMP in" line "making!" @@ -258,18 +229,16 @@ CeladonGymGuyText: ; 0x72425 para "But I don't have" line "enough coins yet…" done -; 0x724ad -UnknownText_0x724ad: ; 0x724ad +UnknownText_0x724ad: text "Hmmm… The odds are" line "surely better for" para "PIKACHU's line," line "but… What to do?" done -; 0x724f3 -UnknownText_0x724f3: ; 0x724f3 +UnknownText_0x724f3: text "Hey!" para "Underneath this" @@ -277,9 +246,8 @@ UnknownText_0x724f3: ; 0x724f3 para "There's nothing!" done -; 0x72521 -UnknownText_0x72521: ; 0x72521 +UnknownText_0x72521: text "Hey!" para "Underneath this" @@ -287,15 +255,13 @@ UnknownText_0x72521: ; 0x72521 para "There's nothing!" done -; 0x7254f -UnknownText_0x7254f: ; 0x7254f +UnknownText_0x7254f: text "There's a lighter" line "here." done -; 0x72567 -UnknownText_0x72567: ; 0x72567 +UnknownText_0x72567: text "A can of soda…" para "Someone must be" @@ -303,70 +269,68 @@ UnknownText_0x72567: ; 0x72567 para "Huh? It's empty!" done -; 0x725a4 -CeladonGameCorner_MapEventHeader: ; 0x725a4 +CeladonGameCorner_MapEventHeader: ; filler db 0, 0 - ; warps +.Warps: db 2 warp_def $d, $e, 6, GROUP_CELADON_CITY, MAP_CELADON_CITY warp_def $d, $f, 6, GROUP_CELADON_CITY, MAP_CELADON_CITY - ; xy triggers +.XYTriggers: db 0 - ; signposts +.Signposts: db 38 - signpost 6, 1, $0, MapCeladonGameCornerSignpost11Script - signpost 7, 1, $0, MapCeladonGameCornerSignpost11Script - signpost 8, 1, $0, MapCeladonGameCornerSignpost11Script - signpost 9, 1, $0, MapCeladonGameCornerSignpost11Script - signpost 10, 1, $0, MapCeladonGameCornerSignpost11Script - signpost 11, 1, $4, MapCeladonGameCornerSignpost11Script - signpost 6, 6, $0, MapCeladonGameCornerSignpost11Script - signpost 7, 6, $0, MapCeladonGameCornerSignpost11Script - signpost 8, 6, $0, MapCeladonGameCornerSignpost11Script - signpost 9, 6, $0, MapCeladonGameCornerSignpost9Script - signpost 10, 6, $0, MapCeladonGameCornerSignpost11Script - signpost 11, 6, $3, MapCeladonGameCornerSignpost11Script - signpost 6, 7, $0, MapCeladonGameCornerSignpost35Script - signpost 7, 7, $0, MapCeladonGameCornerSignpost35Script - signpost 8, 7, $0, MapCeladonGameCornerSignpost35Script - signpost 9, 7, $0, MapCeladonGameCornerSignpost35Script - signpost 10, 7, $0, MapCeladonGameCornerSignpost16Script - signpost 11, 7, $4, MapCeladonGameCornerSignpost35Script - signpost 6, 12, $0, MapCeladonGameCornerSignpost35Script - signpost 7, 12, $0, MapCeladonGameCornerSignpost35Script - signpost 8, 12, $0, MapCeladonGameCornerSignpost35Script - signpost 9, 12, $0, MapCeladonGameCornerSignpost35Script - signpost 10, 12, $0, MapCeladonGameCornerSignpost35Script - signpost 11, 12, $3, MapCeladonGameCornerSignpost35Script - signpost 6, 13, $0, MapCeladonGameCornerSignpost35Script - signpost 7, 13, $0, MapCeladonGameCornerSignpost35Script - signpost 8, 13, $0, MapCeladonGameCornerSignpost35Script - signpost 9, 13, $0, MapCeladonGameCornerSignpost35Script - signpost 10, 13, $0, MapCeladonGameCornerSignpost35Script - signpost 11, 13, $4, MapCeladonGameCornerSignpost35Script - signpost 6, 18, $0, MapCeladonGameCornerSignpost35Script - signpost 7, 18, $0, MapCeladonGameCornerSignpost35Script - signpost 8, 18, $0, MapCeladonGameCornerSignpost32Script - signpost 9, 18, $0, MapCeladonGameCornerSignpost35Script - signpost 10, 18, $0, MapCeladonGameCornerSignpost35Script - signpost 11, 18, $3, MapCeladonGameCornerSignpost35Script - signpost 0, 15, $0, MapCeladonGameCornerSignpost36Script - signpost 0, 9, $0, MapCeladonGameCornerSignpost37Script - - ; people-events + signpost 6, 1, SIGNPOST_READ, MapCeladonGameCornerSignpost11Script + signpost 7, 1, SIGNPOST_READ, MapCeladonGameCornerSignpost11Script + signpost 8, 1, SIGNPOST_READ, MapCeladonGameCornerSignpost11Script + signpost 9, 1, SIGNPOST_READ, MapCeladonGameCornerSignpost11Script + signpost 10, 1, SIGNPOST_READ, MapCeladonGameCornerSignpost11Script + signpost 11, 1, SIGNPOST_LEFT, MapCeladonGameCornerSignpost11Script + signpost 6, 6, SIGNPOST_READ, MapCeladonGameCornerSignpost11Script + signpost 7, 6, SIGNPOST_READ, MapCeladonGameCornerSignpost11Script + signpost 8, 6, SIGNPOST_READ, MapCeladonGameCornerSignpost11Script + signpost 9, 6, SIGNPOST_READ, MapCeladonGameCornerSignpost9Script + signpost 10, 6, SIGNPOST_READ, MapCeladonGameCornerSignpost11Script + signpost 11, 6, SIGNPOST_RIGHT, MapCeladonGameCornerSignpost11Script + signpost 6, 7, SIGNPOST_READ, MapCeladonGameCornerSignpost35Script + signpost 7, 7, SIGNPOST_READ, MapCeladonGameCornerSignpost35Script + signpost 8, 7, SIGNPOST_READ, MapCeladonGameCornerSignpost35Script + signpost 9, 7, SIGNPOST_READ, MapCeladonGameCornerSignpost35Script + signpost 10, 7, SIGNPOST_READ, MapCeladonGameCornerSignpost16Script + signpost 11, 7, SIGNPOST_LEFT, MapCeladonGameCornerSignpost35Script + signpost 6, 12, SIGNPOST_READ, MapCeladonGameCornerSignpost35Script + signpost 7, 12, SIGNPOST_READ, MapCeladonGameCornerSignpost35Script + signpost 8, 12, SIGNPOST_READ, MapCeladonGameCornerSignpost35Script + signpost 9, 12, SIGNPOST_READ, MapCeladonGameCornerSignpost35Script + signpost 10, 12, SIGNPOST_READ, MapCeladonGameCornerSignpost35Script + signpost 11, 12, SIGNPOST_RIGHT, MapCeladonGameCornerSignpost35Script + signpost 6, 13, SIGNPOST_READ, MapCeladonGameCornerSignpost35Script + signpost 7, 13, SIGNPOST_READ, MapCeladonGameCornerSignpost35Script + signpost 8, 13, SIGNPOST_READ, MapCeladonGameCornerSignpost35Script + signpost 9, 13, SIGNPOST_READ, MapCeladonGameCornerSignpost35Script + signpost 10, 13, SIGNPOST_READ, MapCeladonGameCornerSignpost35Script + signpost 11, 13, SIGNPOST_LEFT, MapCeladonGameCornerSignpost35Script + signpost 6, 18, SIGNPOST_READ, MapCeladonGameCornerSignpost35Script + signpost 7, 18, SIGNPOST_READ, MapCeladonGameCornerSignpost35Script + signpost 8, 18, SIGNPOST_READ, MapCeladonGameCornerSignpost32Script + signpost 9, 18, SIGNPOST_READ, MapCeladonGameCornerSignpost35Script + signpost 10, 18, SIGNPOST_READ, MapCeladonGameCornerSignpost35Script + signpost 11, 18, SIGNPOST_RIGHT, MapCeladonGameCornerSignpost35Script + signpost 0, 15, SIGNPOST_READ, MapCeladonGameCornerSignpost36Script + signpost 0, 9, SIGNPOST_READ, MapCeladonGameCornerSignpost37Script + +.PersonEvents: db 9 - person_event SPRITE_CLERK, 6, 9, $6, $0, 255, 255, $a0, 0, ClerkScript_0x7211d, $ffff - person_event SPRITE_RECEPTIONIST, 6, 7, $6, $0, 255, 255, $a0, 0, ReceptionistScript_0x72120, $ffff - person_event SPRITE_POKEFAN_M, 14, 18, $8, $0, 255, 255, $80, 0, PokefanMScript_0x72123, $ffff - person_event SPRITE_TEACHER, 11, 21, $9, $0, 255, 255, $90, 0, TeacherScript_0x7212e, $ffff - person_event SPRITE_FISHING_GURU, 11, 15, $9, $0, 255, 255, $a0, 0, FishingGuruScript_0x72139, $ffff - person_event SPRITE_FISHER, 14, 12, $8, $0, 255, 2, $80, 0, FisherScript_0x72144, $ffff - person_event SPRITE_FISHER, 14, 12, $8, $0, 255, 4, $80, 0, FisherScript_0x72144, $ffff - person_event SPRITE_GYM_GUY, 7, 15, $6, $0, 255, 255, $80, 0, CeladonGymGuyScript, $ffff - person_event SPRITE_GRAMPS, 12, 6, $8, $0, 255, 255, $a0, 0, GrampsScript_0x72190, $ffff -; 0x726e7 + person_event SPRITE_CLERK, 6, 9, OW_UP | $2, $0, -1, -1, (PAL_OW_GREEN << 4) | $80, 0, ClerkScript_0x7211d, -1 + person_event SPRITE_RECEPTIONIST, 6, 7, OW_UP | $2, $0, -1, -1, (PAL_OW_GREEN << 4) | $80, 0, ReceptionistScript_0x72120, -1 + person_event SPRITE_POKEFAN_M, 14, 18, OW_LEFT | $0, $0, -1, -1, (PAL_OW_RED << 4) | $80, 0, PokefanMScript_0x72123, -1 + person_event SPRITE_TEACHER, 11, 21, OW_LEFT | $1, $0, -1, -1, (PAL_OW_BLUE << 4) | $80, 0, TeacherScript_0x7212e, -1 + person_event SPRITE_FISHING_GURU, 11, 15, OW_LEFT | $1, $0, -1, -1, (PAL_OW_GREEN << 4) | $80, 0, FishingGuruScript_0x72139, -1 + person_event SPRITE_FISHER, 14, 12, OW_LEFT | $0, $0, -1, 2, (PAL_OW_RED << 4) | $80, 0, FisherScript_0x72144, -1 + person_event SPRITE_FISHER, 14, 12, OW_LEFT | $0, $0, -1, 4, (PAL_OW_RED << 4) | $80, 0, FisherScript_0x72144, -1 + person_event SPRITE_GYM_GUY, 7, 15, OW_UP | $2, $0, -1, -1, (PAL_OW_RED << 4) | $80, 0, CeladonGymGuyScript, -1 + person_event SPRITE_GRAMPS, 12, 6, OW_LEFT | $0, $0, -1, -1, (PAL_OW_GREEN << 4) | $80, 0, GrampsScript_0x72190, -1 |