diff options
Diffstat (limited to 'data/maps/Route22')
-rw-r--r-- | data/maps/Route22/map.json | 122 | ||||
-rw-r--r-- | data/maps/Route22/scripts.inc | 261 | ||||
-rw-r--r-- | data/maps/Route22/text.inc | 201 |
3 files changed, 584 insertions, 0 deletions
diff --git a/data/maps/Route22/map.json b/data/maps/Route22/map.json new file mode 100644 index 000000000..5b6ea3621 --- /dev/null +++ b/data/maps/Route22/map.json @@ -0,0 +1,122 @@ +{ + "id": "MAP_ROUTE22", + "name": "Route22", + "layout": "LAYOUT_ROUTE22", + "music": "BGM_FRLG_ROUTE_3", + "region_map_section": "MAPSEC_ROUTE_22", + "requires_flash": false, + "weather": "WEATHER_SUNNY", + "map_type": "MAP_TYPE_3", + "unknown_18": 1, + "unknown_19": 6, + "elevator_flag": 0, + "battle_scene": "BATTLE_SCENE_0", + "connections": [ + { + "map": "MAP_ROUTE23", + "offset": 0, + "direction": "up" + }, + { + "map": "MAP_VIRIDIAN_CITY", + "offset": -10, + "direction": "right" + } + ], + "object_events": [ + { + "graphics_id": "72", + "x": 25, + "y": 4, + "elevation": 3, + "movement_type": "10", + "movement_range_x": 1, + "movement_range_y": 1, + "trainer_type": 0, + "trainer_sight_or_berry_tree_id": 0, + "script": "0x0", + "flag": "79" + } + ], + "warp_events": [ + { + "x": 8, + "y": 5, + "elevation": 0, + "dest_map": "MAP_ROUTE22_NORTH_ENTRANCE", + "dest_warp_id": 2 + }, + { + "x": 9, + "y": 5, + "elevation": 0, + "dest_map": "MAP_ROUTE22_NORTH_ENTRANCE", + "dest_warp_id": 2 + } + ], + "coord_events": [ + { + "type": "trigger", + "x": 33, + "y": 4, + "elevation": 3, + "var": "VAR_0x4054", + "var_value": 1, + "script": "Route22_EventScript_16828C" + }, + { + "type": "trigger", + "x": 33, + "y": 5, + "elevation": 3, + "var": "VAR_0x4054", + "var_value": 1, + "script": "Route22_EventScript_168298" + }, + { + "type": "trigger", + "x": 33, + "y": 6, + "elevation": 0, + "var": "VAR_0x4054", + "var_value": 1, + "script": "Route22_EventScript_1682AB" + }, + { + "type": "trigger", + "x": 33, + "y": 4, + "elevation": 3, + "var": "VAR_0x4054", + "var_value": 3, + "script": "Route22_EventScript_1683ED" + }, + { + "type": "trigger", + "x": 33, + "y": 5, + "elevation": 3, + "var": "VAR_0x4054", + "var_value": 3, + "script": "Route22_EventScript_1683F9" + }, + { + "type": "trigger", + "x": 33, + "y": 6, + "elevation": 0, + "var": "VAR_0x4054", + "var_value": 3, + "script": "Route22_EventScript_16840C" + } + ], + "bg_events": [ + { + "type": "bg_event_type_0", + "x": 7, + "y": 12, + "elevation": 0, + "script": "Route22_EventScript_1684E2" + } + ] +} diff --git a/data/maps/Route22/scripts.inc b/data/maps/Route22/scripts.inc new file mode 100644 index 000000000..a116b73eb --- /dev/null +++ b/data/maps/Route22/scripts.inc @@ -0,0 +1,261 @@ +Route22_MapScripts:: @ 816828B + .byte 0 + +Route22_EventScript_16828C:: @ 816828C + lockall + setvar VAR_0x4001, 0 + goto EventScript_1682BE + +EventScript_168297:: @ 8168297 + end + +Route22_EventScript_168298:: @ 8168298 + lockall + setvar VAR_0x4001, 1 + setobjectxyperm 1, 25, 5 + goto EventScript_1682BE + +EventScript_1682AA:: @ 81682AA + end + +Route22_EventScript_1682AB:: @ 81682AB + lockall + setvar VAR_0x4001, 2 + setobjectxyperm 1, 25, 5 + goto EventScript_1682BE + +EventScript_1682BD:: @ 81682BD + end + +EventScript_1682BE:: @ 81682BE + textcolor 0 + playbgm BGM_FRLG_RIVAL, 0 + addobject 1 + compare_var_to_value VAR_0x4001, 0 + call_if 1, EventScript_168350 + compare_var_to_value VAR_0x4001, 1 + call_if 1, EventScript_168350 + compare_var_to_value VAR_0x4001, 2 + call_if 1, EventScript_16835B + delay 6 + msgbox gUnknown_8188890 + compare_var_to_value VAR_STARTER_MON, 2 + call_if 1, EventScript_16836D + compare_var_to_value VAR_STARTER_MON, 1 + call_if 1, EventScript_16837C + compare_var_to_value VAR_STARTER_MON, 0 + call_if 1, EventScript_16838B + msgbox gUnknown_8188974 + closemessage + delay 10 + playbgm BGM_FRLG_RIVAL_POSTBATTLE, 0 + compare_var_to_value VAR_0x4001, 0 + call_if 1, EventScript_16839A + compare_var_to_value VAR_0x4001, 1 + call_if 1, EventScript_16839A + compare_var_to_value VAR_0x4001, 2 + call_if 1, EventScript_1683A5 + fadedefaultbgm + removeobject 1 + setvar VAR_0x4054, 2 + releaseall + end + +EventScript_168350:: @ 8168350 + applymovement 1, Movement_1683D1 + waitmovement 0 + return + +EventScript_16835B:: @ 816835B + applymovement 1, Movement_1683D9 + applymovement 255, Movement_1683E3 + waitmovement 0 + return + +EventScript_16836D:: @ 816836D + trainerbattle 9, 329, 0, Text_188959, Text_18DE1A + return + +EventScript_16837C:: @ 816837C + trainerbattle 9, 330, 0, Text_188959, Text_18DE1A + return + +EventScript_16838B:: @ 816838B + trainerbattle 9, 331, 0, Text_188959, Text_18DE1A + return + +EventScript_16839A:: @ 816839A + applymovement 1, Movement_1683B8 + waitmovement 0 + return + +EventScript_1683A5:: @ 81683A5 + applymovement 1, Movement_1683C5 + waitmovement 0 + return + +Movement_1683B0:: @ 8 + step_13 + step_13 + step_13 + step_13 + step_13 + step_13 + step_13 + step_end + +Movement_1683B8:: @ 81683B8 + step_10 + step_13 + step_13 + step_13 + step_13 + step_13 + step_10 + step_10 + step_10 + step_10 + step_10 + step_10 + step_end + +Movement_1683C5:: @ 81683C5 + step_13 + step_13 + step_13 + step_13 + step_10 + step_10 + step_10 + step_10 + step_10 + step_10 + step_10 + step_end + +Movement_1683D1:: @ 81683D1 + step_13 + step_13 + step_13 + step_13 + step_13 + step_13 + step_13 + step_end + +Movement_1683D9:: @ 81683D9 + step_13 + step_13 + step_13 + step_13 + step_13 + step_13 + step_13 + step_13 + step_2d + step_end + +Movement_1683E3:: @ 81683E3 + step_1c + step_1c + step_1c + step_1c + step_1c + step_1c + step_1c + step_1b + step_2e + step_end + +Route22_EventScript_1683ED:: @ 81683ED + lockall + setvar VAR_0x4001, 0 + goto EventScript_16841F + +EventScript_1683F8:: @ 81683F8 + end + +Route22_EventScript_1683F9:: @ 81683F9 + lockall + setvar VAR_0x4001, 1 + setobjectxyperm 1, 25, 5 + goto EventScript_16841F + +EventScript_16840B:: @ 816840B + end + +Route22_EventScript_16840C:: @ 816840C + lockall + setvar VAR_0x4001, 2 + setobjectxyperm 1, 25, 5 + goto EventScript_16841F + +EventScript_16841E:: @ 816841E + end + +EventScript_16841F:: @ 816841F + textcolor 0 + playbgm BGM_FRLG_RIVAL, 0 + addobject 1 + compare_var_to_value VAR_0x4001, 0 + call_if 1, EventScript_16849C + compare_var_to_value VAR_0x4001, 1 + call_if 1, EventScript_16849C + compare_var_to_value VAR_0x4001, 2 + call_if 1, EventScript_1684A7 + msgbox gUnknown_8188A3C + setvar VAR_LAST_TALKED, 1 + compare_var_to_value VAR_STARTER_MON, 2 + call_if 1, EventScript_1684B9 + compare_var_to_value VAR_STARTER_MON, 1 + call_if 1, EventScript_1684C4 + compare_var_to_value VAR_STARTER_MON, 0 + call_if 1, EventScript_1684CF + msgbox gUnknown_8188B29 + closemessage + delay 10 + playbgm BGM_FRLG_RIVAL_POSTBATTLE, 0 + applymovement 1, Movement_1684DA + waitmovement 0 + fadedefaultbgm + removeobject 1 + setvar VAR_0x4054, 4 + releaseall + end + +EventScript_16849C:: @ 816849C + applymovement 1, Movement_1683D1 + waitmovement 0 + return + +EventScript_1684A7:: @ 81684A7 + applymovement 1, Movement_1683D9 + applymovement 255, Movement_1683E3 + waitmovement 0 + return + +EventScript_1684B9:: @ 81684B9 + trainerbattle 3, 435, 0, Text_188B08 + return + +EventScript_1684C4:: @ 81684C4 + trainerbattle 3, 436, 0, Text_188B08 + return + +EventScript_1684CF:: @ 81684CF + trainerbattle 3, 437, 0, Text_188B08 + return + +Movement_1684DA:: @ 81684DA + step_12 + step_12 + step_12 + step_12 + step_12 + step_12 + step_12 + step_end + +Route22_EventScript_1684E2:: @ 81684E2 + msgbox gUnknown_8188BFF, 3 + end diff --git a/data/maps/Route22/text.inc b/data/maps/Route22/text.inc new file mode 100644 index 000000000..7bfe6931b --- /dev/null +++ b/data/maps/Route22/text.inc @@ -0,0 +1,201 @@ +Text_1882E1:: @ 81882E1 + .string "Strong TRAINERS and WATER POKéMON\n" + .string "are common sights in these parts.\p" + .string "They say that MISTY of the\n" + .string "CERULEAN GYM trains here.$" + +Text_18835A:: @ 818835A + .string "You want to know if the fish are\n" + .string "biting?$" + +Text_188383:: @ 8188383 + .string "Dang!$" + +Text_188389:: @ 8188389 + .string "I can't catch anything good.\n" + .string "Not one good POKéMON to be had!$" + +Text_1883C6:: @ 81883C6 + .string "I got a big haul!\n" + .string "Wanna go for it?$" + +Text_1883E9:: @ 81883E9 + .string "Heheh, MAGIKARP just don't make\n" + .string "the grade, do they?$" + +Text_18841D:: @ 818841D + .string "I seem to only catch MAGIKARP!$" + +Text_18843C:: @ 818843C + .string "The sea cleanses my body and soul!$" + +Text_18845F:: @ 818845F + .string "Ayah!$" + +Text_188465:: @ 8188465 + .string "The sea is great and all, but I\n" + .string "like the mountains, too.$" + +Text_18849E:: @ 818849E + .string "おれだって たまには\n" + .string "およぎに くるぜ!$" + +Text_1884B3:: @ 81884B3 + .string "ぐわわ!$" + +Text_1884B8:: @ 81884B8 + .string "うきやすそう だと?\n" + .string "うるせー おおきな おせわだッ!$" + +Text_1884D4:: @ 81884D4 + .string "I caught my POKéMON at sea.$" + +Text_1884F0:: @ 81884F0 + .string "Diver!!\n" + .string "Down!!$" + +Text_1884FF:: @ 81884FF + .string "Where'd you catch your POKéMON?$" + +Text_18851F:: @ 818851F + .string "Right now, I'm in a triathlon meet.$" + +Text_188543:: @ 8188543 + .string "Pant…\n" + .string "Pant… Pant…$" + +Text_188555:: @ 8188555 + .string "I'm beat! But, I still have the\n" + .string "bike race and marathon left!$" + +Text_188592:: @ 8188592 + .string "Ahh!\n" + .string "Feel the sun and the wind!$" + +Text_1885B2:: @ 81885B2 + .string "Yow!\n" + .string "I lost!$" + +Text_1885BF:: @ 81885BF + .string "I'm sunburnt to a crisp!$" + +Text_1885D8:: @ 81885D8 + .string "Hey, don't scare away the fish!$" + +Text_1885F8:: @ 81885F8 + .string "Sorry! I'm just so frustrated from\n" + .string "not catching anything.$" + +Text_188632:: @ 8188632 + .string "Sheesh, I haven't caught a thing.\n" + .string "Could this place actually be a\l" + .string "giant pool or something?$" + +Text_18868C:: @ 818868C + .string "Keep me company till I get a hit.$" + +Text_1886AE:: @ 81886AE + .string "That burned some time.$" + +Text_1886C5:: @ 81886C5 + .string "Oh wait!\n" + .string "I got a bite! Yeah!$" + +Text_1886E2:: @ 81886E2 + .string "LIL: Huh? A battle?\n" + .string "IAN, can't you do it alone?$" + +Text_188712:: @ 8188712 + .string "LIL: Oh, see?\n" + .string "We lost. Happy now?$" + +Text_188734:: @ 8188734 + .string "LIL: I'm tired.\n" + .string "Can't we go home already?$" + +Text_18875E:: @ 818875E + .string "LIL: Huh? A battle?\n" + .string "I can't be bothered to do it alone.\l" + .string "Bring two POKéMON, won't you?$" + +Text_1887B4:: @ 81887B4 + .string "IAN: My sis doesn't get enough\n" + .string "exercise, so I made her come.$" + +Text_1887F1:: @ 81887F1 + .string "IAN: Awww, Sis!\n" + .string "Get it together!$" + +Text_188812:: @ 8188812 + .string "IAN: Come on, Sis!\p" + .string "You're not going to lose weight\n" + .string "like this!$" + +Text_188850:: @ 8188850 + .string "IAN: We want a two-on-two battle.\n" + .string "So can you bring two POKéMON?$" + +gUnknown_8188890:: @ 8188890 + .string "{RIVAL}: Hey! {PLAYER}!\p" + .string "You're off to the POKéMON LEAGUE?\n" + .string "Forget about it!\p" + .string "You probably don't have any\n" + .string "BADGES, do you?\p" + .string "The guard won't let you through\n" + .string "without them.\p" + .string "By the way, did your POKéMON get\n" + .string "any stronger?$" + +Text_188959:: @ 8188959 + .string "Awww!\n" + .string "You just lucked out!$" + +gUnknown_8188974:: @ 8188974 + .string "I heard the POKéMON LEAGUE is\n" + .string "crawling with tough TRAINERS.\p" + .string "I have to figure out how to get\n" + .string "past them.\p" + .string "You should quit dawdling and get a\n" + .string "move on!$" + +Text_188A07:: @ 8188A07 + .string "{RIVAL}“なんだ?\n" + .string "ポケモン 2ひきも\l" + .string "もってるの なぜか だって?\p" + .string "おまえも\n" + .string "つかまえれば いい じゃん!$" + +gUnknown_8188A3C:: @ 8188A3C + .string "{RIVAL}: What? {PLAYER}!\n" + .string "What a surprise to see you here!\p" + .string "So you're going to the POKéMON\n" + .string "LEAGUE?\p" + .string "You collected all the BADGES, too?\n" + .string "That's cool!\p" + .string "Then I'll whip you, {PLAYER}, as a\n" + .string "warm-up for the POKéMON LEAGUE!\p" + .string "Come on!$" + +Text_188B08:: @ 8188B08 + .string "What!?\p" + .string "I was just careless, you!$" + +gUnknown_8188B29:: @ 8188B29 + .string "That loosened me up.\n" + .string "I'm ready for the POKéMON LEAGUE!\p" + .string "{PLAYER}, you need more practice.\p" + .string "But hey, you know that!\n" + .string "I'm out of here. Smell ya!$" + +Text_188BAF:: @ 8188BAF + .string "{RIVAL}“ひゃははッ {PLAYER}ー!\n" + .string "それで がんばってるのかよ!\l" + .string "おれの さいのうに くらべりゃ\l" + .string "{PLAYER}は まだまだ だな!\p" + .string "もっと れんしゅう こいよ!\n" + .string "あははーッ!$" + +gUnknown_8188BFF:: @ 8188BFF + .string "POKéMON LEAGUE\n" + .string "Front Gate$" + |