ref: efe3462f9af56ce23a1e9c3badd90799204d0725
dir: /maps/Route32.asm/
const_value set 2 const ROUTE32_FISHER1 const ROUTE32_FISHER2 const ROUTE32_FISHER3 const ROUTE32_YOUNGSTER1 const ROUTE32_YOUNGSTER2 const ROUTE32_YOUNGSTER3 const ROUTE32_LASS1 const ROUTE32_COOLTRAINER_M const ROUTE32_YOUNGSTER4 const ROUTE32_FISHER4 const ROUTE32_POKE_BALL1 const ROUTE32_FISHER5 const ROUTE32_LASS2 const ROUTE32_POKE_BALL2 Route32_MapScriptHeader: .MapTriggers: db 3 ; triggers dw UnknownScript_0x190460, 0 dw UnknownScript_0x190461, 0 dw UnknownScript_0x190462, 0 .MapCallbacks: db 1 ; callbacks dbw 2, FriedaCallback UnknownScript_0x190460: end UnknownScript_0x190461: end UnknownScript_0x190462: end FriedaCallback: checkcode VAR_WEEKDAY if_equal FRIDAY, .FriedaAppears disappear ROUTE32_LASS2 return .FriedaAppears appear ROUTE32_LASS2 return CooltrainerMScript_0x19046f: faceplayer UnknownScript_0x190470: opentext checkevent EVENT_GOT_MIRACLE_SEED_IN_ROUTE_32 iftrue UnknownScript_0x1904a5 checkflag ENGINE_ZEPHYRBADGE iffalse UnknownScript_0x19049f checkevent EVENT_GOT_TOGEPI_EGG_FROM_ELMS_AIDE iftrue UnknownScript_0x19048f writetext UnknownText_0x1907ab waitbutton closetext end UnknownScript_0x190489: writetext UnknownText_0x190820 waitbutton closetext end UnknownScript_0x19048f: writetext UnknownText_0x190925 buttonsound verbosegiveitem MIRACLE_SEED iffalse UnknownScript_0x1904a9 setevent EVENT_GOT_MIRACLE_SEED_IN_ROUTE_32 jump UnknownScript_0x1904a5 UnknownScript_0x19049f: writetext UnknownText_0x1908b0 waitbutton closetext end UnknownScript_0x1904a5: writetext UnknownText_0x190a15 waitbutton UnknownScript_0x1904a9: closetext end UnknownScript_0x1904ab: spriteface ROUTE32_COOLTRAINER_M, LEFT spriteface PLAYER, RIGHT opentext writetext UnknownText_0x190790 waitbutton closetext follow PLAYER, ROUTE32_COOLTRAINER_M applymovement PLAYER, MovementData_0x190789 stopfollow spriteface PLAYER, DOWN scall UnknownScript_0x190470 applymovement ROUTE32_COOLTRAINER_M, MovementData_0x19078c applymovement ROUTE32_COOLTRAINER_M, MovementData_0x19078e end FisherScript_0x1904ce: faceplayer opentext checkevent EVENT_GOT_TM05_ROAR iftrue UnknownScript_0x1904e3 writetext UnknownText_0x191133 buttonsound verbosegiveitem TM_ROAR iffalse UnknownScript_0x1904e7 setevent EVENT_GOT_TM05_ROAR UnknownScript_0x1904e3: writetext UnknownText_0x19118c waitbutton UnknownScript_0x1904e7: closetext end UnknownScript_0x1904e9: spriteface ROUTE32_FISHER4, DOWN spriteface PLAYER, UP jump UnknownScript_0x1904f3 FisherScript_0x1904f2: faceplayer UnknownScript_0x1904f3: dotrigger $2 opentext writetext UnknownText_0x190a59 yesorno iffalse UnknownScript_0x190503 writetext UnknownText_0x190acf waitbutton closetext end UnknownScript_0x190503: writetext UnknownText_0x190afc waitbutton closetext end TrainerCamperRoland: trainer EVENT_BEAT_CAMPER_ROLAND, CAMPER, ROLAND, CamperRolandSeenText, CamperRolandBeatenText, 0, CamperRolandScript CamperRolandScript: end_if_just_battled opentext writetext UnknownText_0x190faa waitbutton closetext end TrainerFisherJustin: trainer EVENT_BEAT_FISHER_JUSTIN, FISHER, JUSTIN, FisherJustinSeenText, FisherJustinBeatenText, 0, FisherJustinScript FisherJustinScript: end_if_just_battled opentext writetext UnknownText_0x190b4e waitbutton closetext end TrainerFisherRalph1: trainer EVENT_BEAT_FISHER_RALPH, FISHER, RALPH1, FisherRalph1SeenText, FisherRalph1BeatenText, 0, FisherRalph1Script FisherRalph1Script: writecode VAR_CALLERID, PHONE_FISHER_RALPH end_if_just_battled opentext checkflag ENGINE_RALPH iftrue UnknownScript_0x19057d checkflag ENGINE_SPECIAL_WILDDATA iftrue UnknownScript_0x1905f1 checkcellnum PHONE_FISHER_RALPH iftrue UnknownScript_0x190603 checkevent EVENT_RALPH_ASKED_FOR_PHONE_NUMBER iftrue UnknownScript_0x190566 writetext UnknownText_0x190bf8 buttonsound setevent EVENT_RALPH_ASKED_FOR_PHONE_NUMBER scall UnknownScript_0x1905f7 jump UnknownScript_0x190569 UnknownScript_0x190566: scall UnknownScript_0x1905fb UnknownScript_0x190569: askforphonenumber PHONE_FISHER_RALPH if_equal $1, UnknownScript_0x19060b if_equal $2, UnknownScript_0x190607 trainertotext FISHER, RALPH1, $0 scall UnknownScript_0x1905ff jump UnknownScript_0x190603 UnknownScript_0x19057d: scall UnknownScript_0x19060f winlosstext FisherRalph1BeatenText, 0 copybytetovar wRalphFightCount if_equal 4, .Fight4 if_equal 3, .Fight3 if_equal 2, .Fight2 if_equal 1, .Fight1 if_equal 0, .LoadFight0 .Fight4 checkevent EVENT_RESTORED_POWER_TO_KANTO iftrue .LoadFight4 .Fight3 checkevent EVENT_BEAT_ELITE_FOUR iftrue .LoadFight3 .Fight2 checkflag ENGINE_FLYPOINT_LAKE_OF_RAGE iftrue .LoadFight2 .Fight1 checkflag ENGINE_FLYPOINT_ECRUTEAK iftrue .LoadFight1 .LoadFight0 loadtrainer FISHER, RALPH1 startbattle returnafterbattle loadvar wRalphFightCount, 1 clearflag ENGINE_RALPH end .LoadFight1 loadtrainer FISHER, RALPH2 startbattle returnafterbattle loadvar wRalphFightCount, 2 clearflag ENGINE_RALPH end .LoadFight2 loadtrainer FISHER, RALPH3 startbattle returnafterbattle loadvar wRalphFightCount, 3 clearflag ENGINE_RALPH end .LoadFight3 loadtrainer FISHER, RALPH4 startbattle returnafterbattle loadvar wRalphFightCount, 4 clearflag ENGINE_RALPH end .LoadFight4 loadtrainer FISHER, RALPH5 startbattle returnafterbattle clearflag ENGINE_RALPH end UnknownScript_0x1905f1: writetext UnknownText_0x190c37 waitbutton closetext end UnknownScript_0x1905f7: jumpstd asknumber1m end UnknownScript_0x1905fb: jumpstd asknumber2m end UnknownScript_0x1905ff: jumpstd registerednumberm end UnknownScript_0x190603: jumpstd numberacceptedm end UnknownScript_0x190607: jumpstd numberdeclinedm end UnknownScript_0x19060b: jumpstd phonefullm end UnknownScript_0x19060f: jumpstd rematchm end TrainerFisherHenry: trainer EVENT_BEAT_FISHER_HENRY, FISHER, HENRY, FisherHenrySeenText, FisherHenryBeatenText, 0, FisherHenryScript FisherHenryScript: end_if_just_battled opentext writetext UnknownText_0x190df2 waitbutton closetext end TrainerPicnickerLiz1: trainer EVENT_BEAT_PICNICKER_LIZ, PICNICKER, LIZ1, PicnickerLiz1SeenText, PicnickerLiz1BeatenText, 0, PicnickerLiz1Script PicnickerLiz1Script: writecode VAR_CALLERID, PHONE_PICNICKER_LIZ end_if_just_battled opentext checkflag ENGINE_LIZ iftrue UnknownScript_0x19066d checkcellnum PHONE_PICNICKER_LIZ iftrue UnknownScript_0x1906ed checkevent EVENT_LIZ_ASKED_FOR_PHONE_NUMBER iftrue UnknownScript_0x190656 writetext UnknownText_0x191060 buttonsound setevent EVENT_LIZ_ASKED_FOR_PHONE_NUMBER scall UnknownScript_0x1906e1 jump UnknownScript_0x190659 UnknownScript_0x190656: scall UnknownScript_0x1906e5 UnknownScript_0x190659: askforphonenumber PHONE_PICNICKER_LIZ if_equal $1, UnknownScript_0x1906f5 if_equal $2, UnknownScript_0x1906f1 trainertotext PICNICKER, LIZ1, $0 scall UnknownScript_0x1906e9 jump UnknownScript_0x1906ed UnknownScript_0x19066d: scall UnknownScript_0x1906f9 winlosstext PicnickerLiz1BeatenText, 0 copybytetovar wLizFightCount if_equal 4, .Fight4 if_equal 3, .Fight3 if_equal 2, .Fight2 if_equal 1, .Fight1 if_equal 0, .LoadFight0 .Fight4 checkevent EVENT_BEAT_ELITE_FOUR iftrue .LoadFight4 .Fight3 checkevent EVENT_CLEARED_RADIO_TOWER iftrue .LoadFight3 .Fight2 checkevent EVENT_CLEARED_ROCKET_HIDEOUT iftrue .LoadFight2 .Fight1 checkflag ENGINE_FLYPOINT_ECRUTEAK iftrue .LoadFight1 .LoadFight0 loadtrainer PICNICKER, LIZ1 startbattle returnafterbattle loadvar wLizFightCount, 1 clearflag ENGINE_LIZ end .LoadFight1 loadtrainer PICNICKER, LIZ2 startbattle returnafterbattle loadvar wLizFightCount, 2 clearflag ENGINE_LIZ end .LoadFight2 loadtrainer PICNICKER, LIZ3 startbattle returnafterbattle loadvar wLizFightCount, 3 clearflag ENGINE_LIZ end .LoadFight3 loadtrainer PICNICKER, LIZ4 startbattle returnafterbattle loadvar wLizFightCount, 4 clearflag ENGINE_LIZ end .LoadFight4 loadtrainer PICNICKER, LIZ5 startbattle returnafterbattle clearflag ENGINE_LIZ end UnknownScript_0x1906e1: jumpstd asknumber1f end UnknownScript_0x1906e5: jumpstd asknumber2f end UnknownScript_0x1906e9: jumpstd registerednumberf end UnknownScript_0x1906ed: jumpstd numberacceptedf end UnknownScript_0x1906f1: jumpstd numberdeclinedf end UnknownScript_0x1906f5: jumpstd phonefullf end UnknownScript_0x1906f9: jumpstd rematchf end TrainerYoungsterAlbert: trainer EVENT_BEAT_YOUNGSTER_ALBERT, YOUNGSTER, ALBERT, YoungsterAlbertSeenText, YoungsterAlbertBeatenText, 0, YoungsterAlbertScript YoungsterAlbertScript: end_if_just_battled opentext writetext UnknownText_0x190e82 waitbutton closetext end TrainerYoungsterGordon: trainer EVENT_BEAT_YOUNGSTER_GORDON, YOUNGSTER, GORDON, YoungsterGordonSeenText, YoungsterGordonBeatenText, 0, YoungsterGordonScript YoungsterGordonScript: end_if_just_battled opentext writetext UnknownText_0x190f49 waitbutton closetext end TrainerBird_keeperPeter: trainer EVENT_BEAT_BIRD_KEEPER_PETER, BIRD_KEEPER, PETER, Bird_keeperPeterSeenText, Bird_keeperPeterBeatenText, 0, Bird_keeperPeterScript Bird_keeperPeterScript: end_if_just_battled opentext writetext UnknownText_0x1910d4 waitbutton closetext end FriedaScript: faceplayer opentext checkevent EVENT_GOT_POISON_BARB_FROM_FRIEDA iftrue FriedaFridayScript checkcode VAR_WEEKDAY if_not_equal FRIDAY, FriedaNotFridayScript checkevent EVENT_MET_FRIEDA_OF_FRIDAY iftrue .MetFrieda writetext MeetFriedaText buttonsound setevent EVENT_MET_FRIEDA_OF_FRIDAY .MetFrieda writetext FriedaGivesGiftText buttonsound verbosegiveitem POISON_BARB iffalse FriedaDoneScript setevent EVENT_GOT_POISON_BARB_FROM_FRIEDA writetext FriedaGaveGiftText waitbutton closetext end FriedaFridayScript: writetext FriedaFridayText waitbutton FriedaDoneScript: closetext end FriedaNotFridayScript: writetext FriedaNotFridayText waitbutton closetext end Route32GreatBall: itemball GREAT_BALL Route32Repel: itemball REPEL Route32Sign: jumptext Route32SignText Route32RuinsSign: jumptext Route32RuinsSignText Route32UnionCaveSign: jumptext Route32UnionCaveSignText Route32PokeCenterSign: jumpstd pokecentersign Route32HiddenGreatBall: dwb EVENT_ROUTE_32_HIDDEN_GREAT_BALL, GREAT_BALL Route32HiddenSuperPotion: dwb EVENT_ROUTE_32_HIDDEN_SUPER_POTION, SUPER_POTION MovementData_0x190789: step_up step_up step_end MovementData_0x19078c: step_down step_end MovementData_0x19078e: step_right step_end UnknownText_0x190790: text "Wait up!" line "What's the hurry?" done UnknownText_0x1907ab: text "<PLAYER>, right?" line "Some guy wearing" para "glasses was look-" line "ing for you." para "See for yourself." line "He's waiting for" para "you at the #MON" line "CENTER." done ; might not be referenced anywhere UnknownText_0x190820: text "Have you gone to" line "SPROUT TOWER?" para "If you ever visit" line "VIOLET CITY, " para "they'll expect you" line "to train there." para "That's basic for" line "trainers. Go to" cont "SPROUT TOWER!" done UnknownText_0x1908b0: text "Have you gone to" line "the #MON GYM?" para "You can test your" line "#MON and your-" cont "self there." para "It's a rite of" line "passage for all" cont "trainers!" done UnknownText_0x190925: text "You have some good" line "#MON there." para "It must be from" line "the training you" para "gave them around" line "VIOLET CITY." para "The training at" line "the GYM must have" para "been especially" line "helpful." para "As a souvenir of" line "VIOLET CITY, take" cont "this." para "It increases the" line "power of grass-" cont "type moves." done UnknownText_0x190a15: text "Your experiences" line "in VIOLET CITY" para "should be useful" line "for your journey." done UnknownText_0x190a59: text "How would you like" line "to have this" para "tasty, nutritious" line "SLOWPOKETAIL?" para "For you right now," line "just ¥1,000,000!" para "You'll want this!" done UnknownText_0x190acf: text "Tch! I thought" line "kids these days" cont "were loaded…" done UnknownText_0x190afc: text "You don't want it?" line "Then scram. Shoo!" done FisherJustinSeenText: text "Whoa!" para "You made me lose" line "that fish!" done FisherJustinBeatenText: text "Sploosh!" done UnknownText_0x190b4e: text "Calm, collected…" line "The essence of" para "fishing and #-" line "MON is the same." done FisherRalph1SeenText: text "I'm really good at" line "both fishing and" cont "#MON." para "I'm not about to" line "lose to any kid!" done FisherRalph1BeatenText: text "Tch! I tried to" line "rush things…" done UnknownText_0x190bf8: text "Fishing is a life-" line "long passion." para "#MON are life-" line "long friends!" done UnknownText_0x190c37: text "One, two, three…" line "Muahahaha, what a" para "great haul!" line "I'm done! Go ahead" para "and catch as many" line "as you can, kid!" done ; --- start a segment of possibly unused texts UnknownText_0x190c9c: text "I keep catching" line "the same #MON…" para "Maybe a battle" line "will turn things" cont "around for me." done UnknownText_0x190ceb: text "Nothing ever goes" line "right for me now…" done UnknownText_0x190d10: text "How come the guy" line "next to me catches" cont "good #MON?" done UnknownText_0x190d40: text "Heh, I'm on a roll" line "today. How about a" cont "battle, kid?" done UnknownText_0x190d73: text "Oof. I wasn't" line "lucky that time." done UnknownText_0x190d92: text "You have to have a" line "good ROD if you" para "want to catch good" line "#MON." done ; --- end a segment of possibly unused texts FisherHenrySeenText: text "My #MON?" line "Freshly caught!" done FisherHenryBeatenText: text "SPLASH?" done UnknownText_0x190df2: text "Freshly caught" line "#MON are no" para "match for properly" line "raised ones." done YoungsterAlbertSeenText: text "I haven't seen you" line "around before." para "So you think you" line "are pretty tough?" done YoungsterAlbertBeatenText: text "You're strong!" done UnknownText_0x190e82: text "I'm going to try" line "to be the best" cont "with my favorites." para "I'm not using the" line "same tough #MON" cont "as everyone else." done YoungsterGordonSeenText: text "I found some good" line "#MON in the" cont "grass!" para "I think they'll do" line "it for me!" done YoungsterGordonBeatenText: text "Darn. I thought I" line "could win." done UnknownText_0x190f49: text "The grass is full" line "of clingy things." done CamperRolandSeenText: text "That glance…" line "It's intriguing." done CamperRolandBeatenText: text "Hmmm. This is" line "disappointing." done UnknownText_0x190faa: text "If you don't want" line "to battle, just" cont "avoid eye contact." done PicnickerLiz1SeenText: text "Uh-huh. Yeah, and" line "you know…" para "Pardon? Battle?" line "I'm on the phone." para "Oh, all right. But" line "make it fast." done PicnickerLiz1BeatenText: text "Oh! I've got to" line "relieve my anger!" done UnknownText_0x191060: text "I was having a" line "nice chat too." done Bird_keeperPeterSeenText: text "That BADGE! It's" line "from VIOLET CITY!" para "You beat FALKNER?" done Bird_keeperPeterBeatenText: text "I know what my" line "weaknesses are." done UnknownText_0x1910d4: text "I should train" line "again at the GYM" cont "in VIOLET CITY." done ; possibly unused UnknownText_0x191105: text "The fishermen" line "yelled at me for" cont "bugging them…" done UnknownText_0x191133: text "WROOOOAR!" line "PEOPLE RUN WHEN I" para "ROAR! BUT YOU" line "CAME LOOKING!" para "THAT PLEASES ME!" line "NOW TAKE THIS!" done UnknownText_0x19118c: text "WROOOAR!" line "IT'S ROAR!" para "EVEN #MON RUN" line "FROM A GOOD ROAR!" done MeetFriedaText: text "FRIEDA: Yahoo!" line "It's Friday!" para "I'm FRIEDA of" line "Friday!" para "Nice to meet you!" done FriedaGivesGiftText: text "Here's a POISON" line "BARB for you!" done FriedaGaveGiftText: text "FRIEDA: Give it to" line "a #MON that has" cont "poison-type moves." para "Oh!" para "It's wicked!" para "You'll be shocked" line "how good it makes" cont "poison moves!" done FriedaFridayText: text "FRIEDA: Hiya! What" line "day do you like?" para "I love Friday. No" line "doubt about it!" para "Don't you think" line "it's great too?" done FriedaNotFridayText: text "FRIEDA: Isn't it" line "Friday today?" para "It's so boring" line "when it's not!" done Route32SignText: text "ROUTE 32" para "VIOLET CITY -" line "AZALEA TOWN" done Route32RuinsSignText: text "RUINS OF ALPH" line "EAST ENTRANCE" done Route32UnionCaveSignText: text "UNION CAVE" line "AHEAD" done Route32_MapEventHeader: ; filler db 0, 0 .Warps: db 4 warp_def $49, $b, 1, ROUTE_32_POKECENTER_1F warp_def $2, $4, 3, ROUTE_32_RUINS_OF_ALPH_GATE warp_def $3, $4, 4, ROUTE_32_RUINS_OF_ALPH_GATE warp_def $4f, $6, 4, UNION_CAVE_1F .XYTriggers: db 2 xy_trigger 0, $8, $12, $0, UnknownScript_0x1904ab, $0, $0 xy_trigger 1, $47, $7, $0, UnknownScript_0x1904e9, $0, $0 .Signposts: db 6 signpost 5, 13, SIGNPOST_READ, Route32Sign signpost 1, 9, SIGNPOST_READ, Route32RuinsSign signpost 84, 10, SIGNPOST_READ, Route32UnionCaveSign signpost 73, 12, SIGNPOST_READ, Route32PokeCenterSign signpost 67, 12, SIGNPOST_ITEM, Route32HiddenGreatBall signpost 40, 11, SIGNPOST_ITEM, Route32HiddenSuperPotion .PersonEvents: db 14 person_event SPRITE_FISHER, 49, 8, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, (1 << 3) | PAL_OW_GREEN, PERSONTYPE_TRAINER, 1, TrainerFisherJustin, -1 person_event SPRITE_FISHER, 56, 12, SPRITEMOVEDATA_STANDING_UP, 0, 0, -1, -1, (1 << 3) | PAL_OW_GREEN, PERSONTYPE_TRAINER, 3, TrainerFisherRalph1, -1 person_event SPRITE_FISHER, 48, 6, SPRITEMOVEDATA_STANDING_LEFT, 0, 0, -1, -1, (1 << 3) | PAL_OW_GREEN, PERSONTYPE_TRAINER, 1, TrainerFisherHenry, -1 person_event SPRITE_YOUNGSTER, 22, 12, SPRITEMOVEDATA_STANDING_RIGHT, 0, 0, -1, -1, (1 << 3) | PAL_OW_BLUE, PERSONTYPE_TRAINER, 3, TrainerYoungsterAlbert, -1 person_event SPRITE_YOUNGSTER, 63, 4, SPRITEMOVEDATA_SPINRANDOM_FAST, 0, 0, -1, -1, (1 << 3) | PAL_OW_BLUE, PERSONTYPE_TRAINER, 3, TrainerYoungsterGordon, -1 person_event SPRITE_YOUNGSTER, 45, 3, SPRITEMOVEDATA_STANDING_UP, 0, 0, -1, -1, (1 << 3) | PAL_OW_GREEN, PERSONTYPE_TRAINER, 3, TrainerCamperRoland, -1 person_event SPRITE_LASS, 30, 10, SPRITEMOVEDATA_STANDING_LEFT, 0, 0, -1, -1, (1 << 3) | PAL_OW_GREEN, PERSONTYPE_TRAINER, 1, TrainerPicnickerLiz1, -1 person_event SPRITE_COOLTRAINER_M, 8, 19, SPRITEMOVEDATA_STANDING_LEFT, 0, 0, -1, -1, 0, PERSONTYPE_SCRIPT, 0, CooltrainerMScript_0x19046f, -1 person_event SPRITE_YOUNGSTER, 82, 11, SPRITEMOVEDATA_STANDING_UP, 0, 0, -1, -1, (1 << 3) | PAL_OW_BLUE, PERSONTYPE_TRAINER, 3, TrainerBird_keeperPeter, -1 person_event SPRITE_FISHER, 70, 7, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, 0, PERSONTYPE_SCRIPT, 0, FisherScript_0x1904f2, EVENT_SLOWPOKE_WELL_ROCKETS person_event SPRITE_POKE_BALL, 53, 6, SPRITEMOVEDATA_ITEM_TREE, 0, 0, -1, -1, 0, PERSONTYPE_ITEMBALL, 0, Route32GreatBall, EVENT_ROUTE_32_GREAT_BALL person_event SPRITE_FISHER, 13, 15, SPRITEMOVEDATA_STANDING_RIGHT, 0, 0, -1, -1, 0, PERSONTYPE_SCRIPT, 0, FisherScript_0x1904ce, -1 person_event SPRITE_LASS, 67, 12, SPRITEMOVEDATA_STANDING_LEFT, 0, 0, -1, -1, 0, PERSONTYPE_SCRIPT, 0, FriedaScript, EVENT_ROUTE_32_FRIEDA_OF_FRIDAY person_event SPRITE_POKE_BALL, 30, 3, SPRITEMOVEDATA_ITEM_TREE, 0, 0, -1, -1, 0, PERSONTYPE_ITEMBALL, 0, Route32Repel, EVENT_ROUTE_32_REPEL