convert map data to json

This commit is contained in:
garak
2019-05-13 19:44:24 -04:00
parent 4b98d7d07a
commit 55d66b5177
2112 changed files with 53337 additions and 19410 deletions
+219
View File
@@ -0,0 +1,219 @@
{
"id": "MAP_SIX_ISLAND_PATTERN_BUSH",
"name": "SixIsland_PatternBush",
"layout": "LAYOUT_SIX_ISLAND_PATTERN_BUSH",
"music": "BGM_FRLG_VIRIDIAN_FOREST",
"region_map_section": "MAPSEC_PATTERN_BUSH",
"requires_flash": false,
"weather": "WEATHER_0",
"map_type": "MAP_TYPE_3",
"unknown_18": 1,
"unknown_19": 7,
"elevator_flag": 0,
"battle_scene": "BATTLE_SCENE_0",
"connections": null,
"object_events": [
{
"graphics_id": "28",
"x": 48,
"y": 15,
"elevation": 3,
"movement_type": "20",
"movement_range_x": 1,
"movement_range_y": 1,
"trainer_type": 1,
"trainer_sight_or_berry_tree_id": 3,
"script": "SSAnne_1F_Room11_EventScript_164590",
"flag": "0"
},
{
"graphics_id": "28",
"x": 10,
"y": 5,
"elevation": 3,
"movement_type": "18",
"movement_range_x": 1,
"movement_range_y": 1,
"trainer_type": 1,
"trainer_sight_or_berry_tree_id": 2,
"script": "SSAnne_1F_Room11_EventScript_1645A7",
"flag": "0"
},
{
"graphics_id": "20",
"x": 51,
"y": 6,
"elevation": 3,
"movement_type": "8",
"movement_range_x": 1,
"movement_range_y": 1,
"trainer_type": 1,
"trainer_sight_or_berry_tree_id": 2,
"script": "SSAnne_1F_Room11_EventScript_1645BE",
"flag": "0"
},
{
"graphics_id": "20",
"x": 12,
"y": 13,
"elevation": 3,
"movement_type": "2",
"movement_range_x": 1,
"movement_range_y": 2,
"trainer_type": 1,
"trainer_sight_or_berry_tree_id": 2,
"script": "SSAnne_1F_Room11_EventScript_1645D5",
"flag": "0"
},
{
"graphics_id": "20",
"x": 37,
"y": 23,
"elevation": 3,
"movement_type": "51",
"movement_range_x": 2,
"movement_range_y": 5,
"trainer_type": 1,
"trainer_sight_or_berry_tree_id": 1,
"script": "SSAnne_1F_Room11_EventScript_1645EC",
"flag": "0"
},
{
"graphics_id": "18",
"x": 32,
"y": 5,
"elevation": 3,
"movement_type": "8",
"movement_range_x": 1,
"movement_range_y": 1,
"trainer_type": 1,
"trainer_sight_or_berry_tree_id": 2,
"script": "SSAnne_1F_Room11_EventScript_164603",
"flag": "0"
},
{
"graphics_id": "18",
"x": 52,
"y": 20,
"elevation": 3,
"movement_type": "10",
"movement_range_x": 1,
"movement_range_y": 1,
"trainer_type": 1,
"trainer_sight_or_berry_tree_id": 4,
"script": "SSAnne_1F_Room11_EventScript_16461A",
"flag": "0"
},
{
"graphics_id": "22",
"x": 8,
"y": 21,
"elevation": 3,
"movement_type": "17",
"movement_range_x": 1,
"movement_range_y": 1,
"trainer_type": 1,
"trainer_sight_or_berry_tree_id": 5,
"script": "SSAnne_1F_Room11_EventScript_164631",
"flag": "0"
},
{
"graphics_id": "22",
"x": 39,
"y": 6,
"elevation": 3,
"movement_type": "2",
"movement_range_x": 1,
"movement_range_y": 1,
"trainer_type": 1,
"trainer_sight_or_berry_tree_id": 3,
"script": "SSAnne_1F_Room11_EventScript_164648",
"flag": "0"
},
{
"graphics_id": "39",
"x": 3,
"y": 9,
"elevation": 3,
"movement_type": "3",
"movement_range_x": 1,
"movement_range_y": 2,
"trainer_type": 1,
"trainer_sight_or_berry_tree_id": 3,
"script": "SSAnne_1F_Room11_EventScript_16465F",
"flag": "0"
},
{
"graphics_id": "40",
"x": 19,
"y": 24,
"elevation": 3,
"movement_type": "28",
"movement_range_x": 5,
"movement_range_y": 1,
"trainer_type": 1,
"trainer_sight_or_berry_tree_id": 1,
"script": "SSAnne_1F_Room11_EventScript_164676",
"flag": "0"
},
{
"graphics_id": "56",
"x": 30,
"y": 19,
"elevation": 3,
"movement_type": "7",
"movement_range_x": 1,
"movement_range_y": 1,
"trainer_type": 1,
"trainer_sight_or_berry_tree_id": 3,
"script": "SSAnne_1F_Room11_EventScript_16468D",
"flag": "0"
}
],
"warp_events": [
{
"x": 54,
"y": 26,
"elevation": 3,
"dest_map": "MAP_SIX_ISLAND_GREEN_PATH",
"dest_warp_id": 0
},
{
"x": 55,
"y": 26,
"elevation": 3,
"dest_map": "MAP_SIX_ISLAND_GREEN_PATH",
"dest_warp_id": 0
},
{
"x": 56,
"y": 26,
"elevation": 3,
"dest_map": "MAP_SIX_ISLAND_GREEN_PATH",
"dest_warp_id": 1
},
{
"x": 3,
"y": 26,
"elevation": 3,
"dest_map": "MAP_SIX_ISLAND_GREEN_PATH",
"dest_warp_id": 2
},
{
"x": 4,
"y": 26,
"elevation": 3,
"dest_map": "MAP_SIX_ISLAND_GREEN_PATH",
"dest_warp_id": 2
},
{
"x": 5,
"y": 26,
"elevation": 3,
"dest_map": "MAP_SIX_ISLAND_GREEN_PATH",
"dest_warp_id": 3
}
],
"coord_events": [],
"bg_events": []
}
@@ -0,0 +1,92 @@
SixIsland_PatternBush_MapScripts:: @ 8164559
map_script 3, SSAnne_1F_Room11_MapScript1_16455F
.byte 0
SSAnne_1F_Room11_MapScript1_16455F:: @ 816455F
setworldmapflag 2237
getplayerxy VAR_0x4001, VAR_0x4002
compare_var_to_value VAR_0x4001, 50
call_if 4, EventScript_16457E
compare_var_to_value VAR_0x4001, 49
call_if 3, EventScript_164587
end
EventScript_16457E:: @ 816457E
setescapewarp MAP_SIX_ISLAND_GREEN_PATH, 255, 64, 10
return
EventScript_164587:: @ 8164587
setescapewarp MAP_SIX_ISLAND_GREEN_PATH, 255, 45, 10
return
SSAnne_1F_Room11_EventScript_164590:: @ 8164590
trainerbattle 0, 609, 0, Text_17BF3A, Text_17BF66
loadword 0, gUnknown_817BF97
callstd 6
end
SSAnne_1F_Room11_EventScript_1645A7:: @ 81645A7
trainerbattle 0, 610, 0, Text_17BFEB, Text_17C028
loadword 0, gUnknown_817C056
callstd 6
end
SSAnne_1F_Room11_EventScript_1645BE:: @ 81645BE
trainerbattle 0, 611, 0, Text_17C0BE, Text_17C0F2
loadword 0, gUnknown_817C113
callstd 6
end
SSAnne_1F_Room11_EventScript_1645D5:: @ 81645D5
trainerbattle 0, 612, 0, Text_17C155, Text_17C196
loadword 0, gUnknown_817C1D0
callstd 6
end
SSAnne_1F_Room11_EventScript_1645EC:: @ 81645EC
trainerbattle 0, 613, 0, Text_17C246, Text_17C275
loadword 0, gUnknown_817C2A4
callstd 6
end
SSAnne_1F_Room11_EventScript_164603:: @ 8164603
trainerbattle 0, 614, 0, Text_17C2D9, Text_17C30D
loadword 0, gUnknown_817C31C
callstd 6
end
SSAnne_1F_Room11_EventScript_16461A:: @ 816461A
trainerbattle 0, 615, 0, Text_17C373, Text_17C3A5
loadword 0, gUnknown_817C3CE
callstd 6
end
SSAnne_1F_Room11_EventScript_164631:: @ 8164631
trainerbattle 0, 616, 0, Text_17C42B, Text_17C458
loadword 0, gUnknown_817C490
callstd 6
end
SSAnne_1F_Room11_EventScript_164648:: @ 8164648
trainerbattle 0, 617, 0, Text_17C4FE, Text_17C552
loadword 0, gUnknown_817C590
callstd 6
end
SSAnne_1F_Room11_EventScript_16465F:: @ 816465F
trainerbattle 0, 618, 0, Text_17C5DB, Text_17C609
loadword 0, gUnknown_817C615
callstd 6
end
SSAnne_1F_Room11_EventScript_164676:: @ 8164676
trainerbattle 0, 619, 0, Text_17C63E, Text_17C660
loadword 0, gUnknown_817C68E
callstd 6
end
SSAnne_1F_Room11_EventScript_16468D:: @ 816468D
trainerbattle 0, 620, 0, Text_17C6C9, Text_17C6FB
loadword 0, gUnknown_817C728
callstd 6
end