import from github

This commit is contained in:
2022-05-19 17:14:13 +00:00
parent 5247c34f50
commit ab32b30591
12612 changed files with 1905035 additions and 83 deletions

123
data/maps/Route107/map.json Normal file
View File

@ -0,0 +1,123 @@
{
"id": "MAP_ROUTE107",
"name": "Route107",
"layout": "LAYOUT_ROUTE107",
"music": "MUS_ROUTE104",
"region_map_section": "MAPSEC_ROUTE_107",
"requires_flash": false,
"weather": "WEATHER_SUNNY",
"map_type": "MAP_TYPE_ROUTE",
"allow_cycling": true,
"allow_escaping": false,
"allow_running": true,
"show_map_name": true,
"battle_scene": "MAP_BATTLE_SCENE_NORMAL",
"connections": [
{
"direction": "left",
"offset": 0,
"map": "MAP_DEWFORD_TOWN"
},
{
"direction": "right",
"offset": 0,
"map": "MAP_ROUTE108"
}
],
"object_events": [
{
"graphics_id": "OBJ_EVENT_GFX_SWIMMER_M",
"x": 41,
"y": 10,
"elevation": 1,
"movement_type": "MOVEMENT_TYPE_ROTATE_CLOCKWISE",
"movement_range_x": 1,
"movement_range_y": 1,
"trainer_type": "TRAINER_TYPE_NORMAL",
"trainer_sight_or_berry_tree_id": "3",
"script": "Route107_EventScript_Darrin",
"flag": "0"
},
{
"graphics_id": "OBJ_EVENT_GFX_SWIMMER_M",
"x": 23,
"y": 11,
"elevation": 1,
"movement_type": "MOVEMENT_TYPE_WALK_SEQUENCE_RIGHT_DOWN_LEFT_UP",
"movement_range_x": 6,
"movement_range_y": 2,
"trainer_type": "TRAINER_TYPE_NORMAL",
"trainer_sight_or_berry_tree_id": "2",
"script": "Route107_EventScript_Tony",
"flag": "0"
},
{
"graphics_id": "OBJ_EVENT_GFX_SWIMMER_F",
"x": 16,
"y": 7,
"elevation": 1,
"movement_type": "MOVEMENT_TYPE_FACE_DOWN_AND_UP",
"movement_range_x": 0,
"movement_range_y": 0,
"trainer_type": "TRAINER_TYPE_NORMAL",
"trainer_sight_or_berry_tree_id": "5",
"script": "Route107_EventScript_Denise",
"flag": "0"
},
{
"graphics_id": "OBJ_EVENT_GFX_SWIMMER_F",
"x": 50,
"y": 11,
"elevation": 1,
"movement_type": "MOVEMENT_TYPE_WALK_IN_PLACE_UP",
"movement_range_x": 1,
"movement_range_y": 1,
"trainer_type": "TRAINER_TYPE_NORMAL",
"trainer_sight_or_berry_tree_id": "5",
"script": "Route107_EventScript_Beth",
"flag": "0"
},
{
"graphics_id": "OBJ_EVENT_GFX_SWIMMER_F",
"x": 33,
"y": 4,
"elevation": 1,
"movement_type": "MOVEMENT_TYPE_FACE_DOWN",
"movement_range_x": 1,
"movement_range_y": 1,
"trainer_type": "TRAINER_TYPE_NORMAL",
"trainer_sight_or_berry_tree_id": "1",
"script": "Route107_EventScript_Lisa",
"flag": "0"
},
{
"graphics_id": "OBJ_EVENT_GFX_TUBER_M_SWIMMING",
"x": 32,
"y": 4,
"elevation": 1,
"movement_type": "MOVEMENT_TYPE_FACE_DOWN",
"movement_range_x": 1,
"movement_range_y": 1,
"trainer_type": "TRAINER_TYPE_NORMAL",
"trainer_sight_or_berry_tree_id": "1",
"script": "Route107_EventScript_Ray",
"flag": "0"
},
{
"graphics_id": "OBJ_EVENT_GFX_SWIMMER_M",
"x": 50,
"y": 5,
"elevation": 1,
"movement_type": "MOVEMENT_TYPE_WALK_IN_PLACE_DOWN",
"movement_range_x": 1,
"movement_range_y": 1,
"trainer_type": "TRAINER_TYPE_NORMAL",
"trainer_sight_or_berry_tree_id": "5",
"script": "Route107_EventScript_Camron",
"flag": "0"
}
],
"warp_events": [],
"coord_events": [],
"bg_events": []
}

View File

@ -0,0 +1,54 @@
Route107_MapScripts::
.byte 0
Route107_EventScript_Darrin::
trainerbattle_single TRAINER_DARRIN, Route107_Text_DarrinIntro, Route107_Text_DarrinDefeated
msgbox Route107_Text_DarrinPostBattle, MSGBOX_AUTOCLOSE
end
Route107_EventScript_Tony::
trainerbattle_single TRAINER_TONY_1, Route107_Text_TonyIntro, Route107_Text_TonyDefeated, Route107_EventScript_TonyRegisterMatchCallAfterBattle
specialvar VAR_RESULT, ShouldTryRematchBattle
goto_if_eq VAR_RESULT, TRUE, Route107_EventScript_TonyRematch
msgbox Route107_Text_TonyPostBattle, MSGBOX_DEFAULT
release
end
Route107_EventScript_TonyRegisterMatchCallAfterBattle::
special PlayerFaceTrainerAfterBattle
waitmovement 0
msgbox Route107_Text_TonyRegister, MSGBOX_DEFAULT
register_matchcall TRAINER_TONY_1
release
end
Route107_EventScript_TonyRematch::
trainerbattle_rematch TRAINER_TONY_1, Route107_Text_TonyRematchIntro, Route107_Text_TonyRematchDefeated
msgbox Route107_Text_TonyRematchPostBattle, MSGBOX_AUTOCLOSE
end
Route107_EventScript_Denise::
trainerbattle_single TRAINER_DENISE, Route107_Text_DeniseIntro, Route107_Text_DeniseDefeated
msgbox Route107_Text_DenisePostBattle, MSGBOX_AUTOCLOSE
end
Route107_EventScript_Beth::
trainerbattle_single TRAINER_BETH, Route107_Text_BethIntro, Route107_Text_BethDefeated
msgbox Route107_Text_BethPostBattle, MSGBOX_AUTOCLOSE
end
Route107_EventScript_Lisa::
trainerbattle_double TRAINER_LISA_AND_RAY, Route107_Text_LisaIntro, Route107_Text_LisaDefeated, Route107_Text_LisaNotEnoughPokemon
msgbox Route107_Text_LisaPostBattle, MSGBOX_AUTOCLOSE
end
Route107_EventScript_Ray::
trainerbattle_double TRAINER_LISA_AND_RAY, Route107_Text_RayIntro, Route107_Text_RayDefeated, Route107_Text_RayNotEnoughPokemon
msgbox Route107_Text_RayPostBattle, MSGBOX_AUTOCLOSE
end
Route107_EventScript_Camron::
trainerbattle_single TRAINER_CAMRON, Route107_Text_CamronIntro, Route107_Text_CamronDefeated
msgbox Route107_Text_CamronPostBattle, MSGBOX_AUTOCLOSE
end