summaryrefslogtreecommitdiff
path: root/data/maps/Route1
diff options
context:
space:
mode:
Diffstat (limited to 'data/maps/Route1')
-rw-r--r--data/maps/Route1/map.json65
-rw-r--r--data/maps/Route1/scripts.inc37
-rw-r--r--data/maps/Route1/text.inc28
3 files changed, 130 insertions, 0 deletions
diff --git a/data/maps/Route1/map.json b/data/maps/Route1/map.json
new file mode 100644
index 000000000..eae0e3eb5
--- /dev/null
+++ b/data/maps/Route1/map.json
@@ -0,0 +1,65 @@
+{
+ "id": "MAP_ROUTE1",
+ "name": "Route1",
+ "layout": "LAYOUT_ROUTE1",
+ "music": "BGM_FRLG_ROUTE_1",
+ "region_map_section": "MAPSEC_ROUTE_1",
+ "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_VIRIDIAN_CITY",
+ "offset": -12,
+ "direction": "up"
+ },
+ {
+ "map": "MAP_PALLET_TOWN",
+ "offset": 0,
+ "direction": "down"
+ }
+ ],
+ "object_events": [
+ {
+ "graphics_id": "68",
+ "x": 6,
+ "y": 28,
+ "elevation": 3,
+ "movement_type": "3",
+ "movement_range_x": 1,
+ "movement_range_y": 1,
+ "trainer_type": 0,
+ "trainer_sight_or_berry_tree_id": 0,
+ "script": "Route1_EventScript_167EFE",
+ "flag": "0"
+ },
+ {
+ "graphics_id": "19",
+ "x": 19,
+ "y": 16,
+ "elevation": 3,
+ "movement_type": "5",
+ "movement_range_x": 1,
+ "movement_range_y": 3,
+ "trainer_type": 0,
+ "trainer_sight_or_berry_tree_id": 0,
+ "script": "Route1_EventScript_167F52",
+ "flag": "0"
+ }
+ ],
+ "warp_events": [],
+ "coord_events": [],
+ "bg_events": [
+ {
+ "type": "bg_event_type_0",
+ "x": 9,
+ "y": 31,
+ "elevation": 0,
+ "script": "Route1_EventScript_167F5B"
+ }
+ ]
+}
diff --git a/data/maps/Route1/scripts.inc b/data/maps/Route1/scripts.inc
new file mode 100644
index 000000000..16bd02597
--- /dev/null
+++ b/data/maps/Route1/scripts.inc
@@ -0,0 +1,37 @@
+Route1_MapScripts:: @ 8167EFD
+ .byte 0
+
+Route1_EventScript_167EFE:: @ 8167EFE
+ lock
+ faceplayer
+ checkflag FLAG_0x230
+ goto_if_eq EventScript_167F48
+ msgbox gUnknown_818329D
+ textcolor 3
+ checkitemspace ITEM_POTION, 1
+ compare_var_to_value VAR_RESULT, 0
+ goto_if_eq EventScript_1A6BF9
+ getitemname 1, ITEM_POTION
+ playfanfare MUS_FANFA1
+ message Text_1A51F6
+ waitmessage
+ waitfanfare
+ additem ITEM_POTION, 1
+ msgbox gUnknown_8183387
+ call EventScript_1A6675
+ setflag FLAG_0x230
+ release
+ end
+
+EventScript_167F48:: @ 8167F48
+ msgbox gUnknown_8183347
+ release
+ end
+
+Route1_EventScript_167F52:: @ 8167F52
+ msgbox gUnknown_81833B9, 2
+ end
+
+Route1_EventScript_167F5B:: @ 8167F5B
+ msgbox gUnknown_818343A, 3
+ end
diff --git a/data/maps/Route1/text.inc b/data/maps/Route1/text.inc
new file mode 100644
index 000000000..7b4150b03
--- /dev/null
+++ b/data/maps/Route1/text.inc
@@ -0,0 +1,28 @@
+gUnknown_818329D:: @ 818329D
+ .string "Hi!\n"
+ .string "I work at a POKéMON MART.\p"
+ .string "It's part of a convenient chain\n"
+ .string "selling all sorts of items.\p"
+ .string "Please, visit us in VIRIDIAN CITY.\p"
+ .string "I know, I'll give you a sample.\n"
+ .string "Here you go!$"
+
+gUnknown_8183347:: @ 8183347
+ .string "Please come see us if you need\n"
+ .string "POKé BALLS for catching POKéMON.$"
+
+gUnknown_8183387:: @ 8183387
+ .string "{PLAYER} put the POTION away in\n"
+ .string "the BAG's ITEMS POCKET.$"
+
+gUnknown_81833B9:: @ 81833B9
+ .string "See those ledges along the road?\p"
+ .string "It's a bit scary, but you can jump\n"
+ .string "from them.\p"
+ .string "You can get back to PALLET TOWN\n"
+ .string "quicker that way.$"
+
+gUnknown_818343A:: @ 818343A
+ .string "ROUTE 1\n"
+ .string "PALLET TOWN - VIRIDIAN CITY$"
+