summaryrefslogtreecommitdiff
path: root/data/maps/TwoIsland
diff options
context:
space:
mode:
Diffstat (limited to 'data/maps/TwoIsland')
-rw-r--r--data/maps/TwoIsland/map.json194
-rw-r--r--data/maps/TwoIsland/scripts.inc241
-rw-r--r--data/maps/TwoIsland/text.inc86
3 files changed, 521 insertions, 0 deletions
diff --git a/data/maps/TwoIsland/map.json b/data/maps/TwoIsland/map.json
new file mode 100644
index 000000000..17826d8fd
--- /dev/null
+++ b/data/maps/TwoIsland/map.json
@@ -0,0 +1,194 @@
+{
+ "id": "MAP_TWO_ISLAND",
+ "name": "TwoIsland",
+ "layout": "LAYOUT_TWO_ISLAND",
+ "music": "BGM_FRLG_ISLAND_ONE",
+ "region_map_section": "MAPSEC_TWO_ISLAND",
+ "requires_flash": false,
+ "weather": "WEATHER_SUNNY",
+ "map_type": "MAP_TYPE_1",
+ "unknown_18": 1,
+ "unknown_19": 6,
+ "elevator_flag": 0,
+ "battle_scene": "BATTLE_SCENE_0",
+ "connections": [
+ {
+ "map": "MAP_TWO_ISLAND_CAPE_BRINK",
+ "offset": 24,
+ "direction": "up"
+ }
+ ],
+ "object_events": [
+ {
+ "graphics_id": "68",
+ "x": 28,
+ "y": 4,
+ "elevation": 3,
+ "movement_type": "8",
+ "movement_range_x": 1,
+ "movement_range_y": 2,
+ "trainer_type": 0,
+ "trainer_sight_or_berry_tree_id": 0,
+ "script": "TwoIsland_EventScript_16760F",
+ "flag": "0"
+ },
+ {
+ "graphics_id": "23",
+ "x": 31,
+ "y": 6,
+ "elevation": 3,
+ "movement_type": "7",
+ "movement_range_x": 1,
+ "movement_range_y": 1,
+ "trainer_type": 0,
+ "trainer_sight_or_berry_tree_id": 0,
+ "script": "TwoIsland_EventScript_167755",
+ "flag": "123"
+ },
+ {
+ "graphics_id": "29",
+ "x": 30,
+ "y": 11,
+ "elevation": 3,
+ "movement_type": "7",
+ "movement_range_x": 1,
+ "movement_range_y": 1,
+ "trainer_type": 0,
+ "trainer_sight_or_berry_tree_id": 0,
+ "script": "TwoIsland_EventScript_16775E",
+ "flag": "124"
+ },
+ {
+ "graphics_id": "62",
+ "x": 26,
+ "y": 5,
+ "elevation": 3,
+ "movement_type": "10",
+ "movement_range_x": 1,
+ "movement_range_y": 1,
+ "trainer_type": 0,
+ "trainer_sight_or_berry_tree_id": 0,
+ "script": "TwoIsland_EventScript_16774C",
+ "flag": "0"
+ },
+ {
+ "graphics_id": "52",
+ "x": 27,
+ "y": 6,
+ "elevation": 3,
+ "movement_type": "10",
+ "movement_range_x": 1,
+ "movement_range_y": 1,
+ "trainer_type": 0,
+ "trainer_sight_or_berry_tree_id": 0,
+ "script": "TwoIsland_EventScript_167777",
+ "flag": "125"
+ },
+ {
+ "graphics_id": "95",
+ "x": 30,
+ "y": 16,
+ "elevation": 3,
+ "movement_type": "1",
+ "movement_range_x": 1,
+ "movement_range_y": 1,
+ "trainer_type": 0,
+ "trainer_sight_or_berry_tree_id": 0,
+ "script": "TwoIsland_EventScript_1BDF13",
+ "flag": "18"
+ },
+ {
+ "graphics_id": "92",
+ "x": 39,
+ "y": 16,
+ "elevation": 3,
+ "movement_type": "8",
+ "movement_range_x": 1,
+ "movement_range_y": 1,
+ "trainer_type": 0,
+ "trainer_sight_or_berry_tree_id": 0,
+ "script": "TwoIsland_EventScript_1BEAAF",
+ "flag": "442"
+ },
+ {
+ "graphics_id": "16",
+ "x": 37,
+ "y": 12,
+ "elevation": 3,
+ "movement_type": "8",
+ "movement_range_x": 1,
+ "movement_range_y": 1,
+ "trainer_type": 0,
+ "trainer_sight_or_berry_tree_id": 0,
+ "script": "TwoIsland_EventScript_167789",
+ "flag": "0"
+ },
+ {
+ "graphics_id": "19",
+ "x": 24,
+ "y": 12,
+ "elevation": 3,
+ "movement_type": "2",
+ "movement_range_x": 1,
+ "movement_range_y": 1,
+ "trainer_type": 0,
+ "trainer_sight_or_berry_tree_id": 0,
+ "script": "TwoIsland_EventScript_167780",
+ "flag": "0"
+ }
+ ],
+ "warp_events": [
+ {
+ "x": 39,
+ "y": 9,
+ "elevation": 0,
+ "dest_map": "MAP_TWO_ISLAND_JOYFUL_GAME_CORNER",
+ "dest_warp_id": 0
+ },
+ {
+ "x": 33,
+ "y": 9,
+ "elevation": 0,
+ "dest_map": "MAP_TWO_ISLAND_HOUSE",
+ "dest_warp_id": 0
+ },
+ {
+ "x": 21,
+ "y": 7,
+ "elevation": 0,
+ "dest_map": "MAP_TWO_ISLAND_POKEMON_CENTER_1F",
+ "dest_warp_id": 0
+ },
+ {
+ "x": 10,
+ "y": 8,
+ "elevation": 3,
+ "dest_map": "MAP_TWO_ISLAND_HARBOR",
+ "dest_warp_id": 0
+ }
+ ],
+ "coord_events": [],
+ "bg_events": [
+ {
+ "type": "bg_event_type_0",
+ "x": 29,
+ "y": 8,
+ "elevation": 0,
+ "script": "TwoIsland_EventScript_167792"
+ },
+ {
+ "type": "bg_event_type_0",
+ "x": 40,
+ "y": 10,
+ "elevation": 0,
+ "script": "TwoIsland_EventScript_16779B"
+ },
+ {
+ "type": "bg_event_type_0",
+ "x": 8,
+ "y": 3,
+ "elevation": 0,
+ "script": "TwoIsland_EventScript_1677A4"
+ }
+ ]
+}
diff --git a/data/maps/TwoIsland/scripts.inc b/data/maps/TwoIsland/scripts.inc
new file mode 100644
index 000000000..a9a42eda5
--- /dev/null
+++ b/data/maps/TwoIsland/scripts.inc
@@ -0,0 +1,241 @@
+TwoIsland_MapScripts:: @ 8167564
+ map_script 3, TwoIsland_MapScript1_16756A
+ .byte 0
+
+TwoIsland_MapScript1_16756A:: @ 816756A
+ setworldmapflag FLAG_WORLD_MAP_TWO_ISLAND
+ setflag FLAG_0x2A2
+ call EventScript_167576
+ end
+
+EventScript_167576:: @ 8167576
+ checkflag FLAG_0x844
+ goto_if_eq EventScript_167597
+ checkflag FLAG_0x82C
+ goto_if_eq EventScript_1675B8
+ checkflag FLAG_0x2A3
+ goto_if_eq EventScript_1675D9
+ goto EventScript_1675E8
+ end
+
+EventScript_167597:: @ 8167597
+ checkflag FLAG_0x29D
+ goto_if 0, EventScript_1675EE
+ checkflag FLAG_0x29E
+ goto_if 0, EventScript_1675F4
+ checkflag FLAG_0x29F
+ goto_if 0, EventScript_1675FD
+ goto EventScript_167606
+ end
+
+EventScript_1675B8:: @ 81675B8
+ checkflag FLAG_0x29D
+ goto_if 0, EventScript_1675EE
+ checkflag FLAG_0x2A3
+ goto_if 0, EventScript_1675EE
+ checkflag FLAG_0x29E
+ goto_if 0, EventScript_1675F4
+ goto EventScript_1675FD
+ end
+
+EventScript_1675D9:: @ 81675D9
+ checkflag FLAG_0x29D
+ goto_if 0, EventScript_1675EE
+ goto EventScript_1675F4
+ end
+
+EventScript_1675E8:: @ 81675E8
+ goto EventScript_1675EE
+ end
+
+EventScript_1675EE:: @ 81675EE
+ setvar VAR_0x4078, 1
+ return
+
+EventScript_1675F4:: @ 81675F4
+ setvar VAR_0x4078, 2
+ clearflag FLAG_0x07B
+ return
+
+EventScript_1675FD:: @ 81675FD
+ setvar VAR_0x4078, 3
+ clearflag FLAG_0x07C
+ return
+
+EventScript_167606:: @ 8167606
+ setvar VAR_0x4078, 4
+ clearflag FLAG_0x07D
+ return
+
+TwoIsland_EventScript_16760F:: @ 816760F
+ special sub_8110AB4
+ compare_var_to_value VAR_RESULT, 2
+ goto_if_eq EventScript_1A7AE0
+ lock
+ faceplayer
+ compare_var_to_value VAR_0x4078, 4
+ goto_if_eq EventScript_167646
+ compare_var_to_value VAR_0x4078, 3
+ goto_if_eq EventScript_16765E
+ compare_var_to_value VAR_0x4078, 2
+ goto_if_eq EventScript_167676
+ goto EventScript_16768E
+ end
+
+EventScript_167646:: @ 8167646
+ checkflag FLAG_0x2A0
+ goto_if_eq EventScript_1676A6
+ setflag FLAG_0x2A0
+ message Text_181CAE
+ waitmessage
+ goto EventScript_167728
+ end
+
+EventScript_16765E:: @ 816765E
+ checkflag FLAG_0x29F
+ goto_if_eq EventScript_1676A6
+ setflag FLAG_0x29F
+ message Text_181C77
+ waitmessage
+ goto EventScript_167708
+ end
+
+EventScript_167676:: @ 8167676
+ checkflag FLAG_0x29E
+ goto_if_eq EventScript_1676A6
+ setflag FLAG_0x29E
+ message Text_181B7C
+ waitmessage
+ goto EventScript_1676EC
+ end
+
+EventScript_16768E:: @ 816768E
+ checkflag FLAG_0x29D
+ goto_if_eq EventScript_1676A6
+ setflag FLAG_0x29D
+ message Text_181AFE
+ waitmessage
+ goto EventScript_1676D3
+ end
+
+EventScript_1676A6:: @ 81676A6
+ message Text_1A6211
+ waitmessage
+ compare_var_to_value VAR_0x4078, 4
+ goto_if_eq EventScript_167728
+ compare_var_to_value VAR_0x4078, 3
+ goto_if_eq EventScript_167708
+ compare_var_to_value VAR_0x4078, 2
+ goto_if_eq EventScript_1676EC
+ goto EventScript_1676D3
+ end
+
+EventScript_1676D3:: @ 81676D3
+ pokemart Items_1676E4
+ msgbox gUnknown_81A5190
+ release
+ end
+
+ .align 2
+Items_1676E4:: @ 81676E4
+ .2byte ITEM_GREAT_BALL
+ .2byte ITEM_FRESH_WATER
+ .2byte ITEM_NONE
+ release
+ end
+
+EventScript_1676EC:: @ 81676EC
+ pokemart Items_1676FC
+ msgbox gUnknown_81A5190
+ release
+ end
+
+ .align 2
+Items_1676FC:: @ 81676FC
+ .2byte ITEM_ULTRA_BALL
+ .2byte ITEM_GREAT_BALL
+ .2byte ITEM_SODA_POP
+ .2byte ITEM_FRESH_WATER
+ .2byte ITEM_NONE
+ release
+ end
+
+EventScript_167708:: @ 8167708
+ pokemart Items_167718
+ msgbox gUnknown_81A5190
+ release
+ end
+
+ .align 2
+Items_167718:: @ 8167718
+ .2byte ITEM_ULTRA_BALL
+ .2byte ITEM_GREAT_BALL
+ .2byte ITEM_LEMONADE
+ .2byte ITEM_SODA_POP
+ .2byte ITEM_FRESH_WATER
+ .2byte ITEM_MOOMOO_MILK
+ .2byte ITEM_NONE
+ release
+ end
+
+EventScript_167728:: @ 8167728
+ pokemart Items_167738
+ msgbox gUnknown_81A5190
+ release
+ end
+
+ .align 2
+Items_167738:: @ 8167738
+ .2byte ITEM_ULTRA_BALL
+ .2byte ITEM_REPEAT_BALL
+ .2byte ITEM_TIMER_BALL
+ .2byte ITEM_LEMONADE
+ .2byte ITEM_SODA_POP
+ .2byte ITEM_FRESH_WATER
+ .2byte ITEM_MOOMOO_MILK
+ .2byte ITEM_LAVA_COOKIE
+ .2byte ITEM_NONE
+ release
+ end
+
+TwoIsland_EventScript_16774C:: @ 816774C
+ msgbox gUnknown_8181D2F, 2
+ end
+
+TwoIsland_EventScript_167755:: @ 8167755
+ msgbox gUnknown_8181DCA, 2
+ end
+
+TwoIsland_EventScript_16775E:: @ 816775E
+ lock
+ faceplayer
+ setvar VAR_0x8004, 10
+ setvar VAR_0x8005, 4
+ special SetFlavorTextFlagFromSpecialVars
+ msgbox gUnknown_8181E47
+ release
+ end
+
+TwoIsland_EventScript_167777:: @ 8167777
+ msgbox gUnknown_8181F28, 2
+ end
+
+TwoIsland_EventScript_167780:: @ 8167780
+ msgbox gUnknown_8181F5D, 2
+ end
+
+TwoIsland_EventScript_167789:: @ 8167789
+ msgbox gUnknown_8181FCE, 2
+ end
+
+TwoIsland_EventScript_167792:: @ 8167792
+ msgbox gUnknown_8181A88, 3
+ end
+
+TwoIsland_EventScript_16779B:: @ 816779B
+ msgbox gUnknown_8181AA7, 3
+ end
+
+TwoIsland_EventScript_1677A4:: @ 81677A4
+ msgbox gUnknown_8181AC8, 3
+ end
diff --git a/data/maps/TwoIsland/text.inc b/data/maps/TwoIsland/text.inc
new file mode 100644
index 000000000..fca7d80ee
--- /dev/null
+++ b/data/maps/TwoIsland/text.inc
@@ -0,0 +1,86 @@
+gUnknown_8181A88:: @ 8181A88
+ .string "TWO ISLAND\n"
+ .string "Boon Island for Two$"
+
+gUnknown_8181AA7:: @ 8181AA7
+ .string "Skip & Chomp!\n"
+ .string "Joyful GAME CORNER$"
+
+gUnknown_8181AC8:: @ 8181AC8
+ .string "DANGER! FAST CURRENT!\n"
+ .string "Fishing and surfing prohibited!$"
+
+Text_181AFE:: @ 8181AFE
+ .string "Oh!\n"
+ .string "Hello, welcome to my shop!\p"
+ .string "We've only opened up recently.\p"
+ .string "Our merchandise is limited, but I\n"
+ .string "hope we can serve your needs.$"
+
+Text_181B7C:: @ 8181B7C
+ .string "I can't tell you how grateful I am\n"
+ .string "for your rescue of LOSTELLE.\p"
+ .string "Thanks to your feat, the people of\n"
+ .string "THREE ISLAND have changed their\l"
+ .string "attitudes about KANTO people.\p"
+ .string "And, I'm from KANTO, you see.\p"
+ .string "The people of THREE ISLAND\n"
+ .string "helped me add to my merchandise.$"
+
+Text_181C77:: @ 8181C77
+ .string "Hi! I'm giving it my best here.\n"
+ .string "I hope you do too, {PLAYER}.$"
+
+Text_181CAE:: @ 8181CAE
+ .string "Oh, hello, {PLAYER}!\n"
+ .string "Welcome!\p"
+ .string "I've started bringing in items from\n"
+ .string "distant lands.\p"
+ .string "I've got some rare items in, too.\n"
+ .string "Please have a look!$"
+
+gUnknown_8181D2F:: @ 8181D2F
+ .string "That fellow there, he moved here\n"
+ .string "from CELADON CITY.\p"
+ .string "He started up a shop with his\n"
+ .string "younger brother.\p"
+ .string "You have to wonder if he knew what\n"
+ .string "he was getting into.$"
+
+gUnknown_8181DCA:: @ 8181DCA
+ .string "The shopkeeper's brother took\n"
+ .string "a job at the GAME CORNER.\p"
+ .string "He's trying to pull together money\n"
+ .string "so they can buy more merchandise.$"
+
+gUnknown_8181E47:: @ 8181E47
+ .string "Listen, listen.\n"
+ .string "Did you know?\p"
+ .string "A famous TRAINER came to the\n"
+ .string "ISLAND a little while back.\p"
+ .string "He's one of the ELITE FOUR.\n"
+ .string "His name is BRUNO.\p"
+ .string "He went away disappointed when he\n"
+ .string "found out that they were all sold\l"
+ .string "out of Rage Candybars.$"
+
+gUnknown_8181F28:: @ 8181F28
+ .string "The discerning TRAINER knows to\n"
+ .string "buy rare items here!$"
+
+gUnknown_8181F5D:: @ 8181F5D
+ .string "There's an old woman who lives in\n"
+ .string "a cottage out on the cape.\p"
+ .string "She gives the eye to POKéMON.\n"
+ .string "It's a bit unnerving.$"
+
+gUnknown_8181FCE:: @ 8181FCE
+ .string "Boing! Boing!\n"
+ .string "Have you tried the jumping game?\p"
+ .string "The POKéMON you can enter…\n"
+ .string "Boing!\p"
+ .string "Some go boing!\p"
+ .string "And some go boooooooing!\p"
+ .string "Did you know that?\n"
+ .string "Boing!$"
+