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
@@ -0,0 +1,366 @@
{
"id": "MAP_FIVE_ISLAND_ROCKET_WAREHOUSE",
"name": "FiveIsland_RocketWarehouse",
"layout": "LAYOUT_FIVE_ISLAND_ROCKET_WAREHOUSE",
"music": "BGM_FRLG_ROCKET_HIDEOUT",
"region_map_section": "MAPSEC_ROCKET_WAREHOUSE",
"requires_flash": false,
"weather": "WEATHER_0",
"map_type": "MAP_TYPE_8",
"unknown_18": 0,
"unknown_19": 5,
"elevator_flag": 0,
"battle_scene": "BATTLE_SCENE_3",
"connections": null,
"object_events": [
{
"graphics_id": "49",
"x": 15,
"y": 11,
"elevation": 3,
"movement_type": "17",
"movement_range_x": 1,
"movement_range_y": 1,
"trainer_type": 1,
"trainer_sight_or_berry_tree_id": 1,
"script": "SSAnne_CaptainsOffice4_EventScript_163FE6",
"flag": "136"
},
{
"graphics_id": "49",
"x": 17,
"y": 15,
"elevation": 3,
"movement_type": "10",
"movement_range_x": 1,
"movement_range_y": 1,
"trainer_type": 1,
"trainer_sight_or_berry_tree_id": 1,
"script": "SSAnne_CaptainsOffice4_EventScript_163FFD",
"flag": "136"
},
{
"graphics_id": "50",
"x": 27,
"y": 16,
"elevation": 3,
"movement_type": "9",
"movement_range_x": 1,
"movement_range_y": 1,
"trainer_type": 1,
"trainer_sight_or_berry_tree_id": 3,
"script": "SSAnne_CaptainsOffice4_EventScript_164087",
"flag": "136"
},
{
"graphics_id": "49",
"x": 25,
"y": 11,
"elevation": 3,
"movement_type": "10",
"movement_range_x": 1,
"movement_range_y": 1,
"trainer_type": 1,
"trainer_sight_or_berry_tree_id": 3,
"script": "SSAnne_CaptainsOffice4_EventScript_164014",
"flag": "136"
},
{
"graphics_id": "50",
"x": 6,
"y": 6,
"elevation": 3,
"movement_type": "16",
"movement_range_x": 1,
"movement_range_y": 1,
"trainer_type": 1,
"trainer_sight_or_berry_tree_id": 3,
"script": "SSAnne_CaptainsOffice4_EventScript_164070",
"flag": "136"
},
{
"graphics_id": "55",
"x": 27,
"y": 4,
"elevation": 3,
"movement_type": "9",
"movement_range_x": 1,
"movement_range_y": 1,
"trainer_type": 1,
"trainer_sight_or_berry_tree_id": 0,
"script": "SSAnne_CaptainsOffice4_EventScript_163F93",
"flag": "0"
},
{
"graphics_id": "92",
"x": 8,
"y": 25,
"elevation": 3,
"movement_type": "8",
"movement_range_x": 1,
"movement_range_y": 1,
"trainer_type": 0,
"trainer_sight_or_berry_tree_id": 0,
"script": "SSAnne_CaptainsOffice4_EventScript_1BED87",
"flag": "500"
},
{
"graphics_id": "92",
"x": 17,
"y": 3,
"elevation": 0,
"movement_type": "8",
"movement_range_x": 1,
"movement_range_y": 1,
"trainer_type": 0,
"trainer_sight_or_berry_tree_id": 0,
"script": "SSAnne_CaptainsOffice4_EventScript_1BED94",
"flag": "501"
},
{
"graphics_id": "92",
"x": 1,
"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": "SSAnne_CaptainsOffice4_EventScript_1BEDA1",
"flag": "502"
},
{
"graphics_id": "92",
"x": 4,
"y": 5,
"elevation": 3,
"movement_type": "8",
"movement_range_x": 1,
"movement_range_y": 1,
"trainer_type": 0,
"trainer_sight_or_berry_tree_id": 0,
"script": "SSAnne_CaptainsOffice4_EventScript_1BEDAE",
"flag": "503"
}
],
"warp_events": [
{
"x": 24,
"y": 25,
"elevation": 3,
"dest_map": "MAP_FIVE_ISLAND_MEADOW",
"dest_warp_id": 0
}
],
"coord_events": [
{
"type": "trigger",
"x": 22,
"y": 11,
"elevation": 3,
"var": "VAR_0x4088",
"var_value": 0,
"script": "SSAnne_CaptainsOffice4_EventScript_163F81"
},
{
"type": "trigger",
"x": 23,
"y": 11,
"elevation": 3,
"var": "VAR_0x4088",
"var_value": 0,
"script": "SSAnne_CaptainsOffice4_EventScript_163F81"
},
{
"type": "trigger",
"x": 24,
"y": 11,
"elevation": 3,
"var": "VAR_0x4088",
"var_value": 0,
"script": "SSAnne_CaptainsOffice4_EventScript_163F81"
}
],
"bg_events": [
{
"type": "bg_event_type_0",
"x": 11,
"y": 2,
"elevation": 0,
"script": "SSAnne_CaptainsOffice4_EventScript_163F5A"
},
{
"type": "bg_event_type_3",
"x": 26,
"y": 11,
"elevation": 0,
"script": "SSAnne_CaptainsOffice4_EventScript_163F78"
},
{
"type": "hidden_item",
"x": 27,
"y": 2,
"elevation": 0,
"item": "ITEM_NEST_BALL",
"flag": "68",
"unknown": 1
},
{
"type": "hidden_item",
"x": 7,
"y": 16,
"elevation": 0,
"item": "ITEM_NET_BALL",
"flag": "69",
"unknown": 1
},
{
"type": "bg_event_type_0",
"x": 12,
"y": 2,
"elevation": 0,
"script": "SSAnne_CaptainsOffice4_EventScript_163F5A"
},
{
"type": "bg_event_type_0",
"x": 10,
"y": 2,
"elevation": 0,
"script": "SSAnne_CaptainsOffice4_EventScript_163F5A"
},
{
"type": "bg_event_type_0",
"x": 9,
"y": 2,
"elevation": 0,
"script": "SSAnne_CaptainsOffice4_EventScript_163F5A"
},
{
"type": "bg_event_type_0",
"x": 8,
"y": 2,
"elevation": 0,
"script": "SSAnne_CaptainsOffice4_EventScript_163F5A"
},
{
"type": "bg_event_type_0",
"x": 7,
"y": 2,
"elevation": 0,
"script": "SSAnne_CaptainsOffice4_EventScript_163F5A"
},
{
"type": "bg_event_type_0",
"x": 11,
"y": 5,
"elevation": 0,
"script": "SSAnne_CaptainsOffice4_EventScript_163F5A"
},
{
"type": "bg_event_type_0",
"x": 10,
"y": 5,
"elevation": 0,
"script": "SSAnne_CaptainsOffice4_EventScript_163F5A"
},
{
"type": "bg_event_type_0",
"x": 11,
"y": 4,
"elevation": 0,
"script": "SSAnne_CaptainsOffice4_EventScript_163F5A"
},
{
"type": "bg_event_type_0",
"x": 10,
"y": 4,
"elevation": 0,
"script": "SSAnne_CaptainsOffice4_EventScript_163F5A"
},
{
"type": "bg_event_type_0",
"x": 8,
"y": 4,
"elevation": 0,
"script": "SSAnne_CaptainsOffice4_EventScript_163F5A"
},
{
"type": "bg_event_type_0",
"x": 7,
"y": 4,
"elevation": 0,
"script": "SSAnne_CaptainsOffice4_EventScript_163F5A"
},
{
"type": "bg_event_type_0",
"x": 8,
"y": 5,
"elevation": 0,
"script": "SSAnne_CaptainsOffice4_EventScript_163F5A"
},
{
"type": "bg_event_type_0",
"x": 7,
"y": 5,
"elevation": 0,
"script": "SSAnne_CaptainsOffice4_EventScript_163F5A"
},
{
"type": "bg_event_type_0",
"x": 5,
"y": 3,
"elevation": 0,
"script": "SSAnne_CaptainsOffice4_EventScript_163F5A"
},
{
"type": "bg_event_type_0",
"x": 4,
"y": 3,
"elevation": 0,
"script": "SSAnne_CaptainsOffice4_EventScript_163F5A"
},
{
"type": "bg_event_type_0",
"x": 5,
"y": 4,
"elevation": 0,
"script": "SSAnne_CaptainsOffice4_EventScript_163F5A"
},
{
"type": "bg_event_type_0",
"x": 4,
"y": 4,
"elevation": 0,
"script": "SSAnne_CaptainsOffice4_EventScript_163F5A"
},
{
"type": "bg_event_type_0",
"x": 3,
"y": 4,
"elevation": 0,
"script": "SSAnne_CaptainsOffice4_EventScript_163F5A"
},
{
"type": "bg_event_type_0",
"x": 2,
"y": 4,
"elevation": 0,
"script": "SSAnne_CaptainsOffice4_EventScript_163F5A"
},
{
"type": "bg_event_type_0",
"x": 2,
"y": 5,
"elevation": 0,
"script": "SSAnne_CaptainsOffice4_EventScript_163F5A"
},
{
"type": "bg_event_type_0",
"x": 3,
"y": 5,
"elevation": 0,
"script": "SSAnne_CaptainsOffice4_EventScript_163F5A"
}
]
}
@@ -0,0 +1,202 @@
FiveIsland_RocketWarehouse_MapScripts:: @ 8163F2E
map_script 1, SSAnne_CaptainsOffice4_MapScript1_163F3D
map_script 3, SSAnne_CaptainsOffice4_MapScript2_163F39
.byte 0
SSAnne_CaptainsOffice4_MapScript2_163F39:: @ 8163F39
setworldmapflag 2233
end
SSAnne_CaptainsOffice4_MapScript1_163F3D:: @ 8163F3D
checktrainerflag 543
call_if 1, EventScript_163F47
end
EventScript_163F47:: @ 8163F47
setmetatile 26, 20, 672, 0
setmetatile 27, 20, 672, 0
return
SSAnne_CaptainsOffice4_EventScript_163F5A:: @ 8163F5A
lockall
checkflag FLAG_0x2D5
goto_if 1, EventScript_163F6E
loadword 0, gUnknown_817B4E3
callstd 4
releaseall
end
EventScript_163F6E:: @ 8163F6E
loadword 0, gUnknown_817B512
callstd 4
releaseall
end
SSAnne_CaptainsOffice4_EventScript_163F78:: @ 8163F78
loadword 0, gUnknown_817BB15
callstd 3
end
SSAnne_CaptainsOffice4_EventScript_163F81:: @ 8163F81
lockall
applymovement 4, Movement_1A75E7
waitmovement 0
setvar VAR_0x4088, 1
releaseall
end
SSAnne_CaptainsOffice4_EventScript_163F93:: @ 8163F93
trainerbattle 2, 545, 0, Text_17BBAF, Text_17BC55, EventScript_163FCD
checkflag 2116
goto_if 1, EventScript_163FB7
loadword 0, gUnknown_817BCA3
callstd 6
end
EventScript_163FB7:: @ 8163FB7
setvar VAR_0x8004, 15
setvar VAR_0x8005, 5
special SetFlavorTextFlagFromSpecialVars
loadword 0, gUnknown_817BCD7
callstd 6
end
EventScript_163FCD:: @ 8163FCD
loadword 0, gUnknown_817BC6C
callstd 4
setflag FLAG_0x2DC
setorcopyvar VAR_0x8000, 374
setorcopyvar VAR_0x8001, 1
callstd 0
release
end
SSAnne_CaptainsOffice4_EventScript_163FE6:: @ 8163FE6
trainerbattle 0, 541, 0, Text_17B54D, Text_17B585
loadword 0, gUnknown_817B5A6
callstd 6
end
SSAnne_CaptainsOffice4_EventScript_163FFD:: @ 8163FFD
trainerbattle 0, 542, 0, Text_17B677, Text_17B6D9
loadword 0, gUnknown_817B6EF
callstd 6
end
SSAnne_CaptainsOffice4_EventScript_164014:: @ 8164014
trainerbattle 2, 544, 0, Text_17B8DA, Text_17B9FB, EventScript_16402F
loadword 0, gUnknown_817BA64
callstd 6
end
EventScript_16402F:: @ 816402F
getplayerxy VAR_0x8004, VAR_0x8005
compare_var_to_value VAR_0x8004, 24
call_if 3, EventScript_164065
loadword 0, gUnknown_817BA64
callstd 4
closemessage
fadescreen 1
removeobject 1
removeobject 2
removeobject 4
removeobject 3
setflag FLAG_0x088
fadescreen 0
setvar VAR_0x4088, 1
setflag FLAG_0x2D5
release
end
EventScript_164065:: @ 8164065
applymovement 255, Movement_1A75EB
waitmovement 0
return
SSAnne_CaptainsOffice4_EventScript_164070:: @ 8164070
trainerbattle 0, 516, 0, Text_17B5D6, Text_17B62F
loadword 0, gUnknown_817B642
callstd 6
end
SSAnne_CaptainsOffice4_EventScript_164087:: @ 8164087
trainerbattle 2, 543, 0, Text_17B72D, Text_17B79C, EventScript_1640A2
loadword 0, gUnknown_817B7FA
callstd 6
end
EventScript_1640A2:: @ 81640A2
getplayerxy VAR_0x8004, VAR_0x8005
specialvar VAR_RESULT, player_get_direction_lower_nybble
compare_var_to_value VAR_RESULT, 2
call_if 1, EventScript_16412E
loadword 0, gUnknown_817B7AE
callstd 4
closemessage
compare_var_to_value VAR_0x8004, 24
call_if 3, EventScript_164144
compare_var_to_value VAR_0x8004, 25
call_if 1, EventScript_16414F
compare_var_to_value VAR_0x8004, 26
call_if 1, EventScript_16415A
compare_var_to_value VAR_0x8004, 27
call_if 1, EventScript_16415A
playse SE_PIN
call EventScript_163F47
special DrawWholeMapView
waitse
compare_var_to_value VAR_0x8004, 24
call_if 3, EventScript_164165
compare_var_to_value VAR_0x8004, 25
call_if 1, EventScript_164165
compare_var_to_value VAR_0x8004, 26
call_if 1, EventScript_164165
compare_var_to_value VAR_0x8004, 27
call_if 1, EventScript_164170
loadword 0, gUnknown_817B7FA
callstd 4
release
end
EventScript_16412E:: @ 816412E
compare_var_to_value VAR_0x8004, 27
goto_if 1, EventScript_1A77A9
applymovement 255, Movement_1A75EB
waitmovement 0
return
EventScript_164144:: @ 8164144
applymovement 3, Movement_16417B
waitmovement 0
return
EventScript_16414F:: @ 816414F
applymovement 3, Movement_16417F
waitmovement 0
return
EventScript_16415A:: @ 816415A
applymovement 3, Movement_1A75E9
waitmovement 0
return
EventScript_164165:: @ 8164165
applymovement 3, Movement_1A75E7
waitmovement 0
return
EventScript_164170:: @ 8164170
applymovement 3, Movement_1A75ED
waitmovement 0
return
Movement_16417B:: @ 816417B
step_13
step_13
step_2e
step_end
Movement_16417F:: @ 816417F
step_13
step_2e
step_end