diff options
Diffstat (limited to 'data/maps/SilphCo_8F')
-rw-r--r-- | data/maps/SilphCo_8F/map.json | 193 | ||||
-rw-r--r-- | data/maps/SilphCo_8F/scripts.inc | 41 | ||||
-rw-r--r-- | data/maps/SilphCo_8F/text.inc | 42 |
3 files changed, 276 insertions, 0 deletions
diff --git a/data/maps/SilphCo_8F/map.json b/data/maps/SilphCo_8F/map.json new file mode 100644 index 000000000..9c23aac86 --- /dev/null +++ b/data/maps/SilphCo_8F/map.json @@ -0,0 +1,193 @@ +{ + "id": "MAP_SILPH_CO_8F", + "name": "SilphCo_8F", + "layout": "LAYOUT_SILPH_CO_8F", + "music": "BGM_FRLG_SILPH", + "region_map_section": "MAPSEC_SILPH_CO", + "requires_flash": false, + "weather": "WEATHER_NONE", + "map_type": "MAP_TYPE_8", + "unknown_18": 0, + "unknown_19": 7, + "elevator_flag": 8, + "battle_scene": "BATTLE_SCENE_0", + "connections": null, + "object_events": [ + { + "graphics_id": "49", + "x": 28, + "y": 5, + "elevation": 3, + "movement_type": "9", + "movement_range_x": 1, + "movement_range_y": 1, + "trainer_type": 1, + "trainer_sight_or_berry_tree_id": 4, + "script": "SilphCo_8F_EventScript_161CB0", + "flag": "83" + }, + { + "graphics_id": "49", + "x": 10, + "y": 17, + "elevation": 3, + "movement_type": "10", + "movement_range_x": 1, + "movement_range_y": 1, + "trainer_type": 1, + "trainer_sight_or_berry_tree_id": 5, + "script": "SilphCo_8F_EventScript_161CC7", + "flag": "83" + }, + { + "graphics_id": "55", + "x": 9, + "y": 4, + "elevation": 3, + "movement_type": "8", + "movement_range_x": 1, + "movement_range_y": 1, + "trainer_type": 1, + "trainer_sight_or_berry_tree_id": 2, + "script": "SilphCo_8F_EventScript_161C99", + "flag": "83" + }, + { + "graphics_id": "47", + "x": 2, + "y": 5, + "elevation": 3, + "movement_type": "5", + "movement_range_x": 1, + "movement_range_y": 1, + "trainer_type": 0, + "trainer_sight_or_berry_tree_id": 0, + "script": "SilphCo_8F_EventScript_161C6F", + "flag": "0" + }, + { + "graphics_id": "92", + "x": 24, + "y": 8, + "elevation": 3, + "movement_type": "8", + "movement_range_x": 1, + "movement_range_y": 1, + "trainer_type": 0, + "trainer_sight_or_berry_tree_id": 0, + "script": "SilphCo_8F_EventScript_1BEB4B", + "flag": "456" + }, + { + "graphics_id": "55", + "x": 29, + "y": 9, + "elevation": 3, + "movement_type": "8", + "movement_range_x": 1, + "movement_range_y": 1, + "trainer_type": 0, + "trainer_sight_or_berry_tree_id": 0, + "script": "SilphCo_8F_EventScript_1AD0ED", + "flag": "0" + } + ], + "warp_events": [ + { + "x": 16, + "y": 2, + "elevation": 3, + "dest_map": "MAP_SILPH_CO_9F", + "dest_warp_id": 0 + }, + { + "x": 11, + "y": 10, + "elevation": 3, + "dest_map": "MAP_SILPH_CO_8F", + "dest_warp_id": 4 + }, + { + "x": 10, + "y": 6, + "elevation": 3, + "dest_map": "MAP_SILPH_CO_2F", + "dest_warp_id": 5 + }, + { + "x": 28, + "y": 2, + "elevation": 3, + "dest_map": "MAP_SILPH_CO_7F", + "dest_warp_id": 3 + }, + { + "x": 2, + "y": 12, + "elevation": 3, + "dest_map": "MAP_SILPH_CO_8F", + "dest_warp_id": 1 + }, + { + "x": 2, + "y": 17, + "elevation": 3, + "dest_map": "MAP_SILPH_CO_2F", + "dest_warp_id": 2 + }, + { + "x": 22, + "y": 3, + "elevation": 0, + "dest_map": "MAP_SILPH_CO_ELEVATOR", + "dest_warp_id": 0 + } + ], + "coord_events": [], + "bg_events": [ + { + "type": "bg_event_type_0", + "x": 6, + "y": 10, + "elevation": 0, + "script": "SilphCo_8F_EventScript_1A8A6D" + }, + { + "type": "bg_event_type_0", + "x": 6, + "y": 11, + "elevation": 0, + "script": "SilphCo_8F_EventScript_1A8A6D" + }, + { + "type": "bg_event_type_0", + "x": 5, + "y": 11, + "elevation": 0, + "script": "SilphCo_8F_EventScript_1A8A6D" + }, + { + "type": "bg_event_type_0", + "x": 5, + "y": 10, + "elevation": 0, + "script": "SilphCo_8F_EventScript_1A8A6D" + }, + { + "type": "hidden_item", + "x": 29, + "y": 10, + "elevation": 0, + "item": "ITEM_NUGGET", + "flag": "141", + "unknown": 1 + }, + { + "type": "bg_event_type_0", + "x": 27, + "y": 1, + "elevation": 0, + "script": "SilphCo_8F_EventScript_161C90" + } + ] +} diff --git a/data/maps/SilphCo_8F/scripts.inc b/data/maps/SilphCo_8F/scripts.inc new file mode 100644 index 000000000..99112ee5e --- /dev/null +++ b/data/maps/SilphCo_8F/scripts.inc @@ -0,0 +1,41 @@ +SilphCo_8F_MapScripts:: @ 8161C5F + map_script 1, SilphCo_8F_MapScript1_161C65 + .byte 0 + +SilphCo_8F_MapScript1_161C65:: @ 8161C65 + checkflag FLAG_0x287 + call_if 0, EventScript_1A83D5 + end + +SilphCo_8F_EventScript_161C6F:: @ 8161C6F + lock + faceplayer + compare_var_to_value VAR_0x4060, 1 + goto_if 4, EventScript_161C86 + msgbox gUnknown_817696D + release + end + +EventScript_161C86:: @ 8161C86 + msgbox gUnknown_817698C + release + end + +SilphCo_8F_EventScript_161C90:: @ 8161C90 + msgbox gUnknown_8176AB2, 3 + end + +SilphCo_8F_EventScript_161C99:: @ 8161C99 + trainerbattle 0, 343, 0, Text_1769FD, Text_176A19 + msgbox gUnknown_8176A26, 6 + end + +SilphCo_8F_EventScript_161CB0:: @ 8161CB0 + trainerbattle 0, 382, 0, Text_1769A2, Text_1769BE + msgbox gUnknown_81769CF, 6 + end + +SilphCo_8F_EventScript_161CC7:: @ 8161CC7 + trainerbattle 0, 386, 0, Text_176A56, Text_176A7C + msgbox gUnknown_8176A90, 6 + end diff --git a/data/maps/SilphCo_8F/text.inc b/data/maps/SilphCo_8F/text.inc new file mode 100644 index 000000000..858d5da17 --- /dev/null +++ b/data/maps/SilphCo_8F/text.inc @@ -0,0 +1,42 @@ +gUnknown_817696D:: @ 817696D + .string "I wonder if SILPH is finished…$" + +gUnknown_817698C:: @ 817698C + .string "Thanks for saving us!$" + +Text_1769A2:: @ 81769A2 + .string "That's as far as you'll go!$" + +Text_1769BE:: @ 81769BE + .string "Not enough grit!$" + +gUnknown_81769CF:: @ 81769CF + .string "If you don't turn back…\n" + .string "I'll call for backup!$" + +Text_1769FD:: @ 81769FD + .string "You're causing us problems!$" + +Text_176A19:: @ 8176A19 + .string "Huh?\n" + .string "I lost?$" + +gUnknown_8176A26:: @ 8176A26 + .string "So, what do you think of SILPH\n" + .string "BUILDING's maze?$" + +Text_176A56:: @ 8176A56 + .string "I am one of the four ROCKET\n" + .string "BROTHERS!$" + +Text_176A7C:: @ 8176A7C + .string "Whoo!\n" + .string "Oh, Brothers!$" + +gUnknown_8176A90:: @ 8176A90 + .string "I'll leave you up to my brothers.$" + +gUnknown_8176AB2:: @ 8176AB2 + .string "SILPH CO. HEAD OFFICE\n" + .string "8F$" + |